Hot
- Interaction between DeclareBibstringSetFormat and foreignblockcquoteby Meven Lennon-Bertrand on January 6, 2026 at 8:38 am
I seem to encounter an interesting interaction with the commands around \DeclareBibstringSetFormat (which I want to use to render ibid and other Latin locutions in italics, as per French norms) and the csquotes package, as showcased with the following code, which fails to compile (complaining about a missing/extra endcsname, and etb@undefined being undefined): \documentclass{article} \usepackage{hyperref} \usepackage{csquotes} \usepackage[english,french]{babel} \usepackage[ backend=biber, hyperref=true, backref=true, style=verbose-ibid, % style = apa, maxbibnames=99, % maxcitenames=2, sorting=nty, ]{biblatex} \begin{filecontents}[overwrite]{\jobname.bib} @incollection{white_frederick_1994, title = {Frederick Jackson Turner and Buffalo Bill}, pages = {145}, booktitle = {The Frontier in American culture}, author = {White, Richard(Author)}, date = {1994}, } \end{filecontents} \addbibresource{\jobname.bib} \usepackage{csquotes} \SetCiteCommand{\autocite} \DefineBibliographyExtras{french}{% \DeclareBibstringSet{latin}{andothers,ibidem}% \DeclareBibstringSetFormat{latin}{\mkbibemph{#1}}} \UndefineBibliographyExtras{french}{% \UndeclareBibstringSet{latin}} \begin{document} First citation \autocite{white_frederick_1994} \foreignblockcquote{english}[X]{white_frederick_1994}{It is a vanished world. No journeys, save those memory can make, will bring you to it now. The mountains are there, far and shining, and the sunlight and the infinite earth, and the air that seems forever the true fountain of youth – but where is the buffalo, and the wild antelope, and where the horseman with is pasturing thousands? So like its old self does the sage brush seem when revisited, that you wait for the horseman to appear. } \end{document} It somehow seems that the too long \foreignblockcquote paragraph is causing some sort of overflow? If I either make the cited paragraph shorter make the quote non foreign (ie a standard \blockcquote) remove the code to italicize Ibid then the issue disappears. What is happening? Is this an issue with biblatex,with csquotes, or with me? (Note: I originally opened this as an issue, but I got no answer there so I was hoping I could get some help here instead.)
- Git Images not pulled into Overleaf [closed]by Anson Savage on January 5, 2026 at 10:57 pm
I have a LaTeX project that I'm working on in VS Code. I have tracked it with Git and pulled it into GitHub. When I sync it with Overleaf, only have of the folders containing images come through: The entire folder of images is only 58 MB, so I doubt that's the reason. Any thoughts? Thanks! Anson
- PDF/X-4 and A-2B compliant PDF with lualatex and pdf managementby schade96 on January 5, 2026 at 10:37 pm
I am trying to create a PDF/X-4 PDF/A-2B multistandard compliant PDF using lualatex and the pdf management methods. There are a few challenges I faced. I have tried to create a very simplified minimal version of my actual document: \DocumentMetadata{ pdfstandard = {A-2b,X-4}, lang = en-US, pdfversion = 1.7, colorprofiles = { A = sRGB.icc, X = FOGRA39L_coated.icc } } \documentclass[a4paper]{article} \usepackage{graphicx} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage[urlcolor=blue]{hyperref} \hypersetup{ colorlinks=true,% urlcolor={blue},% linkcolor={red},% citecolor={green},% pdfauthor={me},% pdftitle={pdfxtest},% pdfsubject={subject},% pdfversionid={someversion},% pdfkeywords={a,b,c}% } \ExplSyntaxOn % This did not fix it: %\pdfmeta_xmp_add:n{<xmpMM:Keywords>a,b,c</xmpMM:Keywords>} \pdfmeta_xmp_add:n{ <xmpMM:RenditionClass>default</xmpMM:RenditionClass>} % Not sure if I should use True or False here. \pdfmeta_xmp_add:n{ <pdf:Trapped>True</pdf:Trapped>} \pdfmanagement_add:nnn{Info}{Trapped}{/True} \ExplSyntaxOff % Set these all to A4 \pdfmanagement_add:nnx{Page}{TrimBox}{[0~0~595.276~841.89]} \pdfmanagement_add:nnx{Page}{BleedBox}{[0~0~595.276~841.89]} % See comments %\pdfmanagement_add:nnx{Page}{MediaBox}{[0~0~595.276~841.89]} \begin{document} document \href{mailto:nobody}{mail to nobody} % % Construct the image for example like this: % python3 -c "import matplotlib.pyplot as p; p.scatter([0, 1], [0, 1], s=1, rasterized=True); p.savefig('testimage.pgf')" % sed -i '' 's/interpolate=true/interpolate=false/g' testimage.pgf \par\input{testimage.pgf} \end{document} As you can see the PDF: contains an embedded .png image generated from matplotlib (and many more in my actual document); here I have already disabled interpolation for contains a hyperlink (my actual document contains many more, both internal and external) As is, the above example is already A-2B compliant. But X-4 seems to be a bit more complicated and there are a few issues I cannot seem to fix. Preflight in Adobe Acrobat notes the following issues with the generated PDF: DeviceGray used but OutputIntent not Gray or CMYK (2 matches on 1 page) and OutputIntent profile not 'prtr' - This is probably related to how I set the color profiles. Is it even possible to use them as I do in my example? I remember reading that one will get overwritten for the output intent. Keyword mismatch between Document and XMP Metadata - Here, I really do not know what to do or where exactly this comes from. Linearizing the PDF with qpdf --linearize --object-streams=disable --compress-streams=n pdfx_test.pdf lin.pdf, I find that it contains (if I add it as shown in the code sample) <xmpMM:Keywords> <rdf:Bag> <rdf:li>a</rdf:li> <rdf:li>b</rdf:li> <rdf:li>c</rdf:li> </rdf:Bag< </xmpMM:Keywords> or <xmpMM:Keywords>a,b,c</xmpMM:Keywords> depending on what I add there, but neither of which resolve this. Also, I find << /Author [...] /Keywords <feff0061002c0062002c0063> [...] >> where $ python3 -c 'print(bytes.fromhex("feff0061002c00200062002c00200063").decode("UTF-16"))' a, b, c Document contains actions and Annotation other than TrapNet or PrinterMark inside print area (1 match on 1 page) - These seem to be related to the hyperlink and I am not sure how to resolve this. This leads me to the question whether such a document can even be X-4 compliant. How can I fix these points, if possible? For reference, this is the content of "testimage.pgf": %% Creator: Matplotlib, PGF backend %% %% To include the figure in your LaTeX document, write %% \input{<filename>.pgf} %% %% Make sure the required packages are loaded in your preamble %% \usepackage{pgf} %% %% Also ensure that all the required font packages are loaded; for instance, %% the lmodern package is sometimes necessary when using math font. %% \usepackage{lmodern} %% %% Figures using additional raster images can only be included by \input if %% they are in the same directory as the main LaTeX file. For loading figures %% from other directories you can use the `import` package %% \usepackage{import} %% %% and then include the figures with %% \import{<path to file>}{<filename>.pgf} %% %% Matplotlib used the following preamble %% \def\mathdefault#1{#1} %% \everymath=\expandafter{\the\everymath\displaystyle} %% \IfFileExists{scrextend.sty}{ %% \usepackage[fontsize=10.000000pt]{scrextend} %% }{ %% \renewcommand{\normalsize}{\fontsize{10.000000}{12.000000}\selectfont} %% \normalsize %% } %% %% \ifdefined\pdftexversion\else % non-pdftex case. %% \usepackage{fontspec} %% \setmainfont{DejaVuSerif.ttf}[Path=\detokenize{/Users/dennis/Desktop/pdfxtest/v/lib/python3.12/site-packages/matplotlib/mpl-data/fonts/ttf/}] %% \setsansfont{DejaVuSans.ttf}[Path=\detokenize{/Users/dennis/Desktop/pdfxtest/v/lib/python3.12/site-packages/matplotlib/mpl-data/fonts/ttf/}] %% \setmonofont{DejaVuSansMono.ttf}[Path=\detokenize{/Users/dennis/Desktop/pdfxtest/v/lib/python3.12/site-packages/matplotlib/mpl-data/fonts/ttf/}] %% \fi %% \makeatletter\@ifpackageloaded{underscore}{}{\usepackage[strings]{underscore}}\makeatother %% \begingroup% \makeatletter% \begin{pgfpicture}% \pgfpathrectangle{\pgfpointorigin}{\pgfqpoint{6.400000in}{4.800000in}}% \pgfusepath{use as bounding box, clip}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetmiterjoin% \definecolor{currentfill}{rgb}{1.000000,1.000000,1.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.000000pt}% \definecolor{currentstroke}{rgb}{1.000000,1.000000,1.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{6.400000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{6.400000in}{4.800000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{4.800000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetmiterjoin% \definecolor{currentfill}{rgb}{1.000000,1.000000,1.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.000000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.800000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{4.224000in}}% \pgfpathlineto{\pgfqpoint{0.800000in}{4.224000in}}% \pgfpathlineto{\pgfqpoint{0.800000in}{0.528000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% \pgfsys@transformshift{1.020000in}{0.680000in}% \pgftext[left,bottom]{\includegraphics[interpolate=false,width=4.530000in,height=3.390000in]{testimage-img0.png}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{1.025455in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=1.025455in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{1.927273in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=1.927273in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.2}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{2.829091in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=2.829091in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.4}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{3.730909in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=3.730909in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.6}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{4.632727in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=4.632727in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.8}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{5.534545in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=5.534545in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}1.0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{0.696000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=0.643238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{1.368000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=1.315238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.2}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{2.040000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=1.987238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.4}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{2.712000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=2.659238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.6}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{3.384000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=3.331238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.8}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{4.056000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=4.003238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}1.0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.800000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{0.800000in}{4.224000in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{5.760000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{4.224000in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.800000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{0.528000in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.800000in}{4.224000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{4.224000in}}% \pgfusepath{stroke}% \end{pgfscope}% \end{pgfpicture}% \makeatother% \endgroup%
- latex-lab-math alt text and \displaystyle?by Richard Wong on January 5, 2026 at 6:26 pm
I am experimenting with the tagging project's mathematics tagging to create tagged pdf, and I'm wondering if there's any way for the generated alt text to automatically omit purely visual commands like \displaystyle? It seems to me that the alt text generator grabs and repeats exactly the latex commands verbatim. For example, below is a minimal working example: \DocumentMetadata{ tagging=on, tagging-setup={math/setup=mathml-SE} } \documentclass[11pt]{article} \usepackage{hyperref} \begin{document} %%%%%%%%%%%%%%%%%%%% %accessibility/tagging \tagpdfsetup{math/alt/use} \hypersetup{ pdftitle={Test}, pdfauthor={Richard Wong},pdfdisplaydoctitle% } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% $\displaystyle \int_0^1 xe^{-x^2} \ dx$ \end{document} The alt text that I get (when viewed with Apple's VoiceOver screen reader) is Latex formula starts \begin{math} \displaystyle \int_0^1 xe^{-x^2} \ dx \end{math} Latex formula ends A second, related question is how the alt text generator handles macros. For example, if I define \newcommand{\ds}{\displaystyle}, and then write $\ds \int_0^1 xe^{-x^2} \ dx$, would there be a way for the alt text to recognize and omit \ds?
- The font size of frame title in ltx-talkby Elena on January 5, 2026 at 6:01 pm
I would like the frame title to be in a larger font. I could not find examples of setting the font size in the header template. My minimal working example: \DocumentMetadata{tagging = on} \documentclass[10pt]{ltx-talk} \title{Title} \subtitle{Subtitle} \EditInstance{header}{std}{ left-hspace = 3mm, font = \huge } \EditInstance{footer}{std}{ background-color = gray!20, color = black, element-order = {title, subtitle, framenumber}, right-hspace = 3mm, left-hspace = 3mm, } \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{frame} \frametitle{Default Size Frame Title} Content 1 \end{frame} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{frame} \frametitle{\huge Huge Frame Title} Content 2 \end{frame} \end{document}
- How to pick which bibliography strings to use and how to add mine?by user386618 on January 5, 2026 at 4:01 pm
I noticed that when I switch babel from English to Russian, the connection words (and, in, edited by, etc) between entries in my bibliography switch to Russian. I'm curious about I can add "translations" of connection words of my own language (particularly Kazakh) and how to change which to use in certain situations. I didn't find any information about that. \documentclass[10pt]{book} \usepackage[english, russian]{babel} \usepackage[backend=biber, autolang=hyphen]{biblatex} \begin{filecontents*}{draft.bib} @online{draft-1, author = {Клековкин, Геннадий and Коннова, Лариса and Коннов, Валерий}, title = {Теорема Эйлера о плоском графе}, url = {https://studme.org/256259/matematika_himiya_fizik/teorema_eylera_ploskom_grafe}, urldate = {2025-12-15}, langid = {russian}, keywords = {draft} } @incollection{draft-2, author = {Генкин, С.~А. and Иттенберг, И.~В. and Фомин, Д.~В.}, title = {Графы-2}, chapter = {2.6}, pages = {152--170}, booktitle = {Ленинградские математические кружки}, publisher = {АСА}, location = {Киров}, date = {1994}, isbn = {5-87400-072-0}, langid = {russian}, keywords = {draft} } @incollection{draft-3, author = {Бибиков, Павел Витальевич}, title = {Транснеравенство}, chapter = {1.4}, pages = {16--19}, booktitle = {Неравенства в задачах}, publisher = {МЦНМО}, location = {Москва}, date = {2020}, isbn = {978-5-4439-1518-0}, langid = {russian}, keywords = {draft} } @incollection{draft-4, author = {Bulajich Manfrino, Radmila and Gómez Ortega, José Antonio and Valdez Delgado, Rogelio}, title = {The Rearrangement Inequality}, booktitle = {Inequalities: A Mathematical Olympiad Approach}, chapter = {1.4}, pages = {13--20}, publisher = {Birkhäuser}, location = {Basel}, date = {2009}, isbn = {978-3-0346-0049-1}, doi = {10.1007/978-3-0346-0050-7}, langid = {english}, keywords = {draft} } @online{draft-5, author = {{Mathlinks Members}}, editor = {Suppa, Ercole}, title = {Inequalities From Around the World 1995--2005}, date = {2011-03-27}, version = {1.1}, url = {https://www.esuppa.it/Articoli/Suppa_Inequalities%20from%20the%20word%201995-2005.pdf}, urldate = {2025-12-13}, langid = {english}, keywords = {draft} } @article{draft-6, author = {Пинтер, Л. and Хегедыш, Й.}, title = {Упорядоченные наборы чисел и неравенства}, journaltitle = {Квант}, date = {1985-12}, number = {12}, pages = {14--16}, publisher = {Наука}, location = {Москва}, issn = {0130-2221}, url = {https://kvant.mccme.ru/1985/12/uporyadochennye_nabory_chisel.htm}, urldate = {2025-12-13}, langid = {russian}, keywords = {draft} } \end{filecontents*} \addbibresource{draft.bib} \begin{document} \nocite{*} \printbibliography[heading=subbibintoc,keyword={draft},title={draft}] \end{document}
- How to use cslet with DTLforeach after reading dbtex file using \DTLread?by Krantz on January 5, 2026 at 3:45 pm
The following code works until \DTLwrite. So, I am unable to get the \action to work. I understand there might be other ways of accomplishing this. My reason for using this approach is to speed up fetching data from many large csv files. Any help would be much appreciated. I get the error: ! Missing \endcsname inserted. <to be read again> \protect l.9 {\cslet{datafromdbtex\one\two}{\three}} Here is the reproducible example: \documentclass{article} \usepackage{datatool} \DTLread[name=data,format=csv,keys={one,two,three}]{testdata}% works \DTLwrite[name=data,format=dbtex-3,keys={one,two,three},overwrite=allow]{testdata}% works \DTLread[format=dbtex,name=datafromdbtex,keys={one,two,three}]{testdata}% does not work \newcommand{\action}[3]{\csname#1#2#3\endcsname} \DTLforeach{datafromdbtex}{\one=one,\two=two,\three=three}% does not work {\cslet{datafromdbtex\one\two}{\three}}% \begin{document} \action{datafromdbtex}{second_value_of_one}{second_value_of_two}% does not work %should print second_value_of_three \end{document} % testdata.csv % one,two,three % first_value_of_one,first_value_of_two,first_value_of_three % second_value_of_one,second_value_of_two,second_value_of_three
- Fedora dummy package : Possible improvement?by Niko29 on January 5, 2026 at 3:17 pm
I'm doing a vanilla installation of TeX Live 2025 on Fedora 43 using the following dummy package: https://ctan.org/pkg/texlive-dummy-fedora. (I've tried other dummy packages with the same results.) On Debian, the dummy package works perfectly, and no packages from the repositories are installed during the TexStudio and Auto-multiple-choice installation. I'm trying to do the same for Fedora. I downloaded the source code texlive-dummy-2022-1.fc36.src.rpm, which I renamed texlive-dummy-2025-1.fc43.src.rpm. I opened the archive and edited the .spec file to change the date to 2025 (Is this necessary???). recompiled to texlive-dummy-2025-1.fc43.noarch.rpm and installed. Result: TexStudio installation: Perfect, all TeX Live packages from the repositories have disappeared from the installation dependencies with this dummy package (there were many without the dummy package). Auto-multiple-choice installation: almost all packages have disappeared except for four: texlive-bophook texlive-csvsimple texlive-dvipdfmx texlive-tools I removed bophook, csvsimple, and tolls by adding these lines to the end of the .spec file: Provides: texlive-bophook Provides: tex-bophook Provides: tex-bophook-doc Provides: texlive-bophook-doc Provides: tex(bophook.sty) Provides: texlive-csvsimple Provides: tex-csvsimple Provides: tex-csvsimple-doc Provides: texlive-csvsimple-doc Provides: tex(csvsimple.sty)` Is this a good idea ? or should I let these three packages install ? However, it's impossible for me to remove dvipfmx with: Provides: texlive-dvipdfmx Provides: tex-dvipdfmx Provides: tex-dvipdfmx-doc Provides: texlive-dvipdfmx-doc Provides: tex(dvipdfmx.sty) Is this possible ? Desirable ? If so, how ? Thank you. Nicolas
- How to get ChatGPT to convert Latex to pdf? [closed]by Pulkit Agarwal on January 5, 2026 at 2:52 pm
When I ask ChatGPT to make a math worksheet that gives me the latest code and asked me to copy paste it to overleaf. How can I get ChatGPT to generate the PDF for me so I don't have to copy paste it. In Gemini for for example I can use the canvas tool, but I tried doing that with ChatGPT and it did not work.. Even though it shows Katex in the chat answer, I just want it as a pdf. Edit: Found the answer https://www.strivemath.com/pdf - chat gpt launched apps recently so I used this to create a pdf in chatGPT
- Can I customise the footer in ltx-talk?by Elena on January 5, 2026 at 1:52 pm
Yay, now there are accessible Latex slides! I just started porting my slides to ltx-talk from beamer. The first thing that I cannot easily replicate from my beamer template is the footer, which is as follows: \setbeamercolor{foot1}{fg=black, bg=skyblue!20} \setbeamercolor{foot2}{fg=black, bg=skyblue!60} \setbeamercolor{foot3}{fg=black, bg=skyblue} \setbeamertemplate{footline}{% \leavevmode% \hbox{% \begin{beamercolorbox}[wd=.3\paperwidth,ht=2.75ex,dp=1ex,left]{foot1}% \hspace*{2ex} \insertshorttitle \end{beamercolorbox}% \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.75ex,dp=1ex,center]{foot2}% \insertsubtitle % \end{beamercolorbox}% \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.75ex,dp=1ex,right]{foot3}% \insertframenumber{}/\inserttotalframenumber \hspace*{2ex} \end{beamercolorbox}}% \vskip0pt% } I have two main issues. First, I cannot change the height of the footer. See the original beamer slide and its version in ltx-talk. While I can ignore the other differences, this height does bother me. Second, I really like to show the number of the current slide out of the total number of slides. Is there a way to do something similar like 3/10? By the way, this is my current ltx-talk settings: \EditInstance{footer}{std}{ background-color = skyblue!20, color = black, element-order = {title, subtitle, framenumber}, right-hspace = 3mm, left-hspace = 3mm, } I did try using totalframes comma separated inside element-order, but it gave me this error <argument> \??? ! LaTeX Error: Erroneous variable \@shorttotalframes used! But even if it did work, I still don't like the two numbers to be separated. Here is my minimal working example: \DocumentMetadata{tagging = on} \documentclass[10pt]{ltx-talk} \title{Fundamentals of Web Development} \subtitle{Week 1: Basics of HTML} \usepackage[T1]{fontenc} \renewcommand*\familydefault{\sfdefault} \usepackage[sfdefault,condensed]{roboto} \definecolor{kentblue}{HTML}{003882} \definecolor{skyblue}{HTML}{2ABED9} \EditInstance{footer}{std}{ background-color = skyblue!20, color = black, element-order = {title, subtitle, framenumber}, right-hspace = 3mm, left-hspace = 3mm, } \begin{document} \begin{frame} \begin{center} \Huge \textcolor{kentblue}{\textbf{Lecture 1} ltx-talk} \end{center} \begin{itemize} \item Introduction to HTML and CSS \item Basic syntax of HTML \item Some simple formatting \item Images and links \end{itemize} \end{frame} \end{document}
- circuitikz: width, height and pin-distance of a 'op amp'by cis on January 5, 2026 at 1:27 pm
I want to create a breadboard whose x-slot spacing matches the pin spacing of a muxdemux (this was done here); and whose y-slot spacing matches the pin spacing of an op amp. An image for clarification: I can approximate the y-direction by trial and error, using \pgfmathsetlengthmacro\OApin{% 'op amp' pin width \bl*\ctikzvalof{tripoles/op amp/width}*0.3*0.5} But I would like to do this accurately and precisely. In short: I need height, width, and pin spacing of an op amp from the package-keys. (Unfortunately, these keys are usually well hidden and not very self-explanatory.) \documentclass[margin=5pt, multi=circuitikz]{standalone} \usepackage{circuitikz} \def\ShowBreadBoard{1} % Breadboard 1/2 ====================== % Default of bipoles/length ================= \pgfmathsetlengthmacro\bl{\UseName{pgf@circ@Rlen}}% default 1.4cm %%%%%%%%%% Problems here %%%%%%%%%%% % Breadboard y - measures of 'op amp' ================= \pgfmathsetlengthmacro\OApin{% 'op amp' pin width \bl*\ctikzvalof{tripoles/op amp/width}*0.3*0.5} \pgfmathsetlengthmacro\OAh{% 'op amp' height \bl*\ctikzvalof{tripoles/op amp/height}} \pgfmathsetlengthmacro\OAw{% 'op amp' width \bl*\ctikzvalof{tripoles/op amp/height}*5/6+0*\pgflinewidth/cos(45)} %%%%%%%%%%%%%%%%%%%%%%%%% % Breadboard x - measures of 'MuxDemux' ================= \pgfmathsetlengthmacro{\basemuxlen}{\bl *\ctikzvalof{multipoles/muxdemux/base len} *\ctikzvalof{muxdemuxes/scale}} \pgfmathsetlengthmacro{\MUXw}{\basemuxlen*6}%w=6, muxdemux-width %\pgfmathsetlengthmacro{\MUXh}{\basemuxlen*4}%Lh=4, muxdemux-height \pgfmathsetlengthmacro{\MUXp}{\MUXw/3}% bottom pin distance of muxdemux \begin{document} \begin{circuitikz}[] % Breadboard 2/2 ================ \begin{scope}[font=\footnotesize\ttfamily] \pgfmathsetlengthmacro\u{\MUXp/4}% x-unit-length \pgfmathsetlengthmacro\v{\OAh/4}% y-unit-length \def\X{x} \def\Y{y}% letters for coordinates \foreach \x in {0,...,26}{%% \foreach \y in {0,...,6}{% \ifnum\ShowBreadBoard=1 %%%%%%%%% \pgfmathtruncatemacro\Xt{mod(\x,2)==0 ? 1 : 0}% show x-coordinate test \pgfmathtruncatemacro\Yt{mod(\y,2)==0 ? 1 : 0}% show y-coordinate test \fill[gray] (\u*\x,-\y*\v) circle[radius=0.65pt] coordinate[label=](\X\x\Y\y); \ifnum\y=0 \node[above, red] at (\X\x\Y\y) {\ifnum\Xt=1 \x\fi};\fi \ifnum\x=0 \node[left, red] at (\X\x\Y\y) {\ifnum\Yt=1 \y\fi};\fi \draw[red, shorten <=2pt] (x0y0) -- +(135:0.75) node[midway, above]{x} node[near end, below]{y}; \else% \coordinate[](\X\x\Y\y) at (\u*\x,-\y*\v); \fi%%%%%%%%%%%%%% }}% %% %\node{\OAw, \OAh};% test %\draw (x0y0) circle(1mm); % test \end{scope}% ===================== \node[op amp](opamp) at (x8y3) {}; \draw (x15y3) to[L, color=pink] (x22y3); \end{circuitikz} \end{document}
- Loading thmtools break linksby tobiasBora on January 5, 2026 at 1:15 pm
A package of mine loads thmtools. The issue is that if thmtools is loaded before \newtheorem, all links to theorems point to wrong theorems. Why is it the case? MWE: \documentclass{article} \usepackage{amssymb,amsthm,lipsum} % Loading this package breaks the cref link at the end (pointing to wrong theorem). % Exchange these two lines and it's fine \usepackage{thmtools} \newtheorem{theorem}{Theorem}[section] \usepackage{hyperref} \usepackage{cleveref} \begin{document} \section{Introduction} \lipsum[3-4] \section{First Section} \begin{theorem} Example theorem \end{theorem} \begin{proof} Example proof \end{proof} \lipsum[3-4] \lipsum[3-4] \newpage \section{Next Section} \begin{theorem}\label{foo} \lipsum[1-2] \end{theorem} \begin{proof} \lipsum[3-4] \end{proof} \lipsum[10-12] \section{Ending} \lipsum[5-7] \cref{foo} % Click this link: it will point to the wrong theorem \end{document} EDIT: I also reported a bug in https://github.com/muzimuzhi/thmtools/issues/73
- microtype + newcomputermodern produce unknown slot number warnings, even without textby PHL on January 5, 2026 at 12:29 pm
microtype used together with fontspec is producing many unknown slot number warnings. This is apparently related to protrusion, see microtype producing dozens of Unknown slot number warnings for Lete Sans Math . These warnings happens even with an empty document (so without any pdf output) and are not stopped by disabling protrusion at the beginning of document as demonstrated by the following MWE. % !TEX TS-program = lualatex \documentclass{article} \usepackage{fontsetup} \usepackage{microtype} \AtBeginDocument{\microtypesetup{protrusion=false}} \begin{document} \end{document} (fontsetup without option load the new computer modern font). Using protrusion=false as an option of the package does however solve the problem. [concrete]{fontsetup} does also solve the problem, so this is really font dependent.
- Is there an equivalent to the decimal package (provides raised decimal point in math mode automatically) which works in lualatex? [closed]by Phillip Helbig on January 5, 2026 at 11:24 am
I've mentioned the following subject in an earlier question, but it’s probably best to raise it in a question of its own. (The earlier question involves pdfLaTeX, in which the decimal package works fine for simple font setups.) Unfortunately, I’m having trouble getting Times Roman-like oldstyle numerals both in math and text modes, monospaced in math mode and proportional in text, with otherwise identical fonts. My goal is to have oldstyle numerals both in math (tables, matrices) and text (preferably proportional oldstyle, but monospaced oldstyle would be OK) with a raised decimal point. At least at first glance, it looks like LuaLaTeX can handle the font-related routines. However, for obvious reasons, the decimal package doesn’t work there. I have hundreds of numbers so something like \num from siunitx is not an option for me. Normal input should be possible.
- Where to post / read news about TeX/ LaTeX and similar?by topskip on January 5, 2026 at 9:52 am
This is not a technical question about LaTeX or TeX. Imagine I have created a cool LaTeX package or a new TeX engine or something similar. Is there a good place to post this? I see special mailing lists (for example tex-live), these don't seem to fit. Where can / should I place announcements like this?
- subfloat + includegraphics: alignement and box sizes?by Achille on January 5, 2026 at 9:44 am
I have the following latex code but I cannot fix it. The first row is made of 6 boxes. The second row is made of 3 boxes, the first should be large as the first 3 boxes of the first row, the other two boxes should have the same height of the first box in the same row. All boxes should be aligned. So here are my questions: How can I adjust the space between boxes in the same row? How can I adjust the size of the first box in the second row and adjust the other sizes accordingly? ...Ideally I'd also like to add arrows between, e.g. the 4th box in the first row and the 3rd box in the the second row. Maybe subfloat is not the best choice... Thanks for helping \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{subfig} % Changed from subcaption to subfig \usepackage{array} \setlength{\voffset}{-0.75in} \setlength{\headsep}{5pt} \begin{document} \begin{figure}[ht] \centering % Image rows \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-b}} \vspace{0.5cm} \subfloat{\includegraphics[width=0.42\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image}} \vspace{0.5cm} \subfloat{\includegraphics[width=0.42\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image}} \end{figure} \end{document}
- Cyrillic and Latin small caps with STIX Two Textby Sascha on January 5, 2026 at 9:34 am
I’m trying to get small capitals working for both Latin and Cyrillic scripts in LuaLaTeX with fontspec using STIX Two Text font. Consider the following example. \documentclass{article} \usepackage{fontspec} \setmainfont{STIX Two Text}[ SmallCapsFeatures={Letters=SmallCaps,LetterSpace=6.0}, ] \begin{document} Ключевые слова (Keywords) \quad vs \quad \textsc{Ключевые слова (Keywords)} \end{document} In this case, Latin small caps work as expected, but Cyrillic don’t. If I explicitly set the script to Cyrillic in \setmainfont, it’s the other way round. \documentclass{article} \usepackage{fontspec} \setmainfont{STIX Two Text}[ SmallCapsFeatures={Letters=SmallCaps,Script=Cyrillic,LetterSpace=6.0}, ] \begin{document} Ключевые слова (Keywords) \quad vs \quad \textsc{Ключевые слова (Keywords)} \end{document} How can I use small caps with both scripts? Defining two different fonts – one for Latin and one for Cyrillic – will not work for me.
- How to shorten the sliding rheostat's wire length in circuitikz package?by Explorer on January 5, 2026 at 7:45 am
What I want to achieved is as below: I have the following code: \documentclass[border=5pt]{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz}[european] \draw(0,0) to [rmeter,t=A] (0,2) to [R,l_=$R$](3,2) to [pR,l_=$R'$,n=pr] (4.1,2); \draw(0,0) to [normal open switch,l_=$S$] (6,0) |-(pr.wiper); \end{circuitikz} \end{document} it gives the similar result: However, the righthand of sliding rheostat's length is control in manual, but guess the coordinate (4.1,2), which is not elegant. I have consulted the manual, but found no similar components. Is that better method to achieve the desird result?
- How to get the fancy ampersand of Biolinum (for headings) with Libertinus and pdflatex?by Eros Jones on January 4, 2026 at 11:58 pm
I've recently switched from Libertine to Libertinus. Now the fancy Biolinum ampersand has been replaced by the boring -- and too high -- variant. I use pdflatex and would like to be able to insert the fancy ampersand into headings (formatted as lowercase Biolinum bold small caps), so they look as before. I only need this in a handful of places. What it should (and did) look like: What it does look like now: MWE: \documentclass[10pt, b5paper, nofonts, sfsidenotes, twoside, raggedright, marginals=raggedleft]{tufte-book} % This file shows the problem that the switch from Libertine to Libertinus loses the fancy ampersand \usepackage[LGR,T1]{fontenc} \usepackage[oldstyle,proportional]{libertinus} \usepackage{libertinust1math}% [sansmath] option destroys \upvarphi \usepackage[biolinum,greek=up,scale=1]{libgreek} \renewcommand*\ttdefault{lmtt} % The following provides upright sans font for maths, see egreg's answer at https://tex.stackexchange.com/questions/185172/changing-number-font-into-sans-serif % Letter codes gleaned from libertinust1math.sty \DeclareSymbolFont{sans}{T1}{LibertinusSans-TLF}{m}{n}% For standard lining figures use -LF \SetSymbolFont{sans}{bold}{T1}{LibertinusSans-TLF}{b}{n}% Gets rid of warning that bold italics cannot be found \DeclareMathSymbol{0}{\mathalpha}{sans}{"30} \DeclareMathSymbol{1}{\mathalpha}{sans}{"31} \DeclareMathSymbol{2}{\mathalpha}{sans}{"32} \DeclareMathSymbol{3}{\mathalpha}{sans}{"33} \DeclareMathSymbol{4}{\mathalpha}{sans}{"34} \DeclareMathSymbol{5}{\mathalpha}{sans}{"35} \DeclareMathSymbol{6}{\mathalpha}{sans}{"36} \DeclareMathSymbol{7}{\mathalpha}{sans}{"37} \DeclareMathSymbol{8}{\mathalpha}{sans}{"38} \DeclareMathSymbol{9}{\mathalpha}{sans}{"39} \DeclareMathSymbol{A}{\mathalpha}{sans}{`A} \DeclareMathSymbol{B}{\mathalpha}{sans}{`B} \DeclareMathSymbol{C}{\mathalpha}{sans}{`C} \DeclareMathSymbol{D}{\mathalpha}{sans}{`D} \DeclareMathSymbol{E}{\mathalpha}{sans}{`E} \DeclareMathSymbol{F}{\mathalpha}{sans}{`F} \DeclareMathSymbol{G}{\mathalpha}{sans}{`G} \DeclareMathSymbol{H}{\mathalpha}{sans}{`H} \DeclareMathSymbol{I}{\mathalpha}{sans}{`I} \DeclareMathSymbol{J}{\mathalpha}{sans}{`J} \DeclareMathSymbol{K}{\mathalpha}{sans}{`K} \DeclareMathSymbol{L}{\mathalpha}{sans}{`L} \DeclareMathSymbol{M}{\mathalpha}{sans}{`M} \DeclareMathSymbol{N}{\mathalpha}{sans}{`N} \DeclareMathSymbol{O}{\mathalpha}{sans}{`O} \DeclareMathSymbol{P}{\mathalpha}{sans}{`P} \DeclareMathSymbol{Q}{\mathalpha}{sans}{`Q} \DeclareMathSymbol{R}{\mathalpha}{sans}{`R} \DeclareMathSymbol{S}{\mathalpha}{sans}{`S} \DeclareMathSymbol{T}{\mathalpha}{sans}{`T} \DeclareMathSymbol{U}{\mathalpha}{sans}{`U} \DeclareMathSymbol{V}{\mathalpha}{sans}{`V} \DeclareMathSymbol{W}{\mathalpha}{sans}{`W} \DeclareMathSymbol{X}{\mathalpha}{sans}{`X} \DeclareMathSymbol{Y}{\mathalpha}{sans}{`Y} \DeclareMathSymbol{Z}{\mathalpha}{sans}{`Z} \DeclareMathSymbol{a}{\mathalpha}{sans}{`a} \DeclareMathSymbol{b}{\mathalpha}{sans}{`b} \DeclareMathSymbol{c}{\mathalpha}{sans}{`c} \DeclareMathSymbol{d}{\mathalpha}{sans}{`d} \DeclareMathSymbol{e}{\mathalpha}{sans}{`e} \DeclareMathSymbol{f}{\mathalpha}{sans}{`f} \DeclareMathSymbol{g}{\mathalpha}{sans}{`g} \DeclareMathSymbol{h}{\mathalpha}{sans}{`h} \DeclareMathSymbol{i}{\mathalpha}{sans}{`i} \DeclareMathSymbol{j}{\mathalpha}{sans}{`j} \DeclareMathSymbol{k}{\mathalpha}{sans}{`k} \DeclareMathSymbol{l}{\mathalpha}{sans}{`l} \DeclareMathSymbol{m}{\mathalpha}{sans}{`m} \DeclareMathSymbol{n}{\mathalpha}{sans}{`n} \DeclareMathSymbol{o}{\mathalpha}{sans}{`o} \DeclareMathSymbol{p}{\mathalpha}{sans}{`p} \DeclareMathSymbol{q}{\mathalpha}{sans}{`q} \DeclareMathSymbol{r}{\mathalpha}{sans}{`r} \DeclareMathSymbol{s}{\mathalpha}{sans}{`s} \DeclareMathSymbol{t}{\mathalpha}{sans}{`t} \DeclareMathSymbol{u}{\mathalpha}{sans}{`u} \DeclareMathSymbol{v}{\mathalpha}{sans}{`v} \DeclareMathSymbol{w}{\mathalpha}{sans}{`w} \DeclareMathSymbol{x}{\mathalpha}{sans}{`x} \DeclareMathSymbol{y}{\mathalpha}{sans}{`y} \DeclareMathSymbol{z}{\mathalpha}{sans}{`z} %%%%%%%%%%%%%%%%%%%%%%%% HEADINGS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \titleformat{\chapter}[display] {\fontsize{20}{1.45\baselineskip}\bfseries\sffamily\scshape\color{black}} {} {0pt} {\numberatright} \titleformat{name=\chapter,numberless}[display] {\fontsize{20}{1.45\baselineskip}\bfseries\sffamily\scshape\color{black}} {} {0pt} {\zarchaptertitle} \newcommand{\zarchaptertitle}[1]{% \parbox[t]{0.9\textwidth}{#1} } \newcommand{\numberatright}[1]{% \zarchaptertitle{#1}\hfill \makebox[0pt][r]{\fontsize{20}{1.45\baselineskip}\thechapter}% } \titleformat{\section}[display] {\fontsize{13.75}{0pt}\bfseries\sffamily\scshape\color{black}} {} {0pt} {\sectionnumberatright} \titleformat{name=\section,numberless}[display] {\fontsize{13.75}{0pt}\bfseries\sffamily\scshape\color{black}} {} {0pt} {\zarsectiontitle} \newcommand{\zarsectiontitle}[1]{% \parbox[t]{0.9\textwidth}{#1} } \newcommand{\sectionnumberatright}[1]{% \zarsectiontitle{#1}\hfill \makebox[0pt][r]{\fontsize{13.75}{0pt}\thesection}% } \titleformat{\subsection}[display] {\fontsize{13.75}{0pt}\mdseries\sffamily\scshape\color{black}} {} {0pt} {\subsectionnumberatright} \titleformat{name=\subsection,numberless}[display] {\fontsize{13.75}{0pt}\mdseries\sffamily\scshape\color{black}} {} {0pt} {\zarsubsectiontitle} \newcommand{\zarsubsectiontitle}[1]{% \parbox[t]{0.9\textwidth}{#1} } \newcommand{\subsectionnumberatright}[1]{% \zarsubsectiontitle{#1}\hfill \makebox[0pt][r]{\fontsize{13.75}{0pt}\thesubsection}% } \setcounter{secnumdepth}{2} %%%%%%%%%%%%%%%%%%%%%%%% END OF HEADINGS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \raggedbottom \begin{document} \chapter{chapter title \& so on} Blah \section{\textls{section title \& so on}} Blablah \end{document} If you change the line \usepackage[oldstyle,proportional]{libertinus} to \usepackage[oldstyle,proportional]{libertine} fancy ampersand comes back. But that's not a solution because I've refactored the source code to use Libertinus commands. I've tried to build upon this solution, using the unicode (hex) character code E050 of fancy ampersand, but no luck so far.
- Asymptote error in RStudio: missing pdf image fileby Pai on January 4, 2026 at 11:40 pm
I have problem which is the same as this one: enter link description here The minimal example is as follows: --- title: "Asymptote in R Markdown (Windows-safe)" output: pdf_document: latex_engine: pdflatex keep_tex: true header-includes: - \usepackage{asymptote} --- \begin{asy} size(5cm); usepackage("mathptmx"); settings.prc = false; draw((0,0)--(3,0)--(3,2)--(0,2)--cycle); draw((0,1)--(3,1)); draw((1,0)--(1,2)); draw(circle((2.0,1.5),0.33)); label("Demo", (1.5,1.0)); \end{asy} The result I got is a pdf file without the picture I want. The warning message I got is as follows: processing file: asy_demo.Rmd output file: asy_demo.knit.md Warning: Package asymptote Warning: file `asy_demo-1.pdf' not found on input line 83. Output created: asy_demo.pdf I wonder if there is any update about it since that question was rasied almost 4 years ago. I think the problem is caused by the missed match of the pdf images files: the asymptote does generate image, but the name is not recognized by knit to PDF in RStudio. Any help is greatly appreciated!
- circuitikz: set 'rounded corners' of a 'oscopeshape' to a smaler valueby cis on January 4, 2026 at 11:23 pm
Due to a chat-talk with @Rmano, I asked myself wether there is a methode to set the rounded corners of a oscopeshape to 0pt or to a very small value. The rounded corners can become weird, if I set a small scale: \documentclass[margin=10pt]{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz}[font=\footnotesize] \node[oscopeshape] (A){scale=1}; \node[oscopeshape, right of=A, scale=0.5](B) {scale=0.5}; \node[oscopeshape, right of=B, scale=0.35] {scale=0.35}; \end{circuitikz} \end{document}
- Is there an incompatibility between the lettrine and beamer packages?by AndréC on January 4, 2026 at 8:24 pm
The sentence below wraps to a new line too soon: the word "rapporteur" should not be on a new line. This problem occurs whenever the sentence is too long to fit on a single line. \documentclass[aspectratio=1610,12pt,french]{beamer} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage[locale=FR]{siunitx} \usepackage{lettrine} \usepackage{tikz} \usetikzlibrary{angles} \begin{document} \begin{frame}{} \lettrine[lraise=.25]{S}{ans} utiliser de rapporteur donner la mesure de chacun des angles sachant que $\widehat{xOz}=\ang{60}$. \bigskip \lettrine[lraise=.25]{S}{ans} utiliser de rapporteur donner la mesure de chacun des angles sachant que l'angle xOz mesure 60 degrés. \end{frame} \end{document} Here's what's displayed:
- TexLive 2025 Vanilla and Fedora 43 : problemby Niko29 on January 4, 2026 at 5:54 pm
When I install TexLive 2025 Vanilla (install-tl) on Fedora 42 : No problem. But the same installation on Fedora 43 : problem Installation : OK then reboot. which tex give /usr/local/bin/tex tex --version give TeX 3.141592653 (TeX Live 2025)... but tlmgr --version give : Can't locate File/Find.pm in @INC (you may need to install the File::Find module) (@INC entries checked: /usr/local/texlive/2025/texmf-dist/scripts/texlive /usr/local/texlive/2025/tlpkg /usr/local/lib64/perl5/5.42 /usr/local/share/perl5/5.42 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/local/bin/tlmgr line 87. BEGIN failed--compilation aborted at /usr/local/bin/tlmgr line 87. And pdflatex sample2e.tex don't compile and give : This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025) (preloaded format=pdflatex) restricted \write18 enabled. kpathsea: Running mktexfmt pdflatex.fmt Can't locate File/Find.pm in @INC (you may need to install the File::Find module) (@INC entries checked: /usr/local/texlive/2025/tlpkg /usr/local/texlive/2025/texmf-dist/scripts/texlive /usr/local/lib64/perl5/5.42 /usr/local/share/perl5/5.42 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/local/texlive/2025/texmf-dist/scripts/texlive/mktexlsr.pl line 128. BEGIN failed--compilation aborted at /usr/local/texlive/2025/texmf-dist/scripts/texlive/mktexlsr.pl line 128. Compilation failed in require at /usr/local/bin/mktexfmt line 42. BEGIN failed--compilation aborted at /usr/local/bin/mktexfmt line 44. I can't find the format file pdflatex.fmt'! several tries on Fedora 43 and still the same problem. several tries on Fedora 42 and and still no problems. Is there a problem with a new Fedora 43 and the Vanilla installation of TexLive? On my other computers, I had installed texlive 2025 on Fedora 42 then mounted in 43: no problems
- circuitikz: width (height) and pin-distance of a 'muxdemux'by cis on January 4, 2026 at 4:48 pm
How do I get these two lengths? By the way: a) I don't need the height right now, but I assume the extraction method would be the same; so it wouldn't hurt to have it... b) I know how to do it with the calc library. However, it would be better if I could get the dimensions directly from the circuitikz package, without having to measure them after drawing. \documentclass[margin=15pt]{standalone} \usepackage{circuitikz} \begin{document} \tikzset{ circuitikz/muxdemux/outer label font={\tiny\ttfamily\color{blue}}, mychip/.style={muxdemux,% ===================== muxdemux def={ Lh=4, Rh=4, w=6,% sizes NR=0, NL=5, NB=3, NT=3,}, muxdemux label={ %T1=T1, T2=T2, T3=T3, B1=B1, B2=B2, B3=B3, BR1=br1, BL1=bl1, BR2=br2, BL2=bl2, BR3=br3, BL3=bl3,% %TR1=tr1, TL1=tl1, TR2=tr2, TL2=tl2, TR3=tr3, TL3=tl3,% LU1=lu1, LD1=ld1, LU2=lu2, LD2=ld2, LU3=lu3, LD3=ld3, LU4=lu4, LD4=ld4, LU5=lu5, LD5=ld5, }, draw only top pins={}, append after command={ \pgfextra \def\fg{\tikzlastnode} % Contacts annotations ============== \foreach \x in {1,2,3}{%% \node[bnc, anchor=zero, rotate=-90](Contact\x) at (\fg.blpin 5 -| \fg.btpin \x) {}; \draw[] (Contact\x) -- (\fg.bbpin \x); }%% \endpgfextra }, },% ===================== } \begin{circuitikz}[>=latex] \node[mychip](FG){chip}; \draw[purple, <->] (FG.north west) -- (FG.north east) node[midway, fill=white, inner sep=0pt]{w=? pt}; \draw[orange, <->] (FG.bpin 1) -- (FG.bpin 2) node[midway, below]{p=? pt}; \end{circuitikz} \end{document}
- How to test if a pgfkey is emptyby Guidone on January 4, 2026 at 4:12 pm
I have already checked the answers to a similar question, but it uses a pattern different from mine and, therefore, totally unfamiliar to me. Elaborating on the answers to a question of mine posted here, I came up with the following MWE: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{argumap}[2026/01/03 v.0.0 Argument Mapping] \LoadClass[11pt]{extarticle} \RequirePackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont{Brill} \RequirePackage{euler-math} \newfontfamily{\supscriptfont}{Euler Math}[Scale=0.55] \RequirePackage{polyglossia} \setdefaultlanguage{italian} \setotherlanguage[hyphenation=liturgical, usej=true, prosodicshorthands=true]{latin} %=================% % Document layout % %=================% % Page \RequirePackage{geometry} \geometry{a4paper,margin=20mm} \pagestyle{plain} \setlength{\parindent}{0pt} % Line spacing: 1.3 \RequirePackage{setspace} \setstretch{1.2} % Two-column engine \RequirePackage{paracol} %=================% % Utilities % %=================% %------------------ % Control Flow %------------------ \RequirePackage{xifthen} \RequirePackage{xstring}% used to operate on a string %------------------ % Graphics %------------------ \RequirePackage{graphicx} \RequirePackage{tikz} \usetikzlibrary{% calc,arrows.meta,% positioning,% decorations.pathreplacing} % Styles \tikzset{ argStmnt/.style={ circle, draw, inner sep=0pt, minimum size=2.2em, font=\normalsize, }, arganDep/.style={ -{Latex[length=2.2mm,width=1.6mm]}, line width=0.4pt }, } \newrobustcmd{\emptyKey}{} \newrobustcmd{\elemPos}{} \pgfkeys{% /gstmnt/.is family, /gstmnt/.cd, name/.store in=\elemName, depend from/.store in=\dependFrom, depend from/.default={}, from/.store in=\dirFrom, to/.store in=\dirTo, element@pos/.style={}, south of/.code={% \pgfqkeys{/gstmnt}{% element@pos/.style={below=of #1}, }% }, north of/.code={% \pgfqkeys{/gstmnt}{% element@pos/.style={above=of #1}, }% }, west of/.code={% \pgfqkeys{/gstmnt}{% element@pos/.style={left=of #1}, }% }, east of/.code={% \pgfqkeys{/gstmnt}{% element@pos/.style={right=of #1}, }% },% name,depend from,from,to } \NewDocumentCommand{\graphStmnt}{O{} m}{ \pgfkeys{/gstmnt/.cd, #1} \typeout{Node Name=[\elemName]} \typeout{First Call of Depend From=[\dependFrom]} \node[argStmnt, /gstmnt/element@pos,] (\elemName) {$#2$}; \ifthenelse{\isempty{\dependFrom}} {\typeout{Second Call of Depend From=[\dependFrom]}} {\draw[arganDep] (\dependFrom.\dirFrom) -- (\elemName.\dirTo);} % \IfStrEq{\dependFrom}{\emptyKey}% % {\typeout{Second Call of Depend From=[\dependFrom]}} % {\draw[arganDep] (\dependFrom.\dirFrom) -- (\elemName.\dirTo);} } \NewDocumentEnvironment{argugraph}{O{12mm} +b}{ \par\centering% \begin{tikzpicture}[node distance=#1]% #2 }{% \end{tikzpicture}\par} When I compile the following example: \documentclass{argumap} \begin{document} \begin{argugraph} \graphStmnt[name=A]{A} % \graphStmnt[name=A, depend from={}]{A}%same result as above \graphStmnt[name=B, south of=A, depend from=A, from=south, to=north]{B} \graphStmnt[name=C, north of=A, depend from=A, from=north, to=south]{C} \graphStmnt[name=D, west of=A, depend from=A, from=west, to=east]{D} \graphStmnt[name=E, east of=A, depend from=A, from=east, to=west]{E} \graphStmnt[name=F, south of=D, depend from=D, from=south, to=north]{F} \end{argugraph} \end{document} I get the following result: And compiling error: Node Name=[A] First Call of Depend From=[] ! Package pgf Error: No shape named `' is known. See the pgf package documentation for explanation. Type H <return> for immediate help. ... l.18 \end {argugraph} So, for some, to me, unknown reason, when I try to test if \dependFrom is empty, even if I haven't passed any value to the key, the test fails, meaning that it goes to the "else" statement, hence the failure to display the message «Second Call of Depend From=[\dependFrom]». Why? Any idea? These pgfkeys are very nice, but, for me, very challenging to handle, and the manual doesn't help me much.
- ConTeXt: Inset Bible Chapter Numbers Mid-Paragraphby Jeff Dodson on January 4, 2026 at 3:22 pm
I'm new to ConTeXt, and am wondering how I might typeset Bible chapter numbers for cases where a chapter break occurs in the middle of a paragraph (i.e., verse 1 of the chapter doesn't begin a new paragraph). Here's an example of what I'd like to achieve in ConTeXt: As you can see here, in Mark, Chapter 9 begins mid-paragraph. As a result, there's no paragraph break at Mark 9:1, and I do need to explicitly show the verse number for Mark 9:1 in the text. The chapter number "9" does appear against the left margin, but the text of the paragraph flows nicely around it, until there's eventually a paragraph break starting at Mark 9:2. The above was achieved in XeLaTeX using a code snippet that David Carlisle (I believe it was) was kind enough to provide a couple of years ago. Perhaps the answer to my question is to use the same snippet with ConTeXt. However, I guess what I'm wondering is if there's a different way I should be doing it in ConTeXt, as opposed to (XeLaTeX). Incidentally, this is the snippet in LaTeX that produced the above desired results: \newlength{\parskipval} \newcommand{\parnopar}[1][]{\parfillskip=0pt\par% #1% \parskip=0pt\noindent\parfillskip=0pt plus1fil} \newfontfamily\dropnum[Scale=3.2]{Times New Roman} \newsavebox{\dropcapbox} \newcommand{\nbchapbeg}[1]{% \setlength{\parskipval}{\parskip}% \parnopar% \savebox{\dropcapbox}{\dropnum{#1}}% \newparshape {2}{\dimexpr\wd\dropcapbox+1ex}{\dimexpr\linewidth-\wd\dropcapbox-1ex} {1}{0pt}{\linewidth}\\% \noindent \llap{\raisebox{\dimexpr-\height+.44\baselineskip}[0pt][0pt]{% \usebox{\dropcapbox}% \hspace{1ex}% }}% \ignorespaces% \setlength{\parskip}{\parskipval}% } With the \nbchapbeg macro above (which I believe stands for "non-breaking chapter beginning), I place a call to the macro anywhere within the verse prior to the first verse of the chapter that doesn't begin a new paragraph (Mark 9 here), and it causes the chapter number to be inset into the text in the proper place. So I guess my real question is: Is there a "ConTeXty" way to do this, or should I use the same technique? Here's the ConTeXt code snippet I'm working with, where I'd like to make the chapter number have the paragraph flow around it. The text below is in English rather than Greek, but the solution applies regardless of the language used. \starttext 35 For whosoever will save his life shall lose it; but whosoever shall lose his life for my sake and the gospel's, the same shall save it. 36 For what shall it profit a man, if he shall gain the whole world, and lose his own soul? 37 Or what shall a man give in exchange for his soul? 38 Whosoever therefore shall be ashamed of me and of my words in this adulterous and sinful generation; of him also shall the Son of man be ashamed, when he cometh in the glory of his Father with the holy angels. (Chapter 9 drop num goes here) 1 And he said unto them, Verily I say unto you, That there be some of them that stand here, which shall not taste of death, till they have seen the kingdom of God come with power. 2 And after six days Jesus taketh with him Peter, and James, and John, and leadeth them up into an high mountain apart by themselves: and he was transfigured before them. \stoptext
- Change Text Color of Certain Lines in Algorithmic Environmentby M. McIlree on January 4, 2026 at 9:58 am
What I'm trying to do: I'm trying to change the text color of specific lines to highlight them in an algorithmic environment (using algpseudocodex package). \documentclass[12pt]{article} \usepackage{algpseudocodex} \usepackage{algorithm} \usepackage{xcolor} \begin{document} \begin{algorithm} \begin{algorithmic} \State This should not be colored \leavevmode {\color{red} \State This should be colored} \For{$a \in A$} \If{$a = 1$ (this should also be colored)} \State This should be colored \Else \State This should not be colored \EndIf \EndFor \end{algorithmic} \end{algorithm} \end{document} What I tried: Add \color{red} and \color{black} before and after the lines I want to color. This gives me Package varwidth: Failed to reprocess entire contents. Create a group as per this answer (i.e. \leavevmode {\color{red} \State This should be colored} Gives me Missing } inserted. Wrap text in \textcolor{} Does work for the statements but not if I want to color the if-then keywords as well Does anyone have any suggestions?
- shift x,y axis labels in pgfplotby MrI2C on January 4, 2026 at 9:54 am
I have the following: \documentclass[tikz,border=5pt]{standalone} % --- Packages --- \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{siunitx} \usepackage{xcolor} % --- Eigen conventies --- \newcommand{\sub}[1]{_{\mathrm{#1}}} \begin{document} \begin{tikzpicture} \begin{axis}[ width=13cm, height=8cm, xlabel={$V\sub{d}$ [\si{\volt}]}, xlabel style={at={(axis description cs:2,0)}, anchor=north}, ylabel={$I\sub{d}$ [\si{\milli\ampere}]}, xmin=-0.5, xmax=2.7, ymin=-0.5, ymax=32, samples=200, axis lines=middle, tick align=outside, ] \addplot[ blue, thick, domain=-0.5:2.5, restrict y to domain=-1:30 ] {0.001 * (exp(5*\x) - 1)}; \end{axis} \end{tikzpicture} \end{document} this gives I'd like to shift the y-axis label more upwards and the x-axis more to the right (so outisde of the arrow areas) I tried several options with xshifts etc.. but noting seens to work. In the pgfplotsmanual I dont't find any example of graphs with x/y in he middle
- How to use specific height in tikz tcolorboxby user386618 on January 4, 2026 at 9:53 am
I wanted to set the coordinate that it's height is one third of a box that consists of 1 line, but tikz don't understand. What to do? \documentclass[10pt]{book} \usepackage[english]{babel} \usepackage[most]{tcolorbox} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tcolorbox}[enhanced, width=\linewidth, frame hidden, interior hidden, overlay={\draw[x=\dimexpr\ht\strutbox+\dp\strutbox\relax, y=\dimexpr\ht\strutbox+\dp\strutbox\relax] (1/3,0)--(0,1/3)--($(frame.north west)-(0,1/3)$)--($(frame.north west)+(1/3,0)$)--($(frame.north east)-(1/3,0)$)--($(frame.north east)-(0,1/3)$)--($(frame.south east)+(0,1/3)$)--($(frame.south east)-(1/3,0)$)--cycle;}] Smth \end{tcolorbox} \end{document} I want the shape to be like a part of regular octagon like below so for one line is more like a stretched regular octagon, i can approximate but want to be more precise
- old-style numerals everywhere, including math modeby Phillip Helbig on January 3, 2026 at 6:30 pm
pdflatex Problem: need old-style numerals in main text Solution: \RequirePackage[osf]{newtxtext} Works fine in main text, but not in math mode. Problem: need old-style numerals also in math mode Solution: \DeclareMathSymbol{0}{\mathord}{letters}{0}` Works fine. Problem: need raised decimal point Solution: RequirePackage{decimal} Works fine as long as all numerals with a decimal point are in math mode, which is clear must be the case. That is not really relevant for the next problem, but it means that more numerals must be in math mode (unless I want 123$.$456 and so on). Problem: In text smaller or larger than normalsize, numerals are somewhat larger and bolder. Solution: Put all numerals in math mode if text is not normalsize. Remark: I noticed the problem since my tables are footnotesize. There, it's easy to get all numbers in math mode automatically, and it's only a minor problem that the numerals look a bit larger and bolder than they should. Problem: The user should not have to worry about whether the text is normalsize. Numbers in tables can be handled automatically. However, in an actual footnote numerals will differ in appearance whether or not they are in math mode. Ditto for text in any other size larger or smaller than normalsize. Note that the problem is NOT that the numerals are not scaling in math mode with the text. They are, whether the text is larger or smaller than normalsize. But they are always slightly larger and bolder than they should be (but not as large as the next larger size, nor as bold as boldfaceseries). Remark: I would be willing to switch to LuaLaTeX if I have to change little or nothing else. (I'll presumably have to use another font-selection mechanism and another font, but presumably there is a font similar to newtxtext and newtxmath.) In particular, the raised decimal point via the decimal package should still work (or there must be an easy alternative), and of course I still want old-style numerals not just in the main text but also in math mode. %class file \ProvidesClass{test}[2026/01/03] \LoadClass[8pt,twoside]{extarticle} \RequirePackage[T1]{fontenc} \RequirePackage[osf]{newtxtext} \RequirePackage{newtxmath} \RequirePackage{extsizes} \RequirePackage{fontsize} \changefontsize[10.2pt]{8.6pt} \DeclareMathSymbol{0}{\mathord}{letters}{`0} \DeclareMathSymbol{1}{\mathord}{letters}{`1} \DeclareMathSymbol{2}{\mathord}{letters}{`2} \DeclareMathSymbol{3}{\mathord}{letters}{`3} \DeclareMathSymbol{4}{\mathord}{letters}{`4} \DeclareMathSymbol{5}{\mathord}{letters}{`5} \DeclareMathSymbol{6}{\mathord}{letters}{`6} \DeclareMathSymbol{7}{\mathord}{letters}{`7} \DeclareMathSymbol{8}{\mathord}{letters}{`8} \DeclareMathSymbol{9}{\mathord}{letters}{`9} %user file \documentclass{test} \begin{document} \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \noindent \tiny Now is the time. 0123.456\\ Now is the time. $0123.456$ \scriptsize \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \footnotesize \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \small \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \normalsize \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \large \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \Large \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \LARGE \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \huge \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \Huge \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \end{document} \ProvidesFile{decimal.sty}[2011/06/03 v1.1 Package`decimal.sty'] \let\peri@d\. \def\.{\ifmmode\mbox{.}\else\expandafter\peri@d\fi} \DeclareMathSymbol{\cd@t}{\mathord}{symbols}{"01} \mathcode`\.="8000 {\catcode`\.=\active% \gdef.{\cd@t} } \endinput %% %% End of file `decimal.sty'.