Week
- Subscripts before a brace in equationby jeirual on October 27, 2026 at 10:35 am
I would like to add a subscript before a brace delimiting a 2-lines array in the following equation: I have tried _{i}\left\{ but subscript is low according to the previous character, and not to the following brace. I have also tried \sideset{_i}{}{\left\{ ...} and although it gives the expected result, it also raises ! Limit controls must follow a math operator. error, which is quite annoying as I intend to use it several times in my document. Any advice will be greatly appreciated. Here is my MWE: \documentclass{article} \usepackage{amsfonts,amsmath,amssymb,leftidx,mathtools} \usepackage{array} \begin{document} %% Using _{i} method $V_i = _{i}\left\{ \begin{array}{l} x \\ y \end{array} \right.$ \\ %% Using \sideset method $V_i = \sideset{_{i}}{}{\left\{ \begin{array}{l} x \\ y \end{array} \right.}$ \end{document}
- Interaction between ltproperties, the hook system and the package pgfby jlab on October 26, 2026 at 9:44 am
The other day, I tried to answer a question with the requirements that: some packages are loaded through the hook \AtBeginDocument; some data are saved through the hook \AtEndDocument, to be retrieved at the next run. I finally used an auxiliary file to store the data, but initially I tried to use the new LaTeX properties mechanism documented in ltproperties-doc.pdf. I came across a strange interaction between ltproperties the LaTeX hook system and the pgf package. If I compile \documentclass{article} \NewProperty{test}{now}{}{test} \AtEndDocument{ \RecordProperties{here}{test} } \AtBeginDocument{ \usepackage{lipsum} % \usepackage{pgf} } \begin{document} aaa \RefProperty{here}{test} bbb \end{document} the property is correctly read and the output file contains But, if I uncomment the line \usepackage{pgf} and load the pgf package \AtBeginDocument, the property is lost. The problem doesn't occur with the lipsum package, nor if \usepackage{pgf} is moved outside \AtBeginDocument. Any idea?
- Convert a PNG image into a valid custom LaTeX integral symbolby mathrm alpha on October 26, 2026 at 12:47 am
I want to use a PNG image to create the \oiiiint symbol—the closed quadruple integral symbol—in LaTeX so I can actually apply it to mathematical formulas. Although I can basically use superscripts and subscripts to make it look nice, I’m not sure if there’s a better way to do this. \documentclass{article} \usepackage{graphicx,amsmath} \makeatletter % --- Inline Version (oiiiintS.png, 20pt) --- \def\oiiiint@inl@base{% \raisebox{-3pt}{% \includegraphics[height=20pt]{oiiiintS.png}}% } \def\oiiiint@inl@sup^#1{% \@ifnextchar_{\oiiiint@inl@both{#1}}{% \raisebox{-3pt}{% \includegraphics[height=20pt]{oiiiintS.png}}% ^{\raisebox{-8.5pt}{$\scriptstyle\hspace*{1pt}#1$}}% }% } \def\oiiiint@inl@sub_#1{% \@ifnextchar^{\oiiiint@inl@revboth{#1}}{% \raisebox{-3pt}{% \includegraphics[height=20pt]{oiiiintS.png}}% _{\hspace*{-4pt}#1}% }% } \def\oiiiint@inl@both#1_#2{% \raisebox{-3pt}{% \includegraphics[height=20pt]{oiiiintS.png}}% ^{\raisebox{-8.5pt}{$\scriptstyle\hspace*{1pt}#1$}}% _{\hspace*{-1pt}#2}% } \def\oiiiint@inl@revboth#1^#2{% \raisebox{-3pt}{% \includegraphics[height=20pt]{oiiiintS.png}}% ^{\raisebox{-8.5pt}{$\scriptstyle\hspace*{1pt}#2$}}% _{\hspace*{-1pt}#1}% } \newcommand{\oiiiint@inline}{% \@ifnextchar^{\oiiiint@inl@sup}{% \@ifnextchar_{\oiiiint@inl@sub}{\oiiiint@inl@base}% }% } % --- Display Version (oiiiint.png, 30pt) --- \def\oiiiint@disp@base{% \raisebox{-8.5pt}{% \includegraphics[height=30pt]{oiiiint.png}}% } \def\oiiiint@disp@sup^#1{% \@ifnextchar_{\oiiiint@disp@both{#1}}{% \raisebox{-8.5pt}{% \includegraphics[height=30pt]{oiiiint.png}}% ^{\raisebox{-8.5pt}{$\scriptstyle\hspace*{1pt}#1$}}% }% } \def\oiiiint@disp@sub_#1{% \@ifnextchar^{\oiiiint@disp@revboth{#1}}{% \raisebox{-8.5pt}{% \includegraphics[height=30pt]{oiiiint.png}}% _{\hspace*{-4pt}#1}% }% } \def\oiiiint@disp@both#1_#2{% \raisebox{-8.5pt}{% \includegraphics[height=30pt]{oiiiint.png}}% ^{\raisebox{-8.5pt}{$\scriptstyle\hspace*{1pt}#1$}}% _{\hspace*{-4pt}#2}% } \def\oiiiint@disp@revboth#1^#2{% \raisebox{-8.5pt}{% \includegraphics[height=30pt]{oiiiint.png}}% ^{\raisebox{-8.5pt}{$\scriptstyle\hspace*{1pt}#2$}}% _{\hspace*{-4pt}#1}% } \newcommand{\oiiiint@display}{% \@ifnextchar^{\oiiiint@disp@sup}{% \@ifnextchar_{\oiiiint@disp@sub}{\oiiiint@disp@base}% }% } % --- Unified Wrapper Command --- \newcommand{\oiiiint}{% \if@display \expandafter\oiiiint@display \else \expandafter\oiiiint@inline \fi } \makeatother \begin{document} $\oiiiint^3_2\oiiiint_2^3\oint^3_2$ \[\oiiiint^3_2\oiiiint_2^3\oint^3_2\] \end{document} PNG: \oiiiint in inline math; PNG style: oiiiintS.png \oiiiint in display math; PNG style: oiiiint.png
- `mono=false` give another mono font except `lmtt` with `libertinus-otf` package?by Explorer on October 25, 2026 at 5:16 pm
In texdoc libertinus-otf, page.11, sec.3.4, we know that: If you do not like the monofont, you can use the package option mono=false, then no mono font is defined and the default Latin Modern Mono will be used unless no one other will be defined. However, on my windows 11, it gives another result: \documentclass{article} \usepackage[mono=false]{libertinus-otf} % \renewcommand{\ttdefault}{lmtt} \begin{document} ABC \texttt{abc} \end{document} That was AnonymousPro but not latin modern typewriter(lmtt)...? Any suggestions on the reason? Either \usepackage[tt=false]{libertine} or \renewcommand{\ttdefault}{lmtt} works...
- Can't update contextby Aviroum on October 25, 2026 at 3:36 pm
I tried several times to update context without success ! Ubuntu: 26.04 context current version: 2026.09.10 10:02. LuaSocket 3.0.0 I received this error message : /home/aviroum/context/bin/mtxrun.lua:709: module 'socket.core' not found: no field package.preload['socket.core'] no file 'socket/core' stack traceback: [C]: in upvalue 'requiem' /home/aviroum/context/bin/mtxrun.lua:709: in global 'require' /home/aviroum/context/bin/mtxrun.lua:10156: in main chunk
- Alignment of sections in `parallel` text if one section is a `xskak \chessboard`by Reinhard Neuwirth on October 25, 2026 at 12:12 pm
If the left and right sections in a parallel text are both text, the sections align, if one is text the other an xskak \chessboard they do not, as there is demonstrated in the MWE below. Is there a fix? % RN. 25/10/2026 % BRIEF DESCRIPTION: % using parallel \documentclass{article} \usepackage{xskak} \usepackage{parallel} \begin{document} \begin{Parallel}{}{} \ParallelPar \ParallelLText{ \fenboard{8/8/8/8/8/8/8/8 b - - 0 1} \chessboard[smallboard] } \ParallelRText{ Right text: sd ad fas gargER Ger g RG rg V V S G DFADaa ga ga a ga dfg agadfg a gadf ga ga ga rt hqth qrtg qarg sd ad fas gargER Ger g RG rg V V S G DFADaa ga ga a ga dfg agadfg a gadf ga ga ga g ag ad ga ga fga g adfgaegr aerg wht w hwrt hqth qrtg qarg } %\renewcommand{\ParallelAtEnd}{} \end{Parallel} \vspace{20mm} \begin{Parallel}{}{} \ParallelPar \ParallelLText{ Left text: d ga ga fga g adfgaegr aerg wht w hwrt hqth qrtg qarg sd ad fas gargER Ger g RG rg V V S G a ga dfg agadfg a gadf ga ga ga g ag ad ga ga fga g adfgaegr aerg wht w hwrt hqth qrtg qarg sd ad fas gargER Ger g RG rg V V S G DFADaa ga ga a ga dfg agadfg a gadf ga ga ga g ag ad ga ga } \ParallelRText{ Right text: sd ad fas gargER Ger g RG rg V V S G DFADaa ga ga a ga dfg agadfg a gadf ga ga ga g ag asd adth qrtg g qarg sd ad fas gargER Ger g RG rg V V S G DFADaa ga ga a ga dfg agadfg a gadf ga ga ga g ag ad ga ga fga g adfgaegr aerg wht w hwrt hqth qrtg qarg } %\renewcommand{\ParallelAtEnd}{} \end{Parallel} \end{document}
- Output Text Onlyby Dennis Noel de Lara on October 25, 2026 at 5:47 am
I want to output text only, but all the text formatting commands are not executed\not expanded. Also, the text formatting commands are also not printed. I'm familiar with the \verb command, the verbatim environment and similar commands, but these are not what I want. MWE \documentclass{book} \newcommand*{\myText}{This is any text. It contains a \textbf{bold} command. It may also contain other text formatting commands, or \hspace{1.0in} spacing commands.} \begin{document} \myText %This will print the text with the formatting commands. %But I want to have a new command \myOutputTextNoFormat so that when I execute %\myOutputTextNoFormat{\myText}, the following ``text only'' is printed: %This is any text. It contains a bold command. It may also contain other text formatting commands, or spacing commands. \end{document} Kindly seeking help. This is XeTeX, Version 3.141592653-2.6-0.999996 (MiKTeX 24.4) (preloaded format=xelatex 2025.1.1) 26 OCT 2026 08:14 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **./untitled-6.tex (untitled-6.tex LaTeX2e <2024-06-01> patch level 2 L3 programming layer <2024-09-10> (C:\Users\New Century Books\AppData\Local\Programs\MiKTeX\tex/latex/base\book.c ls Document Class: book 2024/02/08 v1.4n Standard LaTeX document class (C:\Users\New Century Books\AppData\Local\Programs\MiKTeX\tex/latex/base\bk10.c lo File: bk10.clo 2024/02/08 v1.4n Standard LaTeX file (size option) ) \c@part=\count190 \c@chapter=\count191 \c@section=\count192 \c@subsection=\count193 \c@subsubsection=\count194 \c@paragraph=\count195 \c@subparagraph=\count196 \c@figure=\count197 \c@table=\count198 \abovecaptionskip=\skip49 \belowcaptionskip=\skip50 \bibindent=\dimen141 ) (C:\Users\New Century Books\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l 3backend-xetex.def File: l3backend-xetex.def 2024-05-08 L3 backend support: XeTeX \g__graphics_track_int=\count199 \l__pdf_internal_box=\box52 \g__pdf_backend_annotation_int=\count266 \g__pdf_backend_link_int=\count267 ) (untitled-6.aux) \openout1 = `untitled-6.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 12. LaTeX Font Info: ... okay on input line 12. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 12. LaTeX Font Info: ... okay on input line 12. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 12. LaTeX Font Info: ... okay on input line 12. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 12. LaTeX Font Info: ... okay on input line 12. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 12. LaTeX Font Info: Trying to load font information for TS1+cmr on input line 1 2. (C:\Users\New Century Books\AppData\Local\Programs\MiKTeX\tex/latex/base\ts1cmr .fd File: ts1cmr.fd 2023/04/13 v2.5m Standard LaTeX font definitions ) LaTeX Font Info: ... okay on input line 12. LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 12. LaTeX Font Info: ... okay on input line 12. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 12. LaTeX Font Info: ... okay on input line 12. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 12. LaTeX Font Info: ... okay on input line 12. [1 ] (untitled-6.aux) *********** LaTeX2e <2024-06-01> patch level 2 L3 programming layer <2024-09-10> *********** ) Here is how much of TeX's memory you used: 492 strings out of 409029 9844 string characters out of 5754306 386850 words of memory out of 20000000 23236 multiletter control sequences out of 15000+600000 558093 words of font info for 39 fonts, out of 8000000 for 9000 1348 hyphenation exceptions out of 8191 35i,5n,50p,191b,157s stack positions out of 10000i,1000n,20000p,200000b,200000s Output written on untitled-6.pdf (1 page).
- TeXShop won't compile in MacOS27by Caleb Farny on October 25, 2026 at 1:11 am
I recently upgraded to MacOS27. Compiling in TeXShop no longer works -- the console is completely blank and the PDF isn't rendered. I'm running TeXShop 5.57. The path settings appear to be correct (/Library/TeX/texbin) and I've also updated XCode to 27.1. Any suggestions on what to try?
- Box that can be broken across pages (and has empty edge indicating continued content)by Penelope on October 24, 2026 at 1:14 pm
Question I'm not sure what the correct way to put main body text (including maths and display maths) inside a box - such that the box can flow across a page break, and have the broken edge indicate the content is not finished but continues on the next page (eg by not having a line for that edge). What I have tried I tried Insert->Box. This I think uses a minipage internally. If the box contents don't fit on the remaining page space, the entire box is moved to a new page. I tried editing the box properties but Simple Frame, Page Breaks is greyed out. I tried importing tfe fancy coloured boxes package by Document->Settings->Modules->Boxes->Fancy Coloured Boxes. This gives me a new Insert->Box->Shaded Background option and in there I can just set the frame to have a colour and not the background. I also set Inner Box: None. The settings now allow me to choose Simple Frame, Page Breaks. This now enables page breaks on the box contents but the bottom of broken box (and the top of the continued box) are still solid. The image below illustrates what I am trying to achieve. I've seen people refer to framed as a better option but this seems to require preamble and ERT, which I want to avoid. I wan to use as much standard lyx GUI as possible. I'm using Lyx 2.5.3 on MacOS 15 and the 2026 edition of MacTex.
- Conflict between \babelfont and Chinese font commands defined by `\CJKfamilyfont`by M. Logic on October 24, 2026 at 6:34 am
First a minimal working sample is as follows. \documentclass[fontset=fandol]{ctexbook} \setCJKfamilyfont{fandolkaiti}{FandolKai-Regular.otf}% \newcommand{\kaiti}{\CJKfamily{fandolkaiti}} \usepackage{babel} \babelprovide{russian}% \babelfont[russian]{rm}[Scale=MatchUppercase, Script=Cyrillic, Renderer=Harfbuzz, ItalicFont={NewCM10-Italic.otf}, BoldFont={NewCM10-Bold.otf}, BoldItalicFont={NewCM10-BoldItalic.otf}]{NewCM10-Regular.otf} \usepackage{fancyhdr} \fancypagestyle{main}{% \fancyhf{} \fancyhead[LE]{\kaiti\small\thepage\hspace{4em}\leftmark}% \fancyhead[RO]{\kaiti\small\rightmark\hspace{4em}\thepage}% \renewcommand{\headrule}{}% } \begin{document} \pagestyle{main} \chapter{测试文字Test} \section{依然是测试文字} {\kaiti 第一章\quad 测试文字TEST}%\kaiti affects only on Chinese \clearpage 文字 \end{document} As you see, to make the header be in Chinese regular script font (Kaiti; only Chinese texts turn to be the font while English texts keep in default fonts), I defined \kaiti. But when I set \babelfont, \kaiti doesn't work anymore in the header although it still works well in the main body of the document. Compare 第一章 测试文字TEST in the main body of the document and the header. They should be the same while in fact not. Then how to solve the conflict? Note that \itshape works well but it works both on Chinese and English texts.
- zh_pin.pl can't be found when using MacTeX after updatingby M. Logic on October 24, 2026 at 4:33 am
First a minimal working sample. \documentclass{article} \usepackage[style=authoryear, sortlocale=zh__pinyin %<---- ]{biblatex} \addbibresource{biblatex-examples.bib} \begin{document} \cite{westfahl:space} \printbibliography \end{document} As you see, I use zh_pin.pl to sort references, but today when I update the MacTeX and compile the files, it says: Unicode/Collate/Locale/zh_pin.pl can't be found at /var/folders/8y/zkd60m1s7jz_73wr7hjjnq5r0000gn/T/par-436f6e64656e/cache-364a02962a45a52cab8961a336f60ec963624107/inc/lib/Biber.pm line 1076. INFO - This is Biber 2.22 INFO - Logfile is 'fonttest.blg' INFO - Reading 'fonttest.bcf' INFO - Found 1 citekeys in bib section 0 In fact, the problem comes out two months ago, but I reinstall MacTeX. But today when I update the MacTeX, the problem comes out again. Then how to solve the problem?
- Improve the visual rendering of a reaction suiteby Nicolas on October 23, 2026 at 9:27 am
For an exercise, I wrote a reaction suite with chemfig (by the way, it is perhaps not the most suitable tool). For some compounds, I give the raw formula that I would like to insert below the dial number but the space between two arrows is not large enough, I would like to enlarge it : \documentclass{article} \usepackage[margin=1.5cm]{geometry} \usepackage[export]{adjustbox} \usepackage[modules={all}]{chemmacros} \usepackage{chemfig} \usepackage{makecell} \begin{document} \schemestart 1\arrow{->[1) \chemfig{NaHCO_3}][2) KCN]}[,1.65] 2 \arrow{->[\chemfig{H_3O^+}]}[,1.15] \chemname{3}{(\ch{C3H4O4})} \arrow{->[\ch{Br2}]}[,1.15] 4 \arrow{->[\ch{NH3}][à froid]}[,1.25] 5 \arrow{->[1) \ch{H3O+}][2) \ch{C2H5OH,H+}]}[,2] 6 \arrow{->[1) \ch{NaHCO3}][2) \ch{CH3COCl}]}[,1.5] \chemname{7}{(\ch{C9H15NO5})} \arrow{->[][*{0}\makecell{1) \ch{C2H5ONa/C2H5OH}\\2) \ch{H2C=CH-CH2-Br}}]}[-90,3] 8 \arrow{->[1) \ch{O3}][2) \ch{H3O+}]}[-180,1.5] \chemname{9}{(\ch{C11H17O7N})} \arrow{->[\ch{HO-}]}[-180,1.5] 10 \arrow{->[1) \ch{H3O+}][2) chauffage]}[-180,2]\chemname{11}{(\ch{C4H7O4N})} \schemestop \end{document}
- Incompatibility between amsart, scrextend, and regexpatchby Addlai on October 23, 2026 at 4:33 am
The following latex file fails to compile: \documentclass[10pt]{amsart} \usepackage{regexpatch} \usepackage{scrextend} \begin{document} Hello World \end{document} If either of the two packages is removed or if amsart is changed to article, the file compiles. This appears to be a recent change, since I compiled a file with this combination only a couple of years ago. Does anyone know what changed and why? And if there's something I should be doing to avoid this problem (and similar problems)? The reason I need regexpatch is to correct a serious longstanding bug in tikz which looks like it's not going to be fixed. I want scrextend for the command \changefontsizes, which gets around the puzzling limitation of latex to only 10pt and 12pt base font sizes. Compromising on either problem is not a great option.
- Tight spacing when typesetting limit of a function in TeX Gyre fontsby ethan the unreal on October 22, 2026 at 3:54 pm
I'm trying to typeset a project using TeX Gyre Pagella (Math). When I try to produce the limit of a function (see MWE), the space between the "lim" and "f" is far too small. Is there a way to increase this space (for all instances of the limit) outside of manually using \, or other spacing commands? For transparency, I'm using XeLaTeX on Overleaf. I don't know whether a local instance of XeLaTeX will produce the same result. \documentclass{minimal} % \usepackage{amsmath} \usepackage{unicode-math} \setmainfont{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math} \begin{document} We say that \begin{equation*} \lim_{x \to a} f(x) = L \end{equation*} if, insert $\varepsilon$ and $\delta$ definition here. \end{document} Interestingly, newpxmath (which apparently loads Pagella) does not have this problem. The image comes from the code below: \documentclass{article} % \usepackage{newtxmath} \usepackage{newpxmath} \begin{document} % With \texttt{newtxmath} With \texttt{newpxmath} \begin{equation*} \lim_{x \to a} f(x) = L \end{equation*} \end{document} (But I have other opinions about it which are not within the scope of the question anymore.) Similar results are produced using TeX Gyre Termes Math and newtxmath (see images).
- Using arara and pdflatex with Source/Output File Structureby Pascal Zillmann on October 22, 2026 at 2:18 pm
I would like to compile the following simple example of a LaTeX document with the tool arara, taken from its quickstart guide: % arara: pdflatex \documentclass{article} \begin{document} Hello world! \end{document} Let us refer to this file as main.tex and locate it in the directory project/src. When I now call arara from directory project/src, everything works as expected: >> arara main.tex __ _ _ __ __ _ _ __ __ _ / _` | '__/ _` | '__/ _` | | (_| | | | (_| | | | (_| | \__,_|_| \__,_|_| \__,_| Processing "main.tex" (size: 94 B, last modified: 2026-10-22 14:02:02), please wait. (PDFLaTeX) PDFLaTeX engine .............................. SUCCESS Total: 0.254 seconds All output (and auxiliary) files are created properly and saved to the directory project/src. Now, suppose there is another directory project/out. I want pdflatex to put all the output (and auxiliary) files into this directory. Thus, I need to use the -output-directory flag. Moreover, I want to call arara from directory project. I simply changed line 1 of main.tex into % arara: pdflatex: { options: [ '-output-directory=./out/' ] } Running arara from project (with corrected path to main.tex), pdflatex cannot find the main.tex file: >> arara src/main.tex --verbose __ _ _ __ __ _ _ __ __ _ / _` | '__/ _` | '__/ _` | | (_| | | | (_| | | | (_| | \__,_|_| \__,_|_| \__,_| Processing "main.tex" (size: 139 B, last modified: 2026-10-22 14:02:16), please wait. ----------------------------------------------------------------- (PDFLaTeX) PDFLaTeX engine ----------------------------------------------------------------- This is pdfTeX, Version 3.141592653-2.6-1.40.29 (TeX Live 2026) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode ! I can't find file `main.tex'. <*> main.tex (Press Enter to retry, or Control-D to exit) Please type another input file name: Options to resolve this would be to call arara from project/src and to set the output directory to -output-directory=../out/ or to have the out directory as a subdirectory of src (as suggested in this answer). Both solutions are not appropriate for my setting. How can I call arara from project, having main.tex in project/src? I use arara in version 7.2.0 and pdflatex in version 3.141592653-2.6-1.40.29.
- Changing the Color of an Italicized Part of the Title When a Lot is Going onby DDS on October 22, 2026 at 2:03 pm
Consider the code: \documentclass[12pt,onecolumn,openany,final]{book} \usepackage[hmargin=0in,vmargin=0in,top=0in,paperwidth=4.25in,paperheight=6.625in]{geometry} \usepackage{pstricks,psvectorian} \usepackage{scalerel,scalefnt} \usepackage{color,cabin} \definecolor{RomeRed}{RGB}{142,0,28} \definecolor{RomeYellow}{RGB}{255,179,0} \setmainfont{Cabin} % Interletterspacing Letters \def\theLetterSpace{0.5pt} \def\theWordSpace{1.5\LocalLetterSpace} \newlength\LocalLetterSpace \newcommand\spaceout[2][\theLetterSpace]{% \setlength\LocalLetterSpace{#1}\expandafter\spaceouthelpA#2 \relax\relax} \def\spaceouthelpA#1 #2\relax{% \spaceouthelpB#1\relax\relax% \ifx\relax#2\else\ \kern\theWordSpace\spaceouthelpA#2\relax\fi } \def\spaceouthelpB#1#2\relax{% #1% \ifx\relax#2\else \kern\LocalLetterSpace\spaceouthelpB#2\relax% \fi } \begin{document} \thispagestyle{empty} \pagecolor{RomeRed} \noindent\begin{pspicture}(-5.3975,0)(5.3975,16.8275)% \renewcommand*{\psvectorianDefaultColor}{RomeRed}% \psframe[fillcolor=RomeRed,fillstyle=solid](-5.3975,0.3175)(5.08,16.51)% \psframe[linecolor=RomeRed](-5.3975,0.3175)(5.08,16.51)% draws frame. \rput[tc](0.07,14.00){\textcolor{white}{\Huge{\selectfont\scalefont{1.11} \vstretch{1.35}{\textbf{{\spaceout[3.25pt]{COLOR {\it(CHANGE)}}}}}}}} \end{pspicture}% \end{document} which gives the output: I would like to change the color of (CHANGE) from white to RomeYellow, but I have not been able to do it. I think it should be easy but I do have some other stuff going on which may be causing the difficulty. I have used \textcolor{RomeYellow}, \color{RomeYellow}, and \color{RomeYellow} alternately in different locations but to no avail. QUESTION: How may I color the italicized portion of the title to the color RomeYellow? I am compiling with xelatex.
- How to format a value with uncertainty using `siunitx` without parentheses?by Rounak Niloy on October 22, 2026 at 12:29 pm
I am using the siunitx package and want to format a measurement with its uncertainty, for example: 31.76 ± 0.34 g I have tried the following: \SI{31.76(34)}{\gram} However, this produces (31.76 ± 0.34) g, with the uncertainty enclosed in parentheses. I have also tried: \SI{31.76 +- 0.34}{\gram} but this produces (31.76 ± 0.34) g, with the entire expression enclosed in parentheses. How can I use siunitx to produce 31.76 ± 0.34 g without parentheses around either the uncertainty or the entire expression? I would prefer a solution that uses siunitx commands rather than manually formatting the units.
- Column break even when \interlinepenalty is at its maximumby Elayson Abreu on October 21, 2026 at 11:01 pm
My example below: \documentclass{article} \usepackage{multicol} \begin{document} \begingroup \parindent=0pt \interlinepenalty=10000 \begin{multicols}{2} A\\ B\\ C \par \rule{.7\linewidth}{.6pt}\\ D\\ E\vskip23pt F \end{multicols} \endgroup \end{document} results in the following: But if I change \vskip23pt to \vskip24pt, then the column break will shift position, and the result will be: I did all this just to show that \interlinepenalty=10000 is working correctly—that is, there is no page break between the \rule and the letter “D”. The problem arises when the code becomes a bit more complicated: \documentclass{article} \usepackage{multicol} \begin{document} \def\x#1{\par{\centering \rule{.7\linewidth}{.6pt}\\ #1\par}} \begingroup \parindent=0pt \interlinepenalty=10000 \begin{multicols}{2} \x{A\\ B\\ C} \x{D} \x{E} \x{F} \end{multicols} \endgroup \end{document} Which generates: My question is: why did a column break occur between \rule and the letter “D” in this case?
- Tabularray: Broken spacing between long tblr and section around page breakby Eldrad on October 21, 2026 at 8:10 pm
I came across an inconsistent vertical spacing if a tblr with long option directly follows a section. If due to other generic content there is a pagebreak before the section, the vertical spacing between tblr and the section title can get screwed up. Weirdly, this is only true for a rather specific value for the vspace in the MWE. If it's at 15 cm, everything fits nicely on one page and the spacing is correct. If it's set to 18 cm or more, again the spacing on the next page is correct. Is this a bug I should report, or is this solvable? \documentclass[a4paper,11pt]{article} \usepackage{tabularray} \begin{document} \section*{Some Section} \begin{tblr}[long,label=none,presep=0mm,headsep=0pt,footsep=0pt]{width=\linewidth,colspec={l|X},stretch=0,rowhead=0,rowfoot=0} {Bla} & {Blub}\\ \end{tblr} \section*{Another Section} \begin{tblr}[long,label=none,presep=0mm,headsep=0pt,footsep=0pt]{width=\linewidth,colspec={l|X},stretch=0,rowhead=0,rowfoot=0} {Bla} & {Blub}\\ \end{tblr} \vspace{16cm} %try 15cm (fits on same page without issue) and 18cm (next page, no issue) \section*{Yet Another Section} \begin{tblr}[long,label=none,presep=0mm,headsep=0pt,footsep=0pt]{width=\linewidth,colspec={l|X},stretch=0,rowhead=0,rowfoot=0} {Bla} & {Blub}\\ \end{tblr} \end{document}
- TikZ code, OK directly in a file, not OK in a standalone subfileby Denis Bitouzé on October 21, 2026 at 5:13 pm
The following file (which comes from an article in the TeXnische Komödie about the schulma-physik package), say subfile.tex, compiles like a charm: \documentclass{article} \usepackage[compatibility]{circuitikz} \usetikzlibrary{circuits.ee.IEC} \makeatletter % Ergänzungen von Schaltzeichenformen auf der Grundlage von pgflibraryshapes.gates.ee.IEC.code.tex \pgfdeclareshape{leere diode} {% \inheritsavedanchors[from=rectangle ee]% \inheritanchor[from=rectangle ee]{center}% \inheritanchor[from=rectangle ee]{north}% \inheritanchor[from=rectangle ee]{south}% \inheritanchor[from=rectangle ee]{east}% \inheritanchor[from=rectangle ee]{west}% \inheritanchor[from=rectangle ee]{north east}% \inheritanchor[from=rectangle ee]{north west}% \inheritanchor[from=rectangle ee]{south east}% \inheritanchor[from=rectangle ee]{south west}% \inheritanchor[from=rectangle ee]{input}% \inheritanchor[from=rectangle ee]{output}% \inheritanchorborder[from=rectangle ee]% % \backgroundpath{ \pgf@process{\pgfpointadd{\southwest}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{\pgfkeysvalueof{/pgf/outer ysep}}}} \pgf@xa=\pgf@x \pgf@ya=\pgf@y \pgf@process{\pgfpointadd{\northeast}{\pgfpointscale{-1}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{\pgfkeysvalueof{/pgf/outer ysep}}}}} \pgf@xb=\pgf@x \pgf@yb=\pgf@y % Move tip back a little bit \advance\pgf@xb by-.5\pgflinewidth % Triangle triangle: \pgfpathmoveto{\pgfqpoint{\pgf@xa}{\pgf@ya}} \pgfpathlineto{\pgfqpoint{\pgf@xa}{\pgf@yb}} \pgf@yc=.5\pgf@ya \advance\pgf@yc by .5\pgf@yb \pgfpathlineto{\pgfqpoint{\pgf@xb}{\pgf@yc}} \pgfpathclose }% \beforebackgroundpath{ { \pgf@process{\pgfpointadd{\southwest}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{\pgfkeysvalueof{/pgf/outer ysep}}}} \pgf@ya=\pgf@y \pgf@process{\pgfpointadd{\northeast}{\pgfpointscale{-1}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{\pgfkeysvalueof{/pgf/outer ysep}}}}} \pgf@xb=\pgf@x \pgf@yb=\pgf@y \pgf@yc=.5\pgf@ya \advance\pgf@yc by.5\pgf@yb \pgfusepathqstroke \pgftransformshift{\pgfqpoint{\pgf@xb}{\pgf@yc}} \pgf@yc=.5\pgf@yb \advance\pgf@yc by-.5\pgf@ya \pgftransformscale{\pgf@sys@tonumber{\pgf@yc}} \pgfkeysvalueof{/pgf/generic diode IEC/before background} } }% } \makeatother \tikzset{ leere diode graphic/.style={ circuit symbol open, circuit symbol size=width 1.25 height 1.25, transform shape, shape=leere diode, /pgf/generic diode IEC/before background={ \pgfpathmoveto{\pgfqpoint{0pt}{-1pt}} \pgfpathlineto{\pgfqpoint{0pt}{1pt}} \pgfusepathqstroke }, }, } \begin{document} \begin{tikzpicture}[circuit ee IEC,circuit symbol unit=5.5pt] \tikzset{set diode graphic=leere diode graphic}\draw (0,0) to[diode] (1,0); \end{tikzpicture} \end{document} But if it is compiled via another file—say, mainfile.tex—using the standalone package: \documentclass{article} \usepackage[subpreambles]{standalone} \begin{document} \input{subfile.tex} \end{document} the second compilation fails with the following error: (./subfile.tex ! Undefined control sequence. \pgf@sh@bg@leere diode ->\pgf @process{\pgfpointadd {\southwest }{\pgfpoint ... l.77 ... diode graphic}\draw (0,0) to[diode] (1,0) ; ? Although the mainfile.sta file contains the entire preamble of the subfile.tex file—including the \makeatletter and \makeatother commands—it appears that the @ character is not treated as a letter. Do you understand why, and do you know how to solve this problem?
- How can I stop a chapter toc from adding an entry for the previous part toc in memoirby Chris Walton on October 21, 2026 at 11:42 am
This is a follow up to my question. The accepted answer has enabled me to resolve that question. When I implement that answer, a further issue arises. If I add a second part to the test document, the toc entry for the previous part is added to the toc for the last chapter of the previous part. The answer code (without dummy text) produces the header pages: These are all as required, and expected. If I add a second part to the document: \documentclass{memoir} \usepackage{lipsum} \makeatletter \newcounter{tocmarker} \newcounter{ptocmarker} \renewcommand\mempreaddchaptertotochook{\cftinserthook{toc}{stop-\thetocmarker}} \renewcommand\mempreaddparttotochook {\cftinserthook{toc}{pstop-\theptocmarker}} \renewcommand{\mempostaddchaptertotochook}{% \stepcounter{tocmarker}\cftinserthook{toc}{start-\thetocmarker}} \let\normalchangetocdepth\changetocdepth \newcommand\chaptertoc{% \begingroup \setcounter{@memmarkcntra}{\value{tocdepth}}% \let\changetocdepth\@gobble \normalchangetocdepth{-10}% \cftinsertcode{start-\thetocmarker}{\normalchangetocdepth{2}}% \cftinsertcode{stop-\thetocmarker}{\normalchangetocdepth{-10}}% \let\tocheadstart\relax \let\printtoctitle\@gobble \let\aftertoctitle\relax \tableofcontents* \endgroup \setcounter{tocdepth}{\value{@memmarkcntra}}% \par\bigskip \@afterheading } % %******************************* \renewcommand\mempostaddparttotochook{% \stepcounter{ptocmarker}\cftinserthook{toc}{pstart-\theptocmarker}} \let\normalchangetocdepth\changetocdepth % for later \newcommand\parttoc{% \begingroup \setcounter{@memmarkcntra}{\value{tocdepth}}% \let\changetocdepth\@gobble \normalchangetocdepth{-10}% \cftinsertcode{pstart-\theptocmarker}{\normalchangetocdepth{1}}% \cftinsertcode{pstop-\theptocmarker}{\normalchangetocdepth{-10}}% \let\tocheadstart\relax \let\printtoctitle\@gobble \let\aftertoctitle\relax \tableofcontents* \endgroup \setcounter{tocdepth}{\value{@memmarkcntra}}% \par\bigskip \@afterheading } % manual p81 \renewcommand*{\beforepartskip}{\null\vskip4cm} \renewcommand*{\afterpartskip}{\par\vskip1cm% \@afterindentfalse\@afterheading \parttoc } \makeatother %******************************* \begin{document} \tableofcontents* \part{Rewrite v2} \chapter{Chapter} \chaptertoc \section{Section} \part{Rewrite v2 Part II the exorcism} \chapter{Chapter2 of II} \chaptertoc \section{Section} \end{document} This header pages produced are shown below. Except for the Chapter 1 Toc all are as expected. The Chapter I ToC has gained unwanted entries: II Rewrite v2 Part II the exorcism 7 1.1 Section 5
- \ps works weirdlyby Jolia on October 21, 2026 at 11:22 am
I want to add a post-scriptum to a letter so I wrote this : \documentclass[12pt]{lettre}% \usepackage[utf8]{inputenc} \usepackage{french} \usepackage[OT1]{fontenc} \usepackage{mltex} \institut{identite} \begin{document} \begin{letter}{address} \conc{FCT PhD Studentships} \opening{Dear professor,} Body \closing{Yours sincerely,} \ps P.S. As a strong opponnent to genAI, this was written solely by my hand \end{letter} \end{document} and this is the result I get. What can I do to solve this please?
- Cite one bibliography entry from another using biblatex/biberby GraffL on October 20, 2026 at 4:21 pm
I am trying to create a bibliography which contains references between certain entries. E.g., in entry [2] I would like to have a text saying "conference version of [1]" (where [1] refers to another entry of the same bibliography. One way of achieving that seems to be to add something like note = {conference version of \cite{JournalVersion}} I am, however, looking for a cleaner/more structured way of achieving this. It seems to me that the field related should be the solution here -- and it does work, if I want to reference the other entry by, e.g., title. However, I have not been able to get it to work using the reference itself. My current MWE is !BIB program = biber \documentclass{article} \usepackage{biblatex} \begin{filecontents}{literature.bib} @article{JournalVersion, author = {Graf, Lukas}, title = {Title A}, journal = {Journal}, year = {2020}, } @InProceedings{ConferenceVersion, author={Graf, Lukas}, title={Title B}, booktitle={Conference Proceedings}, year={2019}, related = {JournalVersion}, relatedtype = {conferenceof} } @InProceedings{ConferenceVersionVar, author={Graf, Lukas}, title={Title C}, booktitle={Conference Proceedings}, year={2019}, note = {conference version of \cite{JournalVersion}} } \end{filecontents} \addbibresource{literature.bib} \newbibmacro*{related:conferenceof}[1]{conference version of % \entrydata*{#1}{% \usebibmacro{title} \printtext[labelnumberwidth]{\printfield{labelnumber}}% }% } \begin{document} \nocite{*} \printbibliography \end{document} Using biber and pdflatex, this produces the following output: Here, entry [3] shows how the desired output looks like (but it is achieved using the note-field), entry [2] is the one where I tried (and failed) to implement an approach using the related-field. I additional reference [1] here by title, to test whether the related-field itself works.