• Multiline frametitle with top vertical alignment
    by TrAmA on June 16, 2026 at 4:56 pm

    I am using Beamer, and trying to personalize the frame title. Most of the personalizations are already in place, but there is a subtle change I want that I am not able to achieve. I have a top bar with a background that stops at a certain point, let's say 11 cm. Then at the right of the bar I have the logo. The point is that I am not able to have the frame title vertically aligned at the top, when the title is on two lines (for instance due to a newline or a long title). In practice, the background box gets larger if the title is on two lines, and if I redefine the frametitle template, for instance setting a fixed height of the beamercolorbox, I get the text vertically aligned at the bottom. The code that produce the current format: \setbeamercolor{frametitle}{fg=white} \addtobeamertemplate{frametitle}{\setlength{\textwidth}{115mm}}{\vskip-0.5em} \setbeamertemplate{sidebar right} { \vskip4pt% \llap{\insertlogo\hskip0.1cm}% \vfill% \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}% \vskip2pt% } Title over one line: If the title is over two lines the box is taller: The use of sidebar, as suggested here sidebar, does not give the wanted result. The desired result is a red box of a fixed height, with the frame title text vertically aligned at the top, i.e. the second line must not move the first one vertically. Any help is appreciated, as I have tried several solutions, also using tikz, without luck.

  • Colouring the counting numbers of the frames
    by Carl on June 16, 2026 at 3:56 pm

    In the following code, how can I colour the slide numbers on bottom right with the same color of frame title (or title frame)? \documentclass{beamer} \usetheme[microtype]{fibeamer} \title{Presentation Title} \subtitle{Presentation Subtitle} \author{Author's name} \begin{document} \begin{frame} How can I colour ``1/1’’ on the bottom? \end{frame} \end{document}

  • Controlling text height, text width, and margins in just one frame
    by Carl on June 16, 2026 at 3:03 pm

    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)? \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}

  • Aligning labels in multi-panel figures
    by NicolasBourbaki on June 16, 2026 at 2:11 pm

    I would like to create a multi-panel figure with two subpanels of different width and height. The labels should be placed in the upper left corner of each subpanel with the left margin of the labels aligned to the left margin of the graphic in the corresponding subpanel (and baseline of the letters on the same height just on top ("north") of the highest graphic of the subpanels: My approach in TikZ does not exactly align the left margin of the labels to the left margin in the corresponding subpanel: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} % the files green_ellipse and blue_square are on my disk; any graphics file would do \node[anchor=east, inner sep=0pt] at (0,0){\includegraphics[width=.3\textwidth]{green_ellipse}}; \node[anchor=south east] at (-3.7,1.8) {a}; \node[anchor=west,inner sep=0pt] at (1,0){\includegraphics[width=.6\textwidth]{blue_square}}; \node[anchor=south east] at (1,1.8) {b}; \end{tikzpicture} \end{document} How could the left margins of the labels with the left margins of the graphics in the subpanels and the baseline of the letters just on top ("north") of the highest graphic of the subpanels.

  • How to compile the file mp.w
    by lazyboy on June 16, 2026 at 2:06 pm

    I cloned the repository https://gitlab.lisn.upsaclay.fr/texlive/metapost/ and try to compile the file source\texk\web2c\mplibdir\mp.w with cweave like this: $ pwd /metapost/source/texk/web2c/mplibdir $ cweave mp.w $ pdftex mp.tex I got a error message: ! Missing $ inserted. <inserted text> $ <to be read again> _ <argument> \#define MPOST_ DEBUG_ENVELOPE \C #1->\5\5\quad $/\ast \,${\cmntfont #1 }$\,\ast /$ l.158 \M{5}\B\C{\#define MPOST_DEBUG_ENVELOPE } \6 Curiously there is no \M{5}\B\C on the line 158 in the file mp.tex. My question is: how can I compile the file mp.w correctly to a PDF file?

  • Theorem (or highlighted text) and accessibility
    by YamiOmar88 on June 16, 2026 at 12:18 pm

    I am creating a report in LaTeX. I would like to write some highlighted text, similar to a theorem, but I would like it to remain accessible. Is it possible? Or are there better packages than amsthm or amsmath? \DocumentMetadata{ lang = en-EN, pdfversion = 2.0, pdfstandard = ua-2, tagging = on, tagging-setup = {math/setup=mathml-SE} } \documentclass[a4paper,11pt]{report} \usepackage{amsmath} \usepackage{amsthm} \newtheorem{theorem}{Highlight} \begin{document} \begin{theorem} This should be a properly tagged theorem environment. \textbf{Some text :} And some other text here. \end{theorem} \end{document}

  • Fontsize of frame numbers
    by Carl on June 16, 2026 at 9:54 am

    What is the size of the slide numbers on bottom right, and can I use that size in a word/letters of a frame? \documentclass{beamer} \usetheme[microtype]{fibeamer} \title{Presentation Title} \subtitle{Presentation Subtitle} \author{Author's name} \begin{document} \begin{frame} \frametitle{Long text} \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 Railway in TeX?
    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. Code 1 \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} Code 2 \documentclass[a4paper,10pt]{article} \usepackage{amssymb,amsmath,amsfonts} \usepackage{amsthm,thmtools} \usepackage[english]{babel} \usepackage[T1]{fontenc} \begin{document} \section{Section 1} \subsection{Subsection 1} ELorem ipsum dolor sit amet, consectetur adipiscing elit. Duis non orci vel augue pulvinar pretium in et turpis. Sed in dolor semper urna mattis vehicula. Suspendisse eu augue id nisi auctor venenatis. Maecenas tempor felis a sodales vehicula. Proin congue tellus lectus, sit amet ornare orci efficitur a. Duis dui sem, imperdiet ac commodo eu, semper porta odio. Praesent rhoncus sem ante, eget tincidunt massa ornare sed. Suspendisse a vehicula magna, mattis porttitor enim. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Duis vitae pulvinar risus. Nunc quis nisi libero.\\ \noindent \begin{minipage}{0.4\textwidth} \begin{equation}\label{(3.1)} f_{\infty}(x)=\sum \limits_{k=-\infty}^{\infty}c_{k}e^{ikx} \end{equation} \end{minipage} \hspace{1cm}with \begin{minipage}{0.5\textwidth} \begin{equation}\label{(3.2)} c_k:= \frac{1}{2\pi}\int_0^{2\pi}f(x)e^{-ikx} \; dx \;. \end{equation} \end{minipage} \bigskip\noindent Sed lacinia sem ac quam porttitor, vitae efficitur lorem pulvinar. \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 santa023 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?

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

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

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

  • 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