Hot
- Why the range of the upper index string extends if embedded in a macro?by katang on November 18, 2026 at 6:19 pm
The range of the upper index string extends to the argument following the macro. If it's not embedded, it works fine. Am I doing something wrong or illegal? \documentclass{book} \begin{document} \def\ConcentrationFormula#1#2#3 {C_{#2}^{#3}} %%% Test concentration \def\ConcentrationNaInName{\ConcentrationFormula{150}{Na}{In}} \[ \ConcentrationNaInName != \ConcentrationFormula{150}{Na}{In} = \ConcentrationFormula{150}{Na}{In} \] \end{document}
- tblr inside tblr, vertical alignmentby rsa-krypto on November 18, 2026 at 4:20 pm
I just can't figure out what I'm doing wrong. I want to vertical align the content of a cell at the top. This cell contains a tblr ans its height is set to a specific length. \documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}[baseline=T]{% colspec = {lc}, row{2}={ht=5cm, h}, % <- This should top align the content of row 2. hlines, vlines } A & B\\ C\par % <- This cell should be top aligned but is vertically centered. \begin{tblr}[baseline=T]{ colspec={ll}, hlines, vlines } D & E \end{tblr} & F \end{tblr} \end{document} I tried the link (Tabularray nested tables aren't vertically aligned), but it didn't work when I preset the height of a row.
- How do I assign more memory to PGFPlots to graph a function with more points?by Rain on November 18, 2026 at 3:24 pm
I want to graph a (pretty ugly) function in 3D using PGFPlots: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[ axis equal, zmin=0, zmax=1.2, axis lines=center, x={(-0.257*\textwidth,-0.257*\textwidth)}, y={(\textwidth,0)}, z={(0,\textwidth)} ] \addplot3[smooth,surf,opacity=0.2,domain=-5:5,y domain=-5:5,samples=81]{ 1.5*(exp(-(4*(x+4))^2-(4*(y+4))^2)+exp(-(4*(x+4))^2-(4*(y+2))^2)+exp(-(4*(x+4))^2-(4*y)^2)+exp(-(4*(x+4))^2-(4*(y-2))^2)+exp(-(4*(x+4))^2-(4*(y-4))^2)+exp(-(4*(x+2))^2-(4*(y+4))^2)+exp(-(4*(x+2))^2-(4*(y+2))^2)+exp(-(4*(x+2))^2-(4*y)^2)+exp(-(4*(x+2))^2-(4*(y-2))^2)+exp(-(4*(x+2))^2-(4*(y-4))^2)+exp(-(4*x)^2-(4*(y+4))^2)+exp(-(4*x)^2-(4*(y+2))^2)+exp(-(4*x)^2-(4*(y-2))^2)+exp(-(4*x)^2-(4*(y-4))^2)+exp(-(4*(x-2))^2-(4*(y+4))^2)+exp(-(4*(x-2))^2-(4*(y+2))^2)+exp(-(4*(x-2))^2-(4*y)^2)+exp(-(4*(x-2))^2-(4*(y-2))^2)+exp(-(4*(x-2))^2-(4*(y-4))^2)+exp(-(4*(x-4))^2-(4*(y+4))^2)+exp(-(4*(x-4))^2-(4*(y+2))^2)+exp(-(4*(x-4))^2-(4*y)^2)+exp(-(4*(x-4))^2-(4*(y-2))^2)+exp(-(4*(x-4))^2-(4*(y-4))^2)) }; \end{axis} \end{tikzpicture} \end{document} This takes maybe a minute or two to compile and results in something like this: However, these are supposed to be gaussian curves and therefore smoother, not spiky like in the picture. I'd therefore like to increase the number of points. However, going above 71 points causes my editor (TeXShop) to throw the following error: TeX capacity exceeded, sorry [main memory size=5000000]. How do I assign more memory to TeX? I've seen a few posts asking similar things, but the answers I've seen involve typing things into the command line (which I don't know how to do with TeXShop; I only know how to open Terminal on my Mac and type commands to control the computer's file system, such as cd and rm and ls and so on) or setting up LuaLaTeX (and I use XeLaTeX for font reasons). (Can an arbitrarily large amount of memory be assigned to LaTeX? My computer has 32 GB of RAM; I wouldn't mind giving it 5 GB to play with if it means it'll produce the graphs I want it to.) Thanks in advance.
- Customize cross-references depending on destination typeby Dimitris K on November 18, 2026 at 12:55 pm
I'd like to customize the text of cross-references throughout a document using \ref{label}, with the following rules depending on what they link to: To a numbered part/chapter/section/appendix: "[part|chapter|section|appendix] [number] [title] on page [page number]" To an unnumbered part/chapter/section/appendix: "[part|chapter|section|appendix] [title] on page [page number]" (no number) To anything else: "[destination type] [number] on page [page number]" (no title) In all cases, I'm not interested in hyperlinks with individually customized text. That's why I'm not using \hyperref, but I'm open to it if it helps. Ideally I'd like to define these rules in the preamble so \ref{label} follows them throughout the content. Is there some place to start for this kind of customization? I've come across the cleveref package, but its documentation goes a bit over my head so I'm not even sure if it's a good place to start for this.
- newenvironment: how to mange first words in it in boldfaceby Zarko on November 18, 2026 at 12:46 pm
I try to define new environment for short explanation of text which should have few first words in bold text. In definition I use tabularray package. I wonder what is wrong with my definition that first words in text doesn't appear in bold text, however inside text works as expected. Please consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage{xcolor} \usepackage{tabularray} \newenvironment{NoteExpl}[1] {\par\vspace{1ex} \hfill\begin{tblr}{width=0.77\linewidth, colsep =4pt, colspec={X[j]}, cells ={bg=yellow!10, font=\sffamily\upshape\linespread{0.84}\selectfont}} }{\end{tblr}\par\vspace{1ex}} \begin{document} \itshape \lipsum[1][1-3] % this doesn't work \begin{NoteExpl} \textbf{Kaj se zgodi:} suženj \#3 prejme \textbf{datagram} z \dots \end{NoteExpl} % this works \hfill\begin{tblr}{width=0.77\linewidth, colsep =4pt, colspec={X[j]}, cells ={bg=yellow!10, font=\sffamily\upshape\linespread{0.84}\selectfont}} \textbf{Kaj se zgodi:} suženj \#3 prejme datagram z \dots \end{tblr} \lipsum[1][4-5] \end{document}
- lualatex fails to read the math table parameter for rootsby Antonis on November 17, 2026 at 10:14 am
When switching Math fonts lualatex fails to read the current RadicalRootThickness parameter. But xelatex does it correctly. MWE follows: \documentclass{article} \usepackage{unicode-math} \setmathfont{NewCMMath-Bold.otf} \setmathfont[range={\mathscr,\mathbfscr}]{NewCMMath-Book.otf} \setmathfont{NewCMMath-Bold.otf} \begin{document} \[ \sqrt{\frac{\displaystyle\sum_{n=1}^\infty a_n}{\displaystyle\sum_{n=1}^\infty a_n}}% \] \end{document} The output is as follows:
- How to have a `\cup` symbol different from the other symbols?by Rup_Cantor on November 17, 2026 at 4:15 am
I am writing a report and for the document I am using \usepackage{newtxmath,newtxtext}, which is quite a standard and nice font. However I am not liking the summation and the union symbol in it. I do like the default summation and union symbols that uses computermodern font I guess. So I want to use the default summation and union symbols while still using newtxmath for others. I searched for it, and found how to do it for summation symbol from the answers to the post Having one math symbol be in a different font from the others. But I'm having trouble how to do the same for the union symbol. Following the kind suggestion of @egreg given in the comments I am asking a new question about the symbol \cup. Since I'll be using the default \cup symbol so it is necessary that the \bigcup,\cap,\bigcap symbols all are in default of $\LaTeX$. Here's a code to start with: \documentclass[a4paper,12pt]{report} \usepackage{amsmath, amssymb, amsthm} \usepackage{newtxmath,newtxtext} \begin{document} I want the $\cup$ and $\bigcup$ symbols in default font. \end{document}
- XeTeX Color Stack Overflow Bug?by Explorer on November 16, 2026 at 8:11 am
Let's consider the following code: \documentclass{article} \usepackage{color} \begin{document} \ExplSyntaxOn \prg_replicate:nn {126} {\color{red}} \ExplSyntaxOff {\color{black}\textcolor{black}{XXX} SHOULD BE BLACK} \end{document} With pdflatex or lualatex, it behaves as expected: However, with xelatex, the color stack overflows(?): Any suggestions or paraphase? It looks like a bug with xdvipdfmx? Edited The more original example: \documentclass{article} \usepackage{tcolorbox,adjustbox} \tcbuselibrary{listings} \tcbset{listing engine=listings} \DeclareTCBListing{DocExample}{!s!O{//}}{} \begin{filecontents*}[overwrite]{\jobname-empty.tex} \begin{DocExample} \end{DocExample} \end{filecontents*} \ExplSyntaxOn \sys_if_engine_luatex:F { \cs_new_eq:NN \__ztex_doc_physical_newwrite:N \newwrite \RequirePackage{morewrites}[2024/02/02] \cs_set_eq:NN \__iow_new:N \__ztex_doc_physical_newwrite:N } \newcommand{\adjustBox}[1]{ \adjustbox{set~height=0pt, set~depth=0pt}{#1} } \newcommand{\EmptyExamples}{ \prg_replicate:nn {118} {\input{\jobname-empty.tex}} } \ExplSyntaxOff \AddToHook{env/DocExample/after}[ztex-doc-example-color]{\color{.}} \begin{document} \EmptyExamples \makeatletter \begin{DocExample}* \begin{tcolorbox}[]\adjustBox{XXX} THE BUGGY WHITE TEXT \tcblower THE NORMAL TEXT \end{tcolorbox} \end{DocExample} \end{document} The last page:
- lxfonts package and amsrefs conflictby Ethan Duckworth on November 15, 2026 at 7:26 pm
I'm trying to use both the lxfonts and amsrefs packages using pdflatex. This gives an error "Command \cir already defined." Sure enough, lxfonts tries to define \cir though I can't find that a similar command in amsrefs. Here's a minimal document \documentclass{article} \usepackage{lxfonts} \usepackage{amsrefs} \begin{document} test \end{document} I'm using TeXLive 2026. Is there a workaround?
- Why is package `cacography` mandatory in `collection-lualatex`?by rallg on November 15, 2026 at 6:54 pm
This might be a question for CTAN, but before I go there, I ask here: Using Linux, TeXlive 2026. Today's update force-installed package cacography. Never heard of it, but I went to CTAN and obtained its documentation. This package is ultra-specialized, and furthermore requires Python support (and possibly NVIDIA support) with limited licensing. I tried to remove the package, but tlmgr informed me that I could not, because it is now part of collection-lualatex. My question: Why is such a specialized package now an integral part of collection-lualatex? I cannot imagine that the prospective user base is large. EDIT: As suggested in comments, this is a TeXlive question. But since it attracted interest and has a good answer, I will leave the question in place.
- How to reduce line spacing inside a mathematical proof?by Rup_Cantor on November 15, 2026 at 2:49 pm
I am writing a proof of a theorem using matrices but the spacings are not looking good. So I want to reduce the spacing to make it look beautiful. I am showing a part of my proof as an example. So basically I want the last line to be a little up and the matrix is on the right side of line so it disturb the upper line. I have tried \vspace{-2em} but it is not working but it worked in my other proofs having unions (that did not have matrices though). Any help/suggestion is highly appreciated. Thanks! MWE: \documentclass[a4paper,12pt]{report} \usepackage{amsmath,amssymb,graphicx,amsthm} \begin{document} \begin{proof} Consider the positive eigenvectors $Z_1$ and $Z_2$ of $L_1$ and $L_2$. \\ Let $k=\frac{\displaystyle \sum_{v\in G_1}Z_1(v)}{\displaystyle\sum_{v\in G_2}Z_2(v)}$.\\ With the permutation similarity operation, we can write $ \hat{L} =\begin{bmatrix} L_1 & 0 &\cdots & 0\\ 0 & L_2 & \cdots &0\\ \vdots & \vdots & \ddots &\vdots\\ 0& \cdots & 0 & L_t \end{bmatrix}.$ \end{proof} \end{document}
- mtpro2 curly brace inside redefined cases not working in LuaLaTeX [duplicate]by Sebastiano on November 14, 2026 at 11:06 pm
Related with my recent question MTPro2 Lite: curly brace changes appearance when using \dfrac inside cases in LuaLaTeX still not working. \documentclass[12pt]{article} \usepackage[no-math]{fontspec} \setmainfont{Times New Roman}[ Ligatures=TeX ] \usepackage{mathtools} \usepackage[lite]{mtpro2} \makeatletter \newcases{casesaux}{\quad}{$\m@th##$\hfil}{$\m@th##$\hfil}{.}{.} \newcases{dcasesaux}{\quad}{$\m@th\displaystyle##$\hfil}{$\m@th\displaystyle##$\hfil}{.}{.} \makeatother \RenewDocumentEnvironment{cases}{b}{{% \LEFTRIGHT\lbrace.{\begin{casesaux}#1\end{casesaux}}% }}{} \RenewDocumentEnvironment{dcases}{b}{{% \LEFTRIGHT\lbrace.{\openup1\jot\begin{dcasesaux}#1\end{dcasesaux}}% }}{} \begin{document} \[ f(x)= \begin{cases} \frac{1}{x}, & x>0,\\ \frac{x^2+1}{x-1}, & x<0\\ \frac{d}{s}, & f \end{cases} \qquad f(x)= \begin{dcases} \frac{1}{x}, & x>0,\\ \frac{x^2+1}{x-1}, & x<0 \end{dcases} \] \end{document} With XeLaTeX all works:
- Inner block vspace depending on whether first or last child of outer blockby David Purton on November 14, 2026 at 12:13 pm
The new block implementation is much more flexible than the old \list option. So, I'm hunting for a neat way of controlling the vspace around an inner block depending on whether the inner block is a first or last thing inside an outer block. Implementation should work with and without tagging enabled. The rule set for the inner block environment should be: Set begin-vspace and end-vspace to some value (could be different). If inner block is first thing inside outer block, set begin-vspace to 0pt. If inner block is last thing inside outer block, set end-vspace to 0pt. MWE %! TeX Program = lualatex \DocumentMetadata{} \documentclass{article} \begin{document} Text above outer block environment. \begin{displayblock}[ , begin-vspace = 0pt , begin-extra-vspace = 0pt , end-vspace = 0pt , end-extra-vspace = 0pt ] \begin{displayblock}[ , begin-vspace = 1ex , begin-extra-vspace = 0pt , end-vspace = 1ex , end-extra-vspace = 0pt ] Only put space above if not first thing in outer block. Only put space if not last thing in outer block. \end{displayblock} \end{displayblock} Text below outer block environment. \end{document}
- Significant differences between 'pdflatex' and 'lualatex' PDFsby Denis Bitouzé on November 14, 2026 at 9:14 am
If I'm not mistaken, the outputs from pdflatex and lualatex is supposed to be virtually identical. However, I've noticed significant differences between the PDF files generated by pdflatex, on the one hand, and by lualatex, on the other—to the point that the number of pages isn't the same. I don’t have time right now to reduce this to a minimal example, but this phenomenon can be observed with the these.tex file located in .../texlive/2026/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/, run with: latexmk these for pdflatex (thanks to the line $pdf_mode = 1; in the latexmkrc file in the a-plat/ directory), latexmk -c these && latexmk -pdflua these for lualatex. Are such differences now accepted?
- combine multiple functions of author in authortypeby Alexander Wittmann on November 14, 2026 at 1:10 am
May there be a book which I bibliographize not by its author, but by its editor. The editor has not only edited the book, but also translated it and commented it upon. If the "author" was only the editor, I can write author = {Some Body} and authortype = {editor}. That's the cool way. BUT if I want to combine several functions of the "author", how can I put them into one authortype? Neither authortype = {editor AND translator AND commentator} nor authortype = {editor, translator, commentator} nor authortype = {editor translator commentator} do work, the same with commentary... instead of commentator... Regardless of any biblatex-styles, is there an easy way to combine the different functions in one field authortype = {function1 function2 function3}? MNWE @Book{Flores:Naevius, editor = {Enrico Flores}, introduction = {Enrico Flores}, translation = {Enrico Flores}, % author = {Enrico Flores}, % authortype = {editor}, % still works % authortype = {editor AND introduction AND translator}, % authortype = {editor, introduction, translator}, % authortype = {editor introduction translator}, title = {Naeuius \mkbibemph{Some Title}}, date = 2011, publisher = {Editore}, location = {Localita}, }
- How to Significantly Increase the Number of Circularly Arranged Tikz Stars?by DDS on November 13, 2026 at 11:00 pm
Consider the code: \documentclass{article} \usepackage{tikz,xcolor} \usetikzlibrary{decorations.text} \usetikzlibrary{shapes.geometric} \pgfkeyssetvalue{cacamailg/picture-scale}{1.5} % To produce the stars \definecolor{red_color}{RGB}{111,6,2} \begin{document} \pagecolor{red_color} {\begin{tikzpicture} \foreach \k in {0,1,...,39}{ \node[ xscale=0.10,yscale=0.10, shape=star, star points=5, star point ratio=3.0, minimum size=0.8cm, fill=white, draw=white, rotate=360*\k/100, ] at (360*\k/40+90:5.7cm) {}; } \end{tikzpicture}} \end{document} which produces: There are 40 five-point stars circularly arranged in this display. I would like to be able to increase this to, say, 120 such circularly arranged stars; however, when I try to do this, I get an error message stating "dimension too large." QUESTION: How may I (if possible) increase the number of stars in the display in excess of 100? Thank you.
- ! LaTeX Error: Encoding scheme 'TS1' unknown triggered by \copyright [closed]by Sebastiano on November 13, 2026 at 9:38 pm
I am getting the following compilation error when using \copyright in my document: ! LaTeX Error: Encoding scheme `TS1' unknown. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.7 \DeclareFontFamily{TS1}{ntxtlf}{} The strange thing is that \copyright used to compile without any issues until a few days ago, and I haven't intentionally changed my preamble. If I remove \copyright from the text, the document compiles fine. Here is a minimal not working example of my setup: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{newtxtext} \begin{document} Some text \copyright\ 2026. \end{document} With \usepackage[TS1,T1]{fontenc} all works correctly. PS Few mounths ago all works without TS1. Here is the log file This is pdfTeX, Version 3.141592653-2.6-1.40.29 (MiKTeX 26.5) (preloaded format=pdflatex 2026.11.9) 14 NOV 2026 08:30 entering extended mode \write18 enabled. %&-line parsing enabled. **"C:/Users/sebys/OneDrive/Desktop/new question/Test2.tex" (C:/Users/sebys/OneDrive/Desktop/new question/Test2.tex LaTeX2e <2026-06-01> L3 programming layer <2026-09-09> (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls Document Class: article 2026-06-04 v1.4n Standard LaTeX document class (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo File: size10.clo 2026-06-04 v1.4n Standard LaTeX file (size option) ) \c@part=\count276 \c@section=\count277 \c@subsection=\count278 \c@subsubsection=\count279 \c@paragraph=\count280 \c@subparagraph=\count281 \c@figure=\count282 \c@table=\count283 \abovecaptionskip=\skip49 \belowcaptionskip=\skip50 \bibindent=\dimen150 ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\fontenc.sty Package: fontenc 2026-07-31 v2.2a Standard LaTeX package ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/newtx\newtxtext.sty Package: newtxtext 2024/04/01 v1.744(Michael Sharpe) latex and unicode latex su pport for TeXGyreTermesX `newtxtext' v1.744, 2024/04/01 Text macros taking advantage of TeXGyre Termes a nd its extensions (msharpe) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/xpatch\xpatch.sty (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/l3kernel\expl3.sty Package: expl3 2026-09-09 L3 programming layer (loader) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/l3kernel\l3backend-pdft ex.def File: l3backend-pdftex.def 2026-09-09 L3 backend support: PDF output (pdfTeX) \l__color_backend_stack_int=\count284 )) Package: xpatch 2020/03/25 v0.3a Extending etoolbox patching commands (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/l3packages/xparse\xpars e.sty Package: xparse 2025-10-09 L3 Experimental document command parser ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/etoolbox\etoolbox.sty Package: etoolbox 2025/10/02 v2.5m e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count285 )) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/xcolor\xcolor.sty Package: xcolor 2024/09/29 v3.02 LaTeX color extensions (UK) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\color.cfg File: color.cfg 2016/01/02 v1.6 sample color configuration ) Package xcolor Info: Driver file: pdftex.def on input line 274. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\pdftex.def File: pdftex.def 2025/09/29 v1.2d Graphics/color driver for pdftex ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/graphics\mathcolor.ltx) Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1349. Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1353. Package xcolor Info: Model `RGB' extended on input line 1365. Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1367. Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1368. Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1369. Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1370. Package xcolor Info: Model `Gray' substituted by `gray' on input line 1371. Package xcolor Info: Model `wave' substituted by `hsb' on input line 1372. ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/iftex\iftex.sty Package: iftex 2024/12/12 v1.0g TeX engine tests ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/xkeyval\xkeyval.sty Package: xkeyval 2022/06/16 v2.9 package option processing (HA) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkeyval.tex (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkvutils.tex \XKV@toks=\toks17 \XKV@tempa@toks=\toks18 (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\keyval.tex)) \XKV@depth=\count286 File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA) )) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\textcomp.sty Package: textcomp 2024/04/24 v2.1b Standard LaTeX package ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/xstring\xstring.sty (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/xstring\xstring.tex \xs_counta=\count287 \xs_countb=\count288 ) Package: xstring 2023/08/22 v1.86 String manipulations (CT) ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\ifthen.sty Package: ifthen 2026-06-01 v1.1e Standard LaTeX ifthen package (DPC) ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/carlisle\scalefnt.sty) LaTeX Font Info: Setting ntxLF sub-encoding to TS1/0 on input line 24. LaTeX Font Info: Setting ntxTLF sub-encoding to TS1/0 on input line 24. LaTeX Font Info: Setting ntxOsF sub-encoding to TS1/0 on input line 24. LaTeX Font Info: Setting ntxTOsF sub-encoding to TS1/0 on input line 24. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/binhex\binhex.tex) \ntx@tmpcnta=\count289 \ntx@cnt=\count290 (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/fontaxes\fontaxes.sty Package: fontaxes 2026-01-02 v2.0.2 Font selection axes (deprecated) Applying: [2024-11-01] Use figureversions if present on input line 74. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/figureversions\figureve rsions.sty Package: figureversions 2025-04-29 v1.0.1 Figure versions ) Already applied: [0000-00-00] Fall back to v1 on input line 76. ) \tx@sixem=\dimen151 \tx@y=\dimen152 \tx@x=\dimen153 \tx@tmpdima=\dimen154 \tx@tmpdimb=\dimen155 \tx@tmpdimc=\dimen156 \tx@tmpdimd=\dimen157 \tx@tmpdime=\dimen158 \tx@tmpdimf=\dimen159 \tx@dimA=\dimen160 \tx@dimAA=\dimen161 \tx@dimB=\dimen162 \tx@dimBB=\dimen163 \tx@dimC=\dimen164 LaTeX Info: Redefining \oldstylenums on input line 902. ) LaTeX Font Info: Trying to load font information for T1+ntxtlf on input line 4. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/newtx\t1ntxtlf.fd File: t1ntxtlf.fd 2021/05/24 v1.1 font definition file for T1/ntx/tlf ) LaTeX Font Info: Font shape `T1/ntxtlf/m/n' will be (Font) scaled to size 10.0pt on input line 4. (C:/Users/sebys/OneDrive/Desktop/new question\Test2.aux) \openout1 = `Test2.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for IL2/cmr/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/context/base/mkii\supp-pdf.mk ii [Loading MPS to PDF converter (version 2006.09.02).] \scratchcounter=\count291 \scratchdimen=\dimen165 \scratchbox=\box53 \nofMPsegments=\count292 \nofMParguments=\count293 \everyMPshowfont=\toks19 \MPscratchCnt=\count294 \MPscratchDim=\dimen166 \MPnumerator=\count295 \makeMPintoPDFobject=\count296 \everyMPtoPDFconversion=\toks20 ) \c@mv@tabular=\count297 \c@mv@boldtabular=\count298 LaTeX Font Info: Trying to load font information for TS1+ntxtlf on input lin e 5. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/newtx\ts1ntxtlf.fd File: ts1ntxtlf.fd 2015/01/18 v1.0 fd file for TS1/ntxtlf ! LaTeX Error: Encoding scheme `TS1' unknown. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.7 \DeclareFontFamily{TS1}{ntxtlf}{} ? ! Emergency stop. ... l.7 \DeclareFontFamily{TS1}{ntxtlf}{} Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it. Here is how much of TeX's memory you used: 3425 strings out of 467518 55508 string characters out of 5407995 465567 words of memory out of 5000000 32638 multiletter control sequences out of 15000+600000 632123 words of font info for 42 fonts, out of 8000000 for 9000 1141 hyphenation exceptions out of 8191 74i,0n,77p,344b,106s stack positions out of 10000i,1000n,20000p,200000b,200000s ! ==> Fatal error occurred, no output PDF file produced!
- Florilegium both margins at same pageby CrocoDuck on November 13, 2026 at 5:20 pm
I tried placing flowers on both sides of the text using "florilegium," but without success. \documentclass[11pt,a4paper]{article} \usepackage{fontspec} \usepackage[a4paper, left=55.1mm, right=55mm, top=10mm, bottom=30mm]{geometry} \usepackage[grown, density=.6]{florilegium} \begin{document} \vline \end{document} There is also Tikzflora, but it produces much larger files; the file for the image below -- even when empty and set to a density of 0.1 -- is 2.7 MB, whereas a file using "florilegium" is 350 KB.
- ltx-talk and \partby EconGuy on November 13, 2026 at 12:19 pm
I am confused, in the ltx-talk documentation it says "\part exists to structure your presentation"(and resets the ToC, which I want),see this link, but when I use \part, then it comes up as an 'undefined control sequence'. Am I missing the obvious? MWE: \DocumentMetadata{tagging = on, pdfstandard = ua-2} \documentclass{ltx-talk} \begin{document} \part{Main Presentation} \begin{frame} \frametitle{Part 1 Overview} \tableofcontents % Shows only sections in Part 1 \end{frame} \section{Introduction} \begin{frame}\frametitle{Intro} Content... \end{frame} \section{Methodology} \begin{frame}\frametitle{Methods} Content... \end{frame} % --- Start a later part with a new ToC --- \part{Advanced Topics} \begin{frame} \frametitle{Part 2 Overview} \tableofcontents % Shows only sections in Part 2 \end{frame} \section{Deep Dive} \begin{frame}\frametitle{Details} Content... \end{frame} \section{Future Work} \begin{frame}\frametitle{Next Steps} Content... \end{frame} \end{document}
- PythonTeX output not shown for imported modules in Beamer overlaysby Tonechas on November 13, 2026 at 12:49 am
I want to show Python code and its output on the same Beamer slide. The code is displayed on the left side of a colored box and the output on the right. Using \pause, the code is shown on the first overlay and the output on the second. This is a MWE: \documentclass[xcolor=table]{beamer} \usepackage{fontspec} \usepackage{pythontex} \usepackage{fancyvrb} \usepackage[skins,listings,most]{tcolorbox} \newcommand{\tmpFontSize}{\normalsize} \newcommand{\codepath}{../../PySlides/code} \setpythontexworkingdir{../../PySlides/code} \newenvironment{PyBlockSnippetRight}[3][fontsize=\normalsize] {% \VerbatimEnvironment% \renewcommand{\tmpFontSize}{#1}% \ifstrempty{#2}{% \begin{tcolorbox}[% notitle, colframe=cyan!75!gray, colback=cyan!5, size=small, sidebyside, lefthand ratio=#3, sidebyside align=top]% } { \begin{tcolorbox}[% title=#2, colframe=cyan!75!gray, colback=cyan!5, size=small, sidebyside, lefthand ratio=#3, sidebyside align=top]% } \setpythontexautoprint{false} \begin{pyblock}[][fontsize=#1] } { \end{pyblock} \tcblower \pause \printpythontex[verbatim][formatcom={\color{gray}\tmpFontSize}] \end{tcolorbox} } \begin{document} \begin{frame}[fragile] \frametitle{MWE} \begin{PyBlockSnippetRight}[\large]{Code and output}{.5} for i in range(10): print(i) \end{PyBlockSnippetRight} \end{frame} \end{document} This works fine. The problem arises when I move the Python code to mymodule.py and try to obtain the same output by importing the code like this: \begin{PyBlockSnippetRight}[\large]{Code and output}{.5} import mymodule \end{PyBlockSnippetRight} In this case, the output is not displayed, although it should be. Note that the colored box has the expected height (10 lines) in the first overlay, but shrinks to a single line in the second overlay. More context: Windows 10 PythonTeX 0.19 LuaHBTeX, Version 1.25.7 (MiKTeX 26.5) I have been struggling with this issue for quite a while and cannot figure out what is going wrong. Any suggestions would be greatly appreciated.
- Indenting a second sentence within an enumerated itemby Sho Furuta on November 12, 2026 at 9:42 pm
I want my second sentence in an enumerated item to be indented compared to the first sentence, like below:
- Procedure for taking over maintenance of a CTAN package with old maintainer's permission in 2026by jwodder on November 12, 2026 at 2:08 pm
I recently e-mailed the maintainer of a CTAN package about a problem with it, and they responded that they don't use it anymore and would be fine with me taking over maintenance. Before I try blindly uploading a new version at https://ctan.org/upload, I feel I should ask: How do I establish to the CTAN staff that I have the maintainer's blessings to do this? Should I ask the maintainer to e-mail CTAN? Is there a button in the CTAN web interface that they can press to give me maintainer powers? Further information: The package's ctan.org page states that the package is licensed under version 1 of the LaTeX Project License (which, from a quick look, says nothing about maintainership), while the README.txt file in the package source just states "This program is provided under the terms of the LaTeX Project Public License distributed from CTAN archives in the directory macros/latex/base/lppl.txt" — and, in my version of TeX Live, that file contains version 1.3c of the LPPL, which states: If the Current Maintainer is reachable and agrees to pass maintenance of the Work to you, then this takes effect immediately upon announcement. The "announcement" bit appears to be a reference to a previous clause that states: ..., then announce within the pertinent community your intention to take over maintenance. (If the Work is a LATEX work, this could be done, for example, by posting to comp.text.tex.) Do people really post stuff like this on Usenet in this day & age? I'd have to jump through multiple hoops to post there.
- want \autoref to print "Chapter #" instead of "chapter #" in report class [duplicate]by Rup_Cantor on November 12, 2026 at 4:05 am
I want to link/cite some chapters to demonstrate that "these topics will be studied in Chapter #". I am using report document class. I use \autoref for linking Theorems and Lemmas, which prints them like this: "Theorem #" / "Lemma #". But when I do the same thing with the chapters, it prints it like this "chapter #" instead of "Chapter #". How can I fix that? MWE: \documentclass{report} \usepackage{amsmath,amssymb,amsthm} \usepackage{hyperref} \hypersetup{ colorlinks=true, filecolor=blue, urlcolor=blue, linkcolor=blue } \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newcommand\lemmaautorefname{Lemma} \newcommand\chapterautoframename{Chapter} \begin{document} \chapter{Preliminaries} \begin{lemma} \label{lemma} This is a lemma. \end{lemma} From \autoref{lemma} it follows that... \\ These topics will be studied in \autoref{ch} \chapter{Results} \label{ch} \end{document} Part of the PDF produced:
- foreach doesn't split a dynamically build variable (csname)?by lAtExFaN on November 11, 2026 at 5:33 pm
I would like to process/build a list of filenames to be processed by \input I use pgf's foreach to process/build the list for filenames. But the build lists aren't split (seems to be expansion; I have no clue how to solve (not even how to ask properly). Hopefully this example code helps to understand my goal and the problem. \documentclass{article} \usepackage{pgffor}% http://ctan.org/pkg/{pgf,pgffor} \begin{filecontents}[overwrite,noheader]{fileA.tex} Content file A\par \end{filecontents} \begin{filecontents}[overwrite,noheader]{fileB.tex} Content file B\par \end{filecontents} \begin{filecontents}[overwrite,noheader]{fileC.tex} Content file C\par \end{filecontents} \begin{document} %There are n lists, named eg. parts- and stationsList: \newcommand{\partsList}{fileA,fileB,fileC} \newcommand{\stationsList}{fileC,fileB,fileA} % I would like to iterate over the names, build the lists % and \input each list's files: \foreach \listName in {parts, stations} {% \newcommand{\aList}{\csname \listName List\endcsname} aList (\listName): \aList\par %<- seems fine, but ... \foreach \file in \aList {% ... isn't split %\input{\file} %<- fails obiously f: \file\par %<- output for debugging/testing } } \end{document}
- Attempting to make align environment that's very long fit on pageby leg42004 on November 11, 2026 at 5:57 am
I am working on formatting a line of equalities, including a second column labelling where each equality comes from. Below is my tex code. Any ideas on how to get this to look nice and fit on the page? \documentclass{article} \usepackage{amsmath} \begin{document} \newcommand{\by}[2]{&{#1}&\text{#2}} \newcommand{\id}{\text{id}} \newcommand{\ev}{\text{ev}} \newcommand{\coev}{\text{coev}} \newcommand{\cat}{\mathcal{C}} \begin{alignat*}{2} &(\id_Z \otimes \ev_Y \otimes \id_{X^*}) \circ (\tilde{g} \otimes \tilde{f}) = (\id_Z \otimes \ev_Y \otimes \id_{X^*})\circ (((g\otimes \id_{Y^*}) \circ \coev_Y) \otimes (f\otimes \id_{X^*}) \circ \coev_X)\\ &= (\id_Z \otimes \ev_Y \otimes \id_{X^*})\circ (g\otimes \id_{Y^*}\otimes f\otimes \id_{X^*}) \circ (\coev_Y \otimes \coev_X) \by{\quad}{by functoriallity of $\otimes$}\\ &=(\id_Z\otimes \ev_Y \otimes \id_{X^*}) \circ (\id_Z \otimes \id_{Y^*}\otimes \id_Y \otimes \id_{X^*}) \circ (g\otimes \id_{Y^*}\otimes f\otimes \id_{X^*}) \circ (\coev_Y \otimes \coev_X)\\ &= (g\otimes \ev_Y \otimes \id_{X^*}) \circ (\id_Y \otimes \id_{Y^*}\otimes \id_Y \otimes \id_{X^*}) \circ (\id_Y\otimes \id_{Y^*}\otimes f\otimes \id_{X^*}) \circ (\coev_Y \otimes \coev_X)\\ &= (g\otimes \ev_Y \otimes \id_{X^*}) \circ (\id_Y \otimes \id_{Y^*}\otimes \id_Y \otimes \id_{X^*}) \circ (\coev_Y \otimes ((f\otimes \id_{X^*})\circ \coev_X) \by{\quad}{by functoriallity of $\otimes$}\\ &= (g\otimes \id_{1_\cat} \otimes \id_{X^*}) \circ (\id_Y \otimes \ev_Y \otimes \id_{X^*}) \circ (\id_Z \otimes \coev_Y \otimes \id_{X^*}) \circ (((f\otimes \id_{X^*})\circ \coev_X) \\ &= (g\otimes \id_{1_\cat} \otimes \id_{X^*}) \circ (((\id_Y \otimes \ev_Y) \circ (\id_Z \otimes \coev_Y)) \otimes \id_{X^*}) \circ (((f\otimes \id_{X^*})\circ \coev_X) \by{\quad}{by functoriallity of $\otimes$}\\ &= (g\otimes \id_{X^*}) \circ (\id_Y \otimes \id_{X^*}) \circ (((f\otimes \id_{X^*})\circ \coev_X) \by{\quad}{by $\cat$ having duals.}\\ &= (g\otimes \id_{X^*}) \circ (((f\otimes \id_{X^*})\circ \coev_X) \\ &= ((g\circ f) \otimes \id_{X^*}) \circ \coev_X \by{\quad}{by functoriallity of $\otimes$}\\ &= \widetilde{g\circ f}\\ \end{alignat*} \end{document}
- Is it possible to create commutative diagrams with hawkdraw package?by Luis Turcio on November 10, 2026 at 1:56 am
I'm trying to use hawkdraw package, I know is a new package still in development. Still I would like to use it to draw commutative diagrams. This is a (posible naïve) first attempt: \documentclass{article} \usepackage{hawkdraw} \begin{document} \begin{hawkdraw} \node[at={(0cm,0cm)}, name={1-1}] {A} \node[at={(3cm,0cm)}, name={1-2}] {B} \stroke[arrow end]{(1-1) -- (1-2)} \end{hawkdraw} \end{document} But the output is rather unespected: If the start of the stroke is (0cm,0cm), then the result is more accurate: I'm trying to use it like this because of the similarity with tikz. There is something wrong with the code? Also, is it planned to support commutative diagrams?
- MTPro2 Lite: curly brace changes appearance when using \dfrac inside casesby Sebastiano on November 9, 2026 at 9:11 pm
I am using the mtpro2[lite] package and have noticed an unexpected behaviour when using \dfrac inside the cases environment. When I use \frac, the left curly brace has its usual appearance. However, when I replace \frac with \dfrac, the curly brace changes its appearance. Interestingly, this does not happen with \ccases: the brace retains the same appearance even when using \dfrac. Here is a minimal working example: \documentclass[12pt]{article} \usepackage{mathtools} \usepackage[lite]{mtpro2} \begin{document} \[ f(x)= \begin{cases} \dfrac{1}{x}, & x>0,\\ \dfrac{x^2+1}{x-1}, & x<0 \end{cases} \] \[ f(x)= \begin{cases} \frac{1}{x}, & x>0,\\ \frac{x^2+1}{x-1}, & x<0 \end{cases} \] \[ g(x)=\ccases{ \dfrac{1}{x}, & x>0,\\ \dfrac{x^2+1}{x-1}, & x<0 } \] \end{document} Why is there this difference?
- pgfplots warning when input starts with equal digitsby jlab on November 8, 2026 at 2:28 pm
I'm plotting thermodynamics data with pgfplots. I get a strange warning when a value begin with 55. For example: \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 55.463, 0.018030 } ; gives Missing character: There is no . (U+002E) in font nullfont! Missing character: There is no 4 (U+0034) in font nullfont! Missing character: There is no 6 (U+0036) in font nullfont! Missing character: There is no 3 (U+0033) in font nullfont! If I replace 55.463 with 550 I get Missing character: There is no 0 (U+0030) in font nullfont! But there is no warning if 55.463 is replaced by 5.463 54.463 56.463 Any idea to explain this strange behaviour? Compilable example: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ ,xmin = {0} ,xmax = {0.02} ,ymin = {90} ,ymax = {300} ] %% Warnings: %% Missing character: There is no . (U+002E) in font nullfont! %% Missing character: There is no 4 (U+0034) in font nullfont! %% Missing character: There is no 6 (U+0036) in font nullfont! %% Missing character: There is no 3 (U+0033) in font nullfont! %% \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 55.463, 0.018030 } ; %% Replace 55.463 by 550: %% Missing character: There is no 0 (U+0030) in font nullfont! \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 550, 0.018030 } ; %% Replace 55.463 by 5.463: no warnings \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 5.463, 0.018030 } ; %% Replace 55.463 by 54.463: no warnings \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 54.463, 0.018030 } ; %% Replace 55.463 by 56.463: no warnings \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 56.463, 0.018030 } ; \end{axis} \end{tikzpicture} \end{document} Bug report I filled a bug report for that: https://github.com/pgf-tikz/pgfplots/issues/532
- \edef with incomplete expansionby Elayson Abreu on November 6, 2026 at 7:00 pm
I have a macro that removes whitespace from a set of tokens, called \removespaces. When I compile the code below, 1_2_3_ becomes 123 (where the underscore represents a whitespace character). In other words, \z=macro: ->123. And this is the desired result. \def\removespaces#1 {\if\relax\detokenize{#1}\relax\else#1\expandafter\removespaces\fi} \edef\z{\removespaces 1 2 3 {} } \show\z \bye The code below, in turn, produces the result \z=macro: ->1 2 3 {} . \def\removespaces#1 {\if\relax\detokenize{#1}\relax\else#1\expandafter\removespaces\fi} \def\y#1{\removespaces#1 {} } \edef\z{\y{ 1 2 3 }} \show\z \bye So my question is, why didn't a complete expansion occur at \z?
- Can I automatically record the alt text of images?by Teepeemm on November 5, 2026 at 7:17 pm
To support digital accessibility, my graduate school is requiring students' theses and dissertations to include an appendix that contains the alt-text, and long description when applicable, for all visual elements. I can somewhat help this process by creating commands for any alt text and description as follows: \DocumentMetadata{ tagging=on, lang=en-US, pdfstandard=ua-2 } \documentclass{article} \title{Title} \usepackage{graphicx} \begin{document} Some text that comes before a float. \begin{figure} \centering \gdef\duckAlt{A rubber duck with a crown on its head and a pizza.} \includegraphics[alt={\duckAlt},width=.5\textwidth]{example-image-duck} \caption{King duck}\label{fig:duck} \end{figure} Some text that comes between floats. \begin{figure} \centering % \gdef\gardnerAlt{Gardner's Conceptual Framework of Doctoral Student Development outlines the progressive phases of identity development that doctoral students experience, highlighting key challenges, sources of support, and potential points of attrition at each state.} % \gdef\gardnerDesc{% This is a diagram of Gardner's Conceptual Framework of Doctoral Student Development. It includes challenges and supports at three different phases. It also shows that students may depart their program at any phase. There is indication of the overlapping nature of Phase 1 to Phase 2 and Phase 2 to Phase 3. \begin{itemize} \item Phase 1 Challenges include admission, coursework begins, learning balance, transition from undergraduate to graduate expectations. \item Phase 1 Supports include orientation and initial relationships formed with peers and faculty. \item Phase 2 Challenges include coursework, examinations, changing role. \item Phase 2 Supports include peer relationships and advisor relationships. \item Phase 3 Challenges include candidacy, dissertation work, job search, and transition to professional role. \item Phase 3 supports include writing groups, advisor, and mentors. \end{itemize}} % \includegraphics[alt={\gardnerAlt},width=.77\textwidth]{Gardner} % \caption{Gardner's Conceptual Framework of Doctoral Student Development}\label{fig:gardner} % \end{figure} Some text that comes after a float. \clearpage \appendix \section*{Alt texts and figure descriptions} \paragraph{Figure \ref{fig:duck}:} \duckAlt \paragraph{Figure \ref{fig:gardner}:} \gardnerAlt \gardnerDesc \end{document} But this seems a bit error prone. Would it be possible to automate this process so that alt= records everything and then another command prints them? And a custom longDesc environment attaches itself to that alt text as well? The Gardner figure: