Week
- Compiling only the last sectionby invictus on October 29, 2026 at 4:41 pm
I am looking for a way to print only the last section of a document (say, in article class). What I want is to have something like a \PrintOnlyLastSection command which, when placed in the preamble, will cause only the last section to be printed, regardless of how many sections the document contains. Commenting out that command should print the whole document as usual, and including or excluding that one % sign should be the only action required from the user. Possible use cases, to provide some context: a) An instructor hands out weekly homework sets. They keep a single dynamic file where each homework set is a section. Every week a new homework set is added to the end of the file and only that last set is printed and sent out to students, while the file keeps the database of all assignments for the academic semester. b) A financial analyst or lab technician prepares short monthly reports. They record and update the status of their system with the latest data in a new section stamped with the current date. At the end of every month, that month's report is sent to their team as a pdf, while old reports remain in the file for bookkeeping. Edit: Based on the comments, here is some more information. Consider periodic tasks, where at the end of every period, our author has the task of sending out that period's assignment/report etc., to their group, say, as a single mail to a mailing list. The section titles could contain the time stamp (e.g. "June financial report"). Currently, the author would be writing a separate tex file for every period, ending up with many files that need to be maintained. The aim is to replace all that with a single "reports.tex" file that is periodically updated. An MNWE (minimal non-working example): \documentclass{article} \newcommand{\PrintOnlyLastSection}{What should come here?} %\PrintOnlyLastSection \setcounter{secnumdepth}{0} \begin{document} \section{Homework Set 1} Questions for the first week. Already past. \section{Homework Set 2} Questions for the second week. We solved these last week. \section{Homework Set 3} These are the questions that should be sent to students this week. \end{document} What I do not want is moving sections to separate files for the purpose of using includeonly or input type solutions---everything must reside in a single file. Also, the well-known methods of ignoring parts of the document in the output, e.g., by enclosing them within comment environments or inside \iffalse .. \fi pairs, are not what I am after, as I want to avoid solutions that entail moving these commands around as new sections are added. For example, this answer that uses filecontents to simulate an includeonly effect, is rather cumbersome for the present purpose. I want a command that would automatically identify the last section and print only that, without manual intervention as new sections are added. Any ideas?
- How can I pass my floating tcolorbox to \listof{}?by katang on October 29, 2026 at 10:23 am
Based on threads Formatting list of custom floats in classic thesis, and How can I add my tcolorbox to my table of contents?, I prepared the MWE below. However, the list of mypanels does not print. What did I miss? \documentclass{book} \usepackage{siunitx} \usepackage{float} \usepackage{tcolorbox} \usepackage{hyperref} \newfloat{algorithm}{thp}{loa}[chapter] \floatname{algorithm}{Algorithm} \newcounter{myctr} %\numberwithin{myctr}{chapter} \newcommand{\mypanel}[3] { \noindent \refstepcounter{myctr}\par\smallskip \begin{tcolorbox} [float=bthp!, colback=green!5!white, colframe=yellow!10!green,coltitle=white, title=\textbf{\hypertarget{#1}{My panel~\themyctr:\\#2\label{#1}} \rmfamily} ] #3 %The main text \end{tcolorbox} } \floatname{mypanel}{MyPanel} % Fixing the tables with tcolorbox \makeatletter \renewcommand*\l@tcolorbox{\@dottedtocline{1}{1.5em}{3.0em}} \makeatother \begin{document} \chapter{Test chapter}\label{ch:algotest} \section{Some tests} Algorithm \ref{alg:first} shows a plain algorithm. Figures \ref{fig:first} and \ref{fig:second} show a couple figures, and a table is shown in table \ref{tab:first}; furthermore \hyperlink{MyTestA}{my panel \ref{MyTestA}} and \hyperlink{MyTestB}{my another panel \ref{MyTestB}} \begin{algorithm} \caption{A plain algorithm\label{alg:first}} \begin{verbatim} while not finished: do stuff \end{verbatim} \end{algorithm} \begin{figure} \caption{First figure\label{fig:first}} This one is a figure. \end{figure} \begin{figure} \caption{Second figure\label{fig:second}} This one is a figure too. \end{figure} \begin{table} \caption{Table figure\label{tab:first}} This one is a table. \end{table} \mypanel{MyTestA}{A test panel for table of contents} { Just a test } \mypanel{MyTestB}{Another test panel for table of contents} { Another test } \begingroup \let\clearpage\relax \let\cleardoublepage\relax \tableofcontents \listoffigures \listoftables \renewcommand{\figurename}{Algorithm} \listof{algorithm}{List of algorithms} \renewcommand{\figurename}{Algorithm} \tcblistof[\chapter*]{mypanel}{List of My panels} \endgroup \end{document}
- How to tweak the position of super/subscript of `mathop` of custom symbol?by Explorer on October 28, 2026 at 7:09 pm
The post is the follow-up of my previous post, here below is the code: \documentclass{article} \usepackage{geometry} \usepackage{pict2e}% \usepackage{unicode-math} \usepackage{fixdif} \setlength{\parindent}{0pt} \setmathfont{NewCMMath-Book.otf} \let\NCMintop\intop \makeatletter \newcommand{\myint@kern}{\mkern-9.5mu\mathchoice{\mkern-4mu}{}{}{}} \newcommand{\myint@strokes}[2]{#1\nolimits#2#1\nolimits#2#1\nolimits#2#1} \DeclareRobustCommand{\myint}{\DOTSI\myint@strokes{\NCMintop}{\myint@kern}\nolimits} \newcommand{\myint@ringwidthfactor}{.9} \newcommand{\myint@ringheightfactor}{.8} \newdimen\myint@ringwidth \newdimen\myint@ringoffset \newdimen\myint@ringheightdim \newcommand{\myint@ring}[2]{% \begingroup \sbox0{$\m@th#1\myint@strokes{\NCMintop}{\myint@kern}\nolimits$} \myint@ringwidth=\myint@ringwidthfactor\wd0 \sbox2{$\m@th#1\mkern.37mu$} \myint@ringoffset=\wd2% \setlength{\unitlength}{1pt}% \sbox2{$\m@th#1\mkern18mu$} \myint@ringheightdim=\myint@ringheightfactor\wd2 \ifx#1\displaystyle% \linethickness{.08\wd2} \else \divide\myint@ringheightdim by 2% \linethickness{.06\wd2} \fi \smash{\rlap{\ooalign{% \hidewidth$\m@th#1\vcenter{\hbox{\begin{picture}(0,0)% \put(\strip@pt\myint@ringoffset,0){\oval[\myint@ringheightdim](\strip@pt\myint@ringwidth,\strip@pt\myint@ringheightdim)}% \end{picture}}}$\hidewidth\cr% \hbox to\wd0{\hss}\cr% }}}% \endgroup } \DeclareRobustCommand{\myoint}{\DOTSI\mathop{\mathpalette\myint@ring{}}\nolimits\mkern-\thinmuskip\myint@strokes{\NCMintop}{\myint@kern}\nolimits} \makeatother \begin{document} \section{Expected Position} \[\iiiint_{\Omega} f\d V\qquad \oiiint_0^1 f\d V\] \[\iiiint\limits_{\Omega} f\d V\qquad \oiiint\limits_0^1 f\d V\] Inline: $\iiiint\limits_{\Omega} f\d V$ and $\oiiint\limits_0^1 f\d V$. \section{Unexpected Position} \[\myint_{\Omega} f\d V\qquad \myoint_0^1 f\d V\] \[\myint\limits_{\Omega} f\d V\qquad \myoint\limits_0^1 f\d V\] Inline: $\myint\limits_{\Omega} f\d V$ and $\myoint\limits_0^1 f\d V$. \end{document} We could notice that the position with \limits was not expected. Any suggestions on this case of custom \oiiiint symbol?
- How does framezoom work? And why does it fail in RTL context (lualatex)by Salim Bou on October 28, 2026 at 12:05 pm
I would like to know how the \framezoom command works in Beamer, this example work fine in LTR context but fail in RTL and the zoomed part do not show in the second slide. I know the issue is related to the pgfpicture environment, which continues to cause problems in RTL context; I have tried shifting the pgfpicture box in \framezoom command so that it reappears within the slide, but I have been unable to do so. I have beamer version 3.78 and babel version 26.14 % lualatex \documentclass{beamer} \usepackage[bidi=basic-r,layout=graphics]{babel} %\babelprovide[import=ar,main]{arabic} % Uncomment this to reveal the issue \begin{document} \parskip=6pt \begin{frame} \frametitle{zooming} \framezoom<1><2>[border=2](0cm,0cm)(2cm,2cm) \pgfimage[height=4cm]{example-image} \end{frame} \end{document} The definition of \framezoom command \def\framezoom<#1><#2>{\@ifnextchar[{\beamer@framezoom<#1><#2>}{\beamer@framezoom<#1><#2>[]}} \def\beamer@framezoom<#1><#2>[#3](#4,#5)(#6,#7){% \par\nointerlineskip% \global\beamer@slidehaszoomtrue% \advance\beamer@zoomcount by1\relax% \def\beamer@zoomborderwidth{0}% \edef\beamer@labelzoomed{beamer@labelzoomed@\the\beamer@zoomframecount @\the\beamer@zoomcount}% \setkeys{beamerzoom}{#3}% \only<#1>{% {\hypersetup{pdfhighlight={/P},pdfborder={0 0 \beamer@zoomborderwidth}}% \global\setbox\@tempboxa=\vbox{\hyperlink{\beamer@labelzoomed}{% \expandafter\ifx\csname XeTeXrevision\endcsname\relax% \else% \special{pdf:xann width #6 height #7 depth 0pt}% \fi% \vbox to #7{% \hbox to#6{\hfil}% \vfil% }% }}}% \ht\@tempboxa=0pt% \wd\@tempboxa=0pt% \dp\@tempboxa=0pt% \setbox\@tempboxa=\vbox{\moveright#4\hbox{\lower#5\vbox{\box\@tempboxa}}}% \ht\@tempboxa=0pt% \wd\@tempboxa=0pt% \dp\@tempboxa=0pt% \global\setbox\beamer@zoombox=\vbox to0pt{\unvbox\beamer@zoombox\box\@tempboxa}% }% \only<#2>{% \@ifundefined{\beamer@labelzoomed}% {% \hypertarget{\beamer@labelzoomed}{}% \expandafter\gdef\csname\beamer@labelzoomed\endcsname{}% }{}% \gdef\beamer@zoomer{% % compute zoom factor \@tempdima=\beamer@frametextheight% \@tempdimb=#7\relax% \@tempcnta=\@tempdimb% \divide\@tempcnta by4096\relax% \multiply\@tempdima by16\relax% \divide\@tempdima by\@tempcnta% \@tempdimb=\paperwidth% \ifbeamer@plainframe% \else% \advance\@tempdimb by-\beamer@leftsidebar% \advance\@tempdimb by-\beamer@rightsidebar\relax% \fi% \@tempdimc=#6\relax% \@tempcntb=\@tempdimc% \divide\@tempcntb by4096\relax% \multiply\@tempdimb by16\relax% \divide\@tempdimb by\@tempcntb% \ifdim\@tempdimb<\@tempdima% \@tempdima=\@tempdimb% \fi% \edef\beamer@temp{\strip@pt\@tempdima}% \@tempdimc=\beamer@frametextheight% \advance\@tempdimc by4pt% \@tempdimb=\paperwidth% \ifbeamer@plainframe% \else% \advance\@tempdimb by-\beamer@leftsidebar% \advance\@tempdimb by-\beamer@rightsidebar\relax% \fi% \setbox\@tempboxa=\vbox{\hsize=\@tempdimb\Acrobatmenu{GoBack}{\vbox to \beamer@frametextheight{\hbox to\@tempdimb{\hfil}\vfil}}}% \ht\@tempboxa=0pt% \wd\@tempboxa=0pt% \dp\@tempboxa=0pt% \setbox\beamer@framebox=\vbox to\beamer@frametextheight{{% \ifbeamer@plainframe\beamer@leftmargin=\Gm@lmargin\fi% \begin{pgfpicture}{\beamer@leftmargin}{-\beamer@frametextheight}{\beamer@leftmargin}{0pt} \pgftext[left,top]{\box\@tempboxa} \pgfpathrectangle{\pgfpoint{0pt}{-\@tempdimc}}{\pgfpoint{\@tempdimb}{\@tempdimc}}% \pgfusepath{clip} \begingroup \pgftransformscale{\beamer@temp} \@tempdima=#4\relax% \@tempdimb=#5\relax% {\pgftransformshift{\pgfpoint{-\@tempdima}{\@tempdimb}}% \pgftext[left,top]{\vbox{\vbox{}\nointerlineskip\unvbox\beamer@framebox}}} \endgroup \end{pgfpicture}% }}% \setbox\beamer@framebox=\vbox{% \nobreak\vbox{}\nobreak\par\nobreak\beamer@entrycode\nobreak% \nointerlineskip\unvbox\beamer@frametitlebox% \nobreak% \box\beamer@framebox% \nobreak% \vss% \beamer@exitcode% }% \global\setbox\beamer@footins=\box\voidb@x% no footnotes in zoomed slides }% }% } Update If I push the image to the left side a part of zoomed image appears in the second slide % lualatex \documentclass{beamer} \usepackage[bidi=basic-r,layout=graphics]{babel} \babelprovide[import=ar,main]{arabic} \begin{document} \parskip=6pt \begin{frame}[fragile] \frametitle{zooming} \framezoom<1><2>[border=2](0cm,0cm)(2cm,2cm) \ \hfill\pgfimage[height=3cm]{example-image} \end{frame} \end{document}
- Need to know about a Package [closed]by Senthil on October 28, 2026 at 9:41 am
I want to know more and usuage about this \usepackage{multicol-float} package can you give me with the example?
- How to vertical label the `enumext*` environment?by Explorer on October 27, 2026 at 3:09 pm
The post is the follow-up of my previous answer. Noted that in OP's example sketch, that was: we could notice that with multicols, the label was incremented vertically. I have the code with enumext: \documentclass{article} \usepackage{enumext} \setenumext[enumext*]{label=(\Alph*),topsep=2pt} \setenumext[enumext,1]{label=(\Alph*)} \begin{document} \begin{enumerate} \item Question 1 in words \begin{enumext*}[columns=1] \item Option A \item Option B \item Option C \item Option D \end{enumext*} \item Question 2 in words \begin{enumext*}[columns=2] \item Option A \item Option B \item Option C \item Option D \item Option E \item Option F \end{enumext*} \item Question 3 in words \begin{enumext}[columns=2] \item Option A \item Option B \item Option C \item Option D \item Option E \item Option F \end{enumext} \end{enumerate} \end{document} But... we could see that th vertical spacing was not the same, and I found no solution with task package... Except for invictus's answer, I wonder any better suggestions? I don't think manually change the spacing parameters here was good approach...
- 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 context [closed]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 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 MacOS27 [closed]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 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.