• Controlling text height, text width, and margins in just one frame, and colouring frame numbering
    by Carl on June 16, 2026 at 9:54 am

    I am trying to know the following: What is the size of the slide numbers on bottom right, and can I use that size in a word/letters of a frame? Can I colour the slide numbers on bottom right with the same color of frame title (or title frame)? I have the code below for a wider frame but there are several problems, namely, I can control only left and right margin with the same distance, and long text overlay slide numbers. So, how can I control left margin, right margin, text height and text width with different distances (and prevent text overlay)? Thanks. \documentclass{beamer} \usetheme[microtype]{fibeamer} \usepackage{lipsum} \title{Presentation Title} \subtitle{Presentation Subtitle} \author{Author's name} \newcommand\Wider[2][3em]{% \makebox[\linewidth][c]{% \begin{minipage}{\dimexpr\textwidth+#1\relax} \raggedright#2 \end{minipage}% }% } \begin{document} \begin{frame}{Long text} \Wider{\lipsum} \end{frame} \end{document}

  • TikZ move scope to bottom left of a figure
    by Thomas on June 16, 2026 at 7:42 am

    I have a figure to which I add representation of axis. Using scope environment I'm able to scale and move it where I want on the figure. Would it be possible to make it always at a specific position in the figure (for instance bottom left), so if I change the content of the figure by adding other element, the scope would still be placed where I intended. For a node I would use anchor. Here is a MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture}[show background rectangle] \draw[red,fill=yellow] (0,0,0) -- ++(-2,0,0) -- ++(0,-1,0) -- ++(2,0,0) -- cycle; \draw[red,fill=yellow] (0,0,0) -- ++(0,0,-1) -- ++(0,-1,0) -- ++(0,0,1) -- cycle; \draw[red,fill=yellow] (0,0,0) -- ++(-2,0,0) -- ++(0,0,-1) -- ++(2,0,0) -- cycle; \begin{scope}[xshift=-3cm, yshift=-0.56cm, scale=0.4] \draw[->, red] (0,0) -- (0,1) node[anchor=north east] {$x$}; \draw[->, green] (0,0) -- (-1,0) node[anchor=north west] {$y$}; \draw[blue] (0,0) node {$\odot$}; \draw[blue] (0,0) node[anchor=north west] {$z$}; \end{scope} \end{tikzpicture} \end{document} I manually set the xshift and yshift so the arrows are on the bottom part of the figure. (Note: here the scope does enlarge the figure on the left because there is nothing, but in my case where I'm facing this issue, there are other object on the top left part of it)

  • Upright √ sqrt + closed style?
    by mathrm alpha on June 16, 2026 at 6:21 am

    It doesn't work when I try both TeX methods together. sqrt upright style "Closed" (square) root symbol \documentclass{article} \usepackage{letltxmacro} \makeatletter \let\oldr@@t\r@@t \def\r@@t#1#2{% \setbox0=\hbox{$\oldr@@t#1{#2\,}$}\dimen0=\ht0 \advance\dimen0-0.2\ht0 \setbox2=\hbox{\vrule height\ht0 depth -\dimen0}% {\box0\lower0.4pt\box2}} \LetLtxMacro{\oldsqrt}{\Sqrt} \renewcommand*{\sqrt}[2][\ ]{\oldsqrt[#1]{#2}} \makeatother \usepackage{graphicx,scalerel,mathtools} \let\svsqrt\Sqrt \def\Sqrt#1{\ThisStyle{\ooalign{% \scalebox{.5}[1]{$\SavedStyle\svsqrt{\phantom{\cramped{#1#1}}}$}\cr \hfil$\SavedStyle\cramped{#1}$}}} \begin{document} $\Sqrt{123}$ \end{document} Error message: ! Undefined control sequence. <argument> $\SavedStyle \svsqrt {\phantom {\cramped {123123}}}$ l.24 $\Sqrt{123} $ ?

  • How to get \LaTeX, \TeX logo in math-fonts format style? (Actual result: ℒ︀ᴬ𝒯︀ᴇ𝒳︀)
    by mathrm alpha on June 16, 2026 at 4:51 am

    Why doesn't my output \LaTeX fully translate into \mathcal? \documentclass{article} \begin{document} $\mathcal{\LaTeX}$ \end{document} The following errors also occurred: You can't use `\spacefactor' in math mode. \@->\spacefactor \@m {} l.5 $\mathcal{\LaTeX} $ Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'. Missing character: There is no � in font cmex10!

  • How to design station signs for Taiwan Railways?
    by mathrm alpha on June 16, 2026 at 4:08 am

    Although I wrote a LaTeX-like design for Taiwanese train station signs, the resemblance is still somewhat lacking. https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/ROC_Taiwan_Railways_Administration_Logo.svg/960px-ROC_Taiwan_Railways_Administration_Logo.svg.png \documentclass{article} \usepackage{xeCJK,amssymb} \usepackage[ paperwidth=5in, paperheight=3in, margin=0.2in ]{geometry} \usepackage{graphicx} \usepackage{tikz} \pagestyle{empty} \begin{document} \begin{tikzpicture}[remember picture,overlay] \node[anchor=north west, xshift=0in, yshift=0in] at (current page.north west) { \includegraphics[width=0.5in,height=0.5in]{960px-ROC_Taiwan_Railways_Administration_Logo.svg.png} }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[align=center, text=black, yshift=0.25in] at (current page.center) { {\fontsize{28pt}{34pt}\selectfont Miaoli} \\[0.2em] {\fontsize{32pt}{38pt}\selectfont 苗栗} }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[ draw, line width=0.8pt, minimum size=0.9in, inner sep=0pt, align=center, font=\fontsize{12pt}{12pt}\selectfont ] at ([xshift=1.25in, yshift=0.25in]current page.center) { 苗栗縣\\ 苗栗市 }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[anchor=south west, xshift=0.2in, yshift=0.2in] at (current page.south west) { {\Large 豐富 Fengfu} }; \node[anchor=south east, xshift=-0.2in, yshift=0.2in] at (current page.south east) { {\Large 南勢 Nanshi} }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \draw[green!60!black, line width=1.2pt] ([yshift=0.65in]current page.south west) -- ([yshift=0.65in]current page.south east); \node[anchor=west, text=green!60!black] at ([yshift=0.78in]current page.south west) {\large $\blacktriangleleft$ 3.9 公里 (km)}; \node[anchor=east, text=green!60!black] at ([yshift=0.78in]current page.south east) {\large 6.6 公里 (km) $\blacktriangleright$}; \end{tikzpicture} \end{document} A better version should be: Source: http://trstour.com/miao-li.htm

  • academicons producing incorrect icons
    by Octavio Vega on June 16, 2026 at 1:36 am

    I have been using the academicons package in Overleaf and have noticed that certain icons are not aligning with the ones that appear in the documentation. I have reproduced the error in both Overleaf and TexStudio. For example, the arXiv and Zenodo icons are mismatched: \documentclass[12pt]{article} \usepackage{academicons} \begin{document} ArXiv and Zenodo icons: \begin{itemize} \item \textbackslash aiarXiv: \aiarXiv \item \textbackslash aiarXivSquare: \aiarXivSquare \item \textbackslash aiZenodo: \aiZenodo \item \textbackslash aiZenodoSquare: \aiZenodoSquare \end{itemize} \end{document} Compare this to what the package documentation professes to yield for these two icons: I ensured (1) that I am using the most recent version of academicons (v1.9.6-2, as in the docs) and (2) that I am compiling with XeLaTeX, so those aren't the issue. Does anyone know what is going on here or how to fix this?

  • Can I use margin and wide together on a single page in the kaobook class?
    by 조문수 on June 16, 2026 at 1:18 am

    In the kaobook class, is it possible to use a margin layout for the first page and a wide layout starting from the second page? https://github.com/fmarotta/kaobook The following files are required: kao.sty kaobook.cls

  • Two numbered equations in one line
    by X3nius on June 16, 2026 at 12:34 am

    How can I create two numbered equations in one line? I've tried this, however the word "with" is not aligned. \documentclass[a4paper,10pt]{article} \usepackage{amssymb,amsmath,amsfonts} \usepackage{amsthm,thmtools} \usepackage[english]{babel} \usepackage[T1]{fontenc} \begin{document} \begin{tabular}{p{5cm}p{1.5cm}p{6cm}} \begin{equation} \sum \limits_{k=-\infty}^{\infty}c_ke^{ikx} \end{equation} & \begin{equation*} \hspace{0.5cm}\text{with} \end{equation*} & \begin{equation} G:= \int \limits_a^b g(x)\; dx \end{equation} \end{tabular} \end{document}

  • Make a ⬲, ⟴ symbols in native math-mode, but negative spacing error
    by mathrm alpha on June 15, 2026 at 11:53 pm

    Have you noticed that when using negative spacing to overlap mathematical symbols, after typing a few more words, the other mathematicals text also appears to recede into negative spacing? \documentclass{article} \usepackage{newunicodechar} \newunicodechar{⬲}{\longleftarrow\!\!\!\!\!\!\!\!\oplus} \newunicodechar{⟴}{\longrightarrow\!\!\!\!\!\!\!\!\!\oplus} \begin{document} $A ⬲ B ⟴ C$ \end{document}

  • Reducing gap between equation to text above and below for just one equation
    by X3nius on June 15, 2026 at 10:10 pm

    How do I reduce the gap between only one equation (or two, or generally math environments) to the text above and below for a single slide only? I've tried \vspace, but this only reduces the gap to the text above but produces weird things below. And doing it for all slides I would use something like \expandafter\def\expandafter\normalsize\expandafter{% \normalsize% \setlength\abovedisplayskip{0pt}% \setlength\belowdisplayskip{8pt}% \setlength\abovedisplayshortskip{-8pt}% \setlength\belowdisplayshortskip{2pt}% } right? But when changing the fontsize for a slide, these values wouldn't fit anymore? => Below is an example code with a screenshot. \documentclass{beamer} \usepackage{lmodern} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath, amsfonts, amssymb} \usepackage{amsthm} \newtheorem{thm}{Theorem} \usetheme{Copenhagen} \begin{document} \begin{frame} \fontsize{10pt}{8}\selectfont \begin{block}{Theorem} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis tristique porta magna, eu consequat nisl tempus vitae. \begin{equation*} f(x) = x \; \forall x \in \mathbb{R} \end{equation*} Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec placerat diam at ipsum rhoncus maximus. Orci varius natoque penatibus et magnis dis parturient montes \end{block} \end{frame} \begin{frame} \fontsize{7pt}{2}\selectfont \begin{block}{Theorem}Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis tristique porta magna, eu consequat nisl tempus vitae. Orci varius natoque penatibus et magnis dis parturient montes nascetur ridiculus mus. \vspace{-1em} \begin{equation*} f(x) = x \; \forall x \in \mathbb{R} \end{equation*} \vspace{-1em} nascetur ridiculus mus. Donec placerat diam at ipsum rhoncus maximus. Duis mattis consequat sodales. Duis mattis consequat sodales. Ut aliquet turpis sed lectus dapibus, id aliquam orci sollicitudin. Vestibulum non blandit odio. \end{block} \fontsize{10pt}{8}\selectfont \vspace{1em} Proof of Theorem. \end{frame} \end{document}

  • 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 Numbering
    by 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 anymore
    by 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 subcaption
    by 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 missing
    by 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 slide
    by 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 integral
    by 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 circumference
    by 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 books
    by 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/upright
    by 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 LaTeX
    by 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 LaTeX
    by 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 cannon
    by 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.

  • 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 ∰ \oiiint
    by 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} See in: Wrong subscript position in a customized integral

  • TikZ snail's 🐌 outline rotation text layout
    by 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.

  • Unexpected sansmath behaviour after recent TeXLive update
    by 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.