• Can This Somewhat Long textnormal Title be Displayed Over Two Lines?
    by DDS on May 21, 2026 at 1:10 pm

    Consider the code: \documentclass[12pt]{book} \usepackage{bookman,scalerel} \textwidth=4.00in \begin{document} \thispagestyle{empty} \vstretch{2}{\textnormal{\Huge{{\bf CAN THIS SOMEWHAT LONG TITLE BE EASILY BROKEN?}}}} \end{document} which produces the output: QUESTION: How may I easily (without resorting to two separate such titles) break this \textnormal title into two pieces; say, "CAN THIS SOMEWHAT LONG TITLE" and "BE EASILY BROKEN?" with aesthetically sufficient vertical space between the two? Remark: Standard tricks such as vspace{8pt} or \\[8pt] do not work. Thank you.

  • How to avoid code duplication in path along with patterns?
    by Explorer on May 21, 2026 at 1:06 pm

    Here below is my original code: \documentclass[tikz,border=5pt]{standalone} \usepackage{fourier} \usetikzlibrary{bending,patterns.meta,angles,quotes} \begin{document} \begin{tikzpicture}[>=latex] \draw[thick,->] (0,0) -- (10,0) node[below] {$x$}; \draw[thick,->] (0,0) -- (0,-3) node[right] {$y$}; \draw[ultra thick] (7,2) -- (7,0) coordinate (A) -- (8,0) -- (8,-4) -- (7,-4) coordinate (B) -- (7,-6); %%%%%%%%%%%%%%%% path coordinate duplicated \fill[pattern={Lines[angle=-45,distance={5pt}]},preaction={fill=white}] (7,2) -- (7,0) -- (8,0) -- (8,-4) -- (7,-4) -- (7,-6) -- ++(.5,0) -- ++(0,+1.5) -- ++(1,0) -- ++(0,+5) -- ++(-1,0) -- ++(0,1.5) -- cycle; %%%%%%%%%%%%%%%% \draw(0,0) node[label={[label distance=-2.5mm]above left:$O$}] (O) {} -- (7,-4) pic[draw,<->,angle radius=2cm,angle eccentricity=1.15,"$\alpha$"] {angle = B--O--A}; \end{tikzpicture} \end{document} which gives: However, the path: (7,2) -- (7,0) -- (8,0) -- (8,-4) -- (7,-4) -- (7,-6) appeared twice, and I think that is duplicated. How to avoid and make the code more neater?

  • When are variables in texmfcnf.lua used as opposed to texmf.cnf in TeX Live?
    by Snowrabbit on May 21, 2026 at 11:16 am

    I am using lualatex in the TeX Live distribution to generate pdf-files. The TeX Live installation is in a multi-user computer system, where users of TeX Live have read-only file permission to the installation. I have noted two configuration files, ../texlive/YYYY/texmf.cnf and ../texlive/YYYY/texmfcnf.lua where I interpreted the latter to be a configuration file for lualatex (but maybe that's incorrect?). Both files contains variables like TEXMFHOME, TEXMFVAR, TEXMFCONFIG but they are set to different search paths. When I run lualatex it seem to use values from ../texlive/YYYY/texmf.cnf and not the lua-file. When are the variables set in ../texlive/YYYY/texmfcnf.lua used? Is there a precedance order to use variables from ../texlive/YYYY/texmf.cnf and ../texlive/YYYY/texmfcnf.lua, for example if TEXMFVAR is not in the first file use it from the latter when lualatex run? Recommended reading about texmfcnf.lua?

  • Passing string from class option then using the string to load the corresponding key set
    by myhsia on May 21, 2026 at 10:09 am

    I configured a set of choices mode: {fooa, foob, bar}, which will be loaded as the class option. I also configured 3 set of keys: { fooa / set }, { foob / set }, { bar / set }. My goal is that when loading the class option, the string \g_classoption_mode_str will be set as the value of the key mode, then, the macro \docset #1 will execute \keys_set:nn { \g_classoption_mode_str / set } {#1}. For example, if I write \documentclass[mode = foob]{mycls} Then, \docset{} will load the key set: { foob / set }. The following is my MWE: In mycls.cls: I've assigned different initial values for the test -> \testtl key. \ProvidesExplClass {mycls} {2026-05-21} {v0.0.1} {} \str_new:N \g_classoption_mode_str \keys_define:nn { classoption } { mode .choices:nn = { fooa, foob, bar } { \exp_args:Ne \AtEndOfClass { \str_gset_eq:NN \g_classoption_mode_str \l_keys_choice_str } }, mode .initial:n = { fooa }, } \keys_define:nn { fooa / set } { test .tl_set:N = \testtl, test .initial:n = { fooa }, } \keys_define:nn { foob / set } { test .tl_set:N = \testtl, test .initial:n = { foob }, } \keys_define:nn { bar / set } { test .tl_set:N = \testtl, test .initial:n = { barr }, } \ProcessKeyOptions [ classoption ] \LoadClass { article } \DeclareDocumentCommand \docset { m } { \keys_set:nn { \g_classoption_mode_str / set } {#1} } In test.tex: \documentclass[mode = bar]{mycls} \docset{} \begin{document} \testtl 1 \end{document} Under this MWE, I hope \testtl will output fooa if the class option is mode = fooa, foob if the class option is mode = foob, bar if the class option is mode = barr. But the MWE returns the error: Missing control sequence inserted. <inserted text> Update: 2026-05-21 If I remove the line in .cls \exp_args:Ne \AtEndOfClass The error disappeared. But the output isn't right, if I type \documentclass[mode = fooa]{mycls} \testtl will output barr.

  • (Semi-)Globally set `table` options in `\addplot table`?
    by Denis BitouzΓ© on May 21, 2026 at 7:36 am

    Suppose I need to plot data from many files using pgfplots, and these files are not properly formatted (8 header lines not prefixed with % or #, and commas instead of periods as decimal separators). This can be managed using the following code: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis} \addplot table [skip first n=8,/pgf/number format/read comma as period] {data1.dat}; \addplot table [skip first n=8,/pgf/number format/read comma as period] {data2.dat}; \end{axis} \end{tikzpicture} \end{document} But it is tedious to have to specify these table options each time \addplot table appears. I haven't found any way in the pgfplots documentation to declare these parameters in a (semi-)global manner. Have I missed something?

  • adding \everydisplay{\Umathoperatorsize\displaystyle=5ex} gives error using split inside equation
    by Nasser on May 21, 2026 at 7:33 am

    I wanted to make the integral sign larger. Saw accepted answer in TeX Gyre Pagella Math Integral sign much too small which says to use \everydisplay{\Umathoperatorsize\displaystyle=5ex} I added it and it worked. But when I tried to compile old file which was using \begin{split} .. \end{split} inside equation I get lualatex error. Note the code did not have alignment & inside the equation. I read now that split likes to have & in the long equation. But this old code compiled OK as is for years with no error. Only when I just added \everydisplay I see this error ! Package amsmath Error: \begin{split} won't work here. I can change my Latex to use multline may be. But the question is why this error? Is this known error? Can I still keep the above \everydisplay and keep using the split? Or may be I should look for different way to make the integral sign larger than this method. I am using texlive 2026 on linux. MWE \documentclass[12pt]{article} \usepackage{amsmath} \everydisplay{\Umathoperatorsize\displaystyle=5ex} \begin{document} $\int \sin x dx$ \begin{equation*} \begin{split} 0.0412493 x-0.0826459 x^3+0.0416667 x^4-0.00034374 x^5-1.51283*10^-8 x^6\\ +0.0000984213 x^7-0.0000248515 x^8 +1.64129*10^-7 x^9-3.28259*10^-8 x^{10} \end{split} \end{equation*} \end{document} Compiled >lualatex 5.tex This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) restricted system commands enabled. (./5.tex LaTeX2e <2025-11-01> L3 programming layer <2026-03-20> (/usr/local/texlive/2026/texmf-dist/tex/latex/base/article.cls Document Class: article 2025/01/22 v1.4n Standard LaTeX document class (/usr/local/texlive/2026/texmf-dist/tex/latex/base/size12.clo)) (/usr/local/texlive/2026/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/local/texlive/2026/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/local/texlive/2026/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/local/texlive/2026/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/usr/local/texlive/2026/texmf-dist/tex/latex/amsmath/amsopn.sty)) (/usr/local/texlive/2026/texmf-dist/tex/latex/l3backend/l3backend-luatex.def) (./5.aux) ! Package amsmath Error: \begin{split} won't work here. See the amsmath package documentation for explanation. Type H <return> for immediate help. ... l.12 \end{split} ? Commenting out \everydisplay{\Umathoperatorsize\displaystyle=5ex} now it compiled OK and gives expected result with no error. You see, it did split it, even though there is no & inside the equation. Error only shows when adding \everydisplay

  • Background picture for part page
    by 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 xcookybooky
    by 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} EDIT: With the solution provided here (see next MWE), space will be added after each step, even if there already was space (it seems like prevgraf is 0 in each case). MWE2: \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}{}% } \usepackage{xpatch} \pretocmd{\lettrine}{\checklettrine}{}{} \newcommand{\checklettrine}{% \ifnum\prevgraf<2 \vspace{\baselineskip}\fi } \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}

  • Change the font size of title 'Contents' ('List of Figures', List of Tables') in header and body separately
    by W.J on May 20, 2026 at 8:08 pm

    The following is an MWE. My question is how to change the font size of 'Contents' (by the way, 'List of Figures', 'List of Tables') in header and body separately? That is to say, for example, how to change the size of the title 'Contents' on the contents page, while dispaly it in header according to the size command in \fancyhead (same question for 'List of Figures' and 'List of Tables')? \documentclass{book} \usepackage{lipsum} \renewcommand{\contentsname}{\Large Contents} % **The points where problems occur** \renewcommand{\listfigurename}{\Large Figure} \renewcommand{\listtablename}{\Large Table} \begin{document} \frontmatter \tableofcontents \listoffigures \listoftables \mainmatter \chapter{Cha1} \section{sec1} \lipsum[1-8] \end{document} Unfortunately, the \renewcommand command simultaneously change the size in the header, even when I use the package fancyhdr to design a new page style as follows, where the size command in \fancyhead doesn't work for 'Contents', 'List of Figures' or 'List of Tables' at the time. \documentclass{book} \usepackage{fancyhdr} \pagestyle{fancy} \fancypagestyle{frontmatterstyle}{ \fancyhf{} \fancyhead[EC]{\footnotesize\leftmark} % **Size command doesn't work for contentsname/listfigurename/listtablename in header** \fancyhead[OC]{\footnotesize Test} } \usepackage{lipsum} \renewcommand{\contentsname}{\Large Contents} % **The points where problems occur** \renewcommand{\listfigurename}{\Large Figure} \renewcommand{\listtablename}{\Large Table} \begin{document} \frontmatter \pagestyle{frontmatterstyle} \tableofcontents \listoffigures \listoftables \mainmatter \chapter{Cha1} \section{sec1} \lipsum[1-8] \end{document} I tried the relevant packages like sectsty, titlesec or tocloft, but I still failed. I don't know how to change them separately. Could someone do me a favor? Thanks a lot!

  • Compatibility between a math font .ttf with mtpro2
    by 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 \href
    by 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 macro
    by 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} Edit: I think I now found the reason for my frustration. The space at the top depends on what else is in the AVM. The distance at the top of the AVM to "person" is different in the two AVMs. If you uncomment the code for the Mutter-AVM it gets worse. So maybe the array package is doing the harm and something else that does not add or remove space should be used. \documentclass{scrartcl} \usepackage{array} \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 % https://tex.stackexchange.com/a/762975/18561 % no added vertical spacing on top %\omit\span\omit \normalfont\itshape #1\hfill\mbox{}% % some points of vertical space on top added back in \omit\span\omit \normalfont\itshape\vrule height7pt width0pt\relax #1\hfill\mbox{}% \\\noalign{\vspace{2pt}}% \fi% #2% \end{tabular}% \right]\hspace{-2pt}$% }% % \par\vspace{1mm}% \vspace{1mm}% } \begin{document} \ms[person]{ vorname & Julia\\ nachname & Warbanow $\vee$ Barbanow\\ } \ms[person]{ vorname & max\\ nachname & meier\\ geburtstag & 10.10.1985\\ %mutter & \ms[person]{ % vorname & anna\\ % nachname & meier\\ % }\\ } \end{document}

  • Marks inside of boxes and \mark_get_marks_for_reinsertion:nNN
    by 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 circuitikz
    by 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? [duplicate]
    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 page
    by 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" error
    by 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 remains
    by 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) ...

  • Musixtex bug when using includegraphics that embedded external standalone score in pdf format
    by 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

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

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

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

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

  • 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 sphere
    by 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?

  • 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!