Hot
- Test if a macro argument matches saved sequence of tokens [duplicate]by Alex Nelson on June 15, 2026 at 6:57 pm
In plain TeX (not eTeX, and definitely not LaTeX), I am trying to test if a macro argument was just previously used (the last time the macro was invoked). The idea is I am trying to create an extremely crude "index", and I want to print all the references to the same entry on the same line. (The entries are already sorted, this is literally just a printing problem. I cannot determine if the current entry coincides with the entry "currently being worked on".) A minimal working example: \def\currentparam{} \def\printrefs#1#2{% \if#1\currentparam% -- apparently always false!? , #2% \else% \gdef\currentparam{#1}% \par\noindent#1 #2% \fi} \printrefs{Hilbert, David}{17} \printrefs{Hilbert, David}{23} \printrefs{Hilbert's programme}{2} \printrefs{Martin-L{\accent "7F o}f, Per}{3} \printrefs{Martin-L{\accent "7F o}f, Per}{19} \bye This will (sadly) print five lines, looking like: Hilbert, David 17 Hilbert, David 23 Hilbert's programme 2 Martin-L{\accent "7F o}f, Per 3 Martin-L{\accent "7F o}f, Per 19 Instead of the sought behavour of printing three lines: Hilbert, David 17, 23 Hilbert's programme 2 Martin-L{\accent "7F o}f, Per 3, 19 Something is going wrong with the \if#1\currentparam line to always evaluate to false, but the solution to the bug eludes me.
- Lbl and Lbody Issues with Theorem Numberingby Michael Santana on June 15, 2026 at 5:42 pm
When I check the following using Adobe Acrobat's Accessibility Checker, my theorem numbering gets hit with Lbl and Lbody issues. Is there a way to avoid that? I know that getting rid of the numbers will do it, but I was hoping to keep the numbers for referencing later on. (First ever time posting, so apologies ahead of time for any poor etiquette) \DocumentMetadata{ lang = en, tagging = on, pdfversion = 2.0, pdfstandard = UA-2, pdfstandard = A-4f, tagging-setup = {math/setup=mathml-SE, extra-modules={verbatim-mo}} } \documentclass[10pt]{article} \usepackage{unicode-math} \usepackage{amsthm} \newtheorem{thm}{Theorem} \title{MWE} \begin{document} \maketitle \begin{thm} First Theorem \end{thm} \begin{thm} Second Theorem \end{thm} \end{document}
- With babel-french, fnpct and lualatex, footnotes not typeset according to the French typographic rules anymoreby Denis Bitouzé on June 15, 2026 at 3:02 pm
The following MCE: \documentclass[french]{article} % \usepackage{fnpct} \usepackage{babel} \pagestyle{empty} \begin{document} Foo\footnote{Bar.}\footnote{Baz.}. \end{document} compiled with current lualatex, typesets the footnotes according to the French typographic rules: Bar. Baz. But, if fnpct is loaded, that's not the case since the footnotes are typeset as follows: ¹Bar. ²Baz. At least with TeX Live 2025, we got the expected result even when fnpct was loaded. Here's what has changed since then: LuaHBTeX 1.22.0 (TL 2025) → 1.24.0 (TL 2026) keyval.sty 2022/05/29 v1.15 → 2026-05-17 v1.15 expl3.sty 2025-10-24 → 2026-05-26 l3backend-luatex.def 2025-10-09 → 2026-02-18 babel.sty 2025/10/22 v25.14 → 2026/06/14 v26.9 french.ldf 2025-08-15 v4.0e → 2026-06-06 v4.1a Do you know how to nowadays retrieve the previous, expected, behavior? Edit With current TL 2026, the result is the same with pdftex and with lualatex but, with TL 2025, the result is the expected one: not with pdflatex with lualatex.
- Package unicode-math breaks command \subref from package subcaptionby nathdwek on June 15, 2026 at 2:29 pm
When unicode-math is loaded, the below MWE does not resolve \subref. \documentclass{article} \usepackage{unicode-math}%offending line \usepackage{subcaption} \begin{document} \begin{figure} \subcaptionbox{A\label{A}}{} \caption{subref to A:\subref{A}} \end{figure} \end{document} MWE above compiled with latexmk -xelatex on latest MacTeX, results in: Reference `sub@a' on page 1 undefined on input line 9
- unicode-math set to AMS style digamma, why \updigamma display missingby mathrm alpha on June 15, 2026 at 11:24 am
I tried using unicode-math to set the AMS-style digamma, but why didn't show up when to set the upright style AMS-style digamma. \documentclass{article} \usepackage{unicode-math,amsfonts}\usepackage{l3draw} \ExplSyntaxOn \NewDocumentCommand{\slantbox}{O{0}m} { \leavevmode \mode_if_math:TF { \mrma_slantbox_math:nn {#1} {#2} } { \mrma_slantbox_do:nn {#1} {#2} } } \box_new:N \l__mrma_slantbox_box \cs_new_protected:Nn \mrma_slantbox_math:nn { \mathpalette\__mrma_slantbox_math_i:nn { {#1}{#2} } } \cs_new_protected:Nn \__mrma_slantbox_math_i:nn { \__mrma_slantbox_math_ii:nnn #1#2 } \cs_new_protected:Nn \__mrma_slantbox_math_ii:nnn {% #1 = style, #2 = slant amount, #3 = material \mrma_slantbox_do:nn {#2} {$\use:c{m@th}#1#3$} } \cs_new_protected:Nn \mrma_slantbox_do:nn { \group_begin: \hbox_set:Nn \l__mrma_slantbox_box {#2} \hbox_to_wd:nn { \box_wd:N \l__mrma_slantbox_box } { \hss \draw_begin: \draw_transform_xslant:n {#1} \draw_set_baseline:n {0pt} \draw_box_use:N \l__mrma_slantbox_box \draw_end: \hss } \group_end: } \ExplSyntaxOff \NewDocumentCommand{\unslant}{O{-0.25}m}{\slantbox[#1]{#2}} \let\digamma\undefined \DeclareMathSymbol{\digamma}{\mathord}{AMSb}{`z} \let\updigamma\undefined \newcommand{\updigamma}{\unslant\digamma} \begin{document} $\digamma\updigamma$ \end{document} References: How to fix force unslant error in XeTeX/LuaTeX?
- Changing colour in title slideby Carl on June 15, 2026 at 9:05 am
How I can generate the first slide not in black ground colour, but such that: Have exactly the same ground colour of the second slide; “Presentation Title” and “……..” in the same blue color of “Jabberwocky” in second slide; “Presentation Subtitle” in the same colour of “Lewis Carroll”, and “Author’s name” in the same colour of the text “’Twas brilling, and… ” (black, I presume). Below, please find the code: \documentclass{beamer} \usetheme[microtype]{fibeamer} \title{Presentation Title} \subtitle{Presentation Subtitle} \author{Author's name} \begin{document} \maketitle \section{Light Frames} \subsection{Blind Text} \begin{frame}{Jabberwocky} \framesubtitle{Lewis Carroll}% \begin{tikzpicture}[overlay,remember picture] \node[anchor=south east,xshift=-30pt,yshift=35pt] at (current page.south east) { %\includegraphics[width=35mm]{resources/jabberwocky-dark} }; \end{tikzpicture}% 'Twas brillig, and the slithy toves\\ Did gyre and gimble in the wabe;\\ All mimsy were the borogoves,\\ And the mome raths outgrabe.\\\bigskip “Beware the Jabberwock, my son!\\ The jaws that bite, the claws that catch!\\ Beware the Jubjub bird, and shun\\ The frumious Bandersnatch!”\\ \end{frame} \end{document}
- Wrong subscript position in a customized integralby CarLaTeX on June 15, 2026 at 8:29 am
I was trying to answer another question, but I can't create a customized integral that has the subscripts in the correct position. Why? egreg has already answered the other question. Hence, I'm not interested in the solution of the specific problem, but I'd like to know why mine doesn't work. \documentclass{article} \usepackage{amsmath} \usepackage{esint} \DeclareMathOperator{\oiiint}{\mathchoice{\oiint\mkern-24.3mu\int\mkern2mu} {\oiint\mkern-18mu\int\mkern2mu} {\scriptstyle\oiint\mkern-15.7mu\int\mkern2mu} {\scriptscriptstyle\oiint\mkern-13.15mu\int\mkern2mu}} \begin{document} $\oiiint^{A}_{B} \quad \int^{A}_{B}$\\ \[\oiiint^{A}_{B} \quad \int^{A}_{B}\] \[C_{\oiiint^{A}_{B}} \quad C_{\int^{A}_{B}}\] \[D_{C_{\oiiint^{A}_{B}}} \quad D_{C_{\int^{A}_{B}}}\] \end{document}
- Print service tells me the gradient I created with TikZ is longer than the Earth's circumferenceby flyx on June 15, 2026 at 8:08 am
I am designing playing cards, and I use a print service (https://meinspiel.de if that's relevant). I create my cards with a heading styled with tikz, like so: \documentclass{article} \usepackage[paperwidth=65mm,paperheight=97mm, margin=7mm]{geometry} \pagestyle{empty} \RequirePackage[x-4]{pdfx} \setCMYKcolorprofile{coated_FOGRA39L_argl.icc} {Coated FOGRA39} {FOGRA39 (ISO Coated v2 300\% (ECI))} {http://www.argyllcms.com/} \usepackage[overprint]{colorspace} \RequirePackage{tikz} \usetikzlibrary{positioning,shapes,calc,backgrounds} \definecolor{blue1}{cmyk}{0.6818,0.3939,0,0.7412} \definecolor{blue2}{cmyk}{0.6339,0.2768,0,0.5608} \tikzset{ pics/heading/.style={code={ \node[anchor=north west] (heading) at ($(current page.north west) + (7, -7)$) {\textoverprint[0]{\textcolor{white}{\textsf{#1}}}}; \begin{scope}[on background layer] \fill[top color=blue1, bottom color=blue2] (current page.north west) -- (heading.south west-|current page.north west) -- (heading.south east) .. controls +(right:5) and +(left:5) .. +(10, 2) -| (current page.north east) -- cycle; \end{scope} }} } \begin{document} \begin{tikzpicture}[x=1mm, y=1mm, remember picture, overlay] \pic {heading={My Heading}}; \end{tikzpicture} \end{document} As you can see, I set the card's dimensions, specify PDF/X-4 output and the ISO Coated v2 300% (ECI) color profile just like the print service requires. Then I enable overprint (unsure whether this is relevant for my issue) for black text (but the heading is white, so I disable it there again). I define a tikz pic to use for drawing the heading of each card. Finally, I create a document with a single card that uses that pic as heading. The result looks like this: I gave that to the printing service, and they printed the heading as two areas split horizontally with different colors, instead of the gradient. When I asked them what the problem is, they answered this (translated from German): The data is set up in a strange way. The gradient consists of two parts, which lead to it being cut back during conversion. Also, the size of the gradient is extremely huge. I don't exaggerate. It has a width of 352777777777,425mm, i.e. 352.777,78km! While we do have meter scale from time to time, I've never seen kilometers. (The circumference of Earth at the equator is about 40.075 km to put that into context.) It may be that this is why there was an error during conversion. We suggest to embed the gradient as picture to avoid such errors. Also, when gradients are pictures, the print is cleaner and smoother. So, I guess my question is: How do I create the gradient so that the print service is happy? I don't feel like I have enough control over whatever tikz does here.
- Heavily illustrated source available latex booksby worldsmithhelper on June 15, 2026 at 7:45 am
I've seen an acquaintance which uses InDesign struggle with things which could be easily automated in LaTex. They are writing a tabletop rpg book which has lots of varied format illustrations, generally a two column layout, text flowing around non square pictures and full page art. I've had a look at http://framabook.org/tout-sur-latex/ and other entries from List of books written in LaTeX with the source available Yet i did find that they do not make a convincing arguement to switch away from InDesign. Can someone think of an existing book for TTRPGs or that is otherwise art heavy and fun to browse about a topic that doesn't feature equations promently¹ which has available source code? [1] Equations can be scary to some and would detract from the point that it LaTex can be used for something so "artsy".
- Why can't newunicodechar be used with unicode variant characters?by mathrm alpha on June 15, 2026 at 5:16 am
I found that inputting Unicode + variant character caused an error in LaTeX. See the newunicodechar package documentation for explanation. Type H <return> for immediate help. ... l.4 \newunicodechar{ℋ︀}{$\mathcal{H}$} % + FE00 variant style The first argument to \newunicodechar is either too long or an invalid sequence of bytes The TeX code is as follows: \documentclass{article} \usepackage{mathrsfs,newunicodechar} \newunicodechar{ℋ︀}{$\mathcal{H}$} % + FE00 variant style \newunicodechar{ℋ︁}{$\mathscr{H}$} % + FE01 variant style \begin{document} ℋ︀ vs ℋ︁ \end{document}
- Force upright native ∯ \oiint style no working in zooming/uprightby mathrm alpha on June 15, 2026 at 3:26 am
When I tried to apply an upright native \oiint style, I used force unslant and found that it wasn't amplified to the upright \oiint style. \documentclass[a4paper]{article} \usepackage{esint} \newsavebox{\foobox} \newcommand{\slantbox}[2][0]{\mbox{% \sbox{\foobox}{#2}% \hskip\wd\foobox \pdfsave \pdfsetmatrix{1 0 #1 1}% \llap{\usebox{\foobox}}% \pdfrestore }} \newcommand\unslant[2][-.25]{\slantbox[#1]{$#2$}} \newcommand{\uoiint}{\unslant{\oiint}} \begin{document} \[\uoiint\] \end{document} References: Upright Greek font fitting to Computer Modern
- How to fix force unslant error in XeTeX/LuaTeX?by mathrm alpha on June 15, 2026 at 3:01 am
Although it truly forces unslant, it will cause an error on XeTeX/LuaTeX. https://tex.stackexchange.com/a/230220/329597 The TeX code is as follows: % Source - https://tex.stackexchange.com/a/230220 % Posted by Steven B. Segletes, modified by community. See post 'Timeline' for change history % Retrieved 2026-06-15, License - CC BY-SA 3.0 \documentclass[a4paper]{article} \newsavebox{\foobox} \newcommand{\slantbox}[2][0]{\mbox{% \sbox{\foobox}{#2}% \hskip\wd\foobox \pdfsave \pdfsetmatrix{1 0 #1 1}% \llap{\usebox{\foobox}}% \pdfrestore }} \newcommand\unslant[2][-.25]{\slantbox[#1]{$#2$}} \begin{document} $\alpha\beta\gamma\delta\epsilon\eta\mu\phi\sigma\tau\omega\xi\psi\zeta$\par \unslant\alpha\unslant\beta\unslant\gamma\unslant[-.1]\delta\unslant[-.1]\epsilon% \unslant\eta\unslant\mu\unslant\phi\unslant\sigma\unslant\tau\unslant\omega% \unslant[-.15]\xi\unslant\psi\unslant[-.15]\zeta \end{document} The error code is as follows: <argument> ...alpha $}\hskip \wd \foobox \pdfsave \pdfsetmatrix {1 0 -.25 1}... l.19 \unslant\alpha \unslant\beta\unslant\gamma\unslant[-.1]\delta\unslant[-.... The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.
- Cover page in LaTeXby Jos on June 14, 2026 at 7:38 pm
How can I get this cover page using LaTeX? I have tried using this code, but I can´t get it. This is a cover page that I want for my dissertation. \documentclass{article} \usepackage{tikz} \usepackage{graphicx} \begin{document} \begin{titlepage} \begin{tikzpicture}[remember picture, overlay] % Your logo \node[anchor=north west] at (1.5in,-1.0625in) {% \includegraphics[width=1in,height=1.0625in]{example-image-duck} }; % Line 1: arriba (horizontal) \draw[line width=2pt] (3in, -1.5in) -- (7in, -1.5in); % Line 2: abajo (horizontal, más cerca) \draw[line width=1pt] (3in, -1.8in) -- (7in, -1.8in); % ===== TRES LÍNEAS VERTICALES ===== % La imagen termina en: -1.0625in - 1.0625in = -2.125in % Línea vertical 1 (desde abajo de la imagen hacia abajo) \draw[line width=1pt] (1.9in, -2.5in) -- (1.9in, -8in); % Línea vertical 2 (centro, espaciada 0.5in) \draw[line width=2pt] (2.1in, -2.5in) -- (2.1in, -8in); % Línea vertical 3 (derecha, espaciada 0.5in) \draw[line width=1pt] (2.3in, -2.5in) -- (2.3in, -8in); \end{tikzpicture} \begin{tikzpicture}[remember picture, overlay] \node[anchor=south west] at (1.5in,-8.8125 in) {% \includegraphics[width=1in,height=1.0625in]{example-image-duck} }; \end{tikzpicture} \end{titlepage} \end{document}
- Making a question paper in Hindi in LaTeXby SCTU on June 14, 2026 at 6:16 pm
I am making a question paper in Hindi using the 'exam' class. The numbering of the parts of a question are as "(a),(b), and so on" by default. I want them to be as "(क),(ख),(ग) and so on" i.e. the alphabetical order of the letters of the vyanjan varna in the Devanagari script. How can I achieve that ?
- lua, how to tex.print %%? [duplicate]by projetmbc on June 14, 2026 at 4:58 pm
I fail to modify the following working code to change the printing of ** into %%. How can I do that? I fear that the answer is easy... Don't judge me, please. 🙂 % !TEX TS-program = lualatex \documentclass[varwidth, border = 3pt]{standalone} \usepackage{verbatim} \begin{document} \directlua{ local test = { "1", "**", "\\three", "++++" } tex.print("\\begin{verbatim}") for i, x in ipairs(test) do tex.print("[" .. i .. "] " .. x) end tex.print("\\end{verbatim}") } \end{document}
- Symbol of cannonby Sebastiano on June 14, 2026 at 12:15 pm
I want to reproduce a cannon considering in old style (one of these) considering that I have not seen a specific symbol. Does anyone know if there’s a symbol that resembles one of this image? I have not found anything.
- How to create a double line borders with tabularray? [duplicate]by Ryan Kong on June 14, 2026 at 11:24 am
tldr: I want to have an exact replica of the following table with tabularray. As you can see, the blue borders are double-lined, and the first horizontal double line only intersect the first vertical double line on from the left, and intersect the second one from the right. They do not break the table into two. What I tried: \documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}{ colspec = { X[c,m,mode=math] X[c,m,mode=math] X[c,m,mode=math] X[c,m,mode=math] }, width=8cm, rulesep = 1pt, hline{1,Z} = {wd=1.5pt}, hline{2} = {1}{-}{leftpos=1,rightpos=0,wd=0.5pt}, hline{2} = {2}{-}{leftpos=1,rightpos=0,wd=0.5pt}, vline{2} = {1}{-}{wd=0.5pt}, vline{2} = {2}{-}{wd=0.5pt}, vline{1,Z} = {wd=1.5pt}, vline{3,4} = {wd=0.5pt}, } 1 & 2 & 3 \\ 4 & 5 & 6 \end{tblr} \end{document} Result: The table breaks into 2, and the horizontal and vertical lines do not intersect like the Norway flag. Thanks in advance.
- \dbend symbol not working in macro encapsulationby youthdoo on June 14, 2026 at 10:08 am
The dangerous bend symbol is not working when encapsulated in a macro. \documentclass[11pt]{article} \usepackage{fontspec}\setmainfont{STIX Two Text} \usepackage{unicode-math}\setmathfont{STIX Two Math} \usepackage[b5paper,margin=2cm,top=1cm]{geometry} \usepackage{graphicx} \usepackage{manfnt} \newcommand\danger{% \par\noindent \hangindent2em \hangafter1 \makebox[2em][l]\dbend% } \begin{document} \par\noindent \hangindent2em \hangafter1 \makebox[2em][l]\dbend NORMAL paragraph with NORMAL wrapping paragraph content paragraph content paragraph content paragraph content paragraph content paragraph content paragraph content paragraph content paragraph content paragraph content \danger Problematic paragraph! \end{document} Observations: Currently, the first paragraph has the dangerous bend symbol rendered correctly. The second paragraph, while seemingly equivalent in terms of \dbend symbol use, renders a small square for the symbol. If we remove the unicode-math line, both paragraphs work. But I do need the packages for my document. So my questions are: why is unicode-math not working with \dbend? And even if they don't work together, why is the macro encapsulation causing further problems?
- Table Captions in kaobook cause `! TeX capacity exceeded`by Floris on June 14, 2026 at 9:19 am
I have tried this with both the latest release of kaobook and the latest version in the main branch. This is an MWE, which includes my current setup and mirrors the compilation using xelatex. Any advice would be greatly appreciated. % !TEX program = xelatex \documentclass{kaobook} % Load siunitx to provide the 'S' column type used in your table \usepackage{siunitx} \usepackage{booktabs} \begin{document} \mainmatter \chapter{Testing Memory Error} % This section is designed to trigger the "TeX capacity exceeded" % error seen in kaobook. \begin{table}[htbp] \centering % The \caption{} command is the likely trigger for the recursion loop in kaobook \caption[ML on ds2]{Results from our trained models on ds2} \label{tab:test} \begin{tabular}{lSSS} \toprule {blocking} & {n\_pairs} & {n\_pred} & {pred\_rate} \\ \midrule Title Canopy & \num{1883498} & \num{43085} & \num{0.0228} \\ bibhash & \num{7374} & \num{7374} & \num{0.9909} \\ attr. bl. & \num{441997} & \num{7876} & \num{0.0178} \\ \bottomrule \end{tabular} \end{table} \end{document} The problem goes away when I use a table* environment instead. I previously thought that this may be connected to my use of the packages caption and/or subcaption, but removing those as dependencies did not solve my problem. Now, I am assuming that kaobook does something weird with table captions?
- fix spacing in ∰ \oiiintby mathrm alpha on June 14, 2026 at 5:59 am
Although I used his/her method and got \oiiint, the not big display mode spacing wasn't handled well. https://tex.stackexchange.com/a/404609/329597 \documentclass{article} \usepackage{esint} \newcommand{\oiiint}{\oiint \hspace{-13.5pt} \int} \begin{document} $A\oiiint B$\\ \[A \oiiint B\] \end{document}
- Looking for a automatic online Latex compilation [closed]by Seb on June 14, 2026 at 5:58 am
I'm working on a digital communication project at the municipal level. I'm looking for a free tool (no budget at this stage) to compile a LaTeX file hosted on one of my servers. My LaTeX code is therefore located on my server, and I want a user (who knows the URL of this file) to be able to submit it to an online compiler such as latexonline.cc. I'm contacting you simply to find out if there are other online compilation tools that can take a URL as a parameter and automatically compile my LaTeX code? Thank you.
- TikZ snail's 🐌 outline rotation text layoutby mathrm alpha on June 14, 2026 at 2:31 am
Although this was mentioned last time: TeX chinese image poetry image text layout However, it seems no one has mentioned the layout of the snail's rotating circle text in the TeX code. Source: https://jedi.nehs.hc.edu.tw/newsletter/306/poem.html I wrote a LaTeX program that rotates text, but the result isn't quite like this image; it's just a reference to the circle rotation text format. Furthermore, the "比羚羊還要快。" part is missing display. \documentclass{article} \usepackage{tikz,xeCJK} \usepackage[margin=0.5in]{geometry} \setCJKmainfont{Noto Sans CJK TC} \usetikzlibrary{decorations.text} \begin{document} \centering \begin{tikzpicture} % Define colors based on the image \definecolor{snailbody}{RGB}{240, 200, 180} \definecolor{shellbase}{RGB}{220, 170, 150} % Body and Tail \fill[snailbody] (-3.5, 0.5) .. controls (-4, -1) and (-3.5, -3.5) .. (0, -3.5) -- (6, -2.5) -- (0, -2.8) .. controls (-2, -2.8) and (-3, -1) .. (-3.5, 0.5); % Head \fill[snailbody] (-3.5, 0.5) circle (0.9); % Antennae \draw[snailbody, line width=4pt] (-3.9, 1.2) -- (-4.3, 2.6); \fill[snailbody] (-4.3, 2.7) circle (0.2); \draw[snailbody, line width=4pt] (-3.1, 1.2) -- (-2.9, 2.6); \fill[snailbody] (-2.9, 2.7) circle (0.2); % Shell (large circle) \fill[shellbase] (0.5, 0) circle (3.7); %text parts \path [ decorate, decoration={ text along path, text={背著重重的家,上山下海,尋找食物,我總比別人慢一步,我想如果我拋棄沉重的家,我一定爬得比羚羊還要快。}, text align=center } ] (0.5, 0) ++(180:4.0) arc (180:0:4.0); \end{tikzpicture} \end{document} Although there are similar: How to fine tune rotation of text along circular path? However, There was no mention of a text rotation format resembling a snail's outline.
- Making only hyperref links to figures blue [closed]by X3nius on June 14, 2026 at 2:13 am
Is there a possibility to only make the hyperref links to figures blue? \documentclass[a4paper,10pt]{article} \usepackage{hyperref} \hypersetup{ colorlinks = true, linkcolor = blue } \usepackage[style=numeric, defernumbers, backend=biber]{biblatex} \addbibresource{sources.bib} \begin{document} \tableofcontents \section{Section 1} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \subsection{Subsection 1} Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\\\\ You can now see \hyperref[f1]{Figure 1} \begin{figure}[h] \caption{This is a triangle} \label{f1} \end{figure} \nocite{*} \printbibliography \end{document} and only Figure 1, Figure 2 shall be printed in blue. However, in this case, also the table of contents is printed in blue and - I'm wondering why - the link in the bibliography is printed in pink? How can I make pink to "normal" here?
- Flip edition "≝" Vertical proportions, eliminating redundant \scriptstyleby mathrm alpha on June 13, 2026 at 11:02 pm
Why does \overset{\mathrm{def}}{=} display correctly as ≝, but when I use \overset{=}{\mathrm{def}} (not use \scriptstyle) the letters are too large and the equals sign becomes too small? \documentclass{article} \usepackage{amsmath} \begin{document} $\overset{\mathrm{def}}{=}$ and $\overset{=}{\mathrm{def}}$ \end{document} Although using \scriptstyle fixed the display, the command still looks complicated and requires typing extra \scriptstyle command codes. \documentclass{article} \usepackage{amsmath} \begin{document} $\overset{\mathrm{def}}{=}$ and $\overset{=}{{\scriptstyle \mathrm{def}}}$ \end{document}
- Coil decoration on curved path looks strangeby nogrodrigo on June 13, 2026 at 3:52 pm
I am trying to achieve something like this in TikZ: The black path should go straight up and the red one should go down bent to the right, both must look like a coil. I have tried to do this using bezier curves and arcs, but the coil decoration of the bent path looks very strange, it's pointy in some parts. What am I doing wrong? MWE: \documentclass{article} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \begin{document} \begin{tikzpicture} \draw[-latex, decorate, decoration = {coil, aspect = 1.2}, color = red] (0,2) arc (90:-90:1); \draw[-latex, decorate, decoration = {coil, aspect = 1.2}] (0,0) -- (0,2); \draw[-latex, decorate, decoration = {coil, aspect = 1.2}] (3,0) -- (3,2); \draw[-latex, decorate, decoration = {coil, aspect = 1.2}, color = red] (3,2) .. controls (4,2) and (4,0) .. (3,0); \end{tikzpicture} \end{document}
- help me create my titlepageby Chamanga on June 13, 2026 at 11:58 am
I follow many articles in order to create my titlepage that meet the given standard titlepage but no success. here my preamble : \documentclass[a4paper,12pt]{report} \usepackage[margin=1in]{geometry} % define the margins on a layout paper for print \usepackage[french,american]{babel} % define text languages, second language is always the principal layout \usepackage{times} % define text policy 'times new roman' \usepackage[T1]{fontenc} % for special characters \usepackage[utf8]{inputenc} % international characters \usepackage{amssymb,amsthm,mathtools} % for symbols, definitions, and math symbols \usepackage{stmaryrd} % for extended different arrows and shapes \usepackage{graphicx,float,eso-pic,fancyhdr} % manage graphs, float, and heading/foot \usepackage{tabularx,multirow} %booktabs, % for tables \usepackage{caption,subcaption} %for titles and subtitles on tables and figures \usepackage[table]{xcolor} % for color in table and color anywhere else \usepackage[doublespacing]{setspace} %\setstretch{1.15} for interline spacing \usepackage{parskip} %parindent ,, set paragraph \setlength{\parindent}{0.5in} \begin{document} \end{document} here the titlepage and two logo. forgive me I could not get a word format of the designated titlepage.. here the content : AGENCY FOR THE SAFETY OF AIR NAVIGATION IN AFRICA AND MADAGASCAR AFRICAN SCHOOL OF METEOROLOGY AND CIVIL AVIATION DIVISION OF AIR NAVIGATION AND TRANSPORTATION END OF TRAINING PROJECT Submitted in partial fulfillment for the requirements of the awards of Air Traffic Controller Diploma TOPIC Analysis and Optimization of local Traffic Management within the CTR of Diori Hamani International Airport, Niamey: Implications for Traffic Flow Efficiency Presented and defended by: NUMUKOBWA Rosemary // RAWHOUDINE Said Charriffaini // CCA 2026A Mentored by: ISSA KANA Kossi Ndjaha // ICA EAMAC// IRO MAGAGI Amoumine //IAIM EAMAC Jury: President: Mr. ALI SAYABOU Members: Mr. ISSA KANA KOSSI NDJAHA // Mr. HASSAN DADI KEBIR Project N° 2024/DNTA/CCA2023G/09 Academic year : 2023-2024
- Direct type newa "𑐀" characters in TeXby mathrm alpha on June 13, 2026 at 11:22 am
It seems that LaTeX does not provide a babel usepackage for the Unicode Newa region U+11400 ~ U+1147F. https://fonts.google.com/noto/specimen/Noto+Sans+Newa?preview.script=Newa I typed "Newa character in XeTeX", but must use the \fontspec command. \documentclass{article} \usepackage{fontspec} \begin{document} \fontspec{NotoSansNewa-Regular.ttf}{𑐀𑐄𑐷𑑅} \end{document} But I don't want to type \fontspec in every line of Newa formatting.
- TikZ customize in big operators symbols, can't display big TikZ operatorsby mathrm alpha on June 13, 2026 at 8:59 am
I followed the LaTeX question reference below to adapt it to the tikz big operators version, but it didn't display in tikz "⅌" symbol. How can I define a big plus operator that works like \bigcup? ⅌ apply in tikz text symbols? % Source - https://tex.stackexchange.com/a/394912 % Posted by GuM, modified by community. See post 'Timeline' for change history % Retrieved 2026-06-13, License - CC BY-SA 3.0 \documentclass{article} \usepackage{tikz,iftex,amsmath} \usepackage{graphicx} \makeatletter \newcommand*\@bigper[1]{\vcenter{\hbox{#1$\m@th ⅌$}}} \newcommand*\bigper{% \DOTSB % omit this line if you are not using the amsmath package \mathop{% \mathchoice {\@bigper ⅌}% {\@bigper \LARGE}% {\@bigper {}}% {\@bigper \footnotesize}% }% \slimits@ % omit this line if you are not using the amsmath package } \makeatother \ifPDFTeX \usepackage[utf8]{inputenc} \else \usepackage{newunicodechar} \fi \DeclareRobustCommand{\TikZPerSign}{% \tikz[ baseline=-.25ex, x=.13em, y=.13em, line cap=round, line join=round ]{% % Fixed box: this is important for text-like behaviour. \path[use as bounding box] (-3.05,-3.35) rectangle (3.95,4.35); % 1. The horizontal ellipse \draw[line width=.05em] (0.4,0) ellipse[x radius=2.2,y radius=.7]; % 2. The main U shape \draw[line width=.05em] (-.6,1.5) .. controls (-.6,-3.2) and (.6,-3.2) .. (.6,1.5); % 3. The top-left flourish \draw[line width=.05em] (-.6,1.5) .. controls (-1.8,2.8) and (-3.0,1.5) .. (-2.2,1.2); \fill (-.5,1.9) circle[radius=.22]; % 4. The large right loop \draw[line width=.05em] (.6,1.5) .. controls (.6,4.2) and (3.5,3.2) .. (3.5,.5) .. controls (3.5,-.8) and (2.5,-1.2) .. (1.8,-1.0); }% } \ifPDFTeX \DeclareUnicodeCharacter{214C}{\TikZPerSign} \else \newunicodechar{⅌}{\TikZPerSign} \fi \begin{document} $$\sum^1_2 \bigper^3_4$$ \end{document}
- Moving from listings to pitonby Pablo González L on June 13, 2026 at 1:04 am
I'm trying to migrate from listings to piton, but unfortunately, piton doesn't have native support for Lua. From what I can understand of the documentation, I've modified lstlang2 and converted it to piton, but I don't understand how \NewPitonLanguage works or how to color things with \SetPitonStyle. This is my compiled file, but it's not producing the expected result: \documentclass{article} \usepackage[osf,nomath,mono=false,ScaleSF=0.95,ScaleRM=0.95]{libertinus-otf} \usepackage{sourcecodepro} \defaultfontfeatures[\ttfamily] { Numbers = OldStyle, Scale = 0.84249, Extension = .otf, } \setmonofont[ UprightFont = *-Regular, ItalicFont = *-RegularIt, BoldFont = *-Semibold, BoldItalicFont = *-SemiboldIt, RawFeature = {+zero,+ss01}]{SourceCodePro} \usepackage{unicode-math} \setmathfont[Scale = 0.95]{latinmodern-math.otf} \usepackage{piton} % (Pygments colors) \definecolor{pyg_comment}{HTML}{408080} \definecolor{pyg_string}{HTML}{BA2121} \definecolor{pyg_keyword}{HTML}{000080} \definecolor{pyg_builtin}{HTML}{008000} \definecolor{pyg_function}{HTML}{0000FF} \definecolor{pyg_punct}{HTML}{A020F0} % New languaje \NewPitonLanguage{SpintentLua}{ sensitive = true, alsoletter = {.}, morecomment = [l]{--}, morecomment = [s]{--[[}{]]}, morestring = [b]", morestring = [b]', morestring = [s]{[[}{]]}, morekeywords = [Delim]{ (, ), [, ] }, % Clase nativa: Keyword (Por defecto si no se especifica corchetes) morekeywords = { and, break, do, else, elseif, end, false, for, function, goto, if, in, local, nil, not, or, repeat, return, then, true, until, while }, % Clase nativa: Name.Builtin (Para funciones del sistema) morekeywords = [Name.Builtin]{ _ENV, _G, _PROMPT, _PROMPT2, _VERSION, arg, assert, collectgarbage, coroutine, coroutine.create, coroutine.isyieldable, coroutine.resume, coroutine.running, coroutine.status, coroutine.wrap, coroutine.yield, debug, debug.debug, debug.gethook, debug.getinfo, debug.getlocal, debug.getmetatable, debug.getregistry, debug.getupvalue, debug.getuservalue, debug.sethook, debug.setlocal, debug.setmetatable, debug.setupvalue, debug.setuservalue, debug.traceback, debug.upvalueid, debug.upvaluejoin, dofile, error, getmetatable, io, io.close, io.flush, io.input, io.lines, io.open, io.output, io.popen, io.read, io.stderr, io.stdin, io.stdout, io.tmpfile, io.type, io.write, ipairs, load, loadfile, math, math.abs, math.acos, math.asin, math.atan, math.ceil, math.cos, math.deg, math.exp, math.floor, math.fmod, math.huge, math.log, math.max, math.maxinteger, math.min, math.mininteger, math.modf, math.pi, math.rad, math.random, math.randomseed, math.sin, math.sqrt, math.tan, math.tointeger, math.type, math.ult, next, os, os.clock, os.date, os.difftime, os.execute, os.exit, os.getenv, os.remove, os.rename, os.setlocale, os.time, os.tmpname, package, package.config, package.cpath, package.loaded, package.loadlib, package.path, package.preload, package.searchers, package.searchpath, pairs, pcall, print, rawequal, rawget, rawlen, rawset, require, select, setmetatable, string, string.byte, string.char, string.dump, string.find, string.format, string.gmatch, string.gsub, string.len, string.lower, string.match, string.pack, string.packsize, string.rep, string.reverse, string.sub, string.unpack, string.upper, table, table.concat, table.insert, table.move, table.pack, table.remove, table.sort, table.unpack, tonumber, tostring, type, utf8, utf8.char, utf8.charpattern, utf8.codepoint, utf8.codes, utf8.len, utf8.offset, xpcall }, % Clase nativa: Name.Function (custom API) morekeywords = [Name.Function]{ register_tex_cmd, scan_string, set_macro, clean_lexical_accents, luafun_spmoney_parse, __spintent_money_render, luafun_spdate_parse, luafun_sptime_parse, spintent_gcd_algorithm } } \SetPitonStyle { Comment = \color{pyg_comment}\fontfamily{lmtt}\small\itshape, String = \color{pyg_string} , Keyword = \color{pyg_keyword}\bfseries , Name.Builtin = \color{pyg_builtin}\bfseries , Name.Function = \color{pyg_function} , Delim = \color{pyg_punct}, } \NewPitonEnvironment{luapiton}{ !O{} } {\PitonOptions{language=SpintentLua, #1}}{} \begin{document} \begin{luapiton} -- "Submódulo Financiero: Core de validación estructural spintent" local token = token local luatexbase = luatexbase function luafun_spmoney_parse() -- Captura bidireccional nativa libre de expansiones TeX local raw_input = token.scan_string() local clean_num = string.gsub(raw_input, "%s+", "") if not clean_num:match("^[%+%-]?%d+$") then token.set_macro("l__spintent_money_status_str", "error") return "error" end -- El Puente del Millón requiere inyección canónica token.set_macro("l__spintent_money_bridge_str", "true") return "success" end local function spintent_gcd_algorithm(val_a, val_b) while val_b ~= 0 do val_a, val_b = val_b, val_a % val_b end return val_a end \end{luapiton} \end{document} How do I define a new language in piton so that it's beautifully colored? I want to copy more or less the style of the lua-widow-control documentation (which is written in ConTeXt).
- Unexpected sansmath behaviour after recent TeXLive updateby Marius Jansen on June 12, 2026 at 7:26 am
I have noticed that after a recent TexLive update, the behaviour of the sansmath package has changed. The two example below illustrate: The instructions: \documentclass{article} \usepackage{sansmath} \begin{document} \sansmath This is normal text. \begin{tabular}{ll} One & Two \\ \end{tabular} and the rest of the document follows. \end{document} result in the contents of the tabular environment to be italized (as if it is in a math environment). This is new, unexpected behaviour. If the \sansmath is omitted, then the content of the tabular environment is not placed in italics: \documentclass{article} \usepackage{sansmath} \begin{document} This is normal text. \begin{tabular}{ll} One & Two \\ \end{tabular} and the rest of the document follows. \end{document} I will greatly appreciate any advice on how to revert to the behaviour of \sansmath to what is expected: it impacts only math environments.