Hot
- In Luatex Hebrew text not working after update miktex (april 13 2026)by Cook on April 13, 2026 at 2:46 pm
After updating miktex today I get the message Undefined control sequence. \mathemptydisplaymode in the luabidi.sty. I removed miktex completely and installed it, the same result. Could you please help me? It’s a 4,000-page book in Greek, Hebrew, and Dutch that was compiled over the past three years. % !TeX TS-program = lualatex \documentclass[11pt,a4paper,twoside]{book} %%%%%%%%%%%%-------------------following loaded before biblatex \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{dutch} \setotherlanguage{greek} \setotherlanguage{hebrew} %%<<-------------------Greek/Hebrew \setmainfont[Ligatures=TeX]{Charis SIL} \defaultfontfeatures{Ligatures=TeX} \newfontfamily\hebrewfont{Ezra SIL}[Script=Hebrew,Contextuals=Alternate]%\texthebrew %%Greek \newfontfamily{\greekfont}[Script=Greek, Scale=MatchUppercase, Ligatures=TeX]{SBL Greek} \begin{document} Nederlands: gewoon een zinnetje Grieks: \textgreek{Οὗτος δῶρα} Hebrew: \texthebrew{תְהֹ֑ום} \end{document}
- How to correctly expand the first parameter of \hrefrun?by Hans Nieuwenhuis on April 13, 2026 at 11:12 am
This is my code (which I compile using LuaLatex: This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) (format=lualatex 2026.4.1). % test of hrefrun \DocumentMetadata { pdfversion = 2.0, } \documentclass [ a4paper, ] {article} \usepackage{hyperref} % set options for hyperref \hypersetup { colorlinks, % give links a color runcolor = blue, % set color of links to external files } \ExplSyntaxOn % ----------------------------------------------------------------------------- % Command to replace all occurrences of a given text in a string with another given text. % % Note that the original text is not changed, this command gives as result the % processed text. % % #1 = text which needs to be processed % #2 = text to be replaced % #3 = the replacement text % ----------------------------------------------------------------------------- \NewDocumentCommand{\ReplaceText}{m m m} { \tl_set:Nn \l_tmpa_tl {#1} \tl_replace_all:Nnn \l_tmpa_tl {#2} {#3} \tl_to_str:N \l_tmpa_tl } \ExplSyntaxOff %--------------------------------------------------------------- \begin{document} % make a filename in which spaces are replaced by underscores \newcommand{\MyFilename}{\ReplaceText{./audio/Engels/one hundred.mp3}{ }{_}} \hrefrun{\MyFilename}{\MyFilename} \end{document} When I compile this code, the second parameter of \hrefrun is correct. However in the first parameter of \hrefrun is the space between 'one' and 'hundred' not replaced by an underscore. Instead of that, the space and underscore are appended after '.mp3'. See this image: How can I get the first parameter of \hrefrun to be processed correctly?
- How to fix different spacing within `expex` in `beamerposter` depending on the compiler?by schoekling on April 13, 2026 at 7:03 am
I am creating a beamerposter with linguistic examples in expex with a custom font (libertine). I originally wrote most of it using pdflatex but have to switch to lua or xetex now. However, when I do so, the spacing within the examples changes drastically. Simply loading fontspec has the same effect, so it doesn't seem to have anything to do with the font specifically. Loading neither libertine nor fontspec produces the same spacing as pdflatex. \documentclass{beamer} \usepackage{beamerposter} % loading either of these increases the spacing within expex's (cf. second picture) %\usepackage{fontspec} %\usepackage{libertine} \usepackage{expex} \begin{document} \begin{frame} \pex \a \begingl \gla text// \glb gloss// \glft `transl'// \endgl \xe \ex \begingl \gla text// \glb gloss// \glft `transl'// \endgl \xe \end{frame} \end{document} pdflatex with libertine: lualatex with libertine (same spacing with xetex and/or fontspec): lualatex without libertine or fontspec:
- Solving cyclic overlap of occlusion for trianglesby Jasper on April 13, 2026 at 5:03 am
I want to pose a question to resolve the issue described in https://stackoverflow.com/a/32463868/32395400, by simplicial partitioning. There doesn't seem to be a precedent for this, so I made a little document: \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \foreach \ang/\col in {0/red,120/green,240/blue} { \draw[\col,ultra thick] (\ang:1) -- +(\ang-90:3) -- +(\ang+90:3); } \end{tikzpicture} \end{document}
- marginnote inhibits noindent in following paragraphby Erwann on April 13, 2026 at 2:53 am
How can I restore indentation in this setup? \documentclass{article} \usepackage[showframe]{geometry} \usepackage{marginnote,lipsum} \reversemarginpar \setlength{\marginparwidth}{1.1in} \ProvideDocumentCommand{\LetterSection}{m}{% \par \smallskip \leavevmode \marginnote{% \raggedleft \footnotesize % \sffamily % \scshape \strut #1 }[1pt]% % \ignorespaces } \begin{document} \LetterSection{test} \noindent\lipsum[1][1] \end{document}
- Changing a conjuntion in BibLaTeX?by Knudsen on April 13, 2026 at 12:34 am
Under normal circumstances BibLaTeX uses the same coordinating conjunction "and" for two authors that may have their names in one script (Latin, for now) and also to join two translator names that could have their names in another (Cyrillic in this example). You may change the scripts above to any other pair and the problem remains the same. This has the unfortunate consequence of placing a pair of names in English joined by a Russian conjunction in the text as seen here: generated by the simple MWE: \documentclass{article} \begin{filecontents}[overwrite]{isaac.bib} @BOOK{isaacson:en, author = {Isaacson, Eugene and Keller, Herbert Bishop}, title = {Analysis of Numerical Methods}, publisher = {Dover Publications}, address = {Mineola, New York}, year = {1994}, langid = {english}, } @BOOK{isaacson:ru, author = {Isaacson, Eugene and Keller, Herbert Bishop}, title = {Анализ численных методов}, author-ru = {Э. Исааксон and Х. Б. Келлер}, translator = {В. В. Пчелинцев and L. L. Пчелинцев}, publisher = {Мир}, address = {Москва}, year = {1976}, langid = {russian}, } @book{rudin:zh, author = {Walter Rudin and Elena Rudin}, title = {实分析与复分析}, translator = {戴牧民 and 张更容}, publisher = {机械工业出版社}, address = {北京}, year = {2006}, langid = {chinese-simplified}, } \end{filecontents} \usepackage{babel} \babelprovide[import, main]{american} \babelprovide[import]{russian} \babelfont{rm}{NewComputerModern10} \babelfont{sf}{NewCMSans10-Regular} \babelfont{tt}{NewCMMono10-Regular} \babelprovide[import]{chinese-simplified} \babelfont[chinese-simplified]{rm}[ Scale = MatchLowercase, ItalicFont = Noto Serif CJK SC, ItalicFeatures = {FakeSlant=0} ]{Noto Serif CJK SC} \usepackage[style=authoryear,language=auto,autolang=other]{biblatex} \addbibresource{isaac.bib} \begin{document} Citing \textcite{isaacson:en}, \textcite{isaacson:ru}, \textcite{rudin:zh}. \printbibliography \end{document} It would be desirable to: Have one conjunction to be used with the authors names (and) that would show up in the Biblio list and in the main text, that is mostly in Latin. Have another to be used with the translator names (и) or inside the record, that is mostly in Cyrillic The russian.lbx file (as all others I know of) seems to have only one coordinating conjunction. and = {{и}{и}}, Is there a way to separate them, or define a new one, to be used in the bibliographical tags?
- Section headers disappear in TeXLive 2026by Ted Shifrin on April 12, 2026 at 11:56 pm
My code snippets: \renewcommand{\chaptermark}[1]{\markboth{\scshape\chaptername\ \thechapter. #1}{}}% \renewcommand{\sectionmark}[1]{\markright{\scshape\S\thesection. #1}}% worked just fine in TeXLive 2022 (using amsbook format in LaTeX), but in TeXLive 2026 the section heads do not appear at all. I gather this is due to the changes in the way headers are handled now. Can you suggest a modern modification I can make to get section heads to appear? fancyhdr did nothing for me. EDIT: OK. Here is a short document which typesets to three pages. Using TeXLive 2022 I get a section header on p. 3; using TeXLive 2026 there is none. 🙂 \documentclass[11pt]{amsbook} \renewcommand{\chaptermark}[1]{\markboth{\scshape\chaptername\ \thechapter. #1}{}}% \renewcommand{\sectionmark}[1]{\markright{\scshape\S\thesection. #1}}% \begin{document} \chapter{Curves} \section{Examples, Arclength Parametrization} We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. \section{Local Theory: Frenet Frame} What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ \end{document} I hope this helps.
- Vertical centering of frametitle when using ltx-talkby CornBoy on April 12, 2026 at 11:11 pm
I have been looking into switching my lecture presentations from Beamer to ltx-talk for the automatic tagging functionality. For frame titles, the default behavior does not vertically center the text in the colored header/banner. Here is a minimum working example (most recent release of MacTeX). % !TEX TS-program = lualatex \DocumentMetadata{tagging=on} \documentclass{ltx-talk} \EditInstance{header}{std}{ background-color = blue!50, color = white, } \author{John Doe PhD} \title{An interesting title} \institute{Interesting Conference} \begin{document} \begin{frame} \maketitle[framestyle = wallpaper] \end{frame} \begin{frame} \frametitle{Frame title not vertically centered in colored header} Some text \ldots \end{frame} \end{document} Does anyone know how to achieve a frame title that is vertically centered in the header/banner when using ltx-talk?
- Devanagari Shiro-rekha fillingby Sushant on April 12, 2026 at 6:39 pm
I am using exam clas with liguistix package to create an exam paper in Marathi. As English has base line, the Devanagari script used for writing Marathi has head-line or Shiro-rekha (ꣻꣻꣻ). As in english the space for an answer is provided using an \hrulefill command which is at the position of base line of Latin characters, I wan to use Shiro-rekha for providing answering space for Marathi text. I can type the shiro-rekha character many times (like this: ꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻ) to fill the space. But it will take time and will be unevenly filled. Is there any way to use this shiro-rekha character and get filled it like a hrulefill? My MWE is as bellow: \documentclass{exam} \usepackage{linguistix} \linguistix{languages={english,marathi}} \begin{document} \makebox[\textwidth]{\textsc{संपूर्ण नाव : } ꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻ} \vspace{0.2in} \makebox[\textwidth]{\textsc{Full name:}\enspace\hrulefill} \end{document}
- Using fontspec to set the main font as Helvetica doesn't workby tistieom on April 12, 2026 at 4:35 pm
First I tried to set the main font to Helvetica using \usepackage[scaled]{helvet} with \renewcommand\familydefault{\sfdefault}, but it didn't set the sans-serif font to Helvetica - the document was now in CM Sans Serif. I then switched to XeLaTeX and tried the following code for fontspec, but now when I save the document, after a few seconds it gives me the error in the image along with "Recipe terminated". Then if I reload the window after those errors appear (I use VSCode), the PDF is updated with whatever text I added anyway as if there was no error. Just still in CM Sans Serif instead of Helvetica. I have Helvetica installed on my computer, I can find it in C:\Windows\Fonts. \documentclass{article} \usepackage{fontspec, lipsum} \setmainfont{Helvetica} \renewcommand\familydefault{\sfdefault} \begin{document} \lipsum[1-10] \end{document}
- Chemnum: Reversing the by Proki on April 12, 2026 at 4:18 pm
I'm currently writing my thesis in LaTeX and I'm dealing with a lot of E/Z isomers. I'm using \chemnum to label my compounds and I already figured out a way to replace the usual chemnum sublabels with custom ones (1a, 1b to 1E 1Z). The problem is the standard nomenclature for labelling these isomers is E-1, Z-1. Is there a way to reverse the order in which chemnum displays my compound label from <label><sublabel> to <sublabel><label>?
- How do I align a pgfplots figure environment to the right side of my document?by tistieom on April 12, 2026 at 2:46 pm
I'm using a two-column extarticle document, without multicol. How do I make these two plots in a {figure} environment right-aligned instead of left-aligned in the column? They are a part of a nested list in my actual document so I did the same in the code here; other than the lorem ipsum, those are the same figures I'm using in my actual document. My goal with making them right-aligned is to align the left-hand side of the plots with the text following them. \documentclass[twocolumn]{extarticle} \usepackage{pgfplots, lipsum} \usepackage[margin=1cm]{geometry} \pgfplotsset{compat=1.18} \begin{document} \lipsum[1-5] \begin{enumerate} \item \begin{enumerate} \item \lipsum[1] \begin{figure} \label{fig:3sinx+2-x} \begin{tikzpicture} \begin{axis}[ xlabel=$x$, ylabel=$f(x)$, xmin=-0.5, xmax=2*pi+0.5, ymin=-6.25, ymax=6.25, xtick={0, pi/4, pi/2, 3*pi/4, pi, 5*pi/4, 3*pi/2, 7*pi/4, 2*pi}, xticklabels={$0$, , $\frac{\pi}{2}$, , $\pi$, , $\frac{3\pi}{2}$, , $2\pi$}, ytick={-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6}, yticklabels={$-6$, , $-4$, , $-2$, , $0$, , $2$, , $4$, , $6$}, axis lines=middle, width=5.5cm, title={$f(x) = 3\sin(x)+2-x$} ] \addplot[ color=red, domain=0:2*pi, smooth ]{3*sin(deg(x)) + 2 - x}; \end{axis} \end{tikzpicture} \label{fig:3sinx+x-3} \begin{tikzpicture} \begin{axis}[ xlabel=$x$, ylabel=$f(x)$, xmin=-0.5, xmax=2*pi+0.5, ymin=-4.25, ymax=4.25, xtick={0, pi/4, pi/2, 3*pi/4, pi, 5*pi/4, 3*pi/2, 7*pi/4, 2*pi}, xticklabels={$0$, , $\frac{\pi}{2}$, , $\pi$, , $\frac{3\pi}{2}$, , $2\pi$}, ytick={-4, -3, -2, -1, 0, 1, 2, 3, 4}, yticklabels={$-4$, $-3$, $-2$, $-1$, $0$, $1$, $2$, $3$, $4$}, axis lines=middle, width=5.5cm, title={$f(x) = 3\sin(x)+x-3$} ] \addplot[ color=red, domain=0:2*pi, smooth ]{3*sin(deg(x)) + x - 3}; \end{axis} \end{tikzpicture} \end{figure} \item \lipsum[1-2] \end{enumerate} \end{enumerate} \end{document}
- reledmac: How to make footnotes RTL (Hebrew) while preserving page splitting?by MATI324 on April 11, 2026 at 10:26 pm
I am typesetting a Hebrew book using XeLaTeX with reledmac (multiple footnote series) and polyglossia+bidi for RTL support. The Problem I need footnotes to be: Rendered Right-to-Left (Hebrew text) Able to split across pages when they exceed the available space These two requirements conflict with each other in the current setup. What I've Tried Without footgroupX override: If I don't define a custom \footgroupX, the footnotes render Left-to-Right despite \bhookgroupX{\setRTL} and \beforeinsertingX{\setRTL} being set. The hooks affect the text direction within each note, but the overall block is still placed LTR. With footgroupX override using \beginR...\endR: If I define: \expandafter\def\csname footgroupA\endcsname#1{% \csuse{bhookgroupX@#1}\csuse{notefontsizeX@#1}% \setbox0=\box\csname footins#1\endcsname% \hb@xt@\hsize{\beginR\box0\endR\hss}% }% This makes the footnotes RTL, but: \box prevents page splitting (all footnotes are placed in a single unbreakable box) \beginR...\endR causes a ! Missing } inserted error at \endnumbering The footnotes overflow massively (400+ pt) because they can't split With \unvbox instead of \box: Using \unvbox should allow splitting, but combined with \beginR...\endR, the group opened by \beginR gets separated from its \endR at page breaks, causing the same Missing } error. With \setRTL + \unvbox (no \beginR): \expandafter\def\csname footgroupA\endcsname#1{% \bgroup\setRTL% \csuse{bhookgroupX@#1}\csuse{notefontsizeX@#1}% \unvbox\csname footins#1\endcsname% \egroup}% This still produces Missing } and the footnotes display LTR. With \pardir TRT \textdir TRT: These are LuaTeX primitives and don't work in XeTeX. Minimal Example \documentclass[12pt]{book} \usepackage[series={A,B},noend]{reledmac} \usepackage{polyglossia} \setmainlanguage{hebrew} \usepackage[paperwidth=21cm,paperheight=29.7cm,top=3.5cm,bottom=2.5cm,left=2.5cm,right=2.5cm]{geometry} \setmainfont[Script=Hebrew]{David CLM} \newfontfamily\hebrewfont[Script=Hebrew]{David CLM} \firstlinenum{100000} \firstsublinenum{100000} \arrangementX[A]{normal} \arrangementX[B]{normal} \bhookgroupX[A]{\setRTL} \bhooknoteX[A]{\setRTL\setlength{\parindent}{0pt}} \beforeinsertingX[A]{\setRTL} \bhookgroupX[B]{\setRTL} \bhooknoteX[B]{\setRTL\setlength{\parindent}{0pt}} \beforeinsertingX[B]{\setRTL} \makeatletter \expandafter\def\csname footgroupA\endcsname#1{% \csuse{bhookgroupX@#1}\csuse{notefontsizeX@#1}% \setbox0=\box\csname footins#1\endcsname% \hb@xt@\hsize{\beginR\box0\endR\hss}% }% \makeatother \pagestyle{plain} \begin{document} \raggedbottom \setRTL \beginnumbering \autopar Hebrew text with many long footnotes... \footnoteA{Very long Hebrew footnote text repeated many times...} \footnoteB{Another very long Hebrew footnote text...} % ... more text and footnotes to fill more than one page \endnumbering \end{document} Question How can I define \footgroupX (or configure reledmac) so that: The footnote block renders RTL (Hebrew) — text flows right-to-left Footnotes can split across pages when they exceed available space No Missing } error occurs I'm using XeTeX (MiKTeX 25.12), reledmac latest version, bidi v26.01.08, polyglossia with Hebrew.
- Graphing a system of inequalities in 3 dimensionsby Henry Timmons on April 11, 2026 at 2:14 pm
I am trying to graph a system of 3 inequalities in 3 dimensions. These ineuqalities are: y-z>=1/2x, x-z>=0, and x+y>=3z. Currently I am struggling to get even a basic output. My input is: \documentclass[12pt, a4paper]{article} \usepackage{float, ulem, amsmath, amsthm, amssymb, pgfplots, tikz} \pgfplotsset{width=10cm,compat=1.9} \usepgfplotslibrary{external, fillbetween} \tikzexternalize \begin{document} \begin{tikzpicture} \begin{axis}[domain=0:10,y domain=0:10] \addplot3[surf] {y-(\frac{1}{2}*x)}; \addplot3[surf] {x}; \addplot3[surf] {\frac{x+y}{3}}; \end{axis} \end{tikzpicture} \end{document} I am getting the error: "Package tikz Error: Sorry, the system call 'pdflatex -shell-escape - halt-on-error -interaction=batchmode -jobname "output-figure0" "\def\tikzexternalrealjob{output}\input{output}"' did NOT result in a usable output file 'output-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or something like that. Or maybe the command simply failed? Error messages can be found in 'output-figure0.log'."
- DocumentMetadata + setspace + biblatex: yields: "Patching footnotes failed"by wsmith on April 10, 2026 at 11:28 pm
I have been trying to understand what is behind this warning: Package biblatex Warning: Patching footnotes failed. (biblatex) Footnote detection will not work. which is produced by, for example, this code: % !TeX program = lualatex \DocumentMetadata{ uncompress, lang=en, tagging=on, pdfstandard=UA-2, pdfstandard=A-4f, tagging-setup={math/setup={mathml-SE,mathml-AF}, extra-modules={verbatim-mo, verbatim-af}} } \documentclass[12pt]{report} \usepackage{setspace} \usepackage{biblatex} \begin{document} Example. \end{document} Searching on this forum for similar issues, I am led to believe this has to do with the (re)definition of \@footnotetext. What confounds me, however, is that I can only produce this warning if I simultaneously set up the \DocumentMetadata, include setspace, and use biblatex. In other words, if I remove either the \DocumentMetadata or setspace then I no longer get this warning. (I don't know if this is worth mentioning, but for what it's worth, I originally also use hyperref in the document where I found this issue-- its inclusion seems to have no bearing on this behavior).
- How to use IL3 and CS encoding? [closed]by Grzegorz Brzęczyszczykiewicz on April 10, 2026 at 7:24 pm
How to use IL3 encoding? IL3 is for languages like Esperanto or Maltese? And the same for the encoding CS? If I specifically want to demonstrate this encoding and how it's used? I know there's XeLaTeX and LuaLaTeX but this is not what I'm talking about. EDIT: It appears that some of you don't know what IL3 is, and to be honest... I don't really know either. I was able to find very little information about this. because of mention of Esperanto and Maltese, it appears this was somewhat inspired by the ISO Latin-3 encoding, but whether it is actually the same or a different variation, I have no idea
- Include header with logo, and footer with page number, in class meetingminsby cmp on April 10, 2026 at 5:18 pm
Please help me to include a header and footer in the meetingmins class. I want to right-align a logo, and have page x of y at the bottom of the page. In addition, I want the logo on the first page only. I wish the page numbers to be on all pages. Thank you for any time you spend on this. Here is a MWE from the meetingmins package documentation: \documentclass[11pt]{meetingmins} \usepackage{graphicx} \usepackage{fancyhdr} % Remove header line (optional) \renewcommand{\headrulewidth}{0pt} % Add space so content doesn't overlap header \setlength{\headheight}{90pt} \setlength{\headsep}{20pt} % Meeting info \setcommittee{Project Team Alpha} \setmembers{Alice Smith, Bob Johnson, Charlie Lee, Dana White} \setdate{April 8, 2026} \newcommand{\meetingstart}{10:00 AM} \newcommand{\meetingend}{11:30 AM} \newcommand{\setlocation}{Conference Room A} \begin{document} \maketitle \section{Call to Order} The meeting was called to order at \meetingstart. \section{Attendance} \textbf{Present:} Alice Smith, Bob Johnson, Dana White \textbf{Absent:} Charlie Lee \end{document}
- Aligning nested enumerations in ConTeXtby ssokolen on April 10, 2026 at 3:55 pm
This seems like a task which should have an answer somewhere out there, but I'm having trouble finding it. I am trying to align a nested enumeration in ConTeXt so that the inner level is offset from the outer level. I am using alternative=left, but the inner numbers remain flush with the outer numbers regardless of distance, width, and margin. I would appreciate any advice on which options to test or which manuals to consult for a more detailed understanding. % Define the primary level \defineenumeration[outer] [ text=, alternative=left, width=1em, margin=1em, distance=1em, ] % Define the nested level \defineenumeration[inner] [ text=, alternative=left, width=2em, margin=2em, distance=2em, within=outer ] \starttext \startouter This is the outer enumeration (Level 1). \startinner This is the inner enumeration (Level 2). I need the numbers here to be shifted right. \stopinner \stopouter \stoptext
- How to get non-compilable code without the % symbol?by Cham on April 10, 2026 at 3:24 pm
While I know that I can use % to comment out a line of code, I would like to get the same result (i.e. non-compiling text) in the middle of a block of text, like this (the brackets are here just to show the example): Blabla blabla bla bla bla [some non-compiling comments] bla bla blabla blab I don't want to write something like the following (i.e splitting the text paragraph): Blabla blabla bla bla bla % some non-compiling comments bla bla blabla blab Is it possible? I guess that I'll need to use some non-compiling macro, like \nc{} but I would prefer not to use something like it. In Mathematica, we have the ability to insert non-compiling codes with (* non-compiling text *)
- Adjusting the Width of Modified Enumitem Itemsby DDS on April 10, 2026 at 1:05 pm
Consider the code: \documentclass[12pt]{book} \usepackage[paperwidth=6.00in,paperheight=9.00in,top=.5in,bottom=.5in,left=.75in,right=.5in]{geometry} \textheight=7.25in \voffset=0.35in \usepackage{lipsum,enumitem} \begin{document} \pagestyle{empty} \begin{enumerate}[label={(\Roman*.)},itemindent=1em,leftmargin=0em] \item \lipsum[12] \item \lipsum[12] \item \lipsum[12] \item \lipsum[12] \item \lipsum[12] \end{enumerate} \end{document} which produces the output: I would like to reduce the width of the enumerate items by say, a factor of .75; however, when I tried embedding the enumeration within a minipage environment, there is no pagebreak. QUESTION: How may I adjust the width of the displayed items in the enumerate environment? Thank you.
- Skull emoji 💀 in pdfLaTeXby Bryan on April 9, 2026 at 11:47 pm
I’d like to include the skull emoji 💀 in a document compiled with pdfLaTeX but with colors similar to how it displays on my device in other contexts. I can get a skull with fontawesome, but it’s not quite the same: \documentclass{scrartcl} \usepackage{fontawesome5} \begin{document} \faSkull \end{document} creates a skull like which is black/white inverted compared to how my device normally shows 💀, where the skull is white, and the eye sockets are black. I cannot change to LuaTeX because what I am compiling is like, super large. I also tried something along the lines of \contourlength{0.5pt} and \contour{black}{\color{white}\faSkull} but that did not work well. Can anyone help get 💀 with black eye sockets on a white skull or something close to it? Thanks!
- Overlapping two disjunction (or conjunction) symbolsby paula on April 9, 2026 at 11:29 pm
Does anyone know a way to "overlap" two disjunction (or conjunction) symbols? Almost looking like a "W". It is sometimes used in infinitary logic!
- adjusting dvi driver settings for grodvi outputby lodwicz on April 9, 2026 at 8:02 pm
experimenting with groff output, i found the following warning in the grodvi man page: Bugs DVI files produced by grodvi use a different resolution (57,816 units per inch) from those produced by TeX. Incorrectly written drivers which assume the resolution used by TeX, rather than using the resolution specified in the DVI file, will not work with grodvi. I used to work with either 180dpi and 300dpi resolutions on TeX output; but to tell the truth, I think I forgot what the "resolution" in this context means. What is the "resolution" of TeX, if not 57 (decimal comma or thousand marker?) 816 units per inch? How how do I adjust my drivers to generate pk fonts in the default sizes for grodvi? My dvi driver reports the following in the logs (edited for space): Opening f:\progs\groff\dict.dvi (1 pages) Opening cmbx10 at 300 dpi from \progs\pkfonts\lj_base.fli: OK Opening cmr10 at 241 dpi from \progs\pkfonts\241\cmr10.pk: FAILED Opening cmr10 at 220 dpi from \progs\pkfonts\220\cmr10.pk: FAILED Opening cmr10 at 264 dpi from \progs\pkfonts\264\cmr10.pk: FAILED Opening cmr10 at 201 dpi from \progs\pkfonts\201\cmr10.pk: FAILED Opening cmr10 at 289 dpi from \progs\pkfonts\289\cmr10.pk: FAILED Opening cmr10 at 183 dpi from \progs\pkfonts\183\cmr10.pk: FAILED Opening cmr10 at 317 dpi from \progs\pkfonts\317\cmr10.pk: FAILED Opening cmr10 at 167 dpi from \progs\pkfonts\167\cmr10.pk: FAILED Opening cmr10 at 347 dpi from \progs\pkfonts\347\cmr10.pk: FAILED Opening cmr10 at 153 dpi from \progs\pkfonts\153\cmr10.pk: FAILED Opening cmr10 at 380 dpi from \progs\pkfonts\380\cmr10.pk: FAILED Opening cmr10 at 139 dpi from \progs\pkfonts\139\cmr10.pk: FAILED Opening cmr10 at 416 dpi from \progs\pkfonts\416\cmr10.pk: FAILED Cannot open font cmr10 at 241 dpi; 1 font files are open [etc] [1] TeX \special{papersize=8.500in,11.000in} ignored TeX \special{color gray 0} ignored So it is clear to me that the driver is finding the title font at 300dpi, magstep 2 (1.244 times larger than regular design) iirc of the body cmr10 241dpi.
- I am trying to typeset a solution for finding the next number in a series using TiKZby Brion on April 9, 2026 at 6:30 pm
The following code snippet works, but I'm looking for a more elegant solution. Perhaps one using an inverse tree environment. \documentclass[12pt]{article} \usepackage{tikz} \begin{document} Problem: Find the next number in the following sequence:\\ 7 \quad 10 \quad 15 \quad 22 \quad 31...\\ Solution:\\ \begin{tikzpicture} \node (a) at (0,0) { 7}; \node (b) at (0:0.75) {10}; \node (c) at (0:1.50) {15}; \node (d) at (0:2.25) {22}; \node (e) at (0:3.00) {31}; \node [red] (f) at (0:3.75) {42}; \node (g) at (0.50,-1) { 3} edge [<-] (a) edge [<-] (b); \node (h) at (1.25,-1) { 5} edge [<-] (b) edge [<-] (c); \node (i) at (2.00,-1) { 7} edge [<-] (c) edge [<-] (d); \node (j) at (2.75,-1) { 9} edge [<-] (d) edge [<-] (e); \node [red] (k) at (3.50,-1) {11} edge [red] [<-] (e) edge [red] [->] (f); \node (l) at (1.00,-2) {2} edge [<-] (g) edge [<-] (h); \node (m) at (1.75,-2) {2} edge [<-] (h) edge [<-] (i); \node (n) at (2.50,-2) {2} edge [<-] (i) edge [<-] (j); \node [red] (o) at (3.25,-2) {2} edge [red] [<-] (j) edge [red] [->] (k); \node (p) at (5,-3.5) {}; \draw [->,red] (0,-3.5) .. controls +(up:1cm) and +(left:1.5cm) .. node {}(g); \end{tikzpicture} \setlength{\parskip}{0pt} \setlength{\parindent}{0pt} Compute the difference between each pair of numbers in the list.\\ Observe the pattern (every odd number beginning with 3, in this case.) \end{document}
- Default fontenc changed from OT1 to T1 in pdflatex when generating tagged pdf?by Alain Stalder on April 9, 2026 at 11:01 am
See the following example: % !TEX TS-program = pdflatex \DocumentMetadata{lang=en,pdfstandard=ua-2,pdfstandard=a-4f,tagging=on,tagging-setup={math/setup=mathml-SE}} \documentclass{article} \usepackage[OT1]{fontenc} \usepackage{kantlipsum} \renewcommand{\familydefault}{\sfdefault} \begin{document} \section{Start} \kant[42] \end{document} As-is (with TexLive 2026) uses Computer Modern (cmss*.pfb), but if I remove the \usepackage[OT1]{fontenc} line, it uses Computer Modern Super (cm-super/*.pfb), hence I guess is then using T1 fontenc, and if I additionally remove the \DocumentMetadata line, then I am back to Computer Modern, the expected default in pdflatex. Was that a conscious decision? I could imagine that some tagged pdf features would not work (or not work well) with OT1 (i.e. more than generally with pdflatex)? If intentional, is it documented somewhere? I could not find it via search engines and looking at a few documents, but maybe is somewhere? Side note: The position of the text also moved in the example when activating tagged pdf (independently of fontenc).
- Tizk and circuitikz How to put frame around collection of commands inside?by Nasser on April 9, 2026 at 9:36 am
I am using circuitikz to make 2 small diagrams with spring mass. I'd like to put a frame around each. I tried many things, such as using \fbox and \node[draw=black, inner sep=5pt]{...}; but nothing works. I keep getting errors. Below is what I have as MWE \documentclass[tikz, border=2mm]{standalone} \usepackage{circuitikz} \usetikzlibrary{calc} \usepackage{amsmath} \usetikzlibrary{patterns,hobby,decorations.pathmorphing} \usetikzlibrary{fit} \begin{document} \begin{circuitikz}[remember picture, overlay] %\draw[step=1cm, gray, very thin] (current page.south west) grid (current page.north east); \coordinate (A) at (3,-.5); \coordinate (B) at (12,-.5); %ground %\node[draw=black, inner sep=5pt]{ %does not work \pattern[pattern=north east lines] (A) rectangle ($(A)+(4,0.15)$); \draw[thick] (A) -- ($(A)+(4,0)$); \draw ($(A)+(1.5,0)$) to[spring, l_=$k$] ($(A)+(1.5,-2)$); \draw ($(A)+(2.5,0)$) to[damper, l=$c$] ($(A)+(2.5,-2)$); \draw[fill=gray!30] ($(A)+(1,-2)$) rectangle ($(A)+(3,-3)$); \node[font=\Large] at ($(A)+(2,-2.5)$) {$m$}; \draw[thin,dashed] ($(A)+(3.25,-2.5)$) -- ($(A)+(4.5,-2.5)$); \node[align=left,font=\small] at ($(A)+(5.25,-2.5)$) {equilibrium\\position}; \draw[thin, ->] ($(A)+(4,-2.5)$) -- ($(A)+(4,-3)$); \node at ($(A)+(4,-3.2)$) {$x$}; \node at ($(A)+(2,-4)$) {$\boxed{m x'' + c x' + k x = 0}$}; %}; %does not work %------------------------------------ %\fbox{ %does not work \pattern[pattern=north east lines] (B) rectangle ($(B)+(4,0.15)$); \draw[thick] (B) -- ($(B)+(4,0)$); \draw ($(B)+(2,0)$) to[spring, l_=$k$] ($(B)+(2,-2)$); \draw[fill=gray!30] ($(B)+(1,-2)$) rectangle ($(B)+(3,-3)$); \node[font=\Large] at ($(B)+(2,-2.5)$) {$m$}; \draw[thin,dashed] ($(B)+(3.25,-2.5)$) -- ($(B)+(4.5,-2.5)$); \node[align=left,font=\small] at ($(B)+(5.25,-2.5)$) {equilibrium\\position}; \draw[thin, ->] ($(B)+(4,-2.5)$) -- ($(B)+(4,-3)$); \node at ($(B)+(4,-3.2)$) {$x$}; \draw[thick, ->] ($(B)+(2,-3)$) -- ($(B)+(2,-3.5)$); \node at ($(B)+(2,-3.75)$) {$F_0 \cos(\varpi)$}; \node at ($(B)+(2,-4.5)$) {$\boxed{m x'' + k x = F_0 \cos(\varpi)}$}; %} %does not work \end{circuitikz} \end{document} Compiling with lualatex gives this I'd like to make it look like this I do not want to make 2 separate \begin{circuitikz} and put fbox or frame outside each. But want just one \begin{circuitikz} as above, and inside it, put a frame around any collection of commands I want. Is this possible to do? All examples I saw says to put frame around the whole tikz picture. But that is not what I want. May be \node[draw=black, inner sep=5pt]{...}; does not work inside circuitik?
- Browsable list of available latex packages, styles, environments and their purposes?by morris roger on April 8, 2026 at 8:24 pm
To use CTAN one has to know what one is looking for. I would like to browse a list for packages, and (hopefully) say to myself, "that is something that may help me now or in the future". Then I would like to know what it does (usually omitted, along with the syntax, from the code). As an example: I would like a list of all the font syles (especially the ones that I never heard of) so that I can use fntsample to print out the characters. If one types "font styles" in CTAN there are only 28 hits, omitting fonts that I know exist. (I now see from answer that tug.org/FontCatalogue will work for fonts). That still leaves the myriad of other packages
- Improvements to code used for a special headingby yannisl on April 8, 2026 at 11:51 am
The following code snippet draws a box in box for a heading. I would like some help to improve the code so that only the top right corner of the bottom box is rounded. Most of the values are currently hardcoded, as this forms part of a larger code that calls the macro \tikzspecial defines keys that are passed as options. The height of the blue top box should be 3cm, I seem to be about a couple of mm out, any help with that I would also appreciate. \documentclass[10pt,twoside]{book} \usepackage[bottom=2cm,top=2cm, left=3cm, right=4cm,showframe]{geometry} \usepackage{tikz} \usepackage{kantlipsum} \ExplSyntaxOn \makeatletter \NewDocumentCommand{\tikzspecial}{s O +m}{ %% First band \begin{tikzpicture}[remember~picture,overlay,inner~sep=0pt,outer~sep=0pt] \draw[draw=none,fill=cyan,outer~sep=0pt,inner~sep=0pt, xshift={-2cm},yshift=-\dimexpr3cm+10pt] (current~page.north~west) rectangle (\paperwidth,2.5cm); \end{tikzpicture} %% Second band with rounded corners \begin{tikzpicture}[remember~picture,overlay] \node~at~(current~page.north~west)~[yshift=-\dimexpr3cm+5.4pt,xshift=-10pt,%.3 klls corners on left anchor=south~west,inner~sep=10pt, outer~sep=0,white,fill=black, draw=none,rounded~corners=10pt,align=left, text~width=\textwidth]{\leftskip10pt \large \sffamily\LARGE\bfseries \IfBooleanTF{#1}{}{\thechapter.\space} #3\par }; \end{tikzpicture} \vspace*{4\baselineskip} \par \@afterindentfalse \@afterheading } \makeatother \ExplSyntaxOff \begin{document} \parindent=2em % simulate chapter \stepcounter{chapter} \tikzspecial*{Some Special Layout\\ Format} \kant[1-9] \end{document}
- 3d Tikz Graph highlighting a specific interp line and axis problemby FishDrowned on April 7, 2026 at 2:43 pm
I'm currently trying to graphically represent Feynman's technique. Specifically, I have the function rad(atan(sqrt(2-x*x)))/(1+x*x) which is being parametrized as rad(atan(t*sqrt(2-x*x)))/(1+x*x). I managed to create the graph for the function, \documentclass{standalone} \usepackage{tikz,pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines = center, axis on top, view={50}{30}, xlabel={$x$}, ylabel={$t$}, zlabel={}, xmin=-2, xmax=2, ymin=-2, ymax=2, zmin=-2, zmax=2, tick label style={font=\tiny} ] \addplot3[ surf, shader=faceted interp, faceted color=black!60, opacity=0.85, samples=22, samples y=18, domain=-1.4:1.4, domain y=-2:2, ] {rad(atan(y*sqrt(2-x*x)))/(1+x*x)}; \end{axis} \end{tikzpicture} \end{document} But I'm having trouble figuring out how to a) highlight the specific line along the function that represents rad(atan(sqrt(2-x*x)))/(1+x*x) and b) getting the axis lines to be above and below the 3d surface when the surface is above and below.
- How to plot y = x^{2/3} + 0.8 cos(kx) √(3-x²) in LaTeX TikZby hola on April 7, 2026 at 1:45 pm
I would like to plot the following function in LaTeX using TikZ or pgfplots: \[ y = x^{2/3} + 0.8 \cdot \cos(kx) \cdot \sqrt{3 - x^2} \] The domain is \( - \sqrt{3} \leq x \leq \sqrt{3} \). I need to create a nice graph where: The curve looks smooth I can easily change the value of \( k \) (number of oscillations) The modulated amplitude (the \( \sqrt{3-x^2} \) part) is clearly visible I have tried basic \addplot but I have problems with the fractional power \( x^{2/3} \) and with making the cosine oscillation look good. MWE (Minimal Working Example): \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis} \addplot {x^(2/3)}; % this part works, but adding the rest is difficult \end{axis} \end{tikzpicture} \end{document} pgfplots tikz-pgf plot functions graphics