Hot
- How to make tikzcd diagram possibleby Hamza Ayub on May 19, 2026 at 7:30 pm
I’ve been trying to make this image in LaTeX, but I’m not able to replicate it at all. The uppermost and lowermost down-arrow are becoming super squished. Any help in reproducing it would be really appreciated. Thank you.
- Undefined control sequence. \ProcessKeyOptions: texlive-full upgrade but error remainsby cProg on May 19, 2026 at 6:21 pm
I'm using Ubuntu 22.04 with texlive-full 2022 installed. Because I was facing the following error message: (./scripture.sty LaTeX Warning: You have requested release `2022-11-01' of LaTeX, but only release `2021-11-15' is available. ! Undefined control sequence. l.513 \ProcessKeyOptions I then decided to upgrade to texlive-full 2024 using the following command: sudo apt upgrade texlive-full texlive-full is installed here: /usr/share/texlive/ I have restarted the computer. When I tried to pdflatex my document, nothing changed. I'm still getting the same error message. Thank you for any help. ********** Update with the .log file content I have wanted to paste here the .log file content and got the following message of tex.stackexchange.com Body is limited to 30000 characters; you entered 33416. Then I posted the .log file here.
- Prevent extra line spacing due to end in algorithms [duplicate]by Johan on May 19, 2026 at 5:36 pm
\documentclass{article} \usepackage{amsmath} \usepackage[nothing, ruled]{algorithm} \usepackage[noend]{algpseudocode} \let\Algorithm\algorithm \renewcommand\thealgorithm{} \newcommand{\setalgolineno}[1]{% \setcounter{ALG@line}{\numexpr#1-1}} \begin{document} \algrenewcommand{\algorithmiccomment}[1]{\hfill{$\triangleright$ \textit{#1}}} \begin{algorithm}[H] \caption{\hspace{-0.3em}\textbf{I}\hspace{0.3em}Do stuff } \label{algo1} \begin{algorithmic}[1] \State $\text{index} \gets \mathcal{E}.\text{hash} \text{ and } (\mathcal{D}.\text{capacity} - 1)$ \If {$\mathcal{D}.\text{doubling} > 0$} \State $\mathcal{D}.\text{HelpDoubling(index)}$ \Comment{See algorithm D} \EndIf %% A +/- vspace{0.3em} is added here. \State $\mathcal{H} : \mathcal{D}[\text{index}]$\Comment{Note the spacing} \end{algorithmic} \end{algorithm} \end{document} Note that I've given the option [noend] so that code blocks are only denoted by indentation (Python style). With that option I never want to see any trace of an end in the pseudo-code. The above code correctly renders the code, but adds small vertical spaces at the \EndIf, \EndWhile etc statements. I can remove these by adding a \vspace{-.3em} after the \End* statements, but I'd rather latex did not add the unneeded whitespace in the first place. How do I prevent algorithm from adding unneeded vertical whitespace at EndIf and alike statements?
- How to insert Paragraph/Picture between two columns? [duplicate]by NauseousIsland3 on May 19, 2026 at 3:22 pm
I want to insert a paragraph or an image between two columns such that the columns wrap around it. I would want this paragraph/image to be centred on the page, but in general it would be nice if I could offset it and have LaTeX still understand how to flow text around the obstacle. I am using XeTeX. One of the packages that I am using works best with it, so if possible I'd prefer a solution that doesn't depend on LuaLaTeX. Low quality WYSIWYG-based mock-up of what I want to be able to do. I only want to use this once. The only relevant stack exchange question I could find is here.The solution given there refers to this Using wrapfig to span multiple columns guide by the wrapfig package. The solution however is quite hands-on - we need to anchor the figure to a natural line break, and if we change the content or formatting on a page, we would need to move the solution around. This is thus not a robust or dynamic solution as I would have hoped. I couldn't find any packages that appear to solve this problem. Perhaps my inspiration isn't good typography, in which case I am willing to hear the arguments against this. The second best potential solution I could find was flowfram, but I have not been able to get this to work. wrapfig, TikZ, cutwin, shapepar, parshape, and paracol all seem to be able to only party help, but I haven't found a package that directly solves my problem. I apologise if this is a stupid question. Any new suggestion are welcome? Thanks in advance EDIT: Thank you samcarter_is_at_topanswers.xyz for directing my attention to two questions with my exact problem. Two-column text with circular insert and How do you create pull quotes?. The technical term for what I am looking for is called a pull quote. The top answer to both is by @stephan-lehmke for a package called pullquote. However, from what I can see, this package no longer exists? I can't find the package on CTAN or another online repository. I believe the package code is as posted here: Implementing a pullquotes algorithm in LaTeX. I am going to test this, as I believe this might be the solution as of now.
- Musixtex bug when using includegraphics that embedded external standalone score in pdf formatby ABV on May 19, 2026 at 3:17 pm
It is needed to use Musixtex using includegraphics to insert standalone scores (many pdf pages) inside an standard Latex document. The basic code is as follow: ----------------------------- main_document.tex-------------------------------------- \documentclass[a4paper,12pt]{book} %\nonstopmode \usepackage{geometry} \geometry{margin=3cm} \usepackage[indent=0pt,skip=6pt]{parskip} \usepackage{pdfpages} \usepackage{emptypage} \usepackage{changepage} \usepackage{ragged2e} \usepackage{setspace} \usepackage[hang,flushmargin]{footmisc} \usepackage[spanish,mexico,es-noshorthands]{babel} \usepackage{xcolor} \definecolor{MainColor}{HTML}{ac3222} \definecolor{SecColor}{HTML}{b56512} \definecolor{TriColor}{HTML}{fcf5e6} \definecolor{ForColor}{HTML}{f8f7f7} \xdefinecolor{red-undar}{RGB}{179,35,79} \usepackage{fontspec} \usepackage{Alegreya} \usepackage{float} \usepackage{amsmath} \usepackage[Export]{adjustbox} \usepackage{wrapfig} \usepackage{varwidth} \usepackage{tikz} \usetikzlibrary{ positioning, arrows.meta, calc, bending, decorations.markings, mindmap, shadows, shadows.blur } \usepackage{pifont} \usepackage{fontawesome5} \usepackage{utfsym} \usepackage{twemojis} \usepackage{caption} \RequirePackage{piano} \RequirePackage{musicography} \RequirePackage{musixtex} \input{musixlyr} \input{musixcho} \input{musixdat} \input{musixfll} \input{musixgre} \input{musixper} \input{musixppff} \input{musixstr} \input{musixvbm} \input{musixdbr} \input{musixbm} \input{musixbbm} \NewDocumentEnvironment{figura}{O{\linewidth}} {% \begin{figure}[H] \centering \captionsetup{width=#1} \setkeys{Gin}{width=#1} }{% \end{figure} } \newcommand{\includemusic}[2][]{% \IfFileExists{#2.pdf}{}% {\immediate\write18{latexmk -pdf -shell-escape -cd #2.tex}}% \includegraphics[#1]{#2.pdf}% } \begin{document} \chapter{Inserting score inside Latex book document} In this section mus be inserted a complete Score from external standalone / musixtex source as pdf file. \begin{figura}[0.8\linewidth] \caption{Score from external source} \label{fig:Score} \includemusic[width=1.0\linewidth]{./SCORE01} \end{figura} \end{document} The external Score that use Musixtex inside an standalone document is as follow: ------------------------------------SCORE01.tex---------------------------------- \documentclass[% a4paper, crop=false, 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 only shows the FIRST page of the external pdf file, and not all the pages (complete score).
- Hyperlink Issues with Footer in fancyhdrby Aidan Grennell Cormier on May 19, 2026 at 1:48 pm
Good morning, I am building a document in which I want the footer to link back to the TOC because it will be a fairly long document when it's done, and it would make for ease of moving around the document. Ideally, I want the footer to have the page number on one side and the hyperlink to the contents on the other, but right now, I'm just trying to get the contents hyperlink to work correctly. Here is my code: \documentclass{report} \usepackage[margin=0.75in]{geometry} \usepackage{tabularx} \usepackage[utf8]{inputenc} \usepackage{titlesec} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyfoot[c]{\nameref{toc}} \titleformat{\chapter}{}{}{0em}{\bf\LARGE} \titlespacing{\chapter}{0em}{0em}{0em} \renewcommand{\arraystretch}{1.5} \usepackage{graphicx} % Required for inserting images \usepackage[hidelinks]{hyperref} \title{A Report I'm Writing} \author{Me} \date{Last Reviewed \today} \begin{document} \maketitle \newpage \tableofcontents\label{toc} \newpage \chapter{Overview} \lipsum[] \newpage \chapter{Group One} \lipsum[1-2] \section{Nested content} \lipsum[3-4] \subsection{Additional Info} \lipsum[1-2] \section{More Nested content} \lipsum[1-2] \chapter{This is another chapter} \lipsum[] \section{With some more information} \lipsum[5-6] \chapter{Final chapter} \lipsum[7-8] \section{Making it up} \lipsum[9] \section{As I go along} \lipsum[] \subsection{Just for the example} \lipsum[3] \end{document The output is giving me the Contents link on the bottom of the 4th page, but nowhere else. Again, ultimately, I want something like \fancyfoot[L]{\nameref{toc}} \fancyfoot[C]{\thepage} but I can't figure out why the simper code is broken. Any suggestions would be amazing. Thanks!
- freeBSD dummy package : Possible improvement?by Freeman on May 19, 2026 at 12:35 pm
I have installed texlive in freeBSD using the offline ios installer. However, when I try to install an editor, it wants to pull and use 4G data. how do I use texlive dummy sudo pkg install editors/setzer Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating FreeBSD-kmods repository catalogue... FreeBSD-kmods repository is up to date. All repositories are up to date. The following 33 package(s) will be affected (of 0 checked): New packages to be INSTALLED: adobe-cmaps: 20051217_4 [FreeBSD] gtksourceview5: 5.18.0 [FreeBSD] libpotrace: 1.16 [FreeBSD] mpfi: 1.5.4_1 [FreeBSD] p5-File-HomeDir: 1.006 [FreeBSD] p5-File-Which: 1.27 [FreeBSD] p5-YAML-Tiny: 1.76 [FreeBSD] psutils: 1.17_6 [FreeBSD] py311-bibtexparser: 1.4.3_1 [FreeBSD] py311-pdfminer.six: 20260107 [FreeBSD] py311-pexpect: 4.9.0_1 [FreeBSD] py311-ptyprocess: 0.7.0_1 [FreeBSD] py311-pyparsing: 3.3.2 [FreeBSD] py311-pyxdg: 0.28 [FreeBSD] py311-setzer: 66_9 [FreeBSD] t1lib: 5.1.2_5,1 [FreeBSD] teckit: 2.5.11_1 [FreeBSD] tex-basic-engines: 20250308 [FreeBSD] tex-dvipdfmx: 20250308 [FreeBSD] tex-dvipsk: 20250308 [FreeBSD] tex-formats: 20250308 [FreeBSD] tex-kpathsea: 6.4.1 [FreeBSD] tex-libtexlua: 5.3.6_3 [FreeBSD] tex-libtexluajit: 2.1.81742 [FreeBSD] tex-luatex: 20250308_1 [FreeBSD] tex-ptexenc: 1.5.1 [FreeBSD] tex-web2c: 20250308_1 [FreeBSD] tex-xetex: 20250308_1 [FreeBSD] texlive-base: 20250308_4 [FreeBSD] texlive-texmf: 20250308_1 [FreeBSD] texlive-tlmgr: 20250308 [FreeBSD] xpdfopen: 20250308 [FreeBSD] zziplib: 0.13.80_1 [FreeBSD] Number of packages to be installed: 33 The process will require 4 GiB more space. 1 GiB to be downloaded. Proceed with this action? [Y/n]:
- Up-to-date tools (in 2026) to create LaTeX documents by voice with Nuance Dragon Professional 16by X3nius on May 19, 2026 at 11:43 am
There are a handful posts here regarding accessibility tools for creating LaTeX documents by voice, the last one is from 2023. What is your most efficient way to dictate Latex in 2023? Due to chronic pains in my hands, I am not able to create LaTeX documents just by typing, so I am looking for a voice solution. I’m using Windows 10/11, and in the last post from 2023 inter alia Talon and Mathfly was mentioned. However, I don’t feel quite comfy with Talon and would rather use Dragon Professional 16. Furthermore, I didn’t get Mathfly to work there, just the getting started “talonhub” (former “knausj_talon”) sample scripts. Does Mathfly work with Nuance Dragon Professional Individual 16 as well? And are there other tools you can suggest with or without Nuance Dragon? I would be grateful for and would appreciate every tip!
- How can I create a horizontal line from the end of a section's text to the right margin in multicol environment?by tistieom on May 19, 2026 at 10:06 am
In my document I'm using the multicol package. My section headers span across the whole page as I put them outside the multicol environment. I'd like to have a horizontal line spanning from the end of the section header text to the right margin, like the red line in the image. So far I tried using hrulefill and runin shape. In the MWE, the first heading 'Lorem ipsum' in single-column mode works like I want it to, but the same section format in two-column mode 'Dolor sit amet' does not span the whole page. The last one without runin shape, 'Consectetuer', has the horizontal line in the line below the section text. \documentclass{article} \usepackage{titlesec, lipsum, multicol} \titleformat{\section}[runin] {\fontsize{25}{26}\selectfont\bfseries} {\thesection}{7.5pt}{}[\hspace{0.5em}\hrulefill] % With runin shape \titleformat{\subsection} {\fontsize{25}{26}\selectfont\bfseries} {\thesection}{7.5pt}{}[\hspace{0.5em}\hrulefill] % Without runin shape \begin{document} \lipsum[1-3] \section{Lorem ipsum} % Works fine in single-column \lipsum[4-6] \section{Dolor sit amet} % Does not span the whole page \begin{multicols}{2} \lipsum[7-9] \end{multicols} \subsection{Consectetuer} % Hrule is on next line \begin{multicols}{2} \lipsum[10-12] \end{multicols} \end{document} I forgot to add, I tried this answer and this answer but both caused an error: Illegal parameter number in definition of \ttlf@section. <to be read again>
- 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-mathby 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 pagesby 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 PDFby 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 documentclassby 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 listingsby 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 sphereby Sokoban on May 18, 2026 at 12:21 pm
I am currently solving some Putnam problems for fun, and I wanted to visualize a few geometry questions. One exercise goes as follows: 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 the exercise (which is not particularly difficult), and now I want to visualize the cap. I managed to draw almost everything except the distance between the north pole and a point on the rim of the cap. This is what I have so far: \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 still missing is a spherical arc from the north pole to the rim. However, I would like it to appear three-dimensional, rather than like the current 2D curve, but instead more like this: I tried my best, but I have no idea how to achieve this. Can someone help me? Also, I think I only need the spherical cap itself, not the entire sphere.
- How to align equations in tabularrayby 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}
- 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.
- 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 lineby 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 Physicsby 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:
- Revealing blanks does not work well in numerator of a \fracby 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: