Hot
- Background picture for part pageby Martin on May 20, 2026 at 9:07 pm
I want to add a background picture for the page(s) that get created for using the \part command. But when I do this, the picture instead goes to the next side and not to the part page. How can I get the picture to the correct page? MWE: \documentclass{report} \usepackage{tikz} \usepackage[newparttoc]{titlesec} \usepackage{titletoc} \usepackage{tocloft} \titleformat{\part}[display]{\Huge\scshape\filright\centering}{}{20pt}{\thispagestyle{empty}} \titlecontents{part}[0pt]{\addvspace{2pc}\centering\large\bfseries}{}{}{} \begin{document} \part{A}\tikz[remember picture, overlay] \node[opacity=0.3, inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth, height=\paperheight]{example-image-a}}; \part{B}\tikz[remember picture, overlay] \node[opacity=0.3, inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth, height=\paperheight]{example-image-b}}; \end{document}
- Spaces between steps in xcookybookyby Martin on May 20, 2026 at 9:02 pm
When typesetting a recipe with the xcookybooky package, there is no space between the step numbers if the respective preparations are only in one line. How can I get spaces between the numbers like there are if the preparations have at least two lines? MWE: \documentclass{report} \usepackage{xcookybooky} \renewcommand{\step} {% \stepcounter{step}% \lettrine [% lines=2, lhang=0, % space into margin, value between 0 and 1 loversize=0.15, % enlarges the height of the capital slope=0em, findent=1em, % gap between capital and intended text nindent=0em % shifts all intended lines, begining with the second line ]{\thestep}{}% } \begin{document} \begin{recipe}{test} \preparation{ \step short \step short \step long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long \step short \step long long long long long long long long long long long long long long long long long long long long long long long long long long long \step short \step long long long long long long long long long long long long long long long long long long long long long long long \step short } \end{recipe} \end{document}
- Compatibility between a math font .ttf with mtpro2by Sebastiano on May 20, 2026 at 7:17 pm
I was looking for Mathematical Pi One/Two/... clones these days. I noticed that in an old question of mine, I was looking for Mathematical Pi One fonts but at that time I knew almost nothing about how to define and use .ttf fonts in a .tex document. I was experimenting with the following complete example using Arrus BT: \documentclass{article} \usepackage{unicode-math} %\usepackage[lite]{mtpro2} \newfontface\ArrusBT[ ]{arrusbtroman.ttf} \AtBeginDocument{ \newcommand\piN{\mathord{\text{\ArrusBT\symbol{"03C0}}}} } \begin{document} $C=2\piN r$ \end{document} but the use of mtpro2 (lite) with unicode-math generates incompatibilities for me (related mtpro2 and unicode-math). Is it currently possible to overcome this problem with expl3 or other tricks working with XeLaTeX or LuaLaTeX?
- expanding an argument to control case in \hrefby troy on May 20, 2026 at 5:31 pm
I see that there some questions and answers related to expanding arguments, but I just don't seem to get it. I'm writing a document in which I'd like to include hyperlinks to our institutional website. I want a macro like \mcmd{Opt}{report} that expands to \href{https://foo.com/extra/ui/command/Opt/ReportCmd.html}{\texttt{Opt.report}}. The problem I'm having is all about transforming "report" into "Report". I'm using the \mdoc macro for other links. Here's my MWE: \documentclass{article} \usepackage{mfirstuc} \usepackage{hyperref} \newcommand{\varn}[1]{\texttt{#1}} \newcommand{\mdoc}[2]{\href{https://foo.com/extra/#1}{#2}} \newcommand*{\mcmd}[2]{\mdoc{ui/command/#1/#2Cmd.html}{\varn{#1.#2}}} \newcommand*{\mcmdu}[2]{\mdoc{ui/command/#1/\makefirstuc{#2}Cmd.html}{\varn{#1.#2}}} \begin{document} \mcmd{Opt}{report} \mcmdu{Opt}{report} \end{document} but \mcmd{Opt}{report} gives me "\href{https://foo.com/extra/ui/command/Opt/reportCmd.html}{\texttt{Opt.report}}". I want "Opt/reportCmd.html" to be "Opt/ReportCmd.html" but "Opt.report" to stay as is. I've tried using \makefirstuc in my \mcmdu macro, but it's not expanding the way I need it to. \mcmdu{Opt}{report} seems to give me \href{https://foo.com/extra/ui/command/Opt/%5Cmakefirstuc%2520%7Breport%7DCmd.html}{\texttt{Opt.report}} I get the impression that this is easier in LaTeX3. While I need to spend some hours learning LaTeX3, I welcome solutions using LaTeX3 or LaTeX2e. I'm happy to have anything that works π EDIT 5/20: I absentmindedly left out that I need this to preserve case after the first character (for camel-case inputs): \mcmd{Opt}{initCov} should return \href{https://foo.com/extra/ui/command/Opt/InitCovCmd.html}{\texttt{Opt.initCov}}
- Adding negative vertical space in a complex arry macroby Stefan MΓΌller on May 20, 2026 at 4:39 pm
I have a macro for typesetting AVMs depending on the font it is used the distance between the top of the AVM and the type (the first word in italics) is too large. I do not know the reason for this and more importantly, I have no idea how to fix it. It seems to be dependent on the word that is used. "extraposition" in the examples below. The MWE uses either the class scrartcl or langsci-book. langsci-book uses a different font and the problem appears. How can this be solved? A preferred solution would one that does not require manual correction. \documentclass[smallfont]{langscibook} % \documentclass{scrartcl} \usepackage{array} \usepackage{booktabs} \newcommand{\nliste}[1]{% \mbox{$\langle$\upshape\normalfont#1$\rangle$}% } \newcommand{\ms}[2][]{% \ifdim\lastskip=-1pt % flag value \mbox{}\\*[-.8\baselineskip]% \else \ifnum\lastpenalty=-10000 % other flag value \mbox{}\\*[-.8\baselineskip]% \fi \fi \mbox{% \delimiterfactor=1000 \delimitershortfall=0pt\tabcolsep=0pt% $\hspace{-2pt}\left[% \begin{tabular}{>{\upshape\scshape}l@{}>{\hspace*{5pt}\normalfont\itshape}l} \if\relax\detokenize{#1}\relax\else \multicolumn{2}{>{\normalfont\itshape}l}{#1}% \\% \fi% #2% \end{tabular}% \right]\hspace{-2pt}$% }% % \par\vspace{1mm}% \vspace{1mm}% } \newcommand{\ibox}[1]{{% \setlength{\fboxsep}{1.25pt}% \fbox{$\scriptstyle #1$}% }} \newcommand{\ind}[1]{\mbox{$_{\ibox{#1}}$}} \begin{document} \ms[extraposition]{ cat & \ms{ subj & \nliste{ \ibox{2} }\\ comps & \nliste{ \ldots{} \ibox{1} \ldots{} }\\ arg-st & \ms{ add-arg & \nliste{ \ldots{} \ibox{2} \ldots{} }\\ arg-list & \nliste{ \ldots{} \ibox{2} NP$_{it}$ \ldots{} \ibox{1} S[\emph{fin}] }\\ }\\ }\\ } \end{document}
- Marks inside of boxes and \mark_get_marks_for_reinsertion:nNNby David Purton on May 20, 2026 at 2:49 pm
LaTeX marks inserted inside of boxes are ignored. I want to set some material inside a \vbox then split that box if needed to allow for a page break. There are marks inserted inside the \vbox and I want them to work as normal across the page break. It seems like this should be possible using \mark_get_marks_for_reinsertion:nNN, but I don't understand how to make it work. How can I recover marks from the \vbox around the split? Here's a MWE example showing what I mean and what I want: \documentclass[twocolumn]{article} \usepackage{parskip} \ExplSyntaxOn \mark_new_class:n { dcp } \tl_new:N \g_dcp_first_box_mark_tl \tl_new:N \g_dcp_last_box_mark_tl \cs_new_protected:Npn \mk #1 { \textsuperscript {#1} \mark_insert:nn { dcp } {#1} \tl_if_empty:NT \g_dcp_first_box_mark_tl { \tl_gset:Nn \g_dcp_first_box_mark_tl {#1} } \tl_gset:Nn \g_dcp_last_box_mark_tl {#1} } \ExplSyntaxOff \usepackage{fancyhdr} \fancyhf{} \lhead{First Mark: \FirstMark[previous-column]{dcp}; Last Mark: \LastMark[previous-column]{dcp} (I want 3)} \rhead{First Mark: \FirstMark[column]{dcp} (I want 4); Last Mark: \LastMark[column]{dcp}} \pagestyle{fancy} \begin{document} I can get the first mark inside \verb+\l_tmpa_box+ by saving it globally. \ExplSyntaxOn \vbox_set:Nn \l_tmpa_box { \hbox:n { \mk { 1 } Some ~ text. } \hbox:n { \mk { 2 } Some ~ text. } \hbox:n { \mk { 3 } Some ~ text. } \hbox:n { \mk { 4 } Some ~ text. } \hbox:n { \mk { 5 } Some ~ text. } \hbox:n { \mk { 6 } Some ~ text. } } \int_set:Nn \vbadness { 10000 } \vbox_set_split_to_ht:NNn \l_tmpb_box \l_tmpa_box { 8ex } \mode_leave_vertical: \mark_insert:nn {dcp} { \g_dcp_first_box_mark_tl } \box_use_drop:N \l_tmpb_box \ExplSyntaxOff How can I know what the last mark inserted before the split was so that I can re-insert it after \verb+\l_tmpb_box+ is used? \newpage And similarly, how can I know what the first mark after the split was so that I can re-insert it before \verb+\l_tmpa_box+ is used? \ExplSyntaxOn \mode_leave_vertical: \box_use_drop:N \l_tmpa_box \mark_insert:nn {dcp} { \g_dcp_last_box_mark_tl } \ExplSyntaxOff I can get the last mark in \verb+\l_tmpa_box+ by saving it globally. \end{document}
- How can I run this hello world C code from TeX using Lua's ffi?by Jasper on May 20, 2026 at 12:49 pm
How can I run this hello world C code from TeX using Lua's ffi? See https://luajit.org/ext_ffi.html Edit: This problem was produced on Windows 11. I solved it by using Linux, as was suggested in an answer. \documentclass{article} \usepackage{luacode} \begin{document} \begin{luacode*} local ffi = require("ffi") ffi.cdef[[ int printf(const char *fmt, ...); ]] ffi.C.printf("Hello %s!", "world") \end{luacode*} Test \end{document} (./test.aux)[\directlua]:5: failed to find function/global printf stack traceback: [C]: in metamethod '__index' [\directlua]:5: in main chunk. \luacode@dbg@exec ...code@maybe@printdbg {#1} #1 } l.10 \end{luacode*}
- Defining a detailed operational amplifier subcircuit (with input/output anchors) in circuitikzby Marco Moldenhauer on May 20, 2026 at 12:45 pm
I am trying to create an electrical circuit symbol motivated by the textbook Engineering Circuit Analysis (Edition 8, Hayt, Page 192, Figure 6.24). Here is the reference image of what I am trying to achieve: I want to define this into a new symbol in circuitikz. Ideally, I am looking for an elegant way to define this with three main anchor points: NodePlus, NodeMinus, and NodeOut. What is the best/most elegant way to wrap this drawing into a reusable component where I can easily connect wires to the three defined input/output nodes? my code \documentclass{article} \usepackage{circuitikz} \begin{document} \begin{circuitikz}[european] \node (NodeMinus) at (0,0) {}; \node (NodePlus) at (0,3) {}; \node (NodeOut) at (6,1.5) {}; %% input resistor \draw(NodeMinus.center) node[above]{$-$} to[short, o-] ++(1,0) node[below]{$-$} to[R, l_=$R_i$] (1,3) node[above]{$+$} to[short, -o] (NodePlus.center) node[below]{$+$}; %% input voltage label \path(NodeMinus.center) -- (NodePlus.center) node[midway]{$v_d$}; %% output voltage source and output resitor \draw(NodeOut.center) to[short, o-] ++(-1,0) -- ++(0,1) to[R,l_=$R_o$] ++(-2,0) to[american controlled voltage source, l=$A\cdot v_d$] ++(0,-2.5) node[ground]{}; \end{circuitikz} \end{document} my output
- How to adjust the size of \contentsname, \listfigurename and \listtablename in header in book document class?by W.J on May 20, 2026 at 11:30 am
The following is an MWE. My question is how to keep the sizes of \contentsname, \listfigurename, and \listtablename unchanged or consistent with other elements in the header, while changing their sizes or fonts in the body? \documentclass{book} \usepackage{etoolbox} \usepackage{fancyhdr} \makeatletter \def\headrule{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi \hrule\@height 1.2pt \@width\headwidth\vskip1pt \hrule\@height \headrulewidth\@width\headwidth }}% \makeatother \pagestyle{fancy} \fancypagestyle{frontmatterstyle}{ \fancyhf{} \fancyhead[OC]{\footnotesize\leftmark} % **Size command doesn't work for contentsname/listfigurename/listtablename in header** \fancyhead[EC]{\footnotesize Test} \renewcommand{\thepage}{\Roman{page}} \fancyfoot[C]{\footnotesize\thepage} } \appto\frontmatter{\pagestyle{frontmatterstyle}} \ProcessOptions\relax \pagestyle{fancy} \fancypagestyle{mainmatterstyle}{ \fancyhf{} \fancyhead[OC]{\small\leftmark} \fancyhead[EC]{\small Test} \fancyfoot[C]{\small\thepage} } \appto\mainmatter{\pagestyle{mainmatterstyle}} \fancypagestyle{plain}{ \thispagestyle{mainmatterstyle} } \renewcommand\contentsname{\huge Contents} % **The points where problems occur** \renewcommand\listfigurename{\huge Figure} \renewcommand\listtablename{\huge Table} \begin{document} \frontmatter \tableofcontents \listoffigures \listoftables \mainmatter \chapter{Cha1} \section{sec1} \section{sec2} \end{document} The unsuitable result is as follows. It seems that \fancyhead[OC]{\footnotesize\leftmark} doesn't work for \contentsname, \listfigurename or \listtablename. And I want it to be as follows, but I'm stuck. Could someone do me a favor? Thanks in advance!
- L3kernel latest update introduce an incompatibility with TikZ library `spath3`?by brunoh on May 20, 2026 at 11:16 am
After updating the l3kernel package to its latest version, I cannot compile anymore my Latex Files and I get the following error message in my console window /usr/local/texlive/2026/texmf-dist/tex/latex/spath3/spath3.sty:3112: LaTeX Error: Variant form same as base fo rm '\spath_maybe_gsplit_curve:NNn'. For immediate help type H <return>. ... l.3112 ...\spath_maybe_gsplit_curve:NNn {NNn, NNV} My preamble use librairies from TikZ. Hopefully using Texlive Utility I was able to restore my installation to the previous version before the update. What else could be done to get around this incompatibility?
- standalone customization for Musixtex music scores that uses full width of the A4 pageby ABV on May 20, 2026 at 11:07 am
It is needed an standalone customization for Musixtex music scores that contains many pages. The target is to use the full width of the A4 page. The basic code is as follow: \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 is as follow:
- LuaLaTeX and WCAG: Centered Tables without "empty paragraph" errorby developedrough on May 20, 2026 at 2:23 am
I have a simple table that I want to add to my LuaLaTeX document. When I try to run it through a tool like https://pdf4wcag.com/, I get "Paragraph structure is empty" errors. I have tried a multitude of things, which I will outline. Removed the float package Use makebox to wrap the table versus using \begin{center} and \end{center} or \centering Tried to override global settings about centering tables (used AI; I know, I know...) The table I am adding is the following: \begin{table}[h!] \makebox[\textwidth][c]{\begin{tabular}{c|p{2in}} Rank & Item \\ \hline 1 & Item 1\\ 2 & Item 2\\ 3 & Item 3\\ 4 & Item 4\\ 5 & Item 5\\ 6 & Item 6 \end{tabular}}% \caption{The author's item preference list} \end{table} My current settings for LuaLaTeX and package list is as follows: \DocumentMetadata{ lang = en-US, pdfstandard = ua-2, pdfstandard = a-4f, tagging=on, tagging-setup={math/setup=mathml-SE} } \documentclass{article} \usepackage[margin=.5in]{geometry}% \usepackage{fontspec} \usepackage{unicode-math} \usepackage{graphicx} \usepackage{booktabs} \usepackage{xcolor} \usepackage[normalem]{ulem} \usepackage{parskip} \usepackage{adjustbox} \usepackage{url,hyperref} \urlstyle{same} I would greatly appreciate a friendly nudge in the right direction to get this table to not cause PDF4WCAG to fail my resulting PDF. I am using the latest texlive version available on Fedora. Minimum Full Example: \DocumentMetadata{ lang = en-US, pdfstandard = ua-2, pdfstandard = a-4f, tagging=on, tagging-setup={math/setup=mathml-SE} } \documentclass{article} \usepackage[margin=.5in]{geometry} \usepackage{fontspec} \usepackage{unicode-math} \usepackage{graphicx} \usepackage{booktabs} \usepackage{xcolor} \usepackage[normalem]{ulem} \usepackage{parskip} \usepackage{adjustbox} \usepackage{url,hyperref} \urlstyle{same} \title{Minimum Example} \author{Smart Author} \date{\today} \setmainfont{Noto Sans} \setmathfont{Noto Sans Math} \begin{document} \section{A silly document} \begin{table}[h!] \makebox[\textwidth][c]{\begin{tabular}{c|p{2in}} Rank & Item \\ \hline 1 & Item 1\\ 2 & Item 2\\ 3 & Item 3\\ 4 & Item 4\\ 5 & Item 5\\ 6 & Item 6 \end{tabular}}% \caption{The author's item preference list} \end{table} \end{document} Updates: Tagging status: 1. Unsupported -------------------------- NONE 2. Currently incompatible -------------------------- NONE 3. Partially compatible -------------------------- NONE 4. Compatible -------------------------- NONE 5. Unknown -------------------------- NONE 6.Unclassified files with extension .sty -------------------------- array.sty geometry.sty keyval.sty ifvtex.sty iftex.sty fontspec.sty xparse.sty expl3.sty fontspec-luatex.sty fontenc.sty unicode-math.sty unicode-math-luatex.sty l3keys2e.sty fix-cm.sty amsmath.sty amstext.sty amsgen.sty amsbsy.sty amsopn.sty lualatex-math.sty etoolbox.sty graphicx.sty graphics.sty trig.sty booktabs.sty xcolor.sty ulem.sty parskip.sty kvoptions.sty ltxcmds.sty kvsetkeys.sty adjustbox.sty xkeyval.sty adjcalc.sty trimclip.sty collectbox.sty ifoddpage.sty varwidth.sty url.sty hyperref.sty kvdefinekeys.sty pdfescape.sty pdftexcmds.sty infwarerr.sty hycolor.sty nameref.sty refcount.sty gettitlestring.sty stringenc.sty intcalc.sty bitset.sty bigintcalc.sty luamml.sty luamml-patches-kernel.sty luamml-patches-amsmath.sty bookmark.sty epstopdf-base.sty ==================================== End of status report First bit of log: L3 programming layer <2026-03-20> Lua module: luaotfload 2024-12-03 v3.29 Lua based OpenType font support Lua module: lualibs 2023-07-13 v2.76 ConTeXt Lua standard libraries. Lua module: lualibs-extended 2023-07-13 v2.76 ConTeXt Lua libraries -- extended collection. luaotfload | conf : Root cache directory is "/home/$USER/.texlive2026/texmf-var/ luatex-cache/generic/names". luaotfload | init : Loading fontloader "fontloader-2023-12-28.lua" from kpse-res olved path "/usr/share/texlive/texmf-dist/tex/luatex/luaotfload/fontloader-2023- 12-28.lua". Lua-only attribute luaotfload@noligature = 1 luaotfload | init : Context OpenType loader version 3.134 Inserting `luaotfload.node_processor' in `pre_linebreak_filter'. Inserting `luaotfload.node_processor' in `hpack_filter'. Inserting `luaotfload.glyph_stream' in `glyph_stream_provider'. Inserting `luaotfload.define_font' in `define_font'. Lua-only attribute luaotfload_color_attribute = 2 luaotfload | conf : Root cache directory is "/home/$USER/.texlive2026/texmf-var/ luatex-cache/generic/names". Inserting `luaotfload.harf.strip_prefix' in `find_opentype_file'. Inserting `luaotfload.harf.strip_prefix' in `find_truetype_file'. Removing `luaotfload.glyph_stream' from `glyph_stream_provider'. Inserting `luaotfload.harf.glyphstream' in `glyph_stream_provider'. Inserting `luaotfload.harf.finalize_vlist' in `post_linebreak_filter'. Inserting `luaotfload.harf.finalize_hlist' in `hpack_filter'. Inserting `luaotfload.cleanup_files' in `wrapup_run'. Inserting `luaotfload.harf.finalize_unicode' in `finish_pdffile'. Inserting `luaotfload.glyphinfo' in `glyph_info'. Lua-only attribute luaotfload.letterspace_done = 3 Inserting `luaotfload.aux.set_sscale_dimens' in `luaotfload.patch_font'. Inserting `luaotfload.aux.set_font_index' in `luaotfload.patch_font'. Inserting `luaotfload.aux.patch_cambria_domh' in `luaotfload.patch_font'. Inserting `luaotfload.aux.fixup_fontdata' in `luaotfload.patch_font_unsafe'. Inserting `luaotfload.aux.set_capheight' in `luaotfload.patch_font'. Inserting `luaotfload.aux.set_xheight' in `luaotfload.patch_font'. Inserting `luaotfload.rewrite_fontname' in `luaotfload.patch_font'. Inserting `tracingstacklevels' in `input_level_string'. (/usr/share/texlive/texmf-dist/tex/latex/latex-lab/documentmetadata-support.ltx (/usr/share/texlive/texmf-dist/tex/latex/pdfmanagement/pdfmanagement-testphase. sty Package: pdfmanagement-testphase 2026-04-21 v0.97a LaTeX PDF management bundle (/usr/share/texlive/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty Package: tagpdf-base 2026-04-24 v1.0b part of tagpdf - provide base, no-op vers ions of the user commands \c@g__tag_MCID_abs_int=\count273 \c@g__tag_struct_abs_int=\count274 ) (/usr/share/texlive/texmf-dist/tex/latex/pdfmanagement/pdfmanagement.ltx File: pdfmanagement.ltx 2026-04-21 v0.97a PDF management code \g__pdfmanagement_EmbeddedFiles_int=\count275 \l__pdfmeta_xmp_indent_int=\count276 \g_pdffile_embed_pdfa_int=\count277 \g_pdffile_embed_nonpdfa_int=\count278 \l_pdfoutline_open_int=\count279 \g__pdfoutline_id_int=\count280 \g__pdfoutline_current_level_int=\count281 ))) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-luatex.def File: l3backend-luatex.def 2026-02-18 L3 backend support: PDF output (LuaTeX) \l__color_backend_stack_int=\count282 Inserting `l3color' in `luaotfload.parse_color'. Inserting `l3opacity' in `luaotfload.parse_transparent'.) (/usr/share/texlive/texmf-dist/tex/latex/pdfmanagement/l3backend-testphase-luat ex.def File: l3backend-pdf-luatex.def 2026-04-21 v0.97a LaTeX PDF management bundle ba ckend support: PDF output (LuaTeX) \l__pdf_backend_tmpa_box=\box53 \l__pdf_backend_tmpb_box=\box54 \g__pdf_backend_resourceid_int=\count283 \g__pdf_backend_name_int=\count284 \g__pdf_backend_page_int=\count285 Custom whatsit pdf_link_adjust_level = 1 Inserting `linksplit' in `pre_shipout_filter'. Lua function pdflinkadjustlevel = 31) (/usr/share/texlive/texmf-dist/tex/latex/latex-lab/latex-lab-testphase-latest.s ty Package: latex-lab-testphase-latest 2025-09-13 v0.1d latex-lab modules (/usr/share/texlive/texmf-dist/tex/latex/tagpdf/tagpdf.sty Package: tagpdf 2026-04-24 v1.0b LaTeX kernel code for PDF tagging \l__tag_tmpa_int=\count286 \l__tag_tmpa_box=\box55 \l__tag_tmpb_box=\box56 \l__tag_loglevel_int=\count287 \g__tag_unique_cnt_int=\count288 \l__tag_tag_stop_int=\count289 (/usr/share/texlive/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def File: tagpdf-luatex.def 2026-04-24 v1.0b tagpdf driver for luatex Update 2: First lines of log (dunno how I didn't include that earlier) LOG FILE : This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) (format=lualatex 2026.5.19) 20 MAY 2026 13:42 restricted system commands enabled. **minimum_example.tex (./minimum_example.tex LaTeX2e <2025-11-01> L3 programming layer <2026-03-20> Lua module: luaotfload 2024-12-03 v3.29 Lua based OpenType font support Lua module: lualibs 2023-07-13 v2.76 ConTeXt Lua standard libraries. Lua module: lualibs-extended 2023-07-13 v2.76 ConTeXt Lua libraries -- extended collection.
- \tcolorboxenvironment not breakable [closed]by Ejj on May 19, 2026 at 8:39 pm
I'm writing a LaTeX document for my calculus 2 notes and I'm using \tcolorbox's \newtheorem to have an environment called "theorem" with the italian name in the file. I also made a new environment called "dimtheo" to have demonstration of the theorem using \newenvironment, the problem is that when the demonstration is too long it starts in a new page even if the environment is breakable (in theory); this problem got even bigger when a demonstration was so long that one page wasn't enough and it got out of the page (writing certain things over the footer). I've tried to ask copilot and it couldn't help me. The theorem and dimtheo definition: \newtheorem{theorem}{Teorema}[section] \newenvironment{dimtheo} {\par\noindent\textbf{Dim. teorema \thetheorem.}\ } {\hfill Q.E.D. \par} \crefname{theorem}{teorema}{teoremi} % Lowercase \Crefname{theorem}{Teorema}{Teoremi} % Uppercase \tcolorboxenvironment{theorem}{ enhanced, breakable, colback=white, colframe=white, borderline west={.7pt}{0pt}{black!50}, before skip= 7pt, after skip= 5pt, boxrule=0pt, sharp corners, title style={color=black!30}, fonttitle=\bfseries, left=4mm, enlarge left by=-3mm, } \tcolorboxenvironment{dimtheo}{ enhanced, breakable, colback=white, colframe=white, borderline west={.3pt}{0pt}{black!20}, before skip= 7pt, after skip= 5pt, boxrule=0pt, sharp corners, title style={color=black!30}, fonttitle=\bfseries, } I'm also putting a photo with the end of the page with the problem: Thanks in advance for your help!
- How to make tikzcd diagram possible [closed]by 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. Edit: here is the code I used and by super squished i mean the downarrow is not visible as you can see by running the code... \[ \begin{tikzcd}[column sep=huge] \mathcal{C} \arrow[r, bend left=80, "I\circ F"{name=IF}] \arrow[r, bend left=40, "J\circ F"{name=JF}] \arrow[r, "J\circ G"{inner sep=0,fill=white,anchor=center,name=JG}] \arrow[r, bend right=40, "K\circ G"'{name=KG}] \arrow[r, bend right=80, "K\circ H"'{name=KH}] \arrow[from=IF.south-|JG,to=JF.north-|JG,Rightarrow,shorten=4pt,"\gamma F"] \arrow[from=JF.south-|JG,to=JG,Rightarrow,shorten=4pt,"J\alpha"] \arrow[from=JG,to=KG.north-|JG,Rightarrow,shorten=4pt,"\delta G"] \arrow[from=KG.south-|JG,to=KH.north-|JG,Rightarrow,shorten=4pt,"K\beta"] & \mathcal{E}. \end{tikzcd} \] this is the ususal procedure i use when there are less arrows (inspired by an answer which i cannot recall whome) and it works but it does not for this.
- 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. Here below is the beginning: This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=pdflatex 2026.5.19) 19 MAY 2026 18:05 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **jugementInvestigatif.tex (./jugementInvestigatif.tex LaTeX2e <2021-11-15> patch level 1 L3 programming layer <2022-01-21> (/usr/share/texlive/texmf-dist/tex/latex/beamer/beamer.cls Document Class: beamer 2022/01/21 v3.65 A class for typesetting presentations (/usr/share/texlive/texmf-dist/tex/latex/beamer/beamerbasemodes.sty (/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW) ...
- 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?
- 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). After feedback, the final tested code is as follow: \usepackage{luatex85} % compatibilidad pdfTeX β LuaTeX (DEBE ir primero) \usepackage{graphicx} \usepackage[Export]{adjustbox} \usepackage{pgffor} \usepackage{expl3} % ββ Activar sintaxis expl3 βββββββββββββββββββββββββββββββββββββββββββββββββββ \ExplSyntaxOn % ββ Variable entera local ββββββββββββββββββββββββββββββββββββββββββββββββββββ \int_new:N \l__score_pagecount_int % ββ Comando pΓΊblico ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ \NewDocumentCommand \InsertarScore { m } { \__score_insertar:n { #1 } } % ββ ImplementaciΓ³n interna βββββββββββββββββββββββββββββββββββββββββββββββββββ \cs_new_protected:Nn \__score_insertar:n { % ββ Paso 1: Contar pΓ‘ginas ββββββββββββββββββββββββββββββββββββββββββββββ % % \pdfximage (provisto por luatex85) registra el archivo en el % diccionario interno de imΓ‘genes de LuaTeX y actualiza el contador % \pdflastximagepages sin emitir ningΓΊn contenido visible. % % En LuaTeX nativo (sin luatex85) esto equivale a: % \pdfextension ximage { #1 } % \pdffeedback lastximagepages % \pdfximage { #1 } \int_set:Nn \l__score_pagecount_int { \pdflastximagepages } % ββ Paso 2: Bucle pΓ‘gina a pΓ‘gina ββββββββββββββββββββββββββββββββββββββ % % ##1 β Γndice del bucle (se tokeniza a #1 al ejecutarse). % Cada iteraciΓ³n inserta una pΓ‘gina y aΓ±ade \par como separador. % \int_step_inline:nn { \l__score_pagecount_int } { \includegraphics [ page = ##1 , width = \linewidth , ] { #1 } \par } } \ExplSyntaxOff
- 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!
- 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.
- 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.
- 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.
- 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}
- 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!