• How to convert pdflatex to latex?
    by Hania Yaseen on May 19, 2026 at 7:27 am

    How to convert pdflatex to latex so we don't have to use package epstopdf and we can directly run eps figures without converting them into pdf.

  • Lualatex error when adding accent package with oldStandard math package and unicode-math
    by Nasser on May 19, 2026 at 7:09 am

    I am using code from Old math fonts with proper math table which works great. I'd like to use that font. But once I add package accents lualatex gives error. I am using laulatex with TL 2026 on Linux Ubuntu Here is MWE (same code as above in preamble) \documentclass[12pt]{article} \usepackage{microtype} \usepackage{unicode-math} \setmainfont[% ItalicFont=OldStandard-Italic.otf, BoldFont=OldStandard-Bold.otf, BoldItalicFont=OldStandard-BoldItalic.otf, SmallCapsFeatures={Numbers=OldStyle}, FakeBold=0.1]{OldStandard-Regular.otf} \setmathfont[FakeBold=1]{OldStandard-Math.otf} \usepackage{amsmath} \usepackage{accents} \begin{document} \[ \left( i-1\right) \bar{z}=\left( 2-3i\right) ^{2}% \] \end{document} Compiled using lualatex gives >lualatex 4.tex This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) restricted system commands enabled. (./4.tex LaTeX2e <2025-11-01> .... ex))) (/usr/local/texlive/2026/texmf-dist/tex/latex/accents/accents.sty) (./4.aux) ! Missing number, treated as zero. <to be read again> \protect l.19 \left( i-1\right) \bar{z} =\left( 2-3i\right) ^{2}% ? If I comment out the accent package, then everything works fine >lualatex 4.tex This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) restricted system commands enabled. .... Output written on 4.pdf (1 page, 6142 bytes). Transcript written on 4.log. > I also saw an answer here Is accents package incompatible with unicode-math? which says to load the accent package before unicode-math But this did not work for me. \documentclass[12pt]{article} \usepackage{accents} \usepackage{microtype} \usepackage{unicode-math} \setmainfont[% ItalicFont=OldStandard-Italic.otf, BoldFont=OldStandard-Bold.otf, BoldItalicFont=OldStandard-BoldItalic.otf, SmallCapsFeatures={Numbers=OldStyle}, FakeBold=0.1]{OldStandard-Regular.otf} \setmathfont[FakeBold=1]{OldStandard-Math.otf} \usepackage{amsmath} \begin{document} \[ \left( i-1\right) \bar{z}=\left( 2-3i\right) ^{2}% \] \end{document} Now I get this error >lualatex 4.tex This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) .... (/usr/local/texlive/2026/texmf-dist/tex/latex/amsmath/amsopn.sty) ! LaTeX Error: Command \dddot already defined. Or name \end... illegal, see p.192 of the manual. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.746 \hbox{\,\normalfont...}\vss}}}} ? I'd like to use accent package for something else. I was wondering why this happens and if it is possible to use the accent package with this font?

  • \animategraphics on a single pdf, which hasn't been broken into its pages
    by Jasper on May 19, 2026 at 6:21 am

    Instead of using \animategraphics[options]{<rate>}{<name prefix>}{<start frame>}{<stop frame>}, is it possible to have all the pdf frames as just part of one joined pdf? Or do I always need to break it into pages first? It's easy to make a single pdf which animates across its pages. pdf frames is way less convenient. To generate the MWE, run the following codes. \documentclass[tikz,border=1cm]{standalone} \begin{document} \foreach \FRAME in {1,...,120} { \begin{tikzpicture} \draw (0,0) -- (1,1); \end{tikzpicture} } \end{document} from pypdf import PdfReader, PdfWriter import os def split_pdf_page_dash(input_pdf, output_dir="output_pages"): os.makedirs(output_dir, exist_ok=True) reader = PdfReader(input_pdf) total = len(reader.pages) for i in range(total): page_num = i + 1 writer = PdfWriter() writer.add_page(reader.pages[i]) out_path = os.path.join(output_dir, f"page-{page_num}.pdf") with open(out_path, "wb") as f: writer.write(f) print(f"Created {total} files in '{output_dir}'") split_pdf_page_dash("main.pdf") \documentclass{beamer} \usepackage{animate} \begin{document} \begin{frame} \begin{figure} \graphicspath{{output_pages/}} \animategraphics[loop,autoplay] {24}{page-}{1}{120} \end{figure} \end{frame} \end{document}

  • How do I suppress MetaFun’s “overloading primitive” log messages?
    by Harry on May 19, 2026 at 6:07 am

    In ConTeXt/MetaFun, I am intentionally saving/redefining primitive tokens locally. For example: \starttext \startMPcode def my_example = begingroup; save [; save ]; endgroup; enddef; my_example; \stopMPcode \stoptext This produces a log message like: metafun > log > overloading primitive '[' metafun > log > overloading primitive ']' Is there a supported way to disable or suppress these specific MetaFun diagnostic messages? I am not trying to hide TeX errors or MetaPost errors generally. I only want to suppress MetaFun’s informational logging about primitive overloading inside specific macros, because the logging is becoming unmanageable, i.e., hundreds of lines during just testing alone.

  • How to tweak the empty horizonal and vertical double hline/vline with tabularray?
    by Explorer on May 19, 2026 at 2:41 am

    Here is the follow-up of my answer, now I want something as below: But I found that not quite easy to play with left/rightpos: \documentclass{article} \usepackage{tabularray} % https://tex.stackexchange.com/a/687452 % https://tex.stackexchange.com/a/745819 \begin{document} \begin{tblr}{ colspec={*{4}{Q[c,.8cm]}}, hlines, vlines, vline{1,Z} = {-}{solid, abovepos = 1}, vline{3} = {1}{-}{solid}, vline{3} = {2}{-}{solid}, hline{2} = {1}{-}{solid}, hline{2} = {2}{-}{solid}, hline{1,Z} = {1pt}, cell{2-4}{1} = {c=2}{l}, cell{5,8,11}{1} = {r=3}{l} } & & a & b \\ c & & d & d \\ f & & g & d \\ h & & i & j \\ n & k & l & m \\ & o & p & q \\ & r & s & t \\ x & u & v & w \\ & y & z & aa \\ & ab & ac & ad \\ ah& ae & af & ag \\ & ai & aj & ak \\ & al & am & an \\ \end{tblr} \end{document} Maybe related: https://tex.stackexchange.com/a/687452 https://tex.stackexchange.com/a/745819

  • Screen Reader poor voicing of syllabus components in tagged PDF
    by Tricia Bevans on May 19, 2026 at 1:13 am

    I'm working with my department to produce accessible PDFs for syllabi and we've encountered some issues with how the screen reader is voicing certain elements. I've included the code we're working with and a short description of the issues within the code where it occurs but they are (in order of appearance in the code): Abbreviations for days of the week such as "Mon" do not read as "Monday" for the NVDA screen reader. "C-" reads as "C" rather than "C minus" as intended Is there a better way to include the URL address for those who might not be able to click on the link without having it be something that the screen reader reads? Including a tag for table header as shown here actually makes it more difficult to follow the table format because the screen reader still includes the header as the first row when identifying the column and row it is reading. the variable "h" is reading as Planck's constant here in the context of a transformation. In paragraphs the screen reader is pausing at strange times within lines that don't match with the structure of the sentence. I understand that tagged PDFs are still new and there are some kinks to work out but I'm hopeful someone has solutions to offer for one or two of these problems we've encountered. \DocumentMetadata{ lang = en, pdfversion = 2.0, pdfstandard = UA-2, pdfstandard = A-4f, tagging-setup = {math/setup=mathml-SE, extra-modules={verbatim-mo}} } \documentclass[12pt]{article} \usepackage[hmargin=2cm,vmargin=2cm]{geometry} \usepackage{unicode-math}\usepackage{hyperref} \AddToDocumentProperties[hyperref]{pdftdmreservation}{1} \begin{document} \section*{Basic Information} \tagpdfsetup{table/tagging=presentation} \begin{tabular}{l l} \noindent\textbf{Meeting times:} & Mon., Tues., Wed., and Fri. 2--2:50pm \\ \noindent\textbf{Instructor:} & B.E. \\ \noindent\textbf{Office:} & University Hall 101 \\ \noindent\textbf{Office hours:} & M 3--4pm, T 11:30am--12:30pm, W 10--11am. \\ \noindent\textbf{E-mail:} & \texttt{teacher@someuniversity.edu} \\ \end{tabular} \vspace{.1 in} Screen readers say ``Mon, Tues, Wed'' for abbreviations of weekdays \section*{Policies} \subsection*{Grading} The various graded components of the class will be weighted as below. \begin{itemize} \item Homework: 30\% \item Midterms: 40\% (there are two) \item Final: 30\% \item Quizzes: 2\% \end{itemize} Yes, that adds up to 102\%. I'm cool with that. I'll pretend it is out of 100\% at the end. Blah blah blah more grading policies. \subsection*{Pre-requisites} C- in previous math course. Screen reader ignores the ``minus" sign. \subsection*{Miscellaneous} This syllabus includes a link to campus policies: \href{https://provost.uoregon.edu/syllabus-guidelines}{the Provost's syllabus guidelines} \begin{center} \texttt{https://provost.uoregon.edu/syllabus-guidelines} \end{center} Is there a better way to include the URL address for those who might not be able to click on the link without having it be something that the screen reader reads? \subsection*{Tentative Schedule} The way that screen readers read the next table is very hard to follow. \vspace{.1in} \tagpdfsetup{table/header-rows={1}} \begin{tabular}{l l} \textbf{Week} & \textbf{Reading and comments} \\ Week 1 & Review of vector spaces (4.1-4.5), 4.7 \\ Week 2 & 4.8-4.9, 5.1 \\ Week 3 & 5.2-5.3 \\ \end{tabular} \subsection*{Learning Outcomes} We might do some transformations in this class: properly: $f(x)=a(x-h)^2 -7$ but screen reader reads the horizontal shift as Planck's constant instead of the variable we intend. \vspace{.1 in} In paragraph sections the screen reader creates odd breaks in the line that do not happen at natural places. \vspace{.1 in} \end{document} I'm compiling at least twice each time on an up-to-date version of TeX Live using LuaLaTeX and testing with NVDA screen reader.

  • alapage command not working on standalone documentclass
    by ABV on May 18, 2026 at 11:11 pm

    It is needed to use alapage command to split the score in many pages using standalone documentclass mode. The basic code is as follow: \documentclass[% a4paper, border={15pt 9pt 35pt 7pt},% left bottom right top varwidth]{standalone} % ========== PAQUETES ========== \usepackage{tikz}% \usetikzlibrary{arrows.meta,calc} %LIBRERIA PARA LAS FORMAS \usetikzlibrary{quotes}% \usetikzlibrary{shapes}% \usetikzlibrary{fit,positioning}% \usetikzlibrary{arrows.meta}% \usetikzlibrary{decorations}% \usepackage{amsmath}% \usepackage{musicography}% \usepackage{musixtex}% \input musixlyr% \input musixthacc % ← AGREGAR esta línea PARA EL MICHI Y OTROS SIMBOLOS \usepackage{xcolor}% \xdefinecolor{red-undar}{RGB}{179,35,79}% \begin{document}% \begin{music}% \staffbotmarg15\Interligne% \font\A=phvb8t at 10pt% \setlyrics{A1}{I {V{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} I VI V I IV {IV{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} I _ _ V VI IV {V$^{4}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 3}}}} I III {V$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}} {VI{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {V$^{4}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 3}}}} {I{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} IV I _ VII I II V$^{7}$ I IV {I{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {V{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {VI{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} /V I /IV I _ {V$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 4}}}} {I{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} IV {VII{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} I {I{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {V$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}} I VI V$^{7}$ I {IV{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} I VI/I {V$^{4}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 3}}}} {I{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} IV {V$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}} I VI III I /V VI II V I {/V$^{4}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 2}}}} _ {I{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {V$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 4}}}} {/II$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}} V I I {III{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} VI$^{7}$ II {/v$^{4}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 3}}}} {I{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} IV V$^{7}$ {V$^{4}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 3}}}} I {III{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {VI$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}}/{II$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}} {V$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}} I {/V{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} I {V$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 4}}}} {I{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} IV /V$^{7}$ I {/V$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}} {I{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {/V{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} I {V{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} VI I {VII{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {V$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}} I /V$^{7}$ I /VI {VI{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} II$^{7}$ {II$^{6}${\hspace{-0.3cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 5}}}} V _ V$^{7}$ I I {V{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {VI{\hspace{-0.1cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} {IV{\hspace{-0.2cm}\raisebox{-.3ex}{\bfseries\musFig{\noFig 6}}}} V _ I}% \setlyrics{A2}{per~{-} met~{-} ti ch{'}io sia Tu {-} o{,} ~~~di~~~~~~~{-} vi {-} no mio Si~{-} \fbox{Frase 1} _ _ _ _ _ _ _ \fbox{Frase 2} _ _ _ _ gnor{!} da Te non di~{-} scac~{-} ciar {-} mi{,} non dar~{-} mi tal do~{-} _ \fbox{Frase 3} _ _ _ _ _ _ _ \fbox{Frase 4} _ _ _ _ lor{!} Non fa~{-} re ch{'}lo va~{-} cil {-} li~{,} fer~{-} mez~{-} za do~{-} na _ \fbox{Frase 5} _ _ _ _ _ _ _ _ \fbox{Frase 6} _ _ _ _ cor{.} ch{'}io pos~{-} sa _ rin~{-} gra~{-} ziar _ \fbox{Frase 7} _ _ _ _ _ _ ti{,} O Re dei Cie {-} lio {-} gnor. _ \fbox{Frase 8} _ _ _ _ _}% \setsongraise1{15mm}% \setsongraise2{26mm}% \parindent1mm% \instrumentnumber{2}% ← 2 instrumentos separados \setstaffs1{1}% instrumento 1 (inferior) = 1 pentagrama \setstaffs2{1}% instrumento 2 (superior) = 1 pentagrama \setclef1{6}% inferior = clave de fa \setclef2{0}% superior = clave de SOL \curlybrackets{{1}{2}}% esto es para "{" %\sepbarrules% ← ESTO elimina las líneas flotantes entre instrumentos \nobarnumbers \interstaff{13} \startpiece% \A\assignlyrics2{A2}% \A\assignlyrics1{A1}% %\notes [inst.1]=FA(��) & [inst.2]=SOL % UNO \Notes\meterC\zcharnote{-22}{\hspace{0.6cm}/Do M}\sk\fermatadown E\zhl{J}\hu{L}&\meterC\sk\fermataup l\zhl{N}\hu{c}\en\bar% \NOtes\zhl{I}\hu{K}\zhl{J}\hu{L}&\zhl{N}\hu{g}\zhl{c}\hu{g}\en\bar% \NOtes\zhl{H}\hu{L}\zhl{G}\hu{N}&\zhl{c}\hu{h}\zhl{d}\hu{i}\en\bar% \Notes\zhl{J}\hu{N}\qsk\zql{F}\qu{a}\zql{H}\qu{M}&\zhl{e}\wh{j}\hl{f}\en\bar% \Notes\fermatadown E\zhl{J}\hu{L}\qsk\zql{J}\hu{c}\ql{L}&\fermataup p\zhl{e}\hu{j}\zhl{g}\hu{l}\en\bar% \Notes\zhl{N}\hu{b}\sk\zhl{a}\hu{c}&\zql{g}\hu{k}\ql{f}\zhl{e}\hu{j}\en% \alaligne% DOS \Notes\meterC\sk\zhl{M}\hu{c}\zhl{K}\hu{N}&\meterC\sk\zhl{f}\hu{h}\zhl{f}\hu{i}\en\bar% \Notes\zhl{J}\hu{N}\zcharnote{-22}{\hspace{-0.6cm}/Do M}\sk&\fermataup l\zhl{c}\hu{c}\en\bar% \Notes\zhl{L}\hu{N}\zhl{I}\hu{M}&\zhl{b}\hu{g}\zhl{d}\hu{g}\en\bar% \Notes\zhl{J}\hu{L}\zhl{K}\hu{N}&\zhl{c}\hu{h}\zhl{f}\hu{i}\en\bar% \Notes\zhl{L}\hu{N}\zhl{M}\hu{a}&\zwh{j}\hl{e}\hl{c}\en\bar% \Notes\fermatadown E\zhl{J}\hu{N}\zhl{J}\hu{c}&\fermataup p\zhl{c}\hu{j}\zhl{g}\hu{l}\en% \alaligne% TERCERA \Notes\meterC\sk\zhl{I}\hu{d}\zhl{J}\hu{N}&\meterC\sk\zhl{f}\hu{k}\zhl{e}\hu{j}\en\bar% \Notes\zhl{K}\wh{M}\hl{G}&\zwh{d}\hu{h}\hu{i}\en\bar% \Notes\fermatadown E\zhl{J}\hu{N}\zhl{M}\hu{a}&\fermataup o\zhl{e}\hu{j}\zhl{c}\hu{c}\en\bar% \Notes\zhl{L}\hu{N}\zhl{I}\hu{N}&\zhl{c}\hu{g}\zhl{d}\hu{g}\en\bar% \Notes\zhl{J}\hu{L}\sh{N}\zhl{L}\hu{N}\zcharnote{-22}{\hspace{-0.8cm}/la m}&\zhl{e}\hu{h}\zhl{e}\hu{i}\en\bar% \Notes\zhl{H}\hu{a}\zhl{M}\hu{a}\zcharnote{-22}{\hspace{-0.8cm}/Do M}&\zhl{e}\wh{j}\hl{f}\en% \alapage %\alaligne% CUARTA \Notes\meterC\sk\fermatadown E\zhl{J}\hu{N}\zhl{J}\hu{c}&\meterC\sk\fermataup p\zhl{e}\hu{j}\zhl{g}\hu{l}\en\bar% \Notes\zhl{K}\hu{b}\zhl{L}\hu{c}&\zhl{g}\hu{k}\zhl{g}\hu{j}\en\bar% \Notes\zhl{M}\hu{c}\zhl{K}\hu{d}&\zhl{f}\hu{h}\zhl{f}\hu{i}\en\bar% \Notes\fermatadown E\zhl{J}\hu{L}\zhl{L}\hu{N}&\fermataup p\zhl{c}\hu{j}\zhl{c}\hu{c}\en\bar% \Notes\zhl{K}\hu{M}\zhl{J}\hu{L}&\zhl{b}\hu{g}\zhl{c}\hu{g}\en\bar% \Notes\zhl{H}\hu{L}\zhl{G}\hu{M}&\zhl{c}\hu{h}\zhl{d}\hu{i}\en% \alaligne% QUINTA \Notes\meterC\sk\zhl{J}\hu{L}\zhl{H}\hu{M}&\meterC\sk\zhl{c}\wh{j}\hl{f}\en\bar% \Notes\fermatadown E\zhl{J}\hu{N}\zhl{H}\hu{c}\zcharnote{-20}{\hspace{-1.0cm}/la m}&\fermataup p\zhl{e}\hu{j}\zhl{h}\hu{l}\en\bar% \Notes\zhl{I}\wh{e}\hl{J}&\sh{g}\zhl{g}\hu{k}\zhl{h}\hu{j}\en\bar% \Notes\zhl{K}\wh{d}\sh{G}\hl{G}&\zhl{f}\hu{h}\zhl{e}\hu{i}\en\bar% \Notes\fermatadown E\zhl{J}\hu{e}\zhl{a}\hu{c}&\fermataup p\zhl{g}\hu{j}\zhl{e}\hu{j}\en\bar% \Notes\zhl{L}\hu{b}\zhl{J}\hu{c}\zcharnote{-10}{\hspace{-3.88cm}\begin{tikzpicture} \node (point) at (0,0)[text width=16mm,align=center] {\textcolor{red-undar}{\A\textbf{}}}; \node (point) at (1.5,0.25)[text width=16mm,align=center] {\textcolor{red-undar}{\A\textbf{}}}; \draw[line width=1pt,draw=red-undar] (0.118,-0.06) -- ++(0,0.1)-- ++(2.76,0)-- ++(0,-0.1); \end{tikzpicture}}\zcharnote{-20}{\hspace{-2.6cm}\fbox{\tiny Rompe la sintaxis armónica}}&\zhl{g}\hu{l}\zhl{g}\hu{l}\en% \alaligne% SEIS \Notes\meterC\sk\zhl{K}\hu{a}\qsk\zhl{L}\hu{N}\zcharnote{-21}{\hspace{-1.3cm}/Sol M}&\meterC\sk\sh{f}\zhl{f}\hu{k}\qsk\zhl{g}\hu{i}\en\bar% \NOtes\zhl{H}\hu{a}\sh{M}\zhl{K}\hu{M}&\zhl{e}\wh{j}\hl{d}\en\bar% \notes\fermatadown C\zhl{G}\hu{N}\sk\na{M}\hu{N}\hl{M}\zcharnote{-21}{\hspace{-0.9cm}/Do M}&\fermataup p\zhl{d}\hu{i}\sk\zhl{d}\hu{i}\en\bar% \NOtes\zhl{L}\hu{N}\zhl{K}\hu{N}&\zhl{c}\hu{j}\zhl{d}\hu{i}\en\bar% \Notes\zhl{J}\hu{N}\sh{M}\zhl{K}\hu{M}\zcharnote{-21}{\hspace{-1.4cm}/Sol M}&\zhl{e}\hu{h}\zql{d}\hu{h}\ql{c}\en\bar% \Notes\fermatadown E\zhl{H}\hu{c}\zhl{L}\hu{c}\zcharnote{-21}{\hspace{-0.7cm}/Do M}&\fermataup p\zhl{e}\hu{j}\islurd1g\zhl{g}\hu{j}\tslur1g\qsk\en% \alaligne%SIETE \Notes\meterC\sk\zhl{G}\hu{b}\zhl{H}\hu{c}&\meterC\sk\islurd1g\tslur1g\zwh{g}\hu{l}\hu{l}\en\bar% \Notes\zhl{K}\hu{a}\zhl{K}\hu{N}&\zhl{f}\hu{k}\zhl{f}\hu{i}\en\bar% \Notes\zhl{J}\hu{N}\zhl{M}\hu{a}&\zhl{e}\wh{j}\hl{f}\en\bar% \NOtes\fermatadown E\zhl{N}\hu{N}\zhl{K}\hu{N}&\fermataup p\zhl{f}\hu{i}\zhl{f}\hu{i}\en\bar% \Notes\zhl{J}\isluru1N\wh{N}\hl{G}&\islurd2e\zwh{e}\hu{j}\hu{i}\en\bar% \NOtes\zhl{J}\tslur1N\hu{N}\sh{M}\zhl{J}\hu{M}\zcharnote{-21}{\hspace{-2.3cm}/Sol M}&\tslur2e\zhl{e}\hu{h}\zhl{d}\hu{h}\en% \alaligne% ocho \Notes\meterC\sk\fermatadown C\zhl{G}\hu{N}\zhl{I}\hu{N}\zcharnote{-21}{\hspace{-0.7cm}/Do M}\qsk&\meterC\sk\fermataup m\zhl{b}\hu{g}\zhl{d}\hu{g}\en\bar% \Notes\zhl{I}\hu{N}\qsk\zql{K}\hu{N}\ql{L}&\zhl{c}\hu{e}\qsk\zql{b}\hu{g}\ql{c}\en\bar% \NOtes\zhl{M}\hu{M}\qsk\zcharnote{3}{\hspace{-1.8cm}\begin{tikzpicture} \node (point) at (0,0)[text width=16mm,align=center] {\textcolor{red-undar}{\A\textbf{}}}; \draw[line width=1.5pt,draw=red-undar] (0.2,0.6) -- node [above, pos=0.1] {\textcolor{red-undar}{\A\textbf{}}} (0.9,0.7); \end{tikzpicture}}\zcharnote{-8}{\hspace{-1.8cm}\begin{tikzpicture} \node (point) at (0,0)[text width=16mm,align=center] {\textcolor{red-undar}{\A\textbf{}}}; \draw[line width=1.5pt,draw=red-undar] (0.2,0.6) -- node [above, pos=0.1] {\textcolor{red-undar}{\A\textbf{}}} (0.9,0.4); \end{tikzpicture}}\zhl{H}\hu{a}\zcharnote{-21}{\hspace{-0.9cm}/re m}\zcharnote{14}{\hspace{-2.1cm}\tiny (8vas consecutivas)}&\zhl{c}\hu{h}\sh{c}\zhl{c}\hu{g}\en\bar% \NOtes\zhl{K}\hu{a}\zhl{I}\hu{N}\zcharnote{-21}{\hspace{-1.0cm}/Do m}&\zwh{d}\wh{f}\en\bar% \Notes\fermatadown C\zhl{I}\hu{N}\zhl{I}\hu{N}\zcharnote{-21}{\hspace{-0.7cm}/Do M}&\fermataup p\zhl{d}\hu{g}\zhl{d}\hu{g}\en\bar% \Notes\zhl{J}\hu{N}\hl{I}&\zhl{c}\hu{e}\zhl{d}\hu{g}\en% \alaligne%NUEVE \Notes\meterC\sk\zhl{H}\wh{c}\hl{J}&\meterC\sk\zwh{e}\hu{h}\hu{g}\en\bar% \Notes\zhl{K}\hu{b}\zhl{I}\hu{N}&\zhl{d}\wh{f}\hl{d}\en\bar% \NOtes\fermatadown C\zhl{J}\hu{N}\fl{b}\zhl{L}\hu{b}\zcharnote{-21}{\hspace{-1.1cm}/Fa M}&\fermataup p\zhl{c}\hu{e}\zhl{c}\hu{g}\en\bar% \NOtes\zhl{M}\hu{a}\qsk\zql{H}\hu{a}\ql{J}\zcharnote{-21}{\hspace{-1.6cm}/Do M}&\zhl{c}\hu{h}\zhl{e}\hu{j}\en\bar% \Notes\zql{K}\hu{a}\ql{M}\hu{N}\ql{N}\ql{G}&\zql{f}\hu{j}\hl{d}\qsk\hu{i}\ql{f}\en\bar% \Notes\zhl{J}\hu{N}&\fermataup p\zhl{e}\hu{j}\en\setdoubleBAR% \alaligne% \Notes\meterC\sk\fermatadown C\zhl{J}\hu{N}\zhl{I}\hu{d}&\meterC\sk\fermataup m\zhl{c}\hu{e}\zhl{d}\hu{g}\en\bar% \Notes\zhl{J}\wh{c}\qsk\hl{a}&\zhl{e}\hu{h}\zhl{f}\hu{j}\en\bar% \NOtes\zhl{N}\hu{e}\zhl{G}\hu{d}\zcharnote{-8}{\hspace{-2.2cm}\small 6-----5}\zcharnote{-11}{\hspace{-2.2cm}\small 4-----3}&\zwh{g}\hu{j}\hu{i}\en\bar% \Notes\zhl{J}\hu{c}&\fermataup p\zhl{g}\hu{j}\en\setdoubleBAR% \nolyr% \lyricsoff% \endpiece% \end{music}% \end{document}% The current output is as follow (notices that the output shows only 1 pdf page; it must be splited in two or more pages according the score):

  • Having an Elliptical Frame Go Around the Elliptical Image (on the Outside)
    by DDS on May 18, 2026 at 8:56 pm

    Consider the code: \documentclass{book} \usepackage{graphicx} \usepackage{tikz} %\definecolor{cadmiumgreen}{rgb}{0.0, 0.42, 0.235} \definecolor{Gold}{RGB}{228,168,73} \begin{document} \thispagestyle{empty} \begin{center} \begin{tikzpicture} \clip (0,0) ellipse[x radius=4.25cm, y radius=5.5cm]; %\fill[cadmiumgreen] ellipse[x radius=4.25cm, y radius=5.5cm]; \node at (0,0) {\includegraphics[scale=1.31,clip, trim = 0 0 0 0]{example-image-a}}; \draw[line width=12pt,Gold!75!black] (225:4.25cm and 5.5cm) arc[start angle=225, end angle=-45, x radius=4.25cm, y radius=5.5cm]; \end{tikzpicture} \end{center} \end{document} with the output: QUESTION: How may I get the from to go around the ellipse on the outside? (In other words, I don't want any part of the interior of the elliptical image to be covered by the frame.) Thank you.

  • Remove extra vertical spacing with boxpos=t in listings
    by Bordaigorl on May 18, 2026 at 8:27 pm

    I want to put few listings using lstlisting in a tabular. They are of varying number of lines, so I'd like them to appear aligned at the top. I know I can control vertical alignment using the boxpos=t parameter. It works but inserts extra space at the top which for the life of me I cannot remove. The second table is almost perfect, how do I remove the extra empty line at the top? And why is it there? MWE: \documentclass[acmsmall]{acmart} \usepackage{listings} % for good measure: \lstset{aboveskip=0pt,belowskip=0pt} \begin{document} Spacing is good but vertically centered: \begin{tabular}{cc} \hline \begin{lstlisting} hello := "world"; there := 1; \end{lstlisting} & \begin{lstlisting} hello := "world"; there := 1; there := 1; \end{lstlisting} \\\hline \end{tabular} \bigskip Aligned at top by \texttt{[boxtop=t]} but extra space: \begin{tabular}{cc} \hline \begin{lstlisting}[boxpos=t] hello := "world"; there := 1; \end{lstlisting} & \begin{lstlisting}[boxpos=t] hello := "world"; there := 1; there := 1; \end{lstlisting} \\\hline \end{tabular} \end{document}

  • Error message: xkeyval Error: `unicode ' undefined in families `Hyp'
    by Friedrich Falkner on May 18, 2026 at 7:02 pm

    I suddenly got the following error message when compiling my main.tex file: hyperref.sty: Fehler: 4070: Package xkeyval Error: `unicode ' undefined in families `Hyp'. \ProcessKeyvalOptions{Hyp} I would like to give some kind of MWE, but I do not know where the problem lies at all. I changed nothing in the document and it functioned a few months before. I tried reinstalling MikTEx but without success. \RequirePackage[ pdftitle = {TOKEN}, pdfauthor = {TOKEN}, pdfsubject = {TOKEN}, pdfkeywords = {}, colorlinks = true, pdfpagelabels, bookmarksdepth = paragraph, bookmarksopen = true, bookmarksnumbered = true, linkcolor = black, plainpages = false, hypertexnames = false, linkcolor = black, citecolor = black, urlcolor = {black}, unicode ]{hyperref} \RequirePackage{bookmark} \RequirePackage{cleveref} By deleting unicode option, the document is compilable once again, although it did not cause any issues before.

  • How to define a new labeled list environment (max depth = 1, label count = 2 or possibly alternating) for the two cases of mathematical induction?
    by Nyx on May 18, 2026 at 12:40 pm

    Here is my MWE: % !TEX program = lualatex \documentclass{article} \usepackage{enumitem} \usepackage{amsthm} \usepackage{unicode-math} \usepackage[default]{fontsetup} % For NewCM \usepackage{scalerel} % For \widthof \usepackage{kantlipsum} % For placeholder text % Redefine proof environment \NewEnvironmentCopy{oldproof}{proof} \renewenvironment{proof}[1][\proofname]{% \oldproof[\bfseries#1]% }{\endoldproof} % Configure list environments \setlist{% nosep, align = left, itemindent = 0pt, font = \normalsize\normalfont, before = \normalsize\normalfont } \newlist{inductioncases}{enumerate}{1} \setlist[inductioncases]{% leftmargin = \widthof{(Base case)} + 4pt, label = (Base case), labelsep = 4pt, labelwidth = \widthof{(Base case)}, listparindent = \parindent } % Number sets \newcommand*{\numberset}[1]{\symbf{#1}} \newcommand*{\nonnegativeintegers}{\numberset{Z}_{\geq 0}} \begin{document} \begin{proof} \begin{inductioncases} \item \kant[1][1-2] We have shown that \(P(0)\) is true. \item[(Induction step)] \kant[2][1-2] We have shown that for every \(k\) in \(\nonnegativeintegers\), \(P(k)\) being true implies \(P(k + 1)\) is true. \end{inductioncases} Therefore, by the principle of mathematical induction, we have sufficiently proven that for every \(n\) in \(\nonnegativeintegers\), \(P(n)\) is true. \end{proof} \end{document} I suppose I'm looking for a conditional/if-else way of labeling odd-numbered inductioncases \items with (Base case) and labeling even-numbered inductioncases \items with (Induction step). How would I achieve this?

  • Line across sphere
    by Sokoban on May 18, 2026 at 12:21 pm

    I am currently solving some Putnam math exercises for fun and I wanted to visualize some geometry questions. One exercises goes like this: Let S be a spherical cap, where the distance between two points is given by the length of the shortest great circle arc. Then there is no distance-preserving mapping to the Euclidean plane. I solved this exercise (which is not really that hard) and now I want to visualize the cap. I managed to get almost everything except the distance between the Nordpole and a point on the rim of the cap. This is what I got: \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3] \draw (0,0) circle (1); \draw[thick] (-1,0) arc (180:360:1 and 0.28); \draw (-1,0) arc (180:0:1 and 0.28); \draw[dashed] (-0.85,0.5) arc (180:360:0.85 and 0.18); \draw[dashed] (-0.85,0.5) arc (180:0:0.85 and 0.18); \fill (0,1.) circle (0.015); \node[right] at (0,1.1) {$N$}; \fill (0,0.5) circle (0.015); \node[left] at (0,0.5) {$O$}; \coordinate (P) at (0.85,0.5); \fill (P) circle (0.015); \draw[thick] (0,0.5) -- (P); \node[above] at (0.4,0.5) {$r$}; \node[blue,right] at (0.45,0.93) {$R$}; \node[left] at (-0.88,0.55) {$C$}; \end{tikzpicture} \end{document} What is missing is now a line (spherical) from N to the rim but I want it in 3d not like in 2d where the letter R is right now but rather something like this: I tried my best but I have no clue on how to achieve this. Can someone help me? Also, I think I only need the cap of the sphere, not the whole object...

  • How to align equations in tabularray
    by Namal on May 18, 2026 at 8:09 am

    I am using tabularray with longtblr and I want to align the equation, but it seems that only $ work as math environment. I also tried to add another row with the second case in it, but it looks similar unaligned. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage[landscape, lmargin=0.5cm, rmargin=0.5cm]{geometry} \usepackage{tabularray} \UseTblrLibrary{amsmath} \pagenumbering{gobble} \begin{document} \centering \begin{longtblr}{|l|l|X[l]|X[3,c]|l|l|X[l]|} \hline 100 & Pause & {Anstabd} & \SetCell[r=2]{c} { $(CF=3) \Rightarrow \begin{+cases} 10, & 65525<Val\leq 65536; \\ \mathtt{0x10000}-Val, & 65436<Val\leq 65525; \\ 100, & 65436\leq Val; \\ \end{+cases} $ \\ $(CF=7) \Rightarrow \begin{+cases} 10, & 65376<Val\leq 65536; \\ \frac{\mathtt{0x10000}-Val}{16}, & 63936<Val\leq 65376; \\ 100, & 63936\leq Val; \\ \end{+cases} $ } & \SetCell[r=2]{}004 & \SetCell[r=2]{}Some Text & \SetCell[r=2]{}More Text \\ \hline[dotted] 03B7.4& {CCCCCCCCCCCCC} & 3=1-fach | 7=16-fach & & & & \\ \hline \end{longtblr} \end{document}

  • Why are `{` and `}` printed as `-` and `"` instead of as themselves when their category codes are changed to normal letters?
    by H4XeO6 on May 18, 2026 at 2:22 am

    Here is my minimal example (main.tex): \catcode`\{=11 \catcode`\}=11 hello}{ \bye I compiled it with tex main && dvipdfmx main.dvi and obtained main.pdf, which contains a single page printed as hello˝–. Actually, the issue could fixed up when I switch to a typewriter font: \catcode`\{=11 \catcode`\}=11 \tt hello}{ \bye Why does the default font produce this unexpected output? What is the underlying reason?

  • Effects of "intertext" within "align"
    by Michael Hardy on May 17, 2026 at 9:48 pm

    In the code below, the use of "intertext" with the words "and in general" has the effect that instances of ":=" above and below those words will be vertically aligned with each other. However, the last "intertext" near the end, was a (possibly misguided?) attempt to prevent that last phrase, beginning with the word "where", getting separated from what appears above it in case the house style of a publication to which I will submit this does not allow display breaks. But this causes extra vertical blank space to appear below that phrase: the space where something would appear on the next line if there were a next line. Is there a simple way to prevent a page break between the "where" phrase and the stuff above it without getting that extra which space below that? \begin{align} f_0\big( (\alpha)_{\alpha\in I} \big) : = {} & \sum_{\text{even } n\ge0} (-1)^{n/2} \sum_{A\in\binom In} \prod_{\alpha\,\in\,A} \sin\alpha \prod_{\alpha\,\in\,I\smallsetminus A} \cos\alpha, \\ \label{sine of sum} f_1\big( (\alpha)_{\alpha\in I} \big) : = % \sin \sum_{\alpha\in I} \alpha = {} & \sum_{\text{ odd } n\ge1} (-1)^{(n-1)/2} \sum_{_{A\in\binom In}} \prod_{\alpha\,\in\,A} \sin\alpha \prod_{\alpha\,\in\,I\smallsetminus A} \cos\alpha, \\ f_2\big( (\alpha)_{\alpha\in I} \big) : = {} & \sum_{\text{even } n\,\ge\,2} (-1)^{(n-2)/2} n \sum_{_{A\in\binom In}} \prod_{\alpha\,\in\,A} \sin\alpha \prod_{\alpha\,\in\,I\smallsetminus A} \cos\alpha, \\ f_3\big( (\alpha)_{\alpha\in I} \big) : = {} & \sum_{\text{ odd } n\,\ge\,3} (-1)^{(n-3)/2} (n-1) \sum_{_{A\in\binom In}} \prod_{\alpha\,\in\,A} \sin\alpha \prod_{\alpha\,\in\,I\smallsetminus A} \cos\alpha, \intertext{and in general,} f_i\big( (\alpha)_{\alpha\in I} \big) := {} & \!\!\!\! \sum_{\begin{smallmatrix} n \, \ge\,i \\ n\,\equiv\,i\bmod 2 \end{smallmatrix}} (-1)^{(n-i)/2} c_i(n) \sum_{A\in\binom In} \prod_{\alpha\,\in\,A} \sin\alpha \prod_{\alpha\,\in\,I\smallsetminus A} \cos\alpha \intertext{where $c_i(n)$ is the minimal polynomial of the set $\{\,n\in\{\,0,1,2,\ldots,i-1\,\} : n\equiv i\bmod2\,\}$.} \nonumber \end{align}

  • Tangential curve labels with 1D force-based collision avoidance along paths in pgfplots
    by cjorssen on May 17, 2026 at 8:44 pm

    I am trying to implement a dynamic labeling system for multiple curves within a pgfplots axis environment. The goal is to have curve labels that are both tangential (sloped) to their respective paths and capable of avoiding collisions by utilizing a 1D force-based relaxation mechanism to repel each other along the curves' domains. My Understanding of pgfplots Internals From what I understand of pgfplots internals, and please correct me if my assumption is flawed, the package operates on a deferred drawing (or accumulation) model, conceptually quite similar to how matplotlib handles figures in Python. It seems to split its workflow into distinct steps: A Survey Phase where it reads \addplot data, accumulates coordinates in memory, and computes the global axis limits. A Visualization Phase triggered at \end{axis} where it maps data coordinates to physical dimensions and emits the actual TikZ paths and nodes. Based on this understanding, it feels like the ideal place to inject a label-relaxation algorithm would be right between these two phases (perhaps using hooks like before end axis), after the data is parsed but before the final typesetting occurs. The Technical Bottleneck: The Node Bounding Box Dilemma The core difficulty I am facing is a classic "chicken-and-egg" problem: To know the dimensions (width, height, depth) of a label's bounding box for collision detection, TeX must first typeset the text into a box. However, we cannot definitively position or rotate that node along the path until the force-based algorithm has computed the final, relaxed $t$ parameters for all curves. If a LuaLaTeX-based approach is required to handle the physics/loop, I am completely open to it. But I am unsure how to elegantly pass TeX box dimensions into Lua, or how to query the generated curve paths before the rendering phase. Minimal Working Example (Current State) Here is a basic MWE where the labels are sloped but completely overlap: \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ domain=0:3.5, restrict y to domain = 0:10, samples=100, axis lines=left ] % Curve 1 \addplot[blue, thick] {x^2} node[pos = 0.2, sloped] {Function $f(x)$}; % Curve 2 \addplot[red, thick] {1/x} node[pos = 0.8, sloped] {Function $g(x)$}; \end{axis} \end{tikzpicture} \end{document} Tentative Logic / Pseudo-code (Force-Based Relaxation) Ideally, the macro or Lua script would perform a spring-embedder / force-directed approach constrained to 1D path coordinates: # Pre-computation phase for each label L_i: Typeset L_i into a temporary TeX box to get its dimensions (W_i, H_i) # Force-directed loop while system_not_in_equilibrium and max_iterations_not_reached: Initialize forces F_i = 0 for all labels for each curve i with label L_i: 1. Get baseline position P_i = curve_i(t_i) 2. Compute tangent angle theta_i at t_i 3. Construct Label Bounding Box B_i (using W_i, H_i) at P_i rotated by theta_i for each pair of labels (L_i, L_j): if Intersect(B_i, B_j): # Compute repulsive force based on overlap magnitude force_magnitude = calculate_repulsive_force(B_i, B_j) # Project force along the 1D direction of the respective curves F_i = F_i - force_magnitude F_j = F_j + force_magnitude # Update positions using a small step size (damping) for each label L_i: t_i = t_i + alpha * F_i ConstraintToValidDomain(t_i) Questions & Directions Is my mental model of the pgfplots accumulation process accurate enough to build upon, or am I missing a fundamental constraint of the package architecture? Is there an existing package or experimental snippet that already handles force-based label placement or relaxation algorithms along TikZ paths? If doing this via LuaLaTeX, what is the cleanest way to intercept the path coordinates generated by pgfplots and pass the TeX box dimensions to a Lua-based physics loop? Any pointers, conceptual corrections, or architectural advice would be highly appreciated. Real-World Use Case (Thermodynamic Diagrams) To provide some concrete context on why this automation is so critical for my workflow, here is a screenshot of the type of complex diagram I am currently generating (with luatex, FFI and the CoolProp shared library). It is a pressure-enthalpy (p-h) diagram widely used in refrigeration and chemical engineering, plotted in the (p, log h) plane for a pure substance. As you can see, the visual density is extremely high because it overlays several distinct families of isolines crossing each other: Isotherms (constant temperature) Isentropes (constant entropy) Isochores (constant specific volume) Vapor quality lines / isotitres (constant dryness fraction) Manually hardcoding and fine-tuning the pos parameter for dozens of labels across these intersecting families of curves is completely unmanageable—especially since the curves shift dramatically depending on the thermodynamic properties of the fluid being modeled. Having a generalized, tangential, force-directed algorithm to let these labels dynamically find their equilibrium along their respective paths would be an absolute game-changer for rendering complex engineering charts natively in pgfplots.

  • Detect whether or not DocumentMetadata was set?
    by rallg on May 17, 2026 at 8:23 pm

    EDIT: As noted in comments, this question is very user-specific. MWE: \DocumentMetadata{} %% Any content at all. \documentclass{book} \IfPackageLoadedTF{tagpdf}{\typeout{USED DOCUMENTMETADATA}}{\typeout{NO DOCUMENTMETADATA}} \begin{document} Hello, World. \end{document} That works, both with pdflatex and lualatex. But it makes me nervous. Here is why: I use a custom document class (not on CTAN) that is privately available to a few others, who know little about *tex (they must read my instructions). Since I do only print to paper (no Ebook) with PDF/X-1a:2001, anything related to tagging is useless. Also, I am locked into PDF version 1.3. I use my own code for the PDF/X, with or without optional XMP. That is, I do not load package pdfx or anything similar. All good; I know what I am doing there. But if a user fails to follow my instructions, which specifically says NOT to use \DocumentMetadata, many problems will arise. What I currently do is detect whether or not package tagpdf was loaded, in my \documentclass definition. The MWE shows this as code in Preamble. But it seems to me that this method is unreliable. Perhaps some variations of \DocumentMetadata will not load tagpdf, or that package will be re-named, or its code brought into kernel, or whatever. Then my test will fail. Question: Is there a reliable, future-proof method for detecting whether or not \DocumentMetadata was set? That is, I wish to throw an error if it was set, no matter what its contents.

  • \printglossaries and \printglosses [duplicate]
    by teangacha on May 17, 2026 at 4:15 pm

    I'm new here (and I'm also new to LaTeX). I'm trying to understand how LaTeX works, so I've compiled the .tex file with the syntax you see below. I know this is specific but I need LaTeX for linguistics, specifically interlinear glosses; and they work fine, what doesn't work at the moment is all the \printglosses and \printglossaries and the like. I've tried all of them, maybe I'm missing something. Again, I'm new, so I'm sorry I'm missing something obvious. I am using XeLaTeX if that's of any help. \documentclass[12pt]{article} % Packages \usepackage[top=2.5cm, bottom=2.5cm, left=3cm, right=3cm]{geometry} \usepackage{expex} \usepackage{leipzig} % Title \title{XXX} \author{YYY} \date{ZZZ} % Other \makeglossaries % Custom abbreviations \newleipzig{Converb}{cvb}{converb} % Font stuff \begin{document} \maketitle \Nom{} \Gen{} \Dat{} \printglosses \ex \begingl \gla k- wapm -a -s'i -m -wapunin -uk // \glb CL V AGR NEG AGR TNS AGR // \glc {\Second} see {\Third\Acc} {} {\Third\Pl} {\Pst} {\Third\Pl} // \glft `You (pl) didn't see them.'// \endgl \xe \printglosses \end{document}

  • How to convert a custom macro for marking angles with multiple arcs into a TikZ style?
    by Med Elhadi Kh on May 17, 2026 at 8:59 am

    I have created a custom macro \MarkAngle that draws multiple arcs to mark an angle. It works well, but I want to convert it into a native TikZ style (e.g., using .style n args={4} or .code n args={4}) so I can use it cleanly within standard TikZ path options like this: \draw [red, thick, angle radius=1cm, mark angle={3}{A}{B}{C}]; Here is my Minimal Working Example (MWE), which includes my working \MarkAngle macro and my attempt at defining mark angle/.code n args={4}. However, using \pic inside a .code within a \draw path feels hacky and doesn't integrate perfectly. \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{decorations.markings, angles, quotes} % My working macro \newcommand{\MarkAngle}[5][]{% \begingroup \tikzset{angle radius=1cm, #1} \pgfkeysgetvalue{/tikz/angle radius}{\baseR} \foreach \i in {1,...,#2} { \pgfmathsetmacro{\currentR}{\baseR + (\i-1)*5} \ifnum\i=#2 \pic [draw, #1, angle radius=\currentR pt] {angle=#3--#4--#5}; \else \pic [draw, #1, fill=none, angle radius=\currentR pt] {angle=#3--#4--#5}; \fi } \endgroup } \begin{document} \begin{tikzpicture}[ mark segment/.style={ decoration={ markings, mark=at position 0.5 with { \foreach \i in {1,...,#1} { \pgfmathsetmacro{\xoffset}{(\i - (#1+1)/2) * 3} \draw (\xoffset pt, -4pt) -- (\xoffset pt, 4pt); }}}, postaction={decorate} }, % My attempt to convert it into a style mark angle/.code n args={4}{ \pgfmathsetmacro{\baseR}{scalar(\pgfkeysvalueof{/tikz/angle radius})} \foreach \i in {1,...,#1} { \pgfmathsetmacro{\currentR}{\baseR + (\i-1)*3} \ifnum\i=#1 \pic [draw, pic actions, angle radius=\currentR pt] {angle=#2--#3--#4}; \else \pic [draw, pic actions, fill=none, mark segment={}, angle radius=\currentR pt] {angle=#2--#3--#4}; \fi } } ] \coordinate (A) at (30:2); \coordinate (B) at (0,0); \coordinate (C) at (150:2); \draw (A) -- (B) -- (C); % Trying to use the style here \draw [red, thick, angle radius=1cm, mark angle={3}{A}{B}{C}]; \coordinate (D) at (0,2); \coordinate (E) at (0,0); \coordinate (F) at (2,0); \draw (D) -- (E) -- (F); \draw [blue, thick, angle radius=1cm, mark angle={2}{D}{E}{F}]; \end{tikzpicture} \end{document} My questions are: How can I properly define this as a TikZ style so that it respects path properties (like colors and line widths)? Is using .code the best approach here, or should this be defined entirely as a new custom pic type? Any advice on the most "TikZ-idiomatic" way to achieve this would be highly appreciated!

  • Relabeling ticks on my number line
    by cheeseboardqueen on May 17, 2026 at 1:54 am

    I am trying to draw my own number line with variable ticks. I was able to generate the tick marks exactly where I want them and define the variable, however, they aren't spacing out the way I'd hope. Any suggestions? \documentclass[11pt]{amsart} \usepackage{tikz,tikz-cd} \begin{document} \begin{figure}[h] \centering \begin{tikzpicture} \draw[latex-latex] (-7.5,0) -- (7.5,0) ; %edit here for the axis \foreach \x in {-6.5, -6, -5.5, -4, -2.5, -2, -1.5, 0, 1.5, 2, 2.5, 4, 5.5, 6, 6.5} % edit here for the vertical lines \draw[shift={(\x,0)},color=black] (0pt,3pt) -- (0pt,-3pt); \foreach \x in {-z_b-T-h, -z_b-T, -z_b-T+h, -z_b, -z_b+T-h, -z_b+T, -z_b+T+h, 0, z_c-T-h, z_c-T, z_c-T+h, z_c, z_c+T-h, z_c+T, z_c+T+h} % edit here for the numbers \draw[shift={(\x,0)},color=black] (0pt,0pt) -- (0pt,-3pt) node[below] {$\x$}; \end{tikzpicture} \end{figure} \end{document} EDIT: I am looking to label the -6.5 position with $-z_b-T-h$ and so on. I'd be even okay if my defined labels don't fit horizontally and I have to label them vertically.

  • Space before a vertical rule in an array got eaten in TeX Live 2023 but not in TeX Live 2024. What happened?
    by Mark McGregor on May 17, 2026 at 12:01 am

    Feeding \documentclass{article} \pagestyle{empty} \usepackage{array} \begin{document} $\begin{array}{l||l} X \; & \; Y \end{array}$ \end{document} to pdflatex to latex in TeX Live 2023 yields As you see, before the double bar there is slightly less space than after it; probably, the space \; is eaten away. In TeX Live 2024 and 2025, the space before the double bar seems to be present: Due to italics math, it's a bit difficult to say which TeX-Live version produces a correct™ result. So I tried out \documentclass{article} \pagestyle{empty} \usepackage{array} \begin{document} $\begin{array}{l||l} \mathrm{X} \; & \; \mathrm{X} \end{array}$ \end{document} pdflatex in TL 2023 yields and pdflatex in TL 2024 yields The output in TeX Live 2024 seems to me more equalized, so probably corresponding to the author's intention, hence probably correct™. Still, before I adapt various arrays in my old code to match the behavior in the newer TeX Live, I need to know this: Was the TeX-Live-2023 behavior intentional? If so, for which reason? Was the change of behavior intentional? If so, for which reason?

  • Reproducing the textbook Introduction to Solid State Physics
    by Sebastiano on May 16, 2026 at 8:19 pm

    While examining the embedded fonts used in the book Introduction to Solid State Physics by Charles Kittel (2005 edition), I started wondering whether its typography could realistically be reproduced in modern LaTeX. The PDF appears to use the following embedded fonts: MathPiOneBoldItalic MathPiOneItalic MathematicalPi-One MathematicalPi-Three NewCaledonia NewCaledonia-Bold NewCaledonia-BoldItalic NewCaledonia-Italic Universal-GreekwithMathPi Universal-NewswithCommPi From what I can see, the main text font seems to be New Caledonia, while the mathematics appear to rely on a set of older Pi/math companion fonts. Actually is there the possibility to adapt LaTeX the families above with similar fonts like the following image? My personal impression is that the original text was probably not produced using LaTeX. Edited by Explorer To provide more information of the fonts, we could learn from here to get exactly what text the font is:

  • How to get \usebox to respect xrightmargin of \lstlisting...?
    by OppfinnarJocke on May 16, 2026 at 7:54 pm

    I am trying to scale a lstlisting in a Beamer presentation, and for that I have to (?) put the listing into an lrbox. However, when I do that and later render it out as \usebox{\mybox} the xrightmargin of my listing is not respected. Is there any way to get this to work? MWE: \documentclass{beamer} \usepackage{listings} \usepackage{color} \lstset{ language=C, basicstyle=\footnotesize\ttfamily, numbers=left, numberstyle=\footnotesize, stepnumber=1, tabsize=2, numbersep=-2pt, showspaces=false, showstringspaces=false, showtabs=false, frame=single, framexleftmargin=-10pt, captionpos=b, breaklines=true, breakatwhitespace=false, } \begin{filecontents}{myfile.tex} \begin{lstlisting}[xrightmargin=3.5cm] void function (int r, int m, int *ptr, int *block, double value, double dest) { return block[r * m + *ptr] + value - dest; } \end{lstlisting}% \end{filecontents} \newsavebox{\mybox} \begin{document} \begin{lrbox}{\mybox}% \input{myfile.tex} \end{lrbox}% \begin{frame}[fragile]{usebox top, no usebox bottom} \usebox{\mybox}%% Ignores xrightmargin \vspace{0.5cm} \input{myfile.tex}%% Preserves xrightmargin \end{frame} \end{document} Result (frames are only for emphasis): What I want is to have \usebox preserve the xrightmargin so that I can then scale the narrower listing with \scalebox. Is this possible?

  • Revealing blanks does not work well in numerator of a \frac
    by scottkosty on May 16, 2026 at 7:26 pm

    I am using an implementation to first show an underline with a questionmark in the middle that takes up the same space as the revealed text, from this answer: An alt fill-in-the-blank with question in the middle and improved to handle nesting at Nested revealing of (correctly sized) blanks. But the underline is too long when I use it in a fraction. Presumably the code that calculates the length assumes the normal font size? Example below (see the last bullet point). % based on here: https://tex.stackexchange.com/a/757717 % Posted by jlab % Retrieved 2026-05-16, License - CC BY-SA 4.0 \documentclass{beamer} % needed to reproduce \beamerdefaultoverlayspecification{<alert@+|+->} \makeatletter \newlength{\gapwidth} \newcommand{\blankQ}[1]{% \begingroup% \edef\beamerpauses@backup{\arabic{beamerpauses}}% \ifmmode \if@display \settowidth{\gapwidth}{$\displaystyle #1$}% \else \settowidth{\gapwidth}{$#1$}% \fi \else \settowidth{\gapwidth}{#1}% \fi \setcounter{beamerpauses}{\beamerpauses@backup}% \alert<.(1)|handout:0>{% \alt<+->{% #1% }{% \vphantom{#1}\smash{\underline{\makebox[\gapwidth]{?}}}% }% }% \endgroup% } \makeatother \begin{document} \begin{frame} \begin{itemize} \item simple example showing usage of blankQ: $2+2=\blankQ{4.}$ \item $P(X + 1 < 4) = \blankQ{P(X < 3) = \blankQ{0.3.}}$ \item \blankQ{It works also \blankQ{for more \blankQ{nested levels\blankQ{~!~}}}} \item Now to show the problem: the underline is too long when in numerator: $V(X_i) = \frac{\blankQ{P_{H_{0}}(X_{i}=1)\left[1-P_{H_{0}}(X_i=1)\right]}}{n}$ \end{itemize} \end{frame} \end{document} Output from above example, showing the problem:

  • About the transformation of static coordinates (defined via \coordinate) in Tikz
    by user17911 on May 16, 2026 at 4:57 pm

    Would it be a correct assessment to say that in Tikz named coordinates defined via \coordinate are not impacted/altered by transformations (xshift, yshift, shift, rotate, rotate around, etc.)? The reason that I ask this question is because I was working on the following example and I wasn't able to to explain the behaviour of the program: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (namedCoordinate) at (-3,1); \draw[color=blue, very thin, step=1cm] (-5,-5) grid (5,5); \draw[->] (-5,0) -- (5,0); \draw[->] (0,-5) -- (0,5); \draw[color=green,fill] (namedCoordinate) circle[radius=0.25]; \begin{scope}[xshift=6cm] \draw[color=red,fill] (namedCoordinate) circle[radius=0.15]; \end{scope} \begin{scope}[xshift=6cm] \draw[color=blue,fill] (-3,1) circle[radius=0.15]; \end{scope} \end{tikzpicture} \end{document} Note: I chose different radius for the circles just for the sake of clarity and to be able to distinguish them from each other easily. I was expecting the red circle to also be shifted but that didn't happen. Does this have something to do with how static coordinates function in Tikz once they have been defined with the \coordinate command and how and when they are substituted/intepreted? As you can see in the code above, the center of all the three circles is the same point in the Cartesian system (-3,1), except that for the red one, we used a named coordinate (namedCoordinate) to indicate its center, but in the case of the blue circle, we just provided a literal for that. The blue circle was shifted as expected 6 units horizontally to the right but the red one didn't! That is why, I was wondering whether \coordinate and transformations would go together in Tikz. I appreciate if you could kindly indicate where did I make a mistake because I've the impression that I have not been able to understand the concept properly.

  • PDF/UA-2 structure destination failures (LaTeX source)
    by Julian on May 15, 2026 at 10:48 am

    Here is a MWE of LuaLaTeX source code: \nonstopmode \RequirePackage{pdfmanagement} \RequirePackage{tagpdf} \tagpdfsetup{activate/mc=true,activate/spaces=true} \documentclass[11pt,usegeometry]{article} \usepackage{hyperref} \hypersetup{ pdftitle={MyTitle}, pdfauthor={MyName}, pdfdisplaydoctitle=true} } \begin{document} \tableofcontents \section{First Section} A document with a single sentence linking to \hyperlink{My Ref}{My Ref}. \hypertarget{My Ref}{My Ref}. Details about my reference. \end{document} After I compile twice and then auto-tag the resulting PDF in Adobe Acrobat Pro, veraPDF includes the following PDF/UA-2 validation failures: I am looking for a way to resolve these failures, both for automated Table of Contents entries and also individual hyperlink/hypertarget internal links. Some background: I needed to meet a work deadline and I did not have enough time to recode my tabularray-based tables with tabular-based tables in my full document to enable full tagging using tagpdf, but I wanted to replace the interword glue with space glyphs to give screen readers some fluency as a stopgap while I create a fully accessible version of my PDF, which must be visually identical to the untagged version. Apart from this structure destination issue, I have found Adobe's auto-tag feature to be very useful. I simply set up a root Document tag, with Part tags inside them for my chapters, copy the relevant chunks into them, fix a few things here and there, and veraPDF is almost fully happy. Fixing "Each TOCI in the table of contents shall identify the target of the reference using the Ref entry" is fiddly but I know how to do it. The key stumbling block is this issue here: structure destinations. I feel tantalisingly close to being able to produce a nice PDF/UA-2 document, simply using Adobe Acrobat Pro to remediate. Any help would be greatly appreciated. Is it possible to fix this by editing tags in Adobe Acrobat Pro manually, with or without help from different LaTeX coding of the internal links? (Which presumably could be coded/automated?) Or is there an existing tool that would allow these to be fixed throughout my document? I have tried reading the ISO and PDF/UA-2 documentation but this is over my head. I have seen similar questions and answers here, and here, but I lack the technical knowledge to apply a solution. With a detailed description and/or screenshot of what to change (presumably inside the properties of Link - OBJR tags?), I would be good to go, and hugely grateful.

  • The linebreak syntax bug with luacode?
    by Explorer on May 15, 2026 at 7:18 am

    The highly related question is here and here and even early here: \documentclass{standalone}% compile with lualatex \usepackage{luacode} \begin{document} \begin{luacode} local f = function(x, y, opt) opt = opt or {} opt.sg = opt.sg or '+' if opt.sg == '+' then return x+y else return x-y end end local x = f(2, 2, {sg='+'} ) -- < this causes an error with luacode, but not luacode* tex.print("Result ="..x) \end{luacode} \end{document} The code above raise: (./mwe.aux)[\directlua]:13: ')' expected (to close '(' at line 11) near '='. \luacode@dbg@exec ...code@maybe@printdbg {#1} #1 } l.21 \end{luacode} ? I wonder is this really a bug which exists for past 14 years, and any suggestions or patch to correct this abnormal behaviour? Edited: Since nidarfp pointed out here: Two solutions: The ideal solution: that the author of luacode fixes the problem. Use the luadraw* environment (which uses luacode*), and your problem should disappear, but you won't be able to use TeX macros in the luadraw source code (which is the advantage of luacode) I wonder any further advice on luadraw' side?

  • Is there a way to draw this parabola in plain tikz without getting a dimension error?
    by Jasper on May 15, 2026 at 5:52 am

    Is there a way to draw this parabola in plain tikz without getting a dimension error? I don't want to drag out the big guns for what seems like it should be a simple diagram. \documentclass[tikz,border=1cm]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \pgfmathsetmacro\FOCUSX{2} \pgfmathsetmacro\FOCUSY{1} \pgfmathsetmacro\LINEPX{-1} \pgfmathsetmacro\LINEPY{0} \pgfmathsetmacro\LINEDX{-3} \pgfmathsetmacro\LINEDY{2} \pgfmathsetmacro\LINEDL{sqrt((\LINEDX)^2 + (\LINEDY)^2)} \pgfmathsetmacro\LINEDX{\LINEDX/\LINEDL} \pgfmathsetmacro\LINEDY{\LINEDY/\LINEDL} \pgfmathsetmacro\LINEPERPX{\LINEDY} \pgfmathsetmacro\LINEPERPY{-\LINEDX} % Focus \fill (\FOCUSX,\FOCUSY) node[right]{$F$} circle[radius=0.1]; % Directrix \draw[dashed] (\LINEPX,\LINEPY) -- +(7*\LINEDX,7*\LINEDY) -- +(-7*\LINEDX,-7*\LINEDY); \fill (\LINEPX,\LINEPY) node[below left]{$P$} circle[radius=0.1]; \draw[->] (\LINEPX,\LINEPY) -- ++(\LINEDX,\LINEDY) node[below left]{$D$}; % Directrix normal \draw[->] (\LINEPX,\LINEPY) -- ++(\LINEPERPX,\LINEPERPY) node[above left]{$N$}; \foreach \ALPHA in {-4,-3.5,...,4} { \pgfmathsetmacro\QUADA{1-(\LINEPERPX)^2-(\LINEPERPY)^2} \pgfmathsetmacro\QUADB{ \LINEPERPX*(\LINEPX+\ALPHA*\LINEDX-\FOCUSX) +\LINEPERPY*(\LINEPY+\ALPHA*\LINEDY-\FOCUSY) } \pgfmathsetmacro\QUADB{-2*\QUADB} \pgfmathsetmacro\QUADC{ (\LINEPX+\ALPHA*\LINEDX-\FOCUSX)^2 +(\LINEPY+\ALPHA*\LINEDY-\FOCUSY)^2 } \pgfmathsetmacro\QUADC{-\QUADC} \pgfmathsetmacro\BETA{ (-\QUADB+sqrt((\QUADB)^2-4*\QUADA*\QUADC)) /(2*\QUADA) } \fill[green] ($(\LINEPX,\LINEPY) + \ALPHA*(\LINEDX,\LINEDY) + \BETA*(\LINEPERPX,\LINEPERPY)$) circle[radius=0.1]; } \end{tikzpicture} \end{document}

  • How to shrink with a certain amount of offset?
    by D G on May 14, 2026 at 1:09 pm

    I want a one cm offset between the blue path and the black one. \documentclass[tikz,margin=1cm]{standalone} \begin{document} \begin{tikzpicture} \draw[gray!50] (-8,0) grid (8,-8); \fill (0,0) node[above=12pt]{origin} circle (5pt); \draw[ultra thick] (-6,0) arc[x radius=12,y radius=8,start angle=90,end angle=0] -- (-6,-8) -- cycle; \draw[blue,ultra thick] (-5,-1) arc[x radius=10,y radius=6,start angle=90,end angle=0] -- (-5,-7) -- cycle; \end{tikzpicture} \end{document} Note: Both must be similar. Right now both are not similar.

  • renewcommand Gamma into itGamma in unicode-math
    by Ryan Kong on May 14, 2026 at 2:26 am

    I want to have a command \Gamma that does what \itGamma does, under unicode math. My Preambles: %! TEX program = xelatex \documentclass[]{article} \usepackage{amsmath} \usepackage[]{unicode-math} \setmathfont[]{TeX Gyre Termes Math} I only want \Gamma to be italic, so I will not consider using \usepackage[math-style=ISO]{unicode-math}. Here's what I tried and their respective error messages (or problem): \renewcommand{\Gamma}{\itGamma} \renewcommand{\Gamma}{\mitGamma} \AtBeginDocument{\renewcommand{\Gamma}{\mitGamma}} % They all compiles, but the result shows a upright \Gamma \AtBeginDocument{\renewcommand{\Gamma}{\itGamma}} % TeX capacity exceeded, sorry [input stack size=10000]. \tl_if_exist:NTF #1->\if_meaning:w #1 \unimathsetup{Gamma=italic} % The key 'unicode-math/Gamma' is unknown and is being ignored. I have no idea what I can do now, help would be much appreciated.