• Is there a way to automatically create multiple pages inserting a new name in each one?
    by Fisherman's Friend on April 17, 2026 at 4:54 pm

    I have been asked to create badges for a conference. In each corner of the badge will be an image with some logos. I have a long list of names of attendees and their institutions in Excel. I'd like to create a LaTeX document with a unique page for each attendee that I can then print out into badges. Below is an example layout of such a badge. \documentclass{article} \usepackage{graphicx} \usepackage{geometry} \usepackage{anyfontsize} \begin{document} \pagenumbering{gobble} \noindent\includegraphics[width=3cm]{example-image-a}\hspace{9cm}\noindent\includegraphics[width=3cm]{example-image-b} \vspace{6cm} \centering \fontsize{50}{2}\selectfont{\textbf{Example Name}} \vspace{2cm} \fontsize{40}{2}\selectfont{Example University at Example Country} \end{document} I'm hoping there is some way to automate this process. For instance, create an array of names {Name1, Name2, Name3} and ask LaTeX to create a new page for each name in the array along with the instution.

  • How to get a table with one fixed cell, and an adaptive one?
    by Alessandro Bertulli on April 17, 2026 at 10:47 am

    I'm trying to get something like this (taken from Microsoft Word): The left cell is going to be "fixed", meaning it shouldn't grow with the text filling the right one; viceversa, the right cell should adapt to the text put in it, but: being at least as high as the left cell with the background for the entire cell the table should take horizontally all of the \textwidth optionally, the left cell should have a minimum height For now I kinda managed to get this, with LuaLaTeX (1): \documentclass{report} \usepackage{tabularx} \usepackage{multirow} \usepackage[table]{xcolor} \usepackage{lipsum} \begin{document} \noindent\begin{tabularx}{\textwidth}[h]{p{6cm} >{\columncolor{gray}}X} {\cellcolor{red}\color{white}\textbf{Title of boxed section:}} & \multirow[t]{2}{=}{\lipsum[1]} \\ & \end{tabularx} \lipsum[1] \end{document} but as you see it overlaps both in the right cell, and with the rest of the text: We can use LuaLaTeX and LaTeX3. Do you have any advise? Thanks! (1) EDIT: added \usepackage{...} to provide complete MWE

  • Draw shaded bands spanning over some strands
    by Mohammed Sabak on April 17, 2026 at 10:27 am

    I'm currently working on a math paper about some concepts in virtual knot theory. It is a very "visual" field of mathematics and we are often challenged to draw some original figures using Tikz code. The following is a hand made version of the figure I want to draw using Tikz code: I was able to produce the code for the left hand side figure (the crossings with the shaded bands spanning over its strands). But I could not produce the right hand side figure. Here is a minimal working example that could be given here. 🙂 \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,arrows.meta} \tikzset{>={Stealth[length=2mm]}} \begin{document} \begin{tikzpicture} \coordinate (P) at (-0.5,0); \draw[gray!55, line width=2mm, line cap=round] ($(P)+(-1,1)$) .. controls ($(P)+(0.2,-0.1)$) and ($(P)+(0.2,0.1)$) .. ($(P)+(-1,-1)$); \coordinate (Q) at (0.5,0); \draw[gray!55, line width=2mm, line cap=round] ($(Q)+(1,1)$) .. controls ($(P)+(0.8,-0.1)$) and ($(P)+(0.8,0.1)$) .. ($(Q)+(1,-1)$); \draw[thick, line cap=round,->] (-1.4,-1.4) -- (1.4,1.4); \draw[thick, line cap=round,->] (-1.4,1.4) -- (-0.2,0.2) ( 0.2,-0.2) -- ( 1.4,-1.4); \end{tikzpicture} \end{document}

  • Bug with tikz backgrounds-library
    by DraUX on April 17, 2026 at 9:22 am

    I recently noticed a bug, where the TikZ backgrounds library ignores any other options applied within the same scope definition. As you can see in the MWE below, I have a scope on the background layer with the additional options blue and ultra thick, which are ignored. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture} \draw[red, ultra thick] (0,0) -- (2,0); \begin{scope}[on background layer,blue,ultra thick] \draw (1,-1) -- (1,1); \end{scope} \end{tikzpicture} \end{document} Using nested scopes or defining the options directly in the path definition gives the desired result. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture} \draw[red, ultra thick] (0,0) -- (2,0); \begin{scope}[on background layer] \begin{scope}[blue,ultra thick] \draw (1,-1) -- (1,1); \end{scope} \end{scope} \end{tikzpicture} \end{document} Is this a bug? It isn't mentioned in the manual. I couldn't find a git repo to report an issue, so I hope this is the right place to ask.

  • How to make citetitle use the full title by default and not the short title with biblatex
    by bmrs on April 17, 2026 at 8:29 am

    I am using the "shorttitle" field with "biblatex" to handle the removal of articles (like "the") in French in some cases. The problem is that, as a result, the "citetitle" function uses the "shorttitle" attribute by default instead of the full title. How can I get to use full title by default? Here is the MWE: \documentclass{scrartcl} \usepackage{polyglossia} \setdefaultlanguage{french} \usepackage[ backend=biber, citestyle=verbose-trad2, ]{biblatex} \usepackage{filecontents} \DeclareCiteCommand\citeshorttitle {\usebibmacro{prenote}} {\mkbibemph{\printfield{shorttitle}}} {\multicitedelim} {\usebibmacro{postnote}} \begin{filecontents}{\jobname.bib} @book{Constitution, title = {La Constitution}, shorttitle = {Constitution}} \end{filecontents} \addbibresource{\jobname.bib} \nocite{*} \begin{document} The short title is \citeshorttitle{Constitution} but \texttt{citetitle} also becomes \citetitle{Constitution} instead of \emph{La Constitution}. \end{document}

  • Making a Coin catalogue using LaTeX
    by Happy_Archaeologist on April 16, 2026 at 3:25 pm

    I am struggling to make a professional looking coin catalogue on LaTeX, but don't want to go back to using word. Need to figure out a way of formatting in a way that looks professional but is semi easy to use.

  • How to create a TikZ node whose top matches one node’s north and bottom matches another node’s south?
    by Lecthor on April 16, 2026 at 3:18 pm

    I have two rectangular TikZ nodes placed one below the other: B1 is above B2. I would like to create a third rectangular node B3, shifted to the right in the x-direction, such that: the top of B3 is aligned with B1.north the bottom of B3 is aligned with B2.south I am not sure what is the best TikZ way to do this cleanly. Here is a minimal example of the situation: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \tikzstyle{block} = [draw, fill=white, rectangle, inner xsep=0pt, align=center, font=\small]% \begin{tikzpicture} \node [block, text width=3em] (B1) {Block 1}; \node [block, anchor=north, text width=3em] (B2) at ([yshift=-5em]B1.south) {Block 2}; \node [block, anchor=west] (B3) at ([xshift=5em]$(B1.east)!0.5!(B2.east)$) {Block 3}; \end{tikzpicture} \end{document} I tried using minimum height with coordinate differences, but I could not make it work properly. What is the recommended approach?

  • How to redefine binary operators with unicode-math?
    by Mankka on April 16, 2026 at 1:44 pm

    I want to use the minus symbol "-" for set differences instead of the "∖" \setminus. My setup is the following: \RequirePackage{pdfmanagement} \SetKeys[document/metadata]{lang=en-GB} \documentclass[a4paper]{article} \usepackage{fontspec} \setmainfont{Latin Modern Roman} \usepackage{mathtools} \usepackage{lualatex-math} \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}] {unicode-math} \setmathfont{Latin Modern Math} %\let\oldsetminus\setminus \newcommand*\oldsetminus\setminus \begin{document} Set difference: $A \setminus B = A - B = A \oldsetminus B$. \end{document} If I don't use unicode-math, the let-command works. With unicode-math I have to use the newcommand*. I tried (among other things) \renewcommand*\setminus{-} but it does nothing. How do I retain the old setminus but also define \setminus as -?

  • Grouping in tables created with datatool
    by JamesI on April 16, 2026 at 12:31 pm

    I'm trying to print a table from a csv loaded with datatool, but have it display in groups - by which I mean (in the below example), the column 'group' should only have one entry per group, with 'data' repeated. In other words, no group name should appear twice. What I've done is to define (and re-define) a macro at the end of the loop to update to the latest group, then pass that to \DTLifstringeq. I've checked that the \lasttype is being updated each iteration by adding it's value to the printout table - it is. But despite it being the current value, the string comparison isn't working. The MWE \documentclass[12pt]{report} \usepackage{datatool} \usepackage{array} % Required for p{} columns \usepackage{tabularx} % Optional: for auto-width columns \usepackage{booktabs} % better tables \usepackage{longtable} % tables breaking across pages \usepackage{multirow} \usepackage{xstring} \usepackage{filecontents} \begin{filecontents*}{test.csv} group,data Thing1,something Thing1,somethingelse Thing1,somethingother Thing1,somethingsomething Thing2,newthing Thing2,newotherthing Thing2,newthirdthing Thing2,lastthing \end{filecontents*} \begin{document} % Load datatables % Load datatables \DTLread[name=test]{test.csv} % Define this BEFORE the longtable \newcommand{\lasttype}{} \begin{longtable}{l l} \toprule Group & Data\\ \midrule \endfirsthead \multicolumn{2}{l}{\textit{(continued)}} \\ \toprule Group & Data\\ \midrule \endhead \bottomrule \endlastfoot \gdef\lasttype{}% Reset tracker at the start of the table \DTLforeach{test}{ \group=group, \data=data }{% \DTLifstringeq{\group}{\lasttype}{ % Same type, leave first column empty & \data \\ }{% % New type, print it and update tracker GLOBALLY \group & \data \\ \gdef\lasttype{\group} } } \end{longtable} \end{document} If there's a better way to do it, that's great, but I'd love to know what the \DTLifstringeq isn't working when (as far as I can tell), I've literally just defined the two strings to be the same.

  • Color symbol for lucide-icons package
    by Sebastiano on April 16, 2026 at 11:28 am

    What is the reason of why I can haven't the colors? \documentclass{article} \usepackage{xcolor} \usepackage{lucide-icons} \begin{document} \lucideicon{alarm-clock-check} \textcolor{red}{\lucideicon{alarm-clock-check}} \end{document}

  • display inline style affected the hyperlink box's size?
    by Explorer on April 16, 2026 at 9:40 am

    I have the following example: \documentclass{article} \everymath{\displaystyle} \usepackage{xcolor} \usepackage{lipsum} \usepackage{amsmath} \usepackage{zref-clever}%<- \usepackage{hyperref} \hypersetup{linkbordercolor=magenta} \begin{document} \section{Mathematical Expressions} \begin{equation} a^2+b^2=c^2 \label{eqn} \end{equation} \lipsum[1][1-3] cite the eqn at here \zcref{eqn} and $\iint x^2+y^2 \, dx \, dy$ lalala \lipsum[1][1-3] cite the eqn at here \ref{eqn} and $\iint x^2+y^2 \, dx \, dy$ lalala \lipsum[1][1-3] cite the eqn at here \eqref{eqn} and $\iint x^2+y^2 \, dx \, dy$ lalala \lipsum[1][1-3] \end{document} Is that expected behavior of the clickable box's depth here? Any suggestions on fixing that?

  • Bezier curves with controls?
    by Raffaele Santoro on April 16, 2026 at 8:45 am

    How to make rounded corner and curve (..controls?) for this path (or similar)? \documentclass[margin={1.5cm 1,5cm 1.5cm 1.5cm}]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[cyan] (0,0)--(2,0)--(5,2)--(7,3)--(6,4)--(4,7)--(2,7)--(.5,5)--(0,2)--cycle; \end{tikzpicture} \end{document}

  • Extra CJK spacing in `\Arg` with `luatexja-fontspec` in `l3doc` setup?
    by Explorer on April 16, 2026 at 6:26 am

    I have the following code: \documentclass{l3doc} \usepackage[match]{luatexja-fontspec} % lualatex \setmonojfont{FandolKai-Regular} % \ltjsetparameter{xkanjiskip=0pt plus 0pt minus 0pt} \begin{document} \begin{function}{\mycmd} \begin{syntax} \tn{mycmd}\oarg{option}\Arg{汉字}\Arg{说明} \end{syntax} \end{function} In the main text, I still want the \textbf{auto spacing}: 中文text中文 In the main text, I still want the \textbf{auto spacing}: 中文 text 中文 \end{document} If I uncommented the \ltjsetparameter{xkanjiskip=0pt plus 0pt minus 0pt}, that appeared to be: If I only want the \ltjsetparameter{xkanjiskip=0pt plus 0pt minus 0pt} work for all the l3doc commands, to show \mycmd{<汉字>}{<说明>} without any extra spacing, but in the documentation, it add the spacing automatically, what is the best practice here to interact with luatexja and the l3doc? I have no good idea to hook all the l3doc commands(and that is not elegant, too).

  • What ia a comment starting with an & in the preamble?
    by Alexander Gelbukh on April 15, 2026 at 10:34 pm

    I am debugging somebody else's .tex file. The first line is: %&xx I also see files xx.fmt and xx.tex in the same folder. What does this line mean ? Is it like \input ? But apparently faster (I guess it includes a pre-compiled represemtation of the .tex file),is it ? The file xx.tex loads a number of packages, which makes it slow to compile. I guess the intention might have been to speed up the compilation. I am trying to compile the file that I am debugging with pdflatex (MikTex on Windows-10) . Strangely, pdflatex does not even produce a .log file -- Iguess it fails before that?

  • Reformatting backref
    by Pietro Paparella on April 15, 2026 at 8:21 pm

    As a follow-up to this question here, I'd like to redefine \backrefxxx so that multiple back-references are formatted as they are on Wikipedia: I tried the following command: \renewcommand{\backrefxxx}[3]{\textasciicircum \textsuperscript{\hyperlink{page.#1}{#1}}} Minimum working example: \documentclass{article} \usepackage[pagebackref]{hyperref} \renewcommand{\backrefxxx}[3]{\textasciicircum \textsuperscript{\hyperlink{page.#1}{#1}}} \begin{document} \cite{fml2026} \newpage \cite{fml2026} \begin{thebibliography}{1} \bibitem{fml2026} First M.~Last. \newblock Title. \newblock {\em Journal}, 2026. \end{thebibliography} \end{document} but this produces the format: ${\textasciicircum}^{1,2}$ Question: Is it possible to achieve the Wikipedia format where the back-reference goes back to exact location and not just the page?

  • Simultaneous using of subfiles and fancyhdr
    by Rogério Nunes Wolff on April 15, 2026 at 4:01 pm

    I'm trying to write a multi-file using simultaneously the subfiles and fancyhdr packages. My main.tex file is \documentclass[a4paper]{article} \usepackage{graphicx} % Required for inserting images \graphicspath{{images/}} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[brazil]{babel} \usepackage[top=190pt,head=80pt,headsep=50pt,bottom=110pt,footskip=50pt]{geometry} \usepackage{fancyhdr} \usepackage{array} \usepackage{subfiles} \title{Title} \author{Author} \date{Somewhere in the past} \begin{document} \maketitle \newpage \section{Introduction} Odd stuffs \section{Good morning} \subfile{sections/section.tex} \end{document} and the section.tex file is \documentclass[../main.tex]{subfiles} \graphicspath{{\subfix{../images/}}} \begin{document} \pagestyle{fancy} \fancyhf{} \fancyhead[C]{ \huge \renewcommand{\arraystretch}{1.4} \begin{tabular}{|>{\centering}m{0.19\textwidth}|m{0.74\textwidth}<{\centering}|} \hline {\textbf{N-0}} & {\textbf{Header Title}} \\ \hline \end{tabular} } \fancyfoot[C]{% \begin{tabular}{|m{0.5\textwidth}|>{\centering}m{0.2\textwidth}|m{0.2\textwidth}<{\centering}|} \hline {Laboratory of Strange Stuff & Version 1 & {Page \thepage}} \\ \hline {{Stranger Stuffs} & {a} & {b} } \\ \hline \end{tabular} } \textbf{Hello world!} \end{document} When I compile the sub-file section.tex, the fancyhdr package runs fine and I get a customized header and footer. When I compile main.tex, the header and footer are absent. Is there a way to customize the header this way? I want to create a lot of sub-files, all with the same header format, but each one with its own header title.

  • \ShellEscape gobbling single quote character
    by Ankaa on April 15, 2026 at 1:35 pm

    I'm running into a rather bizarre issue with \ShellEscape from the shellesc package. When running the following command with both CMD and PowerShell on Windows 11 curl.exe -G "https://simbad.u-strasbg.fr/simbad/sim-tap/sync" --data-urlencode "REQUEST=doQuery" --data-urlencode "LANG=ADQL" --data-urlencode "FORMAT=text" --data-urlencode "QUERY=SELECT dec, ra FROM basic WHERE main_id = 'NGC2024'" -o query.txt I get the expected output in the .txtfile dec | ra -------------------|----------------- -1.8416666666666668|85.42916666666667 However, when I run it using \ShellEscape (basically \immediate\write18 with pdflatex), the request fails due to the single quote chars around NGC2024 being gobbled, resulting in a non-TeX-related error. Using LuaLaTeX with os.execute does not fix this issue. I also tried replacing ' with %27 and swapping single quote and double quote chars with no effect. Placing the command in a .bat file and writing \ShellEscape{query.bat} does work, however. I highly suspect the error comes from the interaction of \write18 with my machine, but I'm still confused as to how to fix it. MWE: % arara: pdflatex: { shell: true } \documentclass{article} \usepackage{shellesc} \ShellEscape{% curl.exe -G "https://simbad.u-strasbg.fr/simbad/sim-tap/sync" --data-urlencode "REQUEST=doQuery" --data-urlencode "LANG=ADQL" --data-urlencode "FORMAT=text" --data-urlencode "QUERY=SELECT dec, ra FROM basic WHERE main_id = 'NGC2024'" -o query.txt } \begin{document} Test \end{document} Log file: This is pdfTeX, Version 3.141592653-2.6-1.40.29 (TeX Live 2026) (preloaded format=pdflatex 2026.3.7) 15 APR 2026 15:16 entering extended mode \write18 enabled. %&-line parsing enabled. **query-astro.tex (./query-astro.tex LaTeX2e <2025-11-01> L3 programming layer <2026-01-19> ...

  • How to extend the `dim` feature in `tkz-euclide` to label the dimension with arrow in diverse direction?
    by Explorer on April 15, 2026 at 10:45 am

    Muzimuzhi has extended the dim feature in tkz-euclide here: However, not all the segments are long enough to label distance "inside", in some case, I need the following "invert"-dim feature: \documentclass[border=5pt]{standalone} \usepackage{tkz-euclide} \usepackage{fourier} \begin{document} \begin{tikzpicture} \tkzDefPoints{0/0/O,3/0/A,1/1/A2,.5/2/C2} \tkzDefRectangle(A2,C2)\tkzGetPoints{B2}{D2} \tkzDrawPolygon[thick,black,fill=yellow!50](A2,B2,C2,D2) \tkzLabelSegment[below](A2,B2){$t$} \draw[thick](A2) --+(0,-.5cm) ++(0,-.25cm) coordinate(tmpA) (B2) --+(0,-.5cm) ++(0,-.25cm) coordinate(tmpB); \draw[thick,latex-] (tmpB) -- +(-.4cm,0); \draw[thick,latex-] (tmpA) -- +(.4cm,0); %%%%%%%%%%%%%% \tkzDrawSegment[thick,dim style/.append style={red,dash pattern={on 2pt off 2pt}},dim={$a$,-.5cm,inner xsep=3pt}](O,A) %%%%%%%%%%%%%% \end{tikzpicture} \end{document} I have not quite familiar with pgf macros, I wonder whether that is possible to learn from muzimuzhi's code to support the "invert"-dim feature, to label these kind of segments distance from the two-side inwards more elegantly?

  • Spacing issues with \hat, \widehat, \tilde, \widetilde (pdflatex)
    by Tork on April 15, 2026 at 5:33 am

    I'm using $\widehat{.}$ and $\widetilde{.}$ in my text for ordinals. As I'm sometimes using subscripts I decided to just always go with these instead of $\hat{.}$ or $\tilde{.}$ as $\hat{x_{n+1}}$ doesn't look good at all. Furthermore, the wide versions look noticably different from the regular ones, such that I would consider it bad notation to switch between both. I only treat \widehat in the following, but the problems I mention also arise with widetilde. Problem 1) Even for ordinals \widehat{.} interferes with brackets (and \hat{.} too, for that matter). I tried to be smart and simply define a new command \what{.} using mathop, mathbin etc. but only \newcommand{\what}[1]{\mathpunct{\widehat{#1}}} fixes the bracket interference (kind of). It's not a solution though, as it interferes with the spacing of \what{t}\in\what{S} and \what{t}', and the space added is not equally distributed. Question 1) Is there a solution here that fixes the spacing issue of \widehat{.} with brackets, while not interfering with \what{t}\in\what{S} and \what{t}'? Problem 2) Defining an equivalence relation on my widehat-versions, I thought \widehat{=} would be a good idea - intuitive notation, at least for me. However, here the spacing again becomes problematic, when comparing t=t to t \widehat{=} t. I figured from one of egreg's answers that I can fix this by defining \newcommand{\whrel}[1]{\mathrel{\widehat{#1}}} and this indeed works. Question 2) Answers to Question 1) will likely not fix t \widehat{=} t. Do I really need to define different commands? I am using \newcommand{\quasiequal}{\whrel{=}}, which I don't intend to change, so this is more of a general question. Is there nothing like a \mathwhatever{.} that specifies "take the spacing of whatever you're using widehat on, and potentially add equal spacing on both sides to keep brackets at bay"? If so, why? Here is a MWE: \documentclass{article} \newcommand{\what}[1]{\mathpunct{\widehat{#1}}}% \newcommand{\wtil}[1]{\mathpunct{\widetilde{#1}}}% %\mathord, \mathop etc. don't work for keeping brackets at bay \newcommand{\whrel}[1]{\mathrel{\widehat{#1}}}%for relations \newcommand{\whord}[1]{\mathord{\widehat{#1}}}%for ordinals \begin{document} hat: $(\hat{t})$ bracket interference. Also, compare $t=t$ to $t \hat{=} t$. widehat: $(\widehat{t})$ bracket interference. $\widehat{t}\in\widehat{S}$, $\widehat{t}'$ look fine. But $t=t$, $t \widehat{=} t$. what: Fixes $(\what{t})$ kinda. But $t=t$, $t \what{=} t$, $t\in S$, $\what{t}\in\what{S}$, $t'$, $\what{t}'$. wtil: Fixes $(\wtil{t})$ kinda. But $t=t$, $t \wtil{=} t$, $t\in S$, $\wtil{t}\in\wtil{S}$, $t'$, $\wtil{t}'$. whrel: Fixes $t \whrel{=} t$. whord: Keeps $\whord{t}\in\whord{S}$ and $\whord{t}'$ but doesn't fix $(\whord{t})$. \end{document}

  • alaligne not working on tikzpicture environment
    by ABV on April 15, 2026 at 3:39 am

    /alaligne (new line space for system score) not working on tikzpicture environment. The basic code is as follow: \documentclass[% border={35pt 100pt 150pt 5pt},% 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% \usepackage{xcolor}% \xdefinecolor{red-undar}{RGB}{179,35,79} \begin{document}% \begin{tikzpicture} \node[anchor=north west, inner sep=0pt] (score) at (0,0) {% \begin{music}% \resetlyrics% \font\A=phvb8t at 10pt% \font\B=phvb8t at 8pt% \setsongraise1{-1.5mm}% \staffbotmarg3\Interligne% \setclef1\treble% \nobarnumbers% \nostartrule% %\startextract% \startpiece%\addspace\afterruleskip% % AQUI EMPIEZOOO \Notes\zw{h}\hu{j}\qsk\hu{l}\en\bar% \Notes\zw{f}\hu{k}\qsk\hu{j}\en\bar% \Notes\zw{g}\hu{i}\sk\en\setdoublebar\bar% \Notes\zw{h}\hu{m}\qsk\hu{l}\en\bar% \Notes\zw{f}\hu{k}\qsk\hu{j}\en\bar\setdoublebar% \Notes\zw{g}\hu{i}\sk\en\alaligne%%\setdoublebar\bar% \Notes\zw{b}\hu{g}\qsk\hu{f}\en\bar% \Notes\zw{c}\hu{e}\qsk\hu{g}\en\setdoublebar\bar% \Notes\zw{g}\hu{i}\qsk\hu{k}\en\bar% \Notes\zw{c}\hu{l}\qsk\hu{n}\en\setdoublebar% \endpiece% %\endextract% \end{music}% }; % CURVA 1 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(-1.1cm,-0.7cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(-1.7cm,-1.2cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(-1.9cm,-1.0cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(-2.0cm,-1.1cm)$); % punto FIN (nota abajo) % % % CURVA 2 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(0.6cm,-0.9cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(0.5cm,-1.1cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(0.2cm,-1.2cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(-0.1cm,-1.2cm)$); % punto FIN (nota abajo) % % % CURVA 3 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(4.1cm,-0.7cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(3.8cm,-1.0cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(3.6cm,-1.0cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(3.2cm,-1.1cm)$); % punto FIN (nota abajo) % % % CURVA 4 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(5.8cm,-0.9cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(5.6cm,-1.1cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(5.4cm,-1.2cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(5.1cm,-1.2cm)$); % punto FIN (nota abajo) % % % CURVA 5 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(9.2cm,-1.3cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(9.1cm,-1.5cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(8.7cm,-1.6cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(8.4cm,-1.6cm)$); % punto FIN (nota abajo) % % % CURVA 6 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(11.0cm,-1.2cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(10.8cm,-1.4cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(10.5cm,-1.5cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(10.2cm,-1.5cm)$); % punto FIN (nota abajo) % % % CURVA 7 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(12.9cm,-0.8cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(12.8cm,-1.0cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(12.4cm,-1.2cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(12.0cm,-1.2cm)$); % punto FIN (nota abajo) % % % CURVA 8 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(14.6cm,-0.6cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(14.5cm,-1.1cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(14.2cm,-1.4cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(13.9cm,-1.5cm)$); % punto FIN (nota abajo) % % \node[anchor=south west] at ($(score.north west)+(1.6cm, -0.6cm)$) % {\small\textbf{Etc.}}; % % \node[anchor=south west] at ($(score.north west)+(6.9cm, -0.6cm)$) % {\small\textbf{Etc.}}; % % \node[anchor=south west] at ($(score.north west)+(0.0cm, -0.2cm)$) % {\small\textbf{a)}}; % % \node[anchor=south west] at ($(score.north west)+(5.1cm, -0.2cm)$) % {\small\textbf{b)}}; % \\ % \node[anchor=south west] at ($(score.north west)+(9.5cm, -0.2cm)$) % {\small\textbf{c)}}; % \node[anchor=south west] at ($(score.north west)+(13.1cm, -0.2cm)$) % {\small\textbf{d)}}; % PUNTOS DE REFERENCIA %\fill[red] ($(score.north west)+(4.4cm,-0.9cm)$) circle (1pt); % INICIO %\fill[blue] ($(score.north west)+(0.5cm,-1.2cm)$) circle (1pt); % FIN %\fill[green] ($(score.north west)+(14.5cm,-0.9cm)$) circle (1pt); % CONTROL 1 %\fill[green] ($(score.north west)+(14.2cm,-1.1cm)$) circle (1pt); % CONTROL 2 \end{tikzpicture} \end{document}% The current output is as follow:

  • Problem with tkz-grapheur package
    by Sebastiano on April 14, 2026 at 8:10 pm

    It is possible that either the package does not behave as I expect, or I am misunderstanding how to use it correctly. According to the manual, the inequality 3x + 2y - 6 >= 0 should represent the half-plane above the line 3x + 2y - 6 = 0, i.e., the region containing points such as (0,3). However, in my code the line is drawn correctly (it passes through (0,3) and (2,0)), but the shaded region does not match the expected half-plane: it appears on the opposite side of the line. What am I doing wrong when using \LinearInequality? Is it a sign convention issue, an internal convention of the package, or do I need to rewrite the expression in a different form to obtain the correct shaded region? \documentclass{article} \usepackage{tkz-grapheur} \begin{document} \begin{GraphTikz}[ x=1cm, y=1cm, Xmin=-3,Xmax=3, Ymin=-3,Ymax=3 ] \DrawAxisGrids[Font=\small]{auto}{auto} \LinearInequality[color=pink,hatch={north east lines}]{3x+2y-6}{>=0} \end{GraphTikz} \end{document}

  • Change page layout for bibliography section only
    by Atcold on April 14, 2026 at 5:46 pm

    I'm using a per-chapter bibliography. I would like to disregard the margin note spacing, and make full use of the page. Using a two page layout is making this hard. This is my macro, but the \checkoddpage is not working I don't know why. \newcommand{\insertChapterBibliography}{% % 1. Sync the page check without forcing a new page \strictpagecheck \checkoddpage % 2. Identify the distance from the left edge of the paper to the text block. % LaTeX measures this as 1 inch + \oddsidemargin (or \evensidemargin). % To get back to exactly 1 inch, we shift by exactly -\sidemargin. \ifoddpage \def\leftshift{-\oddsidemargin} \else \def\leftshift{-\evensidemargin} \fi % 3. Apply the shift using standard [left][right] logic. % We want the final width to be \headwidth. % The math for the right offset to reach \headwidth is: % RightOffset = \linewidth - \headwidth - \leftshift \begin{adjustwidth}{\leftshift}{\dimexpr\linewidth-\headwidth-\leftshift\relax} \begin{multicols}{2} \bibliographystyle{alpha} \bibliography{main} \end{multicols} \end{adjustwidth} } I can try to provide a minimal working example, but I'm not sure how, with all these citations… biblio.tex \documentclass[twoside]{book} \usepackage[includemp, inner=1in, outer=10mm, marginparwidth=161pt, showframe]{geometry} \usepackage{fancyhdr} \usepackage{multicol} \usepackage{changepage} \usepackage{etoolbox} \usepackage{lipsum} \usepackage[sectionbib]{chapterbib} \pagestyle{fancy} \setlength{\headwidth}{468pt} \AfterEndPreamble{% \patchcmd{\thebibliography}{\section*{\bibname}}{\relax}{}{}% \patchcmd{\thebibliography}{\section*{\refname}}{\relax}{}{}% } \newcommand{\insertBib}{% \strictpagecheck\checkoddpage \ifoddpage \def\lshift{-\oddsidemargin} \else \def\lshift{-\evensidemargin} \fi \begin{adjustwidth*}{\lshift}{\dimexpr\linewidth-\headwidth-\lshift\relax} \begin{multicols}{2} \scriptsize \bibliographystyle{alpha} \bibliography{biblio} \end{multicols} \end{adjustwidth*} } \begin{document} \include{odd} \include{even} \end{document} biblio.bib @book{key1, author = {Author, A.}, year = {2001}, title = {Title One}, publisher = {Publisher}, } @book{key2, author = {Writer, B.}, year = {2002}, title = {Title Two}, publisher = {Publisher}, } odd.tex \chapter{Odd page bibliography} \lipsum[1-2] \cite{key1} \cite{key2} \insertBib even.tex \chapter{Even page bibliography} \lipsum[1-4] \cite{key1} \cite{key2} \insertBib

  • Best way to define new operator with limits
    by murray on April 14, 2026 at 1:05 pm

    Is this an appropriate way to define a new math operator-with-limits (for a "box product"), like \bigcup, assuming use of lua-unicode-math and lualatex? % !TEX program = lualatex \documentclass{article} \usepackage{fontspec} \usepackage{lua-unicode-math} \setmainfont{TeX Gyre Termes X} \setmathfont{STIX Two Math} \usepackage{amsmath} \usepackage{scalerel} \AtBeginDocument{% \DeclareMathOperator*{\bigsquareop}{\scalerel*{\lgwhtsquare}{\bigcup}} \DeclareRobustCommand{\BoxProd}{\DOTSB\bigsquareop}% } \begin{document} $\bigcup_{i \in I} X_{i} \quad \BoxProd_{i \in I} X_{i}$ and \[ \bigcup_{i \in I} X_{i} \quad \BoxProd_{i \in I} X_{i} \] \end{document} Related: How to create my own math operator with limits?, How to create a new math operator?, https://tex.stackexchange.com/a/552914/13492.

  • How to show section slides in ltx-talk?
    by Polly Nomial on April 14, 2026 at 3:53 am

    Edit: follow-up question here: How to highlight the current subsection at the beginning of each subsection in ltx-talk? How do I show the start of a new section, either as itself a "section slide" or even in the "body" slides? \DocumentMetadata{ lang = de, pdfstandard = ua-2, pdfstandard = a-4f, tagging=on, tagging-setup={math/setup=mathml-SE} } \documentclass{ltx-talk} \EditInstance{footer}{std}{ element-order = {title, subtitle, framenumber} } \title{My talk} \subtitle{I want to show sections} \institute{University of Stack Exchange} \date{} \begin{document} \begin{frame} \maketitle \end{frame} \section{Motivation} \begin{frame}\frametitle{Here is a frame title} Some text. \end{frame} \section{Real talk} \begin{frame}\frametitle{Here is a frame title} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \end{frame} \end{document}

  • In Luatex Hebrew text not working after update miktex (april 13 2026)
    by Cook on April 13, 2026 at 2:46 pm

    After updating miktex today I get the message Undefined control sequence. \mathemptydisplaymode in the luabidi.sty. I removed miktex completely and installed it, the same result. Could you please help me? It’s a 4,000-page book in Greek, Hebrew, and Dutch that was compiled over the past three years. % !TeX TS-program = lualatex \documentclass[11pt,a4paper,twoside]{book} %%%%%%%%%%%%------following loaded before biblatex` \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{dutch} \setotherlanguage{greek} \setotherlanguage{hebrew} %%<<-------------------Greek/Hebrew \setmainfont[Ligatures=TeX]{Charis SIL} \defaultfontfeatures{Ligatures=TeX} \newfontfamily\hebrewfont{Ezra SIL‬‬}[Script=Hebrew,Contextuals=Alternate]%\texthebrew %%Greek \newfontfamily{\greekfont}[Script=Greek, Scale=MatchUppercase, Ligatures=TeX]{SBL Greek} \begin{document} Nederlands: gewoon een zinnetje Grieks: \textgreek{Οὗτος δῶρα} Hebrew: \texthebrew{תְהֹ֑ום} \end{document}

  • Solving cyclic overlap of occlusion for triangles
    by Jasper on April 13, 2026 at 5:03 am

    I want to pose a question to resolve the issue described in https://stackoverflow.com/a/32463868/32395400, by simplicial partitioning. There doesn't seem to be a precedent for this, so I made a little document: \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \foreach \ang/\col in {0/red,120/green,240/blue} { \draw[\col,ultra thick] (\ang:1) -- +(\ang-90:3) -- +(\ang+90:3); } \end{tikzpicture} \end{document}

  • Changing a conjunction in BibLaTeX?
    by Knudsen on April 13, 2026 at 12:34 am

    Under normal circumstances, BibLaTeX uses the same coordinating conjunction "and" for two authors that may have their names in one script (Latin, for now) and also to join two translator names that could have their names in another script (Cyrillic in this example). You may change the scripts above to any other pair and the problem remains the same. This has the unfortunate consequence of placing a pair of names in English joined by a Russian conjunction in the text as seen here: generated by the simple MWE: \documentclass{article} \begin{filecontents}[overwrite]{isaac.bib} @BOOK{isaacson:en, author = {Isaacson, Eugene and Keller, Herbert Bishop}, title = {Analysis of Numerical Methods}, publisher = {Dover Publications}, address = {Mineola, New York}, year = {1994}, langid = {english}, } @BOOK{isaacson:ru, author = {Isaacson, Eugene and Keller, Herbert Bishop}, title = {Анализ численных методов}, author-ru = {Э. Исааксон and Х. Б. Келлер}, translator = {В. В. Пчелинцев and L. L. Пчелинцев}, publisher = {Мир}, address = {Москва}, year = {1976}, langid = {russian}, } @book{rudin:zh, author = {Walter Rudin and Elena Rudin}, title = {实分析与复分析}, translator = {戴牧民 and 张更容}, publisher = {机械工业出版社}, address = {北京}, year = {2006}, langid = {chinese-simplified}, } \end{filecontents} \usepackage{babel} \babelprovide[import, main]{american} \babelprovide[import]{russian} \babelfont{rm}{NewComputerModern10} \babelfont{sf}{NewCMSans10-Regular} \babelfont{tt}{NewCMMono10-Regular} \babelprovide[import]{chinese-simplified} \babelfont[chinese-simplified]{rm}[ Scale = MatchLowercase, ItalicFont = Noto Serif CJK SC, ItalicFeatures = {FakeSlant=0} ]{Noto Serif CJK SC} \usepackage[style=authoryear,language=auto,autolang=other]{biblatex} \addbibresource{isaac.bib} \begin{document} Citing \textcite{isaacson:en}, \textcite{isaacson:ru}, \textcite{rudin:zh}. \printbibliography \end{document} It would be desirable to: Have one conjunction to be used with the authors names (and) that would show up in the Biblio list and in the main text, that is mostly in Latin. Have another to be used with the translator names (и) or inside the record, that is mostly in Cyrillic The russian.lbx file (as all others I know of) seems to have only one coordinating conjunction. and = {{и}{и}}, Is there a way to separate them, or define a new one, to be used in the bibliographical tags?

  • Graphing a system of inequalities in 3 dimensions
    by Henry Timmons on April 11, 2026 at 2:14 pm

    I am trying to graph a system of 3 inequalities in 3 dimensions. These ineuqalities are: y-z>=1/2x, x-z>=0, and x+y>=3z. Currently I am struggling to get even a basic output. My input is: \documentclass[12pt, a4paper]{article} \usepackage{float, ulem, amsmath, amsthm, amssymb, pgfplots, tikz} \pgfplotsset{width=10cm,compat=1.9} \usepgfplotslibrary{external, fillbetween} \tikzexternalize \begin{document} \begin{tikzpicture} \begin{axis}[domain=0:10,y domain=0:10] \addplot3[surf] {y-(\frac{1}{2}*x)}; \addplot3[surf] {x}; \addplot3[surf] {\frac{x+y}{3}}; \end{axis} \end{tikzpicture} \end{document} I am getting the error: ! Package tikz Error: Sorry, the system call 'pdflatex -halt-on-error -interact ion=batchmode -jobname "mwe-figure0" "\def\tikzexternalrealjob{mwe}\input{mwe}" ' did NOT result in a usable output file 'mwe-figure0' (expected one of .pdf:.j pg:.jpeg:.png:). Please verify that you have enabled system calls. For pdflatex , this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or so mething like that. Or maybe the command simply failed? Error messages can be fo und in 'mwe-figure0.log'. If you continue now, I'll try to typeset the picture. See the tikz package documentation for explanation. Type H <return> for immediate help. ... l.19 \end{tikzpicture} ?

  • How to get non-compilable code without the % symbol?
    by Cham on April 10, 2026 at 3:24 pm

    While I know that I can use % to comment out a line of code, I would like to get the same result (i.e. non-compiling text) in the middle of a block of text, like this (the brackets are here just to show the example): Blabla blabla bla bla bla [some non-compiling comments] bla bla blabla blab I don't want to write something like the following (i.e splitting the text paragraph): Blabla blabla bla bla bla % some non-compiling comments bla bla blabla blab Is it possible? I guess that I'll need to use some non-compiling macro, like \nc{} but I would prefer not to use something like it. In Mathematica, we have the ability to insert non-compiling codes with (* non-compiling text *)

  • Skull emoji 💀 in pdfLaTeX
    by Bryan on April 9, 2026 at 11:47 pm

    I’d like to include the skull emoji 💀 in a document compiled with pdfLaTeX but with colors similar to how it displays on my device in other contexts. I can get a skull with fontawesome, but it’s not quite the same: \documentclass{scrartcl} \usepackage{fontawesome5} \begin{document} \faSkull \end{document} creates a skull like which is black/white inverted compared to how my device normally shows 💀, where the skull is white, and the eye sockets are black. I cannot change to LuaTeX because what I am compiling is like, super large. I also tried something along the lines of \contourlength{0.5pt} and \contour{black}{\color{white}\faSkull} but that did not work well. Can anyone help get 💀 with black eye sockets on a white skull or something close to it? Thanks!