• `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 context
    by 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 Only
    by 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.

  • TeXShop won't compile in MacOS27
    by 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 updating
    by 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 suite
    by 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}

  • Tight spacing when typesetting limit of a function in TeX Gyre fonts
    by 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 Structure
    by 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.

  • 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 maximum
    by 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 break
    by 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 subfile
    by 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 memoir
    by 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 weirdly
    by 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/biber
    by 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.

  • toc appendix fix kicks in too late [closed]
    by Nate on October 20, 2026 at 11:16 am

    I am using the book class. My main file includes the following toc styling commands: \documentclass{book} \usepackage{nonumonpart} \usepackage{tocloft} \usepackage{calc} \usepackage[titletoc,title]{appendix} \renewcommand{\cftpartfont}{\LARGE\bfseries} \renewcommand{\cftchapfont}{\large\bfseries} \setlength{\cftchapnumwidth}{1.1875in}\renewcommand{\cftchappresnum}{Chapter }\renewcommand{\cftchapaftersnum}{:\phantom{mm}}\cftpagenumbersoff{part}\renewcommand\cftchapafterpnum{\par\addvspace{6pt}} \setlength{\cftbeforepartskip}{17pt} Borrowing from Werner's answer [here][1]. I included the following code to change the ToC's printing from "Chapter" to "Appendix": \let\oldappendix\appendix \renewcommand{\appendix}{% \oldappendix \addtocontents{toc} % Update \cftchappresnum within the .toc {\protect\renewcommand{\protect\cftchappresnum}{\appendixname\space}} } \renewcommand{\contentsname}{\underline{Table of Contents}}\setlength\cftbeforetoctitleskip{24pt}\setlength\cftaftertoctitleskip{24pt} \begin{document} ... \include{ch12} \appendix \pagenumbering{arabic} \renewcommand\thepage{A\arabic{page}} \include{appendixA} \pagenumbering{arabic} \renewcommand\thepage{B\arabic{page}} \include{appendixB} \end{document} It changes for Appendix B but not Appendix A: [![answer][2]][2] Does anyone know why it's not overriding the "Chapter" for Appendix A, and/or how to change that? EDIT: After using \begin{appendices} \addtocontents{toc}{\def\protect\cftchappresnum{\appendixname{} }} \pagenumbering{arabic} \renewcommand\thepage{A\arabic{page}} \include{appendixA} \pagenumbering{arabic} \renewcommand\thepage{B\arabic{page}} \include{appendixB} \end{appendices} it now prints: Appendix Chapter A: Appendix Appendix B: so now I just need to suppress the second word each time.

  • A Potential Approach to Incremental Compilation [closed]
    by Tom on October 20, 2026 at 9:57 am

    I’ve found that the secret behind BaKoMa’s incremental compilation seems to be hidden in itex.dll, which is located in the BaKoMa installation directory. There’s a reverse-engineering repository available at https://github.com/morluto/rea. Has anyone tried using Claude or ChatGPT to help implement incremental compilation? update Claude or ChatGPT has just blocked REA, so now I recommend that everyone use the open-source DeepSeek instead.

  • bm package producing weird output
    by Carl Rasmussen on October 20, 2026 at 8:04 am

    I want to write bold and italic letters for math vectors. I found on here that the \bm package would handle this. And it does but the letters look like this: This is when I'm writing \bm{\dot{x}(t)}. This project is the first time I'm using LaTeX locally and not in Overleaf. Any idea why it looks like multiple instances on top of each other?

  • Using xskak to typeset a book
    by Fernando Sthetatos on October 20, 2026 at 3:28 am

    I want to typeset the moves of a game in two columns in the following way. e4 e5 Nf3 Nf6 I know how to typeset, for instance 1... e5. I want to know how to typeset e4 ... I need three dots instead of the black move. \documentclass{article} \usepackage{xskak} \begin{document} \newchessgame \mainline[style=styleC]{1.e4 e5 2.Nf3 Nf6 3.Nxe5 \xskakcomment{\> \dots}} \end{document}

  • Marking the end of a calculation
    by Coda5 55 on October 20, 2026 at 3:07 am

    I am looking for a way to highlight the end of a mathematical calculation. Not to say it's important, like \boxed does, but merely to clarify what one has ended with. See the red in the following image: So it can be translated to the following (considering \asresult{} draws the red line as above): \documentclass{article} \usepackage{amsmath, tikz} \newcommand{\diff}{\mathrm{d}} % differential pebble \newcommand{\asresult}[1]{ % result highlight %... } \begin{document} The derivation of the derivate of the exponential, under such new tools, needs a re-route first: \begin{align*} e^{\diff x} &= \sum_{k=0}^\infty \frac{\diff x^k}{k!} \\ &= \asresult{1 + \diff x} \\ (\diff e^x)(t) &= \lim_{h \to 0} e^{x(t+h)} - e^{x(t)} \\ &= e^{x(t)} \lim_{h \to 0} e^{x(t+h) - x(t)} - 1 \\ &= e^{x(t)} (e^{\diff x(t)} - 1) &= \asresult{e^{x(t)} \diff x(t)} \end{align*} And with that, one deduces $\cfrac{\diff e^x}{\diff x} = e^x$, QED. \end{document} How can I add this \asresult?

  • How do I hook part and chapter to toc in memoir
    by Chris Walton on October 19, 2026 at 11:12 pm

    How can I link a part toc into the part header page? I am trying to implement part specific and chapter specific toc on their relative title headers. The code for the chapter toc is based directly on pp 414-417 of memman.pdf and works well. I (naively) thought that repeating the code but replacing chapter with part would result in a corresponding part toc. My implementation of this does not seem to hook the part and the toc together. The attached code shows the wanted main toc, and chapter specific toc; but does not show the part toc. I expected a toc very similar to that for chapter on the title page. My example below shows the code for the chapter and the part toc. The part toc portion has been bounded by &**********. I have removed a lot of code concerning toc formatting, so the formats may be off. To aid me I have used: memoir: Chapter TOCs (Part 1) memoir: Chapter TOCs (Part 2) memoir: Chapter TOCs (Part 3) These have been very helpful, but when they venture into Tex code, rewriting parts of memoir, and @ symbols and the like, they are way above my competence. \documentclass{memoir} \usepackage{lipsum} \makeatletter \newcounter{tocmarker} \renewcommand\mempreaddchaptertotochook{\cftinserthook{toc}{stop-\thetocmarker}} \renewcommand\mempreaddparttotochook {\cftinserthook{toc}{stop-\thetocmarker}} \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{tocmarker}\cftinserthook{toc}{start-\thetocmarker}} \let\normalchangetocdepth\changetocdepth % for later \newcommand\parttoc{ \begingroup \setcounter{@memmarkcntra}{\value{tocdepth}} \let\changetocdepth\@gobble \normalchangetocdepth{-10} \cftinsertcode{start-\thetocmarker}{\normalchangetocdepth{1}} \cftinsertcode{stop-\thetocmarker}{\normalchangetocdepth{-10}} \let\tocheadstart\relax \let\printtoctitle\@gobble \let\aftertoctitle\relax \tableofcontents* \endgroup \setcounter{tocdepth}{\value{@memmarkcntra}}% \par\bigskip \@afterheading } \makeatother %******************************* \begin{document} \tableofcontents* \part{Rewrite v2} \parttoc \chapter{Chapter} \chaptertoc \section{Section} \lipsum \end{document}

  • Lower the overline in Miller indices
    by Georgian Ilie on October 19, 2026 at 4:31 pm

    Good evening everyone, I am facing a problem when I designate crystallographic faces with the Miller notation (via the miller package). Typing the following code: \documentclass[varwidth=15cm, border=1pt, 11pt]{standalone} \usepackage{amsmath} %\usepackage{physics} \usepackage{fontspec} \usepackage{miller} \setmainfont{STIX Two Text} \usepackage[math-style=upright,mathbf=text,mathbf=sym,mathrm=text,mathrm=sym]{unicode-math} \setmathfont{STIX Two Math} \begin{document} \begin{equation*} \hkl(110)\equiv\hkl(11-20) \end{equation*} \end{document} Leads me to this: I am struggling in getting the bar over the "2" closer to the number. Can the distance between these two be set? Thank you in advance for your help.

  • Marking a tail one, two, or four bars by folarrow package for commutative diagrams
    by Sebastiano on October 19, 2026 at 10:51 am

    The folarrow package, available for amscd, xy-pic, and tikz-cd, provides the possibility of placing a marking or description at the center of the arrow's tail. I wonder whether it is possible to obtain markings of the same size, both for the tail and the arrow, with one, two, or four bars, similarly to the three-bar marking provided by folarrow. \documentclass{article} \usepackage{tikz-cd,amssymb} \usepackage{folarrow} \begin{document} \begin{tikzcd} A \arrow[r, foliated] \arrow[rd, "\smallsetminus" marking] & B \arrow[d, "///" marking] \\ & C \end{tikzcd} \end{document}

  • longtable caption being tagged as TR > TH
    by Paul J Hurtado on October 19, 2026 at 10:25 am

    Here is a MWE where the caption of a longtable is being tagged as a table row (TR) and as a header row (TH) using lualatex (and lualatex-dev) with tagging=on. This leads to Regularity errors in the Adobe Acrobat checker. [I'm running the latest MikTeX updates with latex-tools updated as well.] Am I doing something incorrectly, or is there a longtable conflict with the tagging tools? It's listed as compatible at latex3.github.io/tagging-project/tagging-status/. Thanks! \DocumentMetadata{ lang = en-US, tagging = on, tagging-setup = {math/setup={mathml-SE,mathml-AF}}, check-tagging-status } % END \DocumentMetadata{} \documentclass[letterpaper,12pt,oneside]{report} \usepackage{longtable} \newcommand{\tn}{\tabularnewline} % Shorthand used for cleaner table entries \begin{document} \noindent This table is being tagged incorrectly. The caption as well as the desired header row were both tagged as TR, with the contents of each appearing in TH tags (on TH tag for the caption text, and one TH tag for each of Base 10 and Binary). \begin{longtable} {|c|c|} \caption{The longtable package can be used to split a table across multiple pages when it won't fit onto a single page, as illustrated with this table.}\label{t:long} \\ \hline \textbf{Base 10} & \textbf{Binary} \tn \hline \endhead % Caption still tagged as <TR> if this line commented out (no TH tags in the caption or row above) 1 & 1 \tn \hline 2 & 10 \tn \hline 3 & 11 \tn \hline 4 & 100 \tn \hline 5 & 101 \tn \hline 6 & 110 \tn \hline 7 & 111 \tn \hline 8 & 1000 \tn \hline 9 & 1001 \tn \hline 10 & 1010 \tn \hline 11 & 1011 \tn \hline 12 & 1100 \tn \hline 13 & 1101 \tn \hline 14 & 1110 \tn \hline 15 & 1111 \tn \hline 16 & 10000 \tn \hline 17 & 10001 \tn \hline 18 & 10010 \tn \hline 19 & 10011 \tn \hline 20 & 10100 \tn \hline 21 & 10101 \tn \hline 22 & 10110 \tn \hline 23 & 10111 \tn \hline 24 & 11000 \tn \hline 25 & 11001 \tn \hline 26 & 11010 \tn \hline 27 & 11011 \tn \hline 28 & 11100 \tn \hline 29 & 11101 \tn \hline 30 & 11110 \tn \hline \end{longtable} \end{document}

  • A problem involves origdate and text cites
    by M. Logic on October 19, 2026 at 9:49 am

    A minimal working sample is as follows. \documentclass[fontset=fandol]{ctexart} \usepackage[utf8, backend=biber, style=caspervector-ay, sorting=cenyt, sortcites=false, ugly]{biblatex} \makeatletter %change English commas for Chinese enumeration commas \renewcommand*{\bbx@citecomma}{\bbx@cnbcomma} \renewcommand*{\bbx@citebcomma}{\bbx@cnbcomma} %change English semicolons for Chinese commas \renewcommand*{\bbx@citescolon}{\bbx@cncomma} %forbiden p. and pp., and change , for : \renewcommand*{\postnotedelim}{\addcolon\space}% \DeclareFieldFormat{postnote}{\mknormrange{#1}}% \DeclareFieldFormat{multipostnote}{\mknormrange{#1}}% \DeclareFieldFormat{roundcnparens}{(#1)}%Chinese parenthesis \newbool{cbx:cnparens} \renewbibmacro*{textcite}{% \iffieldequals{namehash}{\cbx@lasthash} {\iffieldundef{shorthand} {\iffieldundef{origyear} {} {\undef\cbx@lastyear}% \ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)} {\setunit{\addcomma}% \usebibmacro{cite:extradate}} {\setunit{\compcitedelim}% \printfield[roundcnparens]{origyear}%Chinese parenthesis \setunit*{\addspace}% \usebibmacro{cite:labeldate+extradate}% \savefield{labelyear}{\cbx@lastyear}}} {\setunit{\compcitedelim}% \usebibmacro{cite:shorthand}% \global\undef\cbx@lastyear}} {\ifnameundef{labelname} {\iffieldundef{shorthand} {\usebibmacro{cite:label}% \setunit{% \global\booltrue{cbx:cnparens}% \printdelim{nonameyeardelim}\bbx@cnlparen}%Chinese left parenthesis \ifnumequal{\value{citecount}}{1} {\usebibmacro{prenote}} {}% \printfield[roundcnparens]{origyear}%Chinese parenthesis \setunit*{\addspace}% \usebibmacro{cite:labeldate+extradate}} {\usebibmacro{cite:shorthand}}} {\printnames{labelname}% \setunit{% \global\booltrue{cbx:cnparens}% \printdelim{nameyeardelim}\bbx@cnlparen}%Chinese left parenthesis \ifnumequal{\value{citecount}}{1} {\usebibmacro{prenote}} {}% \iffieldundef{shorthand} {\iffieldundef{labelyear} {\usebibmacro{cite:label}} {\printfield[roundcnparens]{origyear}%Chinese parenthesis \setunit*{\addspace}% \usebibmacro{cite:labeldate+extradate}}% \savefield{labelyear}{\cbx@lastyear}} {\usebibmacro{cite:shorthand}% \global\undef\cbx@lastyear}}% \stepcounter{textcitecount}% \savefield{namehash}{\cbx@lasthash}}% \setunit{% \ifbool{cbx:cnparens}%Chinese right parenthesis {\bbx@cnrparen\global\boolfalse{cbx:cnparens}} {}% \textcitedelim}% } \makeatother \begin{filecontents*}{\jobname.bib} @book{bookot, location = {Place}, publisher = {ABC}, author = {Name, Given}, title = {One title}, year = {2001}, origyear = {1978}, } @book{bookat, location = {Place}, publisher = {ABC}, author = {Name, Given}, title = {Another title}, year = {2001}, origyear = {1976}, } \end{filecontents*} \addbibresource{\jobname.bib} \addbibresource{biblatex-examples.bib} \begin{document} 1. \textcite{bookot,bookat,worman,geer} NO 2. \textcites{bookot,bookat,worman,geer} NO 3. \textcites{bookot}{bookat}{geer} NO 4. \textcites[20]{bookot}[29--71]{bookat}{geer} NO %\printbibliography \end{document} As you see, to cite the references with original dates in texts, I define new \textcite and \textcites in my dcocument improved from the link. The commands could make some punctuations be Chinese in text citations (I have succeed defining \cite and \cites). As you see \textcite and \textcites do not work well. The following picture shows what I want. I add cbx:cnparens to replace cbx:parens. But maybe I don't replace all of cbx:parens, then which are not replaced? By the way, don't change other cite commands, such as \cite and \cites. Note that caspervector-ay bases on authoryear-comp.

  • A problem involves origdate and multiple cites
    by M. Logic on October 19, 2026 at 6:44 am

    First a minimal working sample is as follows. \documentclass{ctexart} \usepackage[utf8, backend=biber, style=caspervector-ay, sorting=cenyt,sortcites=false,ugly]{biblatex} \DeclareFieldFormat{roundparens}{(#1)}% \makeatletter \newbibmacro{fciting:origdate}{% \iffieldundef{origyear}% {}% {\printtext[roundparens]{%parens \printfield{origyear}}}}% \newbibmacro{fciting:date}{% \printtext[bibhyperref]{% \printfield{year}% \printfield{extradate}}} \newbibmacro*{fciting:temporary-origdate}{% \usebibmacro{fciting:origdate}% \iffieldundef{origyear}% {}% {\setunit*{\addspace}}% } \newbibmacro*{fciting:date+extradate}{% \usebibmacro{fciting:temporary-origdate}% \printtext{\usebibmacro{fciting:date}}} %\newcommand{\ftextcitedelim}{\addcomma\addspace} \newcommand{\fcompcitedelim}{\addcomma\addspace} \newcommand{\fmulticitedelim}{\addsemicolon\addspace} \renewbibmacro*{fcite}{% \iffieldundef{shorthand} {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}} {\usebibmacro{cite:label}% \setunit{\printdelim{nonameyeardelim}}% \usebibmacro{fciting:date+extradate}% \usebibmacro{cite:reinit}} {\iffieldequals{namehash}{\cbx@lasthash} {\iffieldundef{origyear} {} {\undef\cbx@lastyear}% \ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)} {\setunit{\fcompcitedelim}% \usebibmacro{cite:extradate}} {\setunit{\fcompcitedelim}% \usebibmacro{fciting:date+extradate}% \savefield{labelyear}{\cbx@lastyear}}} {\printnames{labelname}% \setunit{\printdelim{nameyeardelim}}% \setunit*{\addspace}% \usebibmacro{fciting:date+extradate}% \savefield{namehash}{\cbx@lasthash}% \savefield{labelyear}{\cbx@lastyear}}}}% {\usebibmacro{cite:shorthand}% \usebibmacro{cite:reinit}}% \setunit{\fmulticitedelim}% } \DeclareCiteCommand{\fcite} {\usebibmacro{cite:init}% \usebibmacro{prenote}}% {\usebibmacro{citeindex}% \usebibmacro{fcite}}% {}%\setunit{\fmulticitedelim} {\usebibmacro{postnote}}% \DeclareMultiCiteCommand{\fcites}[\usebibmacro{cite:init}]{\fcite}{\fmulticitedelim} \makeatother \begin{filecontents*}{\jobname.bib} @book{bookot, location = {Place}, publisher = {ABC}, author = {Name, Given}, title = {One title}, year = {2001}, origyear = {1978}, } @book{bookat, location = {Place}, publisher = {ABC}, author = {Name, Given}, title = {Another title}, year = {2001}, origyear = {1976}, } \end{filecontents*} \addbibresource{\jobname.bib} \addbibresource{biblatex-examples.bib} \begin{document} \fcite{bookot,bookat,worman,geer} YES \fcites{bookot,bookat,worman,geer} YES \fcites{bookot}{bookat}{geer} NO \fcites[20]{bookot}[29--71]{bookat}{geer} NO \printbibliography \end{document} As you see, to cite the references with original dates, I define new \fcite and \fcites (I also use \cite and \cites in my dcocument for some reseasons) improved from the link. As you see \fcite and \fcites work well in most cases, except: when I use \fcites{bookot}{bookat}{geer} and \fcites[20]{bookot}[29--71]{bookat}{geer} in this case, it produce semicolons between years with the same author, while they should be commas. Then how to solve the problem?

  • What is the reason for starting preamble comment with a space in TeX and MF?
    by Igor Liferenko on October 19, 2026 at 2:35 am

    Run commands: tex 'story \end' dvitype story Preamble comment is: ' TeX output 2026.10.18:0927' The leading space is added in §617 of tex.web. Why? Run commands: mf '\nodisplays; input cmr10' gftype cmr10.2602gf Preamble comment is: ' METAFONT output 2026.10.18:0928'