Week
- Replace outside framebox by xy axisby Leoborges on February 26, 2026 at 8:31 pm
In this MWE, how can I replace the outside framebox by ordinary xy axis? \documentclass{article} \usepackage{luamplib} \begin{document} \begin{mplibcode} input graph beginfig(0); draw begingraph(4cm,5cm); setrange(-1,0,2,4); gdraw (-1,1) for x=-0.9 step 0.1 until 2: .. (x,x**2) endfor withpen pencircle scaled 1pt withcolor blue; endgraph; endfig; \end{mplibcode} \end{document}
- Using a range from TeX Gyre Termes Math causes arithmetic overflowby murray on February 26, 2026 at 6:29 pm
The following source produces the expected output. % !TEX program = lualatex \NeedsTeXFormat{LaTeX2e}[2025-11-01] \documentclass{article} \usepackage[russian,english]{babel} \babeltags{russian=russian} \usepackage{fontspec} \usepackage{lua-unicode-math} \defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX} \setmathfont{STIX Two Math}[Scale=MatchUppercase,math-style=ISO] %\setmathfont{TeX Gyre Termes Math}[Scale=MatchUppercase,math-style=ISO,range={\bigcup,\bigcap}] \ExpandArgs{c}\def{ver@unicode-math.sty}{} \babelfont{rm}[Scale=1.0]{TeXGyreTermesX} \babelfont[russian]{rm}{tempora} \usepackage{newunicodechar} \newunicodechar{♢}{\mdlgwhtdiamond} \usepackage{scalerel} \DeclareRobustCommand\myDiamond{\scalerel*{\mdlgwhtdiamond}{X}} \usepackage[thmtools-compat]{keytheorems} \DeclareRobustCommand{\qed}{% run-in QED: \ifmmode \mathqed \else \leavevmode\unskip\penalty9999 \hbox{}\nobreak%\hfill \quad\hbox{\qedsymbol}% \fi } \newkeytheoremstyle{exstyle}{} \newkeytheorem{example}[name=Example, style=exstyle, qed=$\myDiamond$] \begin{document} \begin{example} $3^{2} + 4^{2} = 5^{2}$. \end{example} \noindent We have $\bigcup_{i \in I} A_{i} = \bigcap_{j \in J} B_{j}$. \end{document} I want to pull the \bigcap and \bigcup symbols not from STIX Two Math but instead from TeX Gyre Termes Math (because in the latter they are lighter weight). However, if the commented-out line \setmathfont{TeX Gyre Termes Math...[...range=...] is uncommented then I get an arithmetic overflow when the qed-like diamond symbol is to appear. But why is the diamond symbol being selected from TeX Gyre Termes Math now, when apparently it was not before? Missing character: There is no ◇ (U+25C7) in font "name:TeX Gyre Termes Math:m ode=base;script=math;language=dflt;+tlig;"! ./clash.tex:39: Arithmetic overflow. <recently read> \calc@denominator l.39 \end{example} I can't carry out that multiplication or division, since the result is out of range.
- Building table lines via conditionalby daleif on February 26, 2026 at 12:50 pm
For a book project we're experimenting with configuring glossary. In our case we'd like to use xltabular. But sometimes the term in the first column is a bit wide, in that case we'd like to use \multicolumn and typeset the description on the row below. The naïve approch of course does not work (MWE below). Since we're using this for glossary entrys we can only use a single macro. Anyone have a good approach on how to do this? I'm assuming it is down to what is "allowed" at the start of a table row. Edit, version 2: This at least gets around the incomplete \ifdim error. But if we use the \multicolumn line, we instead get a Misplaced \omit. \multispan ->\omit \@multispan l.31 \Foo{AAAAAAAAAAAAAAAAAA}{BBB} error. One can get around this by starting the entry by \tabularnewline, but then we have an extra blank linie, that we'd need to back track \documentclass[a4paper]{article} \usepackage{array,booktabs} \begin{document} \makeatletter % if #1 is too long, typeset it in \multicolumn, and move description % to next line \NewDocumentCommand\Foo{mm}{ \settowidth\@tempdima{#1} \ifdim\@tempdima> 0.2\textwidth\relax \FooLong{#1}{#2} \else \FooShort{#1}{#2} \fi } \NewDocumentCommand\FooLong{mm}{ % \multicolumn{2}{l}{#1} #1 \tabularnewline & #2 \tabularnewline } \NewDocumentCommand\FooShort{mm}{ #1 & #2 \tabularnewline } \makeatother \noindent \begin{tabular}{@{}l l@{}} \Foo{AAA}{BBB} \Foo{AAAAAAAAAAAAAAAAAA}{BBB} \end{tabular} \end{document} Version 1: \documentclass[a4paper]{article} \usepackage{xltabular} \begin{document} \makeatletter % if #1 is too long, typeset it in \multicolumn, and move description % to next line \NewDocumentCommand\Foo{mm}{ \settowidth\@tempdima{#1} \ifdim\@tempdima> 0.2\textwidth\relax \multicolumn{2}{l}{#1} \tabularnewline & #2 \tabularnewline \else #1 & #2 \tabularnewline \fi } \makeatother \noindent \begin{xltabular}{\textwidth}{@{}l X@{}} \Foo{AAA}{BBB} \Foo{AAAAAAAAAAAAAAAAAA}{BBB} \end{xltabular} \end{document}
- Alternative to allowframbreaks and framebreakby Dimitrios ANAGNOSTOU on February 26, 2026 at 11:20 am
I know that there is allowframebreaks and framebreak and I have read a manual (of beamer?) that suggests to avoid using them. Nevertheless, when preparing course notes sometimes I need to split to several slides of similar content. I am asking if it is possible to do automatically the numbering 1/n, 2/n, 3/, etc. As an example: \documentclass[10pt]{beamer} \usetheme{moloch} \usepackage{babel} \title{Algèbre linéaire} \author{DA} \date{} \begin{document} \maketitle \section{Introduction} %-------------------------------------- \begin{frame}{De la structure à la représentation (1/3)} \begin{block}{Objets essentiels} \begin{itemize} \item \ldots \end{itemize} \end{block} \end{frame} %-------------------------------------- \begin{frame}{De la structure à la représentation (2/3)} \begin{block}{Concepts clés} \begin{itemize} \item \ldots \end{itemize} \end{block} \end{frame} %-------------------------------------- \begin{frame}{De la structure à la représentation (3/3)} \begin{alertblock}{Idée centrale : diagonalisation} blabla \end{alertblock} \end{frame} \end{document}
- How to zoom in on an image? [duplicate]by Kong on February 26, 2026 at 10:15 am
How can I crop an image and then keep its aspect ratio automatically resized and keep its resolution the same as what it originally us ? Basically I want to like zoom in on an image. For example, I want to zoom in such that the A fills the top and bottom of the image. Here is a MWE but you dont have to stick to it. I dont know what I am doing at all. \documentclass[twocolumn]{article} \usepackage{graphicx} \usepackage{subcaption} % <-- correct package \usepackage{booktabs} \usepackage[colorlinks]{hyperref} \usepackage{nicematrix} \usepackage[export]{adjustbox} % <-- provides \adjincludegraphics and cropping+scaling tools [1](https://tex.stackexchange.com/questions/57418/crop-an-inserted-image)[2](https://ctan.org/pkg/adjustbox) \begin{document} % ---- Tight frame: no padding between border and content ---- \setlength{\fboxsep}{0pt} \setlength{\fboxrule}{0.4pt} % ---- Cell geometry (ONE truth for all subfigures) ---- \newlength{\cellw} \newlength{\cellh} \setlength{\cellw}{0.23\textwidth} \setlength{\cellh}{0.17\textwidth} % choose the height you want (tweak once, applies everywhere) % ---- Image cell: crop (trim+clip) THEN scale to EXACT cell size ---- % The key trick is using BOTH width and height; adjustbox handles the crop+resize pipeline. [1](https://tex.stackexchange.com/questions/57418/crop-an-inserted-image)[2](https://ctan.org/pkg/adjustbox) \newcommand{\imgcell}[2][]{% \fbox{% \adjincludegraphics[ width=\cellw, height=\cellh, keepaspectratio, clip, #1 ]{#2}% }% } % ---- Text cell: EXACT same outer size; text centered both ways ---- \newcommand{\textcell}[1]{% \fbox{% \parbox[c][\cellh][c]{\cellw}{% \centering\small #1% }% }% } \begin{figure*}[htbp] \centering % --- Row 1 --- \subfloat{% % trim order: left bottom right top (graphicx/adjustbox convention) [1](https://tex.stackexchange.com/questions/57418/crop-an-inserted-image) \imgcell{example-image-a}% }\hfill \subfloat{% \imgcell{example-image-a}% }\hfill \subfloat{% \imgcell{example-image-a}% }\hfill \subfloat{% \imgcell{example-image-a}% } \vspace{0cm} % --- Row 2 --- \subfloat[Text Box]{% \textcell{% This is your\\ custom text\\ for the\\ bottom-left cell.% }% }\hfill \subfloat[Caption 2b]{% \imgcell{example-image-a}% }\hfill \subfloat[Caption 2c]{% \imgcell{example-image-a}% }\hfill \subfloat[Caption 2d]{% \imgcell{example-image-a}% } \caption{Overall figure caption} \label{fig:grid} \end{figure*} \end{document} Here is an example of what happens when I zoom in by cropping. It fails. If the dimensions on paper is 1337x137, then after zooming in via cropping it must still be 1337x137. I dont know how else to say it other than i just want to zoom in on an image. EDIT: Crop certain percent from each side of the figure not the same because cropping a % from 1 side distorts the human in the figure above. I need to crop with correct set of numbers. Alternatively, is there a [zoom] function that I can use ?
- quotchap with LuaLaTeX and fontsetupby user20478285 on February 25, 2026 at 11:41 pm
How can I have the quotchap package use the utopia font (only for the chapter number) with lualatex and fontsetup, like it does when using pdflatex? \documentclass{book} \usepackage{ifluatex} \ifluatex \usepackage{fontsetup} \else \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \fi \usepackage[grey, utopia]{quotchap} \begin{document} \chapter{Foo} \end{document} Result with pdflatex: Result with lualatex:
- I am plotting a family of parabolas in TikZ, and there is a stray parabola. I'm confusedby Jasper on February 25, 2026 at 7:14 pm
I am plotting a family of parabolas in TikZ, and there is a stray parabola. I'm confused. \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \pgfmathsetmacro{\SIGMALstart}{-3} \pgfmathsetmacro{\SIGMALstop}{3} \pgfmathsetmacro{\SIGMALsamples}{50} \pgfmathsetmacro{\SIGMALstep}{(\SIGMALstop-\SIGMALstart)/(\SIGMALsamples-1)} \foreach \SIGMAL[parse=true] in {\SIGMALstart,\SIGMALstart+\SIGMALstep,...,\SIGMALstop} { \draw[ variable=\TAUL, domain=-3:3 ] plot ( {\SIGMAL*\TAUL}, {((\TAUL)^2-(\SIGMAL)^2)/2} ); } \end{tikzpicture} \end{document}
- enumerate with right-aligned labels, the widest is flush-left to left edge of text area without setting widest=by tsj on February 25, 2026 at 6:40 pm
I want the following simple layout with enumitem: Blah blah noindent I. Foo II. Bar blah blah long line paragraph wrapping continues here III. Baz Blah blah noindent non-enumerate text Labels are right aligned, \labelsep can be fixed (e.g. 0.5em), and text continues from the same horizonal position on the next line in the case of a longer paragraph (I think this means \itemsep should be zero). enumitem apparently has the capacity to calculate the width of the widest label and set \labelwidth accordingly, though I can't determine under what circumstances that happens after reading the documentation. I can set widest=<whatever> to achieve the output I want, but I'd like to know if I can achieve the same by setting one or more parameters to ! or *, i.e. computing the parameters automatically. MWE and output are below, basically I just want the widest label (maybe VI or III or IV) label to be left-aligned with the left edge of the VVVVV (the left edge of the text area), everything else the same. \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=\Roman*.,nosep,align=right, leftmargin=*, labelindent=0pt, labelsep=0.5em, itemsep=0pt, % widest=VI, % I don't want to use this! ] \item Alpha. \item Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis sem. Nullam nec mi et neque pharetra sollicitudin. \item Gamma \item Delta \item Epsilon \item Zeta \end{enumerate} VVVVV \end{document}
- \nopagebreak in \paragraph don’t have effectby fauve on February 25, 2026 at 4:44 am
General overview I redefine \paragraph{} in order to get a wrap paragraph title like this : The problem But sometimes, when I reach the bottom page, a \section or \subsection comming just before the \paragraph stay at widow, like this: The MWE \documentclass{article} \usepackage{fontspec} \usepackage{xunicode} \usepackage{fontenc} \usepackage{wrapfig} \usepackage{needspace} \setlength\intextsep{0pt} \newlength{\wrapparwidth} \renewcommand{\paragraph}[1]{% %\needspace{3\baselineskip}% \nopagebreak[4]% \settowidth{\wrapparwidth}{\centering\bfseries\normalsize\small #1}% \ifdim\wrapparwidth>3cm% \setlength{\wrapparwidth}{3cm}% \fi% \begin{wrapfigure}{l}{\wrapparwidth} % l = left, 3cm largeur max \vspace{-0.04em} \centering\bfseries\normalsize\small #1 \end{wrapfigure}% \nopagebreak[4]% } \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \subsection{A random section} \paragraph{A random paragraph} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \end{document} The question As you see, I used many \nopagebreak and also needspace to avoid this behaviour, but LaTeX wan’t hear my \nopagebreaks. So how do I avoid pagebreak between sectioning commands and the new defined \paragraph ?
- PDF/UA and stretchable math delimitersby Vincent Beffara on February 25, 2026 at 12:12 am
I am trying to generate PDF/UA-2 compliant PDFs, and so far most of what I tried works with the last updates to the tagging support (thanks!). But with this file: \DocumentMetadata{lang=en,tagging=on,pdfstandard={UA-2}} \documentclass{article} \usepackage{newtxmath} \title{.} \begin{document} \maketitle \[\Bigg|\] \end{document} compiled with LuaLaTeX, verapdf tells me that the produced PDF is not valid because of a font issue, namely: The glyph can not be mapped to Unicode The Font dictionary of all fonts shall define the map of all used character codes to Unicode values, either via a ToUnicode entry, or other mechanisms as defined in ISO 14289-2, 8.4.5.8 I am assuming "the glyph" is the stretched vertical bar, and that the issue is with missing info from the math font loaded by newtxmath. What can I do, given that I would really like to keep newtxmath? Teach LuaLaTeX about the Unicode equivalent to that glyph (and others)? Use stretchable characters from another font? (but how?) Put the info in the font? (but how?)
- How to write at an angle along a straight lineby rpapa on February 24, 2026 at 8:33 pm
Using "sloped" I know how to write text parallel to a line, but how do I make the text also at an angle in the second case? \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,matrix,calc} \begin{document} \begin{tikzpicture} \draw [red,ultra thick] (0,0)coordinate(A1)-- (3,5)coordinate(A2); \path (A1) -- (A2) node[sloped,pos=0.3,draw,fill=white]{aa}; \draw [blue,ultra thick] (1,0)coordinate(A3)-- (4,5)coordinate(A4); \foreach \i in {1,...,5} \node [sloped,draw,fill=white] at ($(A3)!{\i*10mm}!(A4)$) {\i}; \end{tikzpicture} \end{document} To be clear, the nodes must have a set distance between them.
- Dynamic class/id name in tabularrayby Mariuslp on February 24, 2026 at 5:50 pm
I am trying, for the purposes of a reusable library, to create dynamic class names in tabularray. Here is my minimal code: \documentclass{article} \usepackage{tabularray} \usepackage{xcolor} \date{} \newcounter{stylectr} \setcounter{stylectr}{1} % compiles, but non-dynamic \newcommand{\style}{\SetChild{id=Idstylei}\stepcounter{stylectr}} %% does not work %% command to expand the argument before the \SetChild (see https://tex.stackexchange.com/a/133768/430417) %\def\expandArg #1#2{\expandafter\expandArgaux\expandafter{#2}{#1}} %\def\expandArgaux #1#2{#2{#1}} %\newcommand{\style}{\expandArg{\SetChild}{id=Idstyle\roman{stylectr}}\stepcounter{stylectr}} \begin{document} \begin{table} \SetTblrOuter{expand=\style} \begin{tblr} { colspec=lll, cell{Idstylei} = {red9} } \style 1 & \style 2 & 3\\ \end{tblr} \end{table} \end{document} My goal is that, every time I call \style, the cell is given the id Idstyle{ctr} where {ctr} is a roman number (or anything that will yield a valid tblr id name). For instance, in the above code, only the first cell should have red background. I have tried several related solutions (1 2) but none seems to be working, or at least none that I can make to work. Edit: weird behaviour from tabularray, if I try to use the line \newcommand{\style}{\SetChild{id=Idstyle\roman{stylectr}}\stepcounter{stylectr}}, the code compiles but does not work (no cell has id Idstylei or even Idstyle), and an extra comma , appears left of the table. Does anyone knows where this comma is coming from?
- Spacing and dot weight in bsmallmatrix (from mathtools)by Dimitrios ANAGNOSTOU on February 24, 2026 at 4:45 pm
MWE \documentclass{article} \usepackage{mathtools} \begin{document} Le signe $(-1)^{i+j}$ suit un motif en damier : \( \begin{bsmallmatrix} + & - & + & - & \cdots \\ - & + & - & + & \cdots \\ + & - & + & - & \cdots \\ - & + & - & + & \cdots \\ \vdots & \vdots & \vdots & \vdots & \ddots \end{bsmallmatrix} \) \end{document} Questions There appears to be some horizontal empty space around the matrix. How can I remove or reduce it? It seems that \cdots is not as bold as \vdots and \ddots. Is this actually the case? If so, is there a way to make the various dots visually consistent? THANKS A LOT!
- pgfplotstable commands do not work in a foreach loopby CarLaTeX on February 24, 2026 at 8:33 am
I'm trying to put together n files into one with pgfplotstable. This example works: \begin{filecontents}{data1.csv} aaa bbb ccc \end{filecontents} \begin{filecontents}{data2.csv} 111 222 333 \end{filecontents} \begin{filecontents}{data3.csv} aaa111 bbb222 ccc333 \end{filecontents} \documentclass{book} \usepackage{pgfplotstable} \pgfplotsset{compat=1.18} \begin{document} \pgfplotstableread[header=false]{data1.csv}\overallTable \pgfplotstableread[header=false]{data2.csv}\tableTwo \pgfplotstablevertcat{\overallTable}{\tableTwo} \pgfplotstableread[header=false]{data3.csv}\tableTwo \pgfplotstablevertcat{\overallTable}{\tableTwo} \begin{table} \pgfplotstabletypeset[ string type, ]{\overallTable} \end{table} \end{document} It gives what I want: But if I put the \pgfplotstableread and \pgfplotstablevertcat in a \foreach loop, they don't work: \begin{filecontents}{data1.csv} aaa bbb ccc \end{filecontents} \begin{filecontents}{data2.csv} 111 222 333 \end{filecontents} \begin{filecontents}{data3.csv} aaa111 bbb222 ccc333 \end{filecontents} \documentclass{book} \usepackage{pgfplotstable} \pgfplotsset{compat=1.18} \begin{document} \pgfplotstableread[header=false]{data1.csv}\overallTable \foreach \ind in {2,3} {the loop is executed: \ind\newline \pgfplotstableread[header=false]{data\ind.csv}\tableTwo \pgfplotstablevertcat{\overallTable}{\tableTwo} } \begin{table} \pgfplotstabletypeset[ string type, ]{\overallTable} \end{table} \end{document} Even if the loop is executed, I got no errors, and in the log I have: PGFPlots: reading {data1.csv} PGFPlots: reading {data2.csv} PGFPlots: reading {data3.csv}
- Formatting a sequence of items with comma and ending with 'and' or 'respectively'by mf67 on February 23, 2026 at 10:02 pm
Can someone help me create a macro like \MyList{A;B;C;D;E;F} which returns “A, B, C, D, E[,] respectively F" independently on how many ”arguments” (2+) that are specified and also support math, e.g. \MyList{\(A\);\(B\);\(C\);\(D\);\(E\);\(F\)} ? (I used the [,] notation since I’m not sure if the Oxford comma is used today.) If the number of arguments is two; \MyList{A;B} I would like it to return “A respectively B”. Edit: I tried using sinuitx but it might not be suitable for this task as it mainly(?) handles numbers. Here is a test \documentclass{article} \usepackage{siunitx} \begin{document} \numlist[parse-numbers=false]{A;2;3} \numlist[parse-numbers=false]{\text{A};2;3} \numlist[parse-numbers=false]{\(A+B\);2;3} \end{document} but it gives an error on the last line and I would like to have ”roman letters” if no ”math mode” is used, and avoid using \text{}.
- tabular: add lines until the end of the text body is reachedby cis on February 23, 2026 at 12:56 pm
Can I configure this loop, or a similar loop, to add rows until the end of the text body is reached? A small gap at the end will probably be unavoidable. Could this be achieved with \pdfpos? \documentclass[a5paper]{article} \usepackage[margin=14mm, showframe=true, paperheight=126mm, ]{geometry} \newcounter{mycount} \setcounter{mycount}{0} \def\mylines{}% \loop\ifnum\themycount<7% \addtocounter{mycount}{1} \expandafter\def\expandafter\mylines\expandafter{% \mylines & & \themycount \\ }% \repeat% \begin{document} \section{Table} \begin{tabular}{| c c | c|} \hline \multicolumn{3}{|c|}{Something} \\ \hline A & B & (My Head) \\ \hline a & b & n\\ a & b & n\\ a & b & n\\ \mylines \hline A & B & (My Foot)\\ \hline \end{tabular} \end{document}
- Controlling Subsection Visibility in LaTeX Table of Contentsby Aimar on February 23, 2026 at 10:43 am
I am using the amsart document class in LaTeX. I would like the table of contents to display all sections while including only a single, specific subsection. All other subsections should remain numbered and visible in the document, but should not appear in the table of contents. \documentclass{amsart} \usepackage{hyperref} \begin{document} \title{title} \author{Author Name} \maketitle \tableofcontents \section{First Section} \subsection*{This subsection should NOT appear in the TOC} \subsection{This subsection SHOULD appear in the TOC} \section{Second Section} \subsection*{Another subsection NOT in the TOC} \end{document}
- How to draw arc segments of circular quiver diagram elegant with tikz?by Explorer on February 23, 2026 at 9:23 am
Claim This post is more likely asking for better approach, focused on the arc's plot. And that is similar to, but I don't find the same one: Drawing cyclic quiver Drawing a circular graph using xypic https://tex.stackexchange.com/a/759710/322482 Descrption I found that just with: \draw[<->,shortstyle,violet] (\ang:\RR cm) arc[radius=\RR cm,start angle=\ang,delta angle=\deltaang]; The arc is not exactly centered at (0,0)(the violet part), thus I learnt from here and calculate the \deltaangg with cosline rule manually. Code \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \def\NN{5} \def\RR{5} \def\rr{0.5} \def\deltaang{\fpeval{360/\NN}} \def\deltaangg{\fpeval{acosd((2*\RR^2-\rr^2)/(2*\RR^2))}} % cosine rule \begin{tikzpicture}[ thick,>=Stealth,shortstyle/.style={shorten >=\rr cm,shorten <=\rr cm}] \foreach \i in {1,...,\NN}{ \def\ang{\fpeval{\deltaang*(\i-1)}} \path[draw,fill=gray!75] (\ang:\RR cm) circle[radius=\rr cm]; \def\startang{\fpeval{\ang+\deltaangg}} \def\endang{\fpeval{\ang+\deltaang-\deltaangg}} %%%%%%%%%%%%%% \draw[<->,shortstyle,violet] (\ang:\RR cm) arc[radius=\RR cm,start angle=\ang,delta angle=\deltaang]; %%%%%%%%%%%%%% % https://tex.stackexchange.com/a/66265/322482 \draw[<->,magenta] ([{shift=(\startang:\RR cm)}]0,0) arc[radius=\RR cm,start angle=\startang,end angle=\endang]; \foreach[parse=true] \j in {2,...,{\NN-2}}{ \def\nextang{\fpeval{\ang+\deltaang*\j}} \draw[shortstyle,<->] (\ang:\RR cm) -- (\nextang:\RR cm); } } \end{tikzpicture} \end{document} Question The magenta arcs is what I want, but I found it too hard to calculate \def\deltaangg{\fpeval{acosd((2*\RR^2-\rr^2)/(2*\RR^2))}}. Any suggestions on the code?
- Text above horizontal arrow in longtblr / tblr with minimal vertical spacingby GJW on February 23, 2026 at 12:40 am
I would like text to be above a horizontal arrow in longtblr, with the following constraints longtblr package Define start and stop points of arrow relative to column borders - i.e. enable the table is dynamic if width of columns change Minimal space between arrow bar and the text Text in column A centred between rows 2 and 3 A screen grab of the desired outcome is attached. Here is a minimal example illustrating what I currently have: \documentclass{article} \usepackage{tabularray} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{longtblr}{ colspec={|c|c|c|}, vlines, hlines, row{3} = {ht=0pt}, % arrow row height } % --- First row --- A & B & C \\ % --- SECOND row: merge columns 2 and 3 --- 1 & \SetCell{c=2} 2 & \\ % --- Arrow row (thin) --- & \SetCell{cmd=\tikz[remember picture]\node (Bstart) {};} & \SetCell{cmd=\tikz[remember picture]\node (Cend) {};} \\ \end{longtblr} % --- Draw the arrow --- \begin{tikzpicture}[overlay, remember picture] \draw[red, thick, <->] ($(Bstart.west)+(-\pgflinewidth/2,0)$) -- ($(Cend.east)+(\pgflinewidth/2,0)$); \end{tikzpicture} \end{document}
- Wrong links in \hyperrefby Alex Degtyarev on February 22, 2026 at 9:01 pm
Sorry everyone. I just did an update, which was probably a mistake, and encountered another problem with hyperref. For years I've been using a workaround which I borrowed from a journal, and it worked. Well, I understand that this is an undocumented feature, but there seems (seemed?) to be no other way to have everything numbered consecutively. Here's a minimal example: \documentclass{amsart} \usepackage{hyperref} \newtheorem{theorem}{Theorem}[section] \makeatletter \let\c@equation\c@theorem \let\theequation\thetheorem \makeatother \begin{document} \section{1} \begin{equation} a=b\label{1} \end{equation} \newpage \section{2} \begin{equation} c=d\label{2} \end{equation} \newpage \eqref1 \eqref2 \end{document} Both links lead to eqn. 1.1, and the log reports multiple anchors with the same name. What would the new hack be? Or is there a documented way now to have all theorems, lemmas, ... and equations numbered consecutively within sections and, at the same time, have \autoref work correctly?
- Multiple images stacked with a single caption, no extra vertical spaceby palloc on February 22, 2026 at 7:53 pm
I'm trying to create a LaTeX document where I have several images stacked vertically, with no extra vertical space between them, and only one caption for all images (appearing under the last image). The problem is that each \IMG creates a separate figure, so each image gets its own caption and there’s extra vertical space between images. What I want: Multiple images stacked vertically with no extra vertical space. Only one caption for all images (appearing under the last one). Allow overlays on the images (x, y, text). This is how it should look like: The code what I got from taiwan12 with little modification (link: https://tex.stackexchange.com/a/760076/287423) : \documentclass{report} \usepackage{graphicx} \usepackage{float} \usepackage{xcolor} \usepackage{xparse} \ExplSyntaxOn % variables \tl_new:N \l_taiwanxii_image_tl \tl_new:N \l_taiwanxii_caption_tl \tl_new:N \l_taiwanxii_shortcaption_tl \tl_new:N \l_taiwanxii_label_tl \tl_new:N \l_taiwanxii_pos_tl \fp_new:N \l_taiwanxii_scale_fp \fp_new:N \l_taiwanxii_overlayscale_fp \clist_new:N \l_taiwanxii_x_clist \clist_new:N \l_taiwanxii_y_clist \clist_new:N \l_taiwanxii_text_clist % keys \keys_define:nn { taiwanxii } { image .tl_set:N = \l_taiwanxii_image_tl, caption .tl_set:N = \l_taiwanxii_caption_tl, shortcaption .tl_set:N = \l_taiwanxii_shortcaption_tl, label .tl_set:N = \l_taiwanxii_label_tl, pos .tl_set:N = \l_taiwanxii_pos_tl, scale .fp_set:N = \l_taiwanxii_scale_fp, overlayscale .fp_set:N = \l_taiwanxii_overlayscale_fp, x .clist_set:N = \l_taiwanxii_x_clist, y .clist_set:N = \l_taiwanxii_y_clist, text .clist_set:N = \l_taiwanxii_text_clist, } \NewDocumentCommand{\IMG}{m} { % reset \tl_clear:N \l_taiwanxii_image_tl \tl_clear:N \l_taiwanxii_caption_tl \tl_clear:N \l_taiwanxii_shortcaption_tl \tl_clear:N \l_taiwanxii_label_tl \tl_clear:N \l_taiwanxii_pos_tl \tl_clear:N \l_taiwanxii_pos_tl \clist_clear:N \l_taiwanxii_x_clist \clist_clear:N \l_taiwanxii_y_clist \clist_clear:N \l_taiwanxii_text_clist \tl_set:Nn \l_taiwanxii_pos_tl {H} \fp_set:Nn \l_taiwanxii_scale_fp {1} \fp_set:Nn \l_taiwanxii_overlayscale_fp {1} \keys_set:nn { taiwanxii } { #1 } % shortcaption \tl_if_empty:NT \l_taiwanxii_shortcaption_tl { \tl_set_eq:NN \l_taiwanxii_shortcaption_tl \l_taiwanxii_caption_tl } \use:e { \exp_not:N \begin{figure}[\l_taiwanxii_pos_tl] } \centering \sbox0{\includegraphics[scale=\fp_use:N \l_taiwanxii_scale_fp]{\l_taiwanxii_image_tl}} \usebox0 \int_zero:N \l_tmpa_int \clist_map_inline:Nn \l_taiwanxii_x_clist { \int_incr:N \l_tmpa_int \tl_set:Nn \l_tmpa_tl {##1} \tl_set:Nx \l_tmpb_tl { \clist_item:Nn \l_taiwanxii_y_clist { \int_use:N \l_tmpa_int } } \tl_set:Nx \l_tmpc_tl { \clist_item:Nn \l_taiwanxii_text_clist { \int_use:N \l_tmpa_int } } \rlap{ \hspace{\dimexpr \l_tmpa_tl\wd0-\wd0\relax} \raisebox{\dimexpr \ht0-\l_tmpb_tl\ht0\relax}{ \makebox[0pt][l]{ \raisebox{-\height}{ \scalebox{\fp_use:N \l_taiwanxii_overlayscale_fp}{ \fcolorbox{black}{white}{ \shortstack[c]{\l_tmpc_tl} } } } } } } } \caption[\l_taiwanxii_shortcaption_tl]{\l_taiwanxii_caption_tl} \label{fig:\l_taiwanxii_label_tl} \end{figure} } \ExplSyntaxOff \begin{document} \listoffigures \IMG{ image = example-image, caption = Caption I, shortcaption = Caption, label = figA, pos = H, scale = 0.6, x = {0.0,0.5,0.2,0.7,0.8}, y = {0.0,0.2,0.3,0.65,0.9}, text = {AA\\BB,AABB,A,B,C}, overlayscale = 0.75, } \IMG{ image = example-image, caption = Caption II, shortcaption = Caption, label = figB, pos = H, scale = 0.6, x = {0.2,0.5}, y = {0.2,0.3}, text = {AABB,A}, overlayscale = 1, } \end{document}
- What is the best way to draw a potato (like found in vector analysis/continuum mechanics courses)by Dimitrios ANAGNOSTOU on February 21, 2026 at 11:34 pm
I apologized if this is a duplicate. What is the best way to draw such figures with tikz (or other packages)? For the time being just the potato like figure. I do not care for the vectors and the infinitesimal mass element. I do not want someone to do the work for me. Just some advice or suggestions.
- Top right math kern value not being used with \directlua code (bug?)by Apoorv Potnis on February 21, 2026 at 7:30 pm
I want to add a topright math kern (aka cut-in or staircase kerning) to DOUBLE-STRUCK CAPITAL R (Hex value: 0x211D, Code point: U+211D). I tried the method as shown in this answer of mickep, but it does not seem to work here. \documentclass{article} \usepackage{fontsetup} \directlua{ local kerns = { ["NewCMMath-Book"] = { [0x211D] = { topright = { { kern = -500 } } }, } } local function addkerns(tfmdata) if tfmdata.mathparameters then local kerns = kerns[tfmdata.properties.fontname] if kerns then local characters = tfmdata.characters for unicode, specification in pairs(kerns) do local character = characters[unicode] if character and not character.mathkerns then character.mathkerns = specification end end end end end fonts.handlers.otf.features.register { name = "mathkerns", description = "additional math kerns", default = true, initializers = { position = 1, base = addkerns, node = addkerns, } } } \usepackage{lua-visual-debug} % The absence of a red rectangle between the doublestruck R and the superscript n seems to indicate that math kerning is not being used, if I understand correctly. \begin{document} \(\symbb{R}^n\) \end{document} While I am using LuaLaTeX with unicode-math, answers for other engines such as ConTeXt and OpTeX are also welcome, if the resulting code is different. Edit: I have tried loading the fonts manually, but that also does not seem to work. \documentclass{article} \directlua{ local kerns = { ["NewCMMath-Book"] = { [0x211D] = { topright = { { kern = -100 } } } } } local function addkerns(tfmdata) if tfmdata.mathparameters then local kerns = kerns[tfmdata.properties.fontname] if kerns then local characters = tfmdata.characters for unicode, specification in pairs(kerns) do local character = characters[unicode] if character and not character.mathkerns then character.mathkerns = specification end end end end end fonts.handlers.otf.features.register { name = "mathkerns", description = "additional math kerns", initializers = { position = 1, base = addkerns, node = addkerns, } } } \usepackage{unicode-math} \setmainfont{NewCM10-Book.otf} \setmathfont[ StylisticSet={3}, BoldFont = NewCMMath-Bold.otf, RawFeature=+mathkerns ]{NewCMMath-Book.otf} \usepackage{lua-visual-debug} \lvdset{glyph={show=true}} \begin{document} \(\symbb{R}^n\) \end{document}
- Directlua can not add options to tikz nodeby Norodix on February 21, 2026 at 12:37 pm
I'm trying to set up some parameters of nodes from lua code. I don't understand why the first version works but not the second. \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node [ color=\directlua{ tex.print("red") } ] {A}; \node [ \directlua{ tex.print("color=red") } ] {B}; \end{tikzpicture} \end{document} To me it looks like that these two directlua sections should produce the exact same output, but B fails with the following error message: ! Package pgfkeys Error: I do not know the key '/tikz/color=red' and I am going to ignore it. Perhaps you misspelled it.
- QED symbol at end of align blocks final equation numberby Niles on February 21, 2026 at 9:56 am
I'm trying to use \qedhere with the ams classes to set a proof endmark at the end of an align environment. But doing so removes the number from that equation! This problem doesn't happen with a single numbered equation. Here are some examples. In the last one, I have a sort of hack from this question that adds a paragraph break and then a negative \vspace. But, the spacing isn't quite right and I wouldn't want to manually adjust it for each different environment. I've also seen a similar suggestion for a multi-line display. Is there not a better way? \documentclass{amsart} \begin{document} \begin{proof} Numbered equation, qedhere at right. \begin{equation} x+y\qedhere \end{equation} \end{proof} \begin{proof} Align environment; qed on newline \begin{align} x & = 2\\ y & = 3 \end{align} \end{proof} \begin{proof} Align environment; using qedhere blocks the final equation number \begin{align} x & = 2\\ y & = 3\qedhere % <---- want a number here too \end{align} \end{proof} \begin{proof} Align environment; paragraph break and negative vspace \begin{align} x & = 2\\ y & = 3 \end{align} \par\nopagebreak\vspace{-\baselineskip}\mbox{} \end{proof} \end{document} Note: Several related questions, like this one for the cases environment, have comments suggesting that it's just bad style to end a proof with a displayed equation. Leaving that aside, I'm really interested in different endmarks for different environments. The proof environment is just the simplest way to display the issue with \qedhere and align. Note 2: I also see suggestions that ntheorem handles endmarks better. I've used ntheorem for many years, but it hasn't been updated since 2011. I'm looking for a better solution using the new begin/end environment hooks. I had hoped \qedhere in the appropriate hook could do the job.
- Strange intersection glitch of knots package?by Explorer on February 21, 2026 at 9:20 am
This question based on the previous question: % Source - https://tex.stackexchange.com/a/759998 % Posted by Andrew Stacey % Retrieved 2026-02-21, License - CC BY-SA 4.0 \documentclass[tikz, border=1cm]{standalone} \usetikzlibrary{decorations.pathreplacing,knots} %\url{https://tex.stackexchange.com/q/759978/86} \begin{document} \begin{tikzpicture}[ basic strand/.style={ black, double=gray!10, double distance=1pt, line cap=round, thick, }, crossing strand/.style={ line width=2pt, only when rendering/.style={% draw=gray!10,% line width=1pt, double=none, } }, rounded corners=1pt, ] \begin{knot}[ consider self intersections=true, ignore endpoint intersections=false, background colour=black, every intersection/.style={ crossing strand }, only when rendering/.style={ basic strand }, clip width=1, flip crossing=1, ] \strand (7.5,7.5)--(6.5,5.5)--(7.5,3.5)--(6.5,1.5)--(4.5,0.5)--(2.5,1.5)--(0.5,0.5)--(1.5,2.5)--(0.5,4.5)--(1.5,6.5)--(3.5,7.5)--(5.5,6.5)--(7.5,5.5)--(6.5,3.5)--(7.5,1.5)--(5.5,0.5)--(3.5,1.5)--(1.5,0.5)--(0.5,2.5)--(1.5,4.5)--(0.5,6.5)--(2.5,7.5)--(4.5,6.5)--(6.5,7.5)--(5.5,5.5)--(7.5,4.5)--(6.5,2.5)--(7.5,0.5)--(5.5,1.5) --(3.5,0.5)--(1.5,1.5)--(0.5,3.5)--(1.5,5.5) --(0.5,7.5)--(2.5,6.5)--(4.5,7.5)--(6.5,6.5) --(4.5,5.5)--(5.5,3.5) % --(7.5,2.5) ; \end{knot} \end{tikzpicture} \end{document} With --(7.5,2.5) commented, it behaves good: However, if I uncommented that line, thing changed: Is that a bug or feature? Any possibility to improve this?
- Using tikz's backgrounds library to draw something behind textby Werner on February 21, 2026 at 7:20 am
Consider the following minimal example where I want to draw a rectangle behind a sequence of numbers (to highlight them): \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds,calc} \NewDocumentCommand{\tikzmark}{ m }{\tikz[overlay, remember picture] \node (#1) {};} \newcounter{seq} \NewDocumentCommand{\seqstart}{}{% \stepcounter{seq}% Start a new sequence \tikzmark{seq-start-\theseq}}% Set start marker \NewDocumentCommand{\seqend}{}{% \tikzmark{seq-end-\theseq}% Set end marker \tikz[remember picture, overlay] \scoped [on background layer] \fill [fill=blue!10!white] ($(seq-start-\theseq.south west) + (-0.5pt,1pt)$) rectangle ($(seq-end-\theseq.south east) + (0.5pt,1.1\normalbaselineskip)$);% } \begin{document} \[ 12, 15, 8, 11, 4, 7, 0, 3, 16, 19, 12, 15, 8, 11, 4, 7, 0, 3, \ldots \] \[ \seqstart{}12, 15, 8, 11, 4, 7, 0, 3, 16, 19\seqend{}, 12, 15, 8, 11, 4, 7, 0, 3, \ldots \] \end{document} The idea is that \seqstart would set a (counter-driven) \tikzmark representing the start of the sequence to be marked. Then \seqend would set a \tikzmark at the end and highlight it using the background layer. The counter allows for multiple such sequence marking within a larger document. However, the output shows that the rectangle highlighting a part of the sequence is not being drawn on background layer as requested. Why is that? How can I ensure the rectangle is drawn on the background layer behind document/text elements? The backgrounds library documentation (in the tikz documentation, section 45) mentions that on background layer can only be used inside a {scope} or \scoped, which is done above.
- When I use \hl inside of a longtable, the file says it's building forever but never buildsby Tyler on February 21, 2026 at 12:02 am
First off, here is my setup because I am certain that must be part of the problem. I'm using: texlive 2025 VS Code with these extensions: LaTeX by Mathematic Inc LaTeX Workshop by James Yu I have a LaTeX document that used to build just fine. I recently tried switching over to using the tcolorbox package instead of the soul package for highlighting in that document. As part of that process, I was getting some errors, and from reading various posts online for similiar issues I suspected I had an outdated texlive distribution so ended up trying to update everything with this on my command line: tlmgr update --all This appeared to fix the errors with tcolorbox, but I then realized that tcolorbox does not break across lines nicely so switched back to using soul. But now my document will not build. It is stuck in an infinite loop or something, the status at the bottom of VS code has the spinning circular arrows next to "Build" and it just spins forever. I have narrowed the problem down to when I use \hl inside of a longtable. Minimum working code is below. If I uncomment the commented line, I get the building-forever behavior. \documentclass{article} \usepackage{longtable} \usepackage{soul} \usepackage{xcolor} \begin{document} \sethlcolor{yellow}\hl{Test text} \begin{longtable}{ll} Column 1 & Column 2\\ % \hl{Test text} & Entry 2 \\ \end{longtable} \end{document} I have completely removed and re-installed my texlive installation and am still getting the same result. When I click "Kill LaTeX compiler process" twice to stop the infinite build, I get a popup saying "Recipe terminated with error". I click on "Open Compiler log" and get this: Initial Win CP for (console input, console output, system): (CP437, CP437, CP1252) I changed them all to CP1252 Rc files read: NONE Latexmk: This is Latexmk, John Collins, 15 June 2025. Version 4.87. No existing .aux file, so I'll make a simple one, and require run of *latex. Latexmk: applying rule 'pdflatex'... Rule 'pdflatex': Reasons for rerun Category 'other': Rerun of 'pdflatex' forced or previously required: Reason or flag: 'Initial setup' ------------ Run number 1 of rule 'pdflatex' ------------ ------------ Running 'pdflatex -synctex=1 -interaction=nonstopmode -file-line-error -recorder "c:/Users/REDACTED/test/test.tex"' ------------ This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (c:/Users/REDACTED/test/test.tex LaTeX2e <2025-11-01> L3 programming layer <2026-01-19> (c:/texlive/2025/texmf-dist/tex/latex/base/article.cls Document Class: article 2025/01/22 v1.4n Standard LaTeX document class (c:/texlive/2025/texmf-dist/tex/latex/base/size10.clo)) (c:/texlive/2025/texmf-dist/tex/latex/tools/longtable.sty) (c:/texlive/2025/texmf-dist/tex/generic/soul/soul.sty (c:/texlive/2025/texmf-dist/tex/generic/soul/soul-ori.sty) (c:/texlive/2025/texmf-dist/tex/generic/infwarerr/infwarerr.sty) (c:/texlive/2025/texmf-dist/tex/generic/etexcmds/etexcmds.sty (c:/texlive/2025/texmf-dist/tex/generic/iftex/iftex.sty))) (c:/texlive/2025/texmf-dist/tex/latex/xcolor/xcolor.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics-cfg/color.cfg) (c:/texlive/2025/texmf-dist/tex/latex/graphics-def/pdftex.def) (c:/texlive/2025/texmf-dist/tex/latex/graphics/mathcolor.ltx)) (c:/texlive/2025/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def) (./test.aux) (c:/texlive/2025/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) Here is my test.log file: This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025) (preloaded format=pdflatex 2026.2.20) 20 FEB 2026 17:50 entering extended mode restricted \write18 enabled. file:line:error style messages enabled. %&-line parsing enabled. **c:/Users/REDACTED/test/test.tex (c:/Users/REDACTED/test/test.tex LaTeX2e <2025-11-01> L3 programming layer <2026-01-19> (c:/texlive/2025/texmf-dist/tex/latex/base/article.cls Document Class: article 2025/01/22 v1.4n Standard LaTeX document class (c:/texlive/2025/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2025/01/22 v1.4n Standard LaTeX file (size option) ) \c@part=\count275 \c@section=\count276 \c@subsection=\count277 \c@subsubsection=\count278 \c@paragraph=\count279 \c@subparagraph=\count280 \c@figure=\count281 \c@table=\count282 \abovecaptionskip=\skip49 \belowcaptionskip=\skip50 \bibindent=\dimen148 ) (c:/texlive/2025/texmf-dist/tex/latex/tools/longtable.sty Package: longtable 2025-10-13 v4.24 Multi-page Table package (DPC) \LTleft=\skip51 \LTright=\skip52 \LTpre=\skip53 \LTpost=\skip54 \LTchunksize=\count283 \LTcapwidth=\dimen149 \LT@head=\box53 \LT@firsthead=\box54 \LT@foot=\box55 \LT@lastfoot=\box56 \LT@gbox=\box57 \LT@cols=\count284 \LT@rows=\count285 \c@LT@tables=\count286 \c@LT@chunks=\count287 \LT@p@ftn=\toks17 ) (c:/texlive/2025/texmf-dist/tex/generic/soul/soul.sty Package: soul 2023-06-14 v3.1 Permit use of UTF-8 characters in soul (HO) (c:/texlive/2025/texmf-dist/tex/generic/soul/soul-ori.sty Package: soul-ori 2023-06-14 v3.1 letterspacing/underlining (mf) \SOUL@word=\toks18 \SOUL@lasttoken=\toks19 \SOUL@syllable=\toks20 \SOUL@cmds=\toks21 \SOUL@buffer=\toks22 \SOUL@token=\toks23 \SOUL@syllgoal=\dimen150 \SOUL@syllwidth=\dimen151 \SOUL@charkern=\dimen152 \SOUL@hyphkern=\dimen153 \SOUL@dimen=\dimen154 \SOUL@dimeni=\dimen155 \SOUL@minus=\count288 \SOUL@comma=\count289 \SOUL@apo=\count290 \SOUL@grave=\count291 \SOUL@spaceskip=\skip55 \SOUL@ttwidth=\dimen156 \SOUL@uldp=\dimen157 \SOUL@ulht=\dimen158 ) (c:/texlive/2025/texmf-dist/tex/generic/infwarerr/infwarerr.sty Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) ) (c:/texlive/2025/texmf-dist/tex/generic/etexcmds/etexcmds.sty Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO) (c:/texlive/2025/texmf-dist/tex/generic/iftex/iftex.sty Package: iftex 2024/12/12 v1.0g TeX engine tests ))) (c:/texlive/2025/texmf-dist/tex/latex/xcolor/xcolor.sty Package: xcolor 2024/09/29 v3.02 LaTeX color extensions (UK) (c:/texlive/2025/texmf-dist/tex/latex/graphics-cfg/color.cfg File: color.cfg 2016/01/02 v1.6 sample color configuration ) Package xcolor Info: Driver file: pdftex.def on input line 274. (c:/texlive/2025/texmf-dist/tex/latex/graphics-def/pdftex.def File: pdftex.def 2025/09/29 v1.2d Graphics/color driver for pdftex ) (c:/texlive/2025/texmf-dist/tex/latex/graphics/mathcolor.ltx) Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1349. Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1353. Package xcolor Info: Model `RGB' extended on input line 1365. Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1367. Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1368. Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1369. Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1370. Package xcolor Info: Model `Gray' substituted by `gray' on input line 1371. Package xcolor Info: Model `wave' substituted by `hsb' on input line 1372. ) (c:/texlive/2025/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def File: l3backend-pdftex.def 2025-10-09 L3 backend support: PDF output (pdfTeX) \l__color_backend_stack_int=\count292 ) (./test.aux) \openout1 = `test.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 6. LaTeX Font Info: ... okay on input line 6. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 6. LaTeX Font Info: ... okay on input line 6. LaTeX Font Info: Checki Yes, it just cuts off in the middle of a line there. I can't decipher anything from these outputs, and I'm not sure what else to check. Please let me know whatever file you need to see to help figure this out. Thanks!
- Advantage of \csname over \makeatletter (inside \pgfkeys/\tikzset)?by Sammy on February 20, 2026 at 3:29 pm
In this answer https://tex.stackexchange.com/a/133357 to a question regarding TikZ I found the following comment inside a \tikzset: % Use csname so catcode of @ doesn't have do be changed. This leaves me wondering if using \csname has any advantage over changing the catcode of @ by wrapping \tikzset with \makeatletter - which inside a package wouldn't even be neccesary since inside a package @ is of catcode letter by default. Is the use of \makeatletter potentially problematic (in general or inside pgfkeys)? If so: In which cases is it advisable to use \csname instead of \makeatletter? As far as I can imgine it (practically?) should be just a matter of taste, otherwise using such code inside a package where @ is of catcode letter would be problematic?!
- Thinspace with babel french?by nowox on February 20, 2026 at 12:47 pm
I love LaTeX, but I also love french typography and I noticed that babel does not really add a thin space before the colon/semicolon: \documentclass{article} \usepackage[french]{babel} \addto\extrasfrench{% \renewcommand{\FBcolonspace}{\nobreak\thinspace}% } \begin{document} \large Le canard: un animal avec deux pattes. \end{document} Built with: latexmk -lualatex test.tex If I manually do it, the result is visually much better. \begin{document} \large Le canard\nobreak\thinspace: un animal avec deux pattes. \end{document} Is there a way to tweak babel to do it right?