• How to stop the effect of the "\appendix" command
    by moumou85 on March 24, 2026 at 11:03 am

    How to stop the effect of the \appendix command and return to regular numbering instead of letters.

  • Index of topics at beginning of document
    by Martin on March 24, 2026 at 10:20 am

    I have a document, where I describe topics (one page per topic). I want to have a list of all topics together with some additional information at the beginning of the document. So far my solution is this: First I make a file whrere the list is at the end of the file. MWE (file called Themen.tex): \documentclass[a4paper,12pt]{scrartcl} \usepackage{longtable} \newcounter{nummer} \def\Uebersicht{% Nr. & Topic & A & Page \\\hline \endfirsthead Nr. & Topic & A & Page \\\hline \endhead } \usepackage{hyperref} \newcommand{\Thema}[3]{% \refstepcounter{nummer}\label{#3}% \begin{center} \LARGE #1 \end{center} \begin{table}[h!] \centering \begin{tabular}{p{4.3cm}p{1cm}p{11cm}} A: && #2 \end{tabular} \end{table} \hrule \appto\Uebersicht{\getrefnumber{#3} & #1 & #2 & \pageref{#3} \\} } \begin{document} \clearpage \Thema{A}{A}{A} \clearpage \Thema{B}{B}{B} \clearpage \Thema{C}{C}{C} \clearpage \Thema{D}{D}{D} \clearpage \clearpage \begin{longtable}[h!]{r|p{0.48\linewidth}|p{0.34\linewidth}|r} \centering \Uebersicht \end{longtable} \end{document} Afterwards, I rearrange the pages. MWE: \documentclass{scrartcl} \usepackage{pdfpages} \pdfximage{Themen.pdf}% Read entire PDF \edef\totalpages{\the\pdflastximagepages}% Store number of pages \edef\lastbutonepage{\number\numexpr\totalpages-1}% Store last page - 1 \begin{document} \includepdf[pages=last]{Themen} \includepdf[pages=1-\lastbutonepage]{Themen} \end{document} The problem is, that in the end, the cross-references to pages inside the document, as well as external links that I put in the description of the topics do not work. How can I achieve what I want with working links (either with my 2-file-solution or directly)?

  • Custom date format for copyright years in a BibLaTeX style: c-prefixed date without breaking sorting
    by Marlon de Col on March 23, 2026 at 9:55 pm

    I am writing a paper whose formatting rules for both citations and the bibliography require that the date of a reference, when it refers to the copyright year, be preceded by a lowercase "c" with no intervening space. Therefore, I would like to be able to assign the date field with the corresponding year preceded by the letter c by implementing a new date format, similar to formats such as <date>~, <date>?, etc., but restricted to accepting only the year. With this, the copyright year would be specified in the bib file as follows: date = {c<year>} Using the authoryear style from BibLaTeX as an example, the following MWE would apply: \documentclass{article} \usepackage[style=authoryear]{biblatex} \setlength{\parindent}{0pt} \begin{filecontents}{\jobname.bib} @article{aksin, author = {Aks{\i}n, {\"O}zge and T{\"u}rkmen, Hayati and Artok, Levent and {\c{C}}etinkaya, Bekir and Ni, Chaoying and B{\"u}y{\"u}kg{\"u}ng{\"o}r, Orhan and {\"O}zkal, Erhan}, title = {Effect of immobilization on catalytic characteristics of saturated {Pd-N}-heterocyclic carbenes in {Mizoroki-Heck} reactions}, journaltitle = {J.~Organomet. Chem.}, date = {c2006}, volume = 691, number = 13, pages = {3027-3036}, indextitle = {Effect of immobilization on catalytic characteristics}, } @article{glashow, author = {Glashow, Sheldon}, title = {Partial Symmetries of Weak Interactions}, journaltitle = {Nucl.~Phys.}, date = {c1961}, volume = 22, pages = {579-588}, } \end{filecontents} \addbibresource{\jobname.bib} \begin{document} \section{\citeauthor{aksin}} \verb|\cite{aksin}|: \cite{aksin}. \verb|\textcite{aksin}|: \textcite{aksin}. \section{\citeauthor{glashow}} \verb|\cite{glashow}|: \cite{glashow}. \verb|\textcite{glashow}|: \textcite{glashow}. \printbibliography \end{document} With this MWE, the desired output would be as follows: For reference, the document shown in this screenshot was compiled using the year field instead of date in the bib file; otherwise, the c<year> value is considered invalid and consequently ignored. However, in that case, sorting by year does not work. Given these requirements, is there a way to implement this? I have created a custom BibLaTeX style package with a few modifications that I use exclusively for this paper, so this would be implemented in the package files rather than in the document preamble.

  • add xcolor definition to memoize context
    by atticus on March 23, 2026 at 6:27 pm

    this question is similar to add latex counter to memoize context, I just wanted these to be separated to make it easier to find the questions later. Basically this boils down to "where does xcolor" store its color definitions? So what needs to be added so in the following example the two externs have different contexts? \documentclass[a4paper]{article} \usepackage{memoize} \usepackage{tikz} \usepackage{xcolor} \colorlet{myColor}{blue} \NewDocumentEnvironment{step}{}{% \begin{tikzpicture}[myColor]% }{% \end{tikzpicture}% } \mmzset{auto={step}{ memoize, csname meaning to context={step}, csname meaning to context={environment step end aux\space} }} \begin{document} \begin{step} \node[draw,rectangle] {hello world}; \end{step} \colorlet{myColor}{red} \begin{step} \node[draw,rectangle] {hello world}; \end{step} \end{document} (with memoize the nodes are draw red in both pictures, without memoize the first is blue, the second is red)

  • add latex counter to memoize context
    by atticus on March 23, 2026 at 6:19 pm

    I've been writing some latex code which should be able to memoize. As I'm really no expert regarding the latex internals, I'm having a hard time adding a counter to the context. I thought latex stores counter values in \c@<counter name> but still \documentclass[a4paper]{article} \usepackage{memoize} \usepackage{tikz} \newcounter{stepCnt} \setcounter{stepCnt}{0} \NewDocumentEnvironment{step}{}{% \begin{tikzpicture}% }{% \end{tikzpicture}% } \makeatletter \mmzset{auto={step}{ memoize, csname meaning to context={step}, csname meaning to context={environment step end aux\space}, csname meaning to context={c@stepCnt} }} \makeatother \begin{document} \begin{step} \node[draw,rectangle] {hello world -- counter at \arabic{stepCnt}}; \end{step} \stepcounter{stepCnt} \begin{step} \node[draw,rectangle] {hello world -- counter at \arabic{stepCnt}}; \end{step} \end{document} This leads to the following output: When disabling memoization: \documentclass[a4paper]{article} \usepackage{tikz} \newcounter{stepCnt} \setcounter{stepCnt}{0} \NewDocumentEnvironment{step}{}{% \begin{tikzpicture}% }{% \end{tikzpicture}% } \begin{document} \begin{step} \node[draw,rectangle] {hello world -- counter at \arabic{stepCnt}}; \end{step} \stepcounter{stepCnt} \begin{step} \node[draw,rectangle] {hello world -- counter at \arabic{stepCnt}}; \end{step} \end{document} seems to result in two externs with the same hash/context. Any idea how to fix this? Note: The construct with environment step end aux etc (basically "how to capture a NewDocumentEnvironment" is from https://github.com/sasozivanovic/memoize/issues/20.

  • Why does \DocumentMetadata conflict with package mdframed?
    by Randall on March 23, 2026 at 5:05 pm

    In an effort to meet federal (US) law for accessibility of documents, I have started experimenting with various accessibility enhancements for my LaTeX source files. (As a stable TeX user for over 30 years, this is a big change to process.) Following advice posted here and at the LaTex Tagging Project, I have been including the following as the first line in my source: \DocumentMetadata{lang = en, pdfstandard = ua-2, pdfstandard = a-4f, tagging=on, tagging-setup={math/setup=mathml-SE}} I must say, this has thus far worked marvelously. When I compile using LuaLaTeX, I get a PDF that passes all my institution's accessbility checkers. So far, a lifesaver. The sole issue I've experienced is in using the package mdframed. When I attempt to use the package, as in something like \begin{mdframed} This is a key point! \end{mdframed} I get the following fatal error: l.74 This is a key point! ? h Try typing <return> to proceed. If that doesn't work, type X <return> to quit. No output is created. I have toggled on and off all reasonable combinations of packages, and the error only occurs when mdframed is invoked while the DocumentMetadata is inserted. I feel that I am a bit over my head here, so am looking for an explanation of this conflict or a fix for it. I fully admit that I may have something set incorrectly in the DocumentMetadata call, because I do not completely understand the effect that is having.

  • htlatex hangs on a minimal document on Windows (MiKTeX 26.2)
    by LChmiel on March 23, 2026 at 4:47 pm

    I have a reproducible problem with htlatex on Windows with MiKTeX 26.2. I tested it on a fresh single-user MiKTeX installation after a complete reinstall. Minimal example: \documentclass{article} \title{Publikacje} \author{Leszek J Chmielewski} \date{} \begin{document} \maketitle Test. \end{document} Command used: htlatex lchmiel_publications.tex "xhtml,charset=utf-8,html5" "" "" The process seems to hang after the first LaTeX pass. The terminal ends with: No file lchmiel_publications.aux. [1] [2] and then it does not continue. What I checked: ordinary latex compilation works the issue also happens for the minimal example above reinstalling MiKTeX did not help I also tested in a short directory path without spaces, with the same result So this does not seem to be caused by my document content. I also tried make4ht, but that was problematic as well: latex lchmiel_publications.tex tex4ht lchmiel_publications.dvi t4ht lchmiel_publications but this has output the file lchmiel_publications.html without any formatting, one line of text: Publikacje Leszek J Chmielewski Test. 1 Trials to include the formatting with CSS have failed (I cannot consider editing the html file manually). Has anyone seen this on MiKTeX 26.2 on Windows? Is there a known workaround or some TeX4ht-related component I should verify? Thank you.

  • proper way to cite someone known by noble title
    by Roel on March 23, 2026 at 4:08 pm

    I would like to cite J. W. Strutt, who--to the best of my knowledge---is best known as Lord Rayleigh: https://archive.org/details/theorysound03raylgoog/page/108/mode/1up I think the name should appear as "J. W. Strutt, Baron Rayleigh" or---to facilitate looking up "Rayleigh" in a sorted list---"Rayleigh, J. W. Strutt, Baron". The latter format (also shown on archive.org) is something I don't see on a daily basis, so maybe there is a better way. This is how far I got. Since I don't think it is common to show his 'real' family name, but also it should not be abbreviated to initials, I treat it as a prefix. Mind that the extra comma in the name is something the bibliography system (biber+biblatex) will choke on, so I had to hide it. Unfortunately, simple wrapping {,} or obfuscating \char44 did not work so I ended up with this: \documentclass{article} \usepackage[ giveninits=true ]{biblatex} \usepackage[hidelinks]{hyperref} \addbibresource{main.bib} \begin{document} According to \textcite[\href{https://archive.org/details/theorysound03raylgoog/page/108/mode/1up}{p 108}]{Rayleigh1878ThSoundv2}: ``Measured by the resulting potential, a source of given magnitude, i.e. a source at which a given introduction and withdrawal of fluid takes place, is thus twice as effective when close to a rigid plane, as if it were situated in the open; and the result is ultimately the same, whether the source be concentrated in a point close to the plane, or be due to a corresponding normal motion of the surface of the plane itself.'' \printbibliography % Once more with names in a different format: \DeclareNameAlias{author}{family-given} \printbibliography[title={References with `family' name first}] \end{document} @preamble{{\newcommand{\comma}{,}}} @book{Rayleigh1878ThSoundv2, title = {The Theory of Sound}, author = {given=John William, prefix={Strutt\comma\ Baron}, family=Rayleigh}, publisher = {MacMillan \& Co., Ltd.}, date = {1896}, volume = {2}, url = {https://archive.org/details/theorysound03raylgoog} } This just doesn't feel right, but is there a better way?

  • TikZ externalization fails with precompiled header (.fmt) and "Incomplete \iffalse" error
    by dp21 on March 23, 2026 at 12:26 pm

    I am trying to speed up the compilation of a complex project using a format file and tikz externalize. In particular I tried a setup like shown in the follwing MWE: preamble-min.tex \documentclass[a4paper,12pt]{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usetikzlibrary{external} \dump main-min.tex: \tikzset{ external/system call={% pdflatex -shell-escape -fmt=preamble-min \ -interaction=nonstopmode -jobname "\image" "\def\tikzexternalrealjob{\texsource}\input{\texsource}"% } } \tikzexternalize[prefix=tikz-cache/] \begin{document} \begin{tikzpicture} \begin{axis} \addplot+[raw gnuplot, mark=none] gnuplot { plot [-5:5] sin(x); }; \end{axis} \end{tikzpicture} \end{document} Compilation Steps: mkdir -p tikz-cache pdflatex -ini -shell-escape -jobname=preamble-min "&pdflatex preamble-min.tex" pdflatex -shell-escape -fmt=preamble-min main-min.tex The compilation stops with: ! Incomplete \iffalse; all text was ignored after line 19. <inserted text> \fi <*> main-min.tex Any ideas how to make this work well and robust? I am using texlive-2025.

  • Shared counter between xsim and theoremenvironment
    by Felix Benning on March 23, 2026 at 9:26 am

    The package xsim introduces its own counter for exercises and stores the countervalue to reuse it for the solution. I would like it to share a counter with theorems but I did not manage to make this happen. Is there a way to do this? Essentially like \newtheorem{theorem}{Theorem}[section] \newtheorem{prop}[theorem]{Proposition} share a counter

  • Corners of cube do not converge [duplicate]
    by Maroon Racoon on March 23, 2026 at 9:20 am

    I do not understand why the top corners do not converge. I prefer not to use luaLatex. \documentclass[border=5mm,tikz]{standalone} \usepackage{fp,amssymb} \newsavebox\foobox \newcommand\slbox[2]{% \FPdiv{\result}{#1}{57.296}% CONVERT deg TO rad \FPtan{\result}{\result}% \slantbox[\result]{#2}% }% \newcommand{\slantbox}[2][30]{% \mbox{% \sbox{\foobox}{#2}% \hskip\wd\foobox \pdfsave \pdfsetmatrix{1 0 #1 1}% \llap{\usebox{\foobox}}% \pdfrestore }} \newcommand\rotslant[3]{\rotatebox{#1}{\slbox{#2}{#3}}} \usepackage{mwe} \usepackage{tikz} \begin{document} \begin{tikzpicture} \pgflowlevelscope{\pgftransformxscale{-1}} \draw[gray!20](0.8,.9,1) node{\textcolor{gray!20}{$T_5$}}; \endpgflowlevelscope ; \pgflowlevelscope{\pgftransformxscale{-1}} \draw[gray!20](-1,1,0) node{$T_8$}; \endpgflowlevelscope ; \draw[gray](2,0,0)--(0,0,0)--(0,2,0); \draw[gray](0,0,0)--(0,0,2); \draw[thick](2,2,0)--(0,2,0)--(0,2,2)--(2,2,2)--(2,2,0)--(2,0,0)--(2,0,2)--(0,0,2)--(0,2,2); \draw[thick](2,2,2)--(2,0,2); \draw(1,1,2) node{$T_7$}; \draw(0.5,2,1) node{\rotslant{0}{45}{$T_4$}}; \draw(1.5,2,1) node{\rotslant{0}{45}{$T_3$}}; \draw(1,0,1) node{\rotslant{0}{45}{$T_6$}}; \draw(2,1,0.5) node{{$T_2$}}; \draw(2,1,1.5) node{\rotslant{0}{0}{$T_1$}}; % Add the red lines from original \draw[black, thick] (2,0,1) -- (2,2,1); \draw[black, thick] (1,2,0) -- (1,2,2); \end{tikzpicture} \end{document}

  • What prevents page number from incrementing when an exercise solution extends to a new page?
    by LaTeXereXeTaL on March 23, 2026 at 8:33 am

    This is a followup to @cfr's wonderful answer to my previous question. I discovered that merely making a solution large enough for it to be typeset on the next page keeps the referenced page number from incrementing. However when I hover over the link to the solution's incorrect page number the popup shows the correct page number. I can't figure out what's causing this. I suspect the issue lies in the mechanism that creates the nonexistent counter, but I don't know how to go about debugging the problem. So my question is: what causes the solutions for the second and third exercises to be typeset on page 3 but have reference links displayed as page 2? MWE is identical to that from the linked answer except that \lipsum[1-4] is added to the solution of the second exercise. % Source - https://tex.stackexchange.com/a/761090 % Posted by cfr, modified by community. See post 'Timeline' for change history % Retrieved 2026-03-23, License - CC BY-SA 4.0 % !TEX program = lualatexmk % !TEX encoding = UTF-8 Unicode \documentclass{article} \usepackage[language=english]{lipsum} \usepackage{tcolorbox} \usepackage{hyperref} \hypersetup{colorlinks} \tcbuselibrary{skins,theorems} \newcounter{exercisecounter} \newcommand{\exercisecounterautorefname}{Exercise} \newcommand{\solutioncounterautorefname}{Solution} \makeatletter \newcommand*\ref@strimmer{} \def\ref@strimmer#1.#2\@nil{#2} \newif\if@solnref \newcommand*\de@ref{} \def\de@ref#1#2#3#4#5#6\@nil{ \def\tempa{#4}% \def\tempb{0}% \ifx\tempa\tempb \@solnreffalse \else \def\temp@ri{#1}% \def\temp@rii{#2}% \def\temp@riii{#3}% \@solnreftrue \edef\temp@riv{\expandafter\ref@strimmer #4\@nil}% \def\temp@rv{#5}% \fi } \NewTColorBox[use counter=exercisecounter,number within=section]{exercise}{m +!O{}} {% coltitle=black,% title={Exercise~\thetcbcounter:},% label={exer:#1},% attach title to upper=\quad,% after upper={\par\hfill {Solution on page~\pageref{soln:#1}}},% lowerbox=ignored,% savelowerto=\jobname-exercise-\thetcbcounter.tex,% record={\string\solution{#1}{\jobname-exercise-\thetcbcounter.tex}},% #2 }% \NewTotalTColorBox{\solution}{m m}{% coltitle=black,% title={Solution of Exercise~\ref{exer:#1} on page~\pageref{exer:#1}:},% attach title to upper=\par,% }{% \expandafter\de@ref\expanded{\csname r@exer:#1\endcsname}00000\@nil \if@solnref \MakeLinkTarget*{solutioncounter.\temp@riv}% \immediate\write\@auxout{% \string\newlabel{soln:#1}{{\temp@ri}{\thepage}{\temp@riii}{solutioncounter.\temp@riv}{\temp@rv}}% }% \fi \input{#2}% } \makeatother \tcbset{no solution/.style={no recording,after upper=}} \begin{document} \section{Exercises} \lipsum[1] \tcbstartrecording\relax \begin{exercise}{one} This is the first exercise. \tcblower This is the first solution. \end{exercise} I can cite \autoref{exer:one} on page~\pageref{exer:one} and solution \autoref{soln:one} on page~\pageref{soln:one}. \section{Another Section} \lipsum[1] \begin{exercise}{two} This is the second exercise. \tcblower This is the second solution.\lipsum[1-4] \end{exercise} \begin{exercise}{three} This is the third exercise. \tcblower This is the third solution. \end{exercise} \tcbstoprecording I can cite \autoref{exer:two} on page~\pageref{exer:two} and solution \autoref{soln:two} on page~\pageref{soln:two}. I can cite \autoref{exer:three} on page~\pageref{exer:three} and solution \autoref{soln:three} on page~\pageref{soln:three}. \newpage \section{Solutions} \tcbinputrecords \end{document} In the screenshot the links to the solutions for the second two exercises display as page 2 but hovering over them shows the page number as 3, which is indeed correct.

  • Upgrading TexLive in LinuxMint [closed]
    by daniedtex on March 23, 2026 at 2:34 am

    I'm a Linux Mint 22.2 user, and the latest version available in the APT repository is from 2023. Does anyone happen to know how to get the latest version (2026) of this tool? I've tried searching various forums, reading documentation, and everything else, but nothing has helped. I appreciate your help, and thank you very much for your attention.

  • Reading split equations in a screen reader
    by wsmith on March 23, 2026 at 12:24 am

    Suppose I have an unfortunately long equation that must be split over multiple lines. Normally, I would split the line in two using a \split environment; however, when I inspect the resulting PDF in a screen reader (NVDA to be specific), it skips over my equation entirely. My hope was that it would be read as a single line. I have attached a minimal example below, which gives me this warning: "Package tagpdf Warning: Structure 17 has 1 kids but no parent. It is turned into an artifact. Did you stashed a structure and then didn't use it?" I am not sure what to make of this frankly. Am I doing something wrong here? % !TeX program = lualatex \DocumentMetadata{ uncompress, lang=en, tagging=on, tagging-setup={math/setup={mathml-SE,mathml-AF}, extra-modules={verbatim-mo, verbatim-af}}, pdfstandard=ua-2, pdfstandard=a-4f } \documentclass[12pt]{report} \usepackage{unicode-math} \begin{document} Here is a silly example: \begin{equation} \begin{split} 2+2\\ &=4 \end{split} \end{equation} \end{document}

  • Tikz-cd arrow labels conflict with background colour
    by Amitai on March 22, 2026 at 6:11 pm

    I'm using q.uiver.app to make commutative diagrams for a project. There is a feature that allows for the label of an arrow to be displayed directly above it. This creates a white background for the label, which clashes visually with the background box. Here is an example of what it looks like: Here is an example of the code for the commutative diagram, using {description} to overlay the text above the arrow: \[\begin{tikzcd} Q &&& \\ & P && X \\ \\ & {X'} && Y \arrow["{\exists!h}"{description}, dashed, from=1-1, to=2-2] \arrow["p"{description}, from=1-1, to=2-4] \arrow["q"{description}, from=1-1, to=4-2] \arrow["a"{description}, from=2-2, to=2-4] \arrow["b"{description}, from=2-2, to=4-2] \arrow["f"{description}, from=2-4, to=4-4] \arrow["g"{description}, from=4-2, to=4-4] \end{tikzcd}\] I'm using a template for the project; here is what the stylesheet uses to define the lemma/proof boxes: % proofs: proof \definecolor{prooflinecolor}{RGB}{103, 103, 103} % rgba(40, 40, 40, 180) %FORMAT \definecolor{proofbgcolor}{RGB}{247, 247, 247} % rgba(40, 40, 40, 10) %FORMAT \linedbox{@proof}{Proof}{proof}{proofbgcolor}{prooflinecolor} % this numbers the proofs, so we renew the environment to prevent that; but we still allow a title, so you can do e.g. "Proof (of Theorem 1.2.3)" \def\qed{\null\nobreak\hfill\ensuremath{\blacksquare}} % qed square %FORMAT switch \blacksquare to \square for the not-filled-in version \renewenvironment{proof}[1][]{\csname @proof*\endcsname{#1}{}}{\qed\csname end@proof*\endcsname} \def\flushproof{\vspace{-\parskip}} % put this before a proof to make it flush with the result it's proving How do I make this white background transparent? Or, if necessary, how do I set it to a certain colour (so that I can just choose the backdrop colour)?

  • I am trying to make a really cool animation using Koch snowflakes, but don't know how
    by Jasper on March 22, 2026 at 3:28 pm

    I was scrolling through reels earlier and came across a really cool animation: https://www.youtube.com/shorts/aQbq_Fpyyb4. Note: You can analyze the gif frame by frame using the method suggested by MS-SPO in the comments, or by using the website ez-gif, or by using custom python scripts. I interchangeably use ez-gif and python for these sorts of things, and in this instance used ez-gif. I did some digging and found this old post, which I modified slightly. % Source - https://tex.stackexchange.com/a/205608 % Posted by Mark Wibrow % Retrieved 2026-03-22, License - CC BY-SA 3.0 \documentclass[tikz, border=5]{standalone} \usetikzlibrary{lindenmayersystems} \tikzset{koch snowflake/.style={insert path={% l-system [l-system={rule set={F -> F-F++F-F}, axiom=F++F++F, step=0.75cm/3^#1, angle=60, order=#1,anchor=center}] -- cycle}}} \begin{document} \begin{tikzpicture} \path[fill=orange,koch snowflake=4]; \end{tikzpicture} \end{document} I am however without a clue as to how to go about producing this gif I found. I am seeking assistance in creating this gif.

  • Creating a cube with labels on its faces [duplicate]
    by Maroon Racoon on March 22, 2026 at 3:15 pm

    How do I create this cube, the arrows are now neccesay, I just want to make it clear what temperature is on each surface, maybe a system of colors woudl be better.

  • fonts: strange representation for capital delta
    by fft on March 22, 2026 at 1:55 pm

    I'm trying to generate texfonts.h from mimetex package. According to documentation I execute next TeX/METAFONT commands: mf "\mode=eighthre; input cmr10" # produces cmr10.83gf gftype -i cmr10.83gf > typeout Most of chars looks as expected (latin letters, capital Gamma and Theta), but capital Delta looks strange. See fragment of typeout file: 1561: beginning of char 0 .<--This pixel's lower left corner is at (0,8) in METAFONT coordinates ****** * * * * * * * * *** .<--This pixel's upper left corner is at (0,0) in METAFONT coordinates 1588: beginning of char 1 .<--This pixel's lower left corner is at (0,8) in METAFONT coordinates * * * * * ** ** * * * * * * .<--This pixel's upper left corner is at (0,0) in METAFONT coordinates 1623: beginning of char 2 .<--This pixel's lower left corner is at (1,8) in METAFONT coordinates ** * * * * * ** * * * * * * * ** .<--This pixel's upper left corner is at (1,0) in METAFONT coordinates If I repeat the same, but use mode=preview, Delta looks ok also. Whether this is sort of bug? If yes, and if I understand correctly, cmr10.mf includes roman.mf, which includes greeku.mf, where description of how to draw Δ is placed. But I can't understand syntax and unable even to determine, whether first step (mf) or second (gftype) cause error. Anyway, seems this files weren't updated recently. I have almost no knowledge about TeX fonts, just want to repeat abovementioned header file. Most of letters for cmr10.83 converted successfully (i.e. I got same hex representation), but not this Delta.

  • evenly-padded horizontal line separator in a table with rows with graphics
    by Mampac on March 22, 2026 at 10:35 am

    when defining a figure that holds a table of images, how do i ensure even and symmetric padding when using \hline in it? by default, there's no padding before the row that was \hlined. i have the following MRE: \documentclass{article} \usepackage{array} \usepackage{graphicx} \newcolumntype{I}{>{\centering\arraybackslash}m{0.18\linewidth}} % simulate images \newcommand{\fakeimg}{\rule{\linewidth}{2.5cm}} \begin{document} \begin{tabular}{c I I I} & A & B & C \\ row1 & \fakeimg & \fakeimg & \fakeimg \\ \hline row2 & \fakeimg & \fakeimg & \fakeimg \\ \end{tabular} \end{document} this produces the following image, where the rule is stuck tightly to the images on the second row: how do i define the padding in a controlled (tunable) manner so that the optional rule perfectly divides it in half (i want to add the divider only between specific pairs of rows)? i've tried interjecting a bunch of artifical spaces and padding in the rows before/after, but they all break apart when i wish for a small-scale padding of, say, 0.3ex: my attemps yield assymetrical padding where the padding before second row is smaller than padding after the first row.

  • Placing floating figures inside multicols
    by Opusci on March 22, 2026 at 9:12 am

    There was this question long time ago And there was answer given by multicols creator Frank Mittelbach with code to implement at least a trivial implementation of floats. It seems that that code is not working anymore. There were changes in LaTeX a few year ago and I suppose they had caused code to brake. I'm honestly interested if there is a way to restore the code in order to get back Frank's trivial implementation of floats insede multicols columns? I am using Frank's multicol-floats.sty as given in old post. Here is code I have used \documentclass{article} \usepackage{multicol} \usepackage{microtype} \usepackage{lipsum,caption,graphicx} \usepackage{multicol-floats} \begin{document} \begin{multicols}{2} \multicolfloat{2}{2}{\centering \includegraphics[scale=0.2]{cat.png} \captionof{figure}{A test} } Some text goes here............ \lipsum Lorem ipsum dolor sit amet, con- sectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adip- iscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, non- \lipsum %\lipsum \end{multicols} \end{document} Error I get is Undefined control sequence on line \multicolfloat{2}{2}{\centering.... UPDATE: I'm testing David's solution and multiple figures on the same page and in the same column will be placed one below the other. Positioning of figures is possible at any location except on the very last page.

  • Abnormal Blank Space at the Bottom of Footnotes in cas-dc Templates
    by Clara on March 22, 2026 at 8:06 am

    While writing paper, I found that abnormal vertical blank space appears at the bottom of footnotes in the first column of the cas-dc template. Even after replacing the original paper content with other characters, the issue still persists, and the reproducible code provided below is just an example rather than the only scenario that triggers this problem. I am using TeX Live 2026 on the Windows system and compiling documents with pdflatex, and I aim to identify the root cause of this abnormal blank space and find corresponding methods to avoid it. \documentclass[a4paper,fleqn]{cas-dc} \begin{document} \shorttitle{} \title[mode=title]{consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in} \tnotemark[1] \tnotetext[1]{ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse} \author[1]{alice bob} \ead{123456789@abc.com} \author[1]{alice bob} \ead{123456789@abc.com} \author[1]{alice bob} \ead{123456789@abc.com} \author[2]{alice bob} \cormark[1] \ead{123456789@abc.com} \author[1]{alice bob} \ead{123456789@abc.com} \cortext[cor1]{Corresponding author} \affiliation[1]{organization={consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse}} \affiliation[2]{organization={consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse}} \begin{abstract} consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse \end{abstract} \maketitle \section{consequat} consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse \par consequat consequat consequat consequat consequat consequat consequat, consequat consequat consequat consequat consequat consequat consequat consequat quat (consequat) XX and consequat consequat consequat consequat consequat (consequat) XX consequat consequat consequat, consequat consequat consequat consequat xxx sds-consequat sdsdsdff. consequatsd, yuiyuiy-consequat conseq consequ consequat sdsd consequat, consequat consequat consequat XX, consequat consequat Regression consequat, consequat-VVV-XXOXXX-XXXXXX (XXXX) XX, and xxxxx Gradient xxxxxxx xxxxxxx (xxxxxxx) XX xxxxxxxx the modeling xx hjkshdsjkhd sdsdsdss by reprehender reprehenderit reprehenderit reprehenderit reprehenderit \end{document}

  • Using spy to zoom in on a curve
    by Nicolas on March 22, 2026 at 7:31 am

    I want to show a zoom on a part of my curve with ``'spy```. The compilation of the code returns several errors to me : ! Missing \endcsname inserted. ; ! Extra \endcsname ; ! Illegal unit of measure (pt inserted) ... When I compile without the line of the spy, it works its problem. I don't understand where the problem is. If someone has an idea? \documentclass[12pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{xcolor} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usetikzlibrary{spy} \usepackage{siunitx} \sisetup{ output-decimal-marker={,}, inter-unit-product = \ensuremath{{}\cdot{}} } \definecolor{bleu}{RGB}{25, 90, 185} % Paramètres \pgfmathsetmacro{\Cb}{0.10} % mol/L (NaOH) \pgfmathsetmacro{\Va}{10} % mL \pgfmathsetmacro{\Vdil}{100} % mL \pgfmathsetmacro{\Vzero}{\Va+\Vdil} \pgfmathsetmacro{\na}{0.0008} % mol CH3COOH \pgfmathsetmacro{\Veq}{8} % mL \pgfmathsetmacro{\Ka}{1.8e-5} \pgfmathsetmacro{\lH}{349.6} \pgfmathsetmacro{\lNa}{50.1} \pgfmathsetmacro{\lOH}{198.0} \pgfmathsetmacro{\lAc}{40.9} % Ionisation initiale \pgfmathsetmacro{\Ca}{\na/(\Vzero/1000)} \pgfmathsetmacro{\Hinit}{sqrt(\Ka*\Ca)} \pgfmathsetmacro{\nHinit}{\Hinit*(\Vzero/1000)} \pgfmathsetmacro{\Vneutr}{\nHinit/\Cb*1000} % mL \begin{document} \begin{tikzpicture}[spy using outlines={circle, magnification=4, size=2cm, connect spies}] \begin{axis}[ width=15cm, height=10cm, xlabel={$V_b$ (\si{mL})}, ylabel={$\sigma$ (\si{\milli\siemens\per\centi\meter})}, xmin=0, xmax=26, ymin=0, ymax=4, grid=both, axis lines=left ] % -------------------------- % Neutralisation des H+ initiaux % -------------------------- \addplot[magenta, line width=1.7pt, smooth] coordinates { (0, 0.126) (0.398,0.018) }; % Avant Veq \addplot[magenta, domain=0.398:\Veq, samples=200,line width=1.7pt, smooth] { ( (\lNa*(\Cb*x/1000) + \lAc*(\Cb*x/1000) + \lH*sqrt(\Ka*((\na - \Cb*x/1000)/((\Vzero + x)/1000))) * ((\Vzero + x)/1000) ) / ((\Vzero + x)/1000) ) }; \addlegendentry{avant Veq} % Après Veq \addplot[magenta, domain=\Veq:25, samples=200, smooth, line width=1.7pt, forget plot] { (\lNa*(\Cb*x/1000) + \lAc*\na + \lOH*(\Cb*x/1000 - \na))/((\Vzero+x)/1000) }; % Volume équivalent \draw[black, line width=1.4pt, densely dotted] (axis cs:\Veq,0) -- (axis cs:\Veq,0.6); \node at (axis cs:\Veq,0.2) [ right, font=\small\bfseries] {$V_{\text{eq}}$}; % Zoom spy \spy [red] on (axis cs:0.4,0.05) in node[left] at (axis cs:1,2); \end{axis} \end{tikzpicture} \end{document}

  • luadraw - Why is one of my points out of frame?
    by Matthew Leingang on March 21, 2026 at 9:35 pm

    I'm new to luadraw and I'm trying to recreate the diagram below: Here is my code so far, and the result: % !TEX TS-program = LuaLaTeX \documentclass{standalone} \usepackage[3d]{luadraw} \begin{document} \begin{luadraw}{name=wedge} local a, b, c = 8, 6, 4 local xmax, ymax, zmax = a+1, b+1, c+1 local g = graph3d:new{ window3d = {0,xmax,0,ymax,0,zmax}, viewdir = {30,60}, size={10,10,0} } local xIntcpt, yIntcpt, zIntcpt = M(a,0,0), M(0,b,0), M(0,0,c) local P = M(4,0,0) local Q = interDD({P,vecJ},{xIntcpt,yIntcpt-xIntcpt}) local R = interDD({P,vecK},{xIntcpt,zIntcpt-xIntcpt}) g:Dscene3d( g:addPolyline({ {Origin,xmax*vecI}, {Origin,ymax*vecJ}, {Origin,zmax*vecK}, }), g:addPolyline( {xIntcpt,yIntcpt,zIntcpt}, {close=true,color="cyan"}), g:addFacet( {P,Q,R}, {color="cyan",opacity=0.5} ), g:addPolyline( {P,Q,R}, {close=true,color="cyan",style="dashed"} ), g:addLabel( "\\(x\\)",P,{pos="NW",dist=0.1}, a,xIntcpt,{pos="NW",dist=0.1}, b,yIntcpt,{pos="N",dist=0.1}, c,zIntcpt,{pos="NW",dist=0.1} ) ) g:Show() \end{luadraw} \end{document} The issue, as you can see, is that the point (0,6,0) is out of frame. I tried increasing ymax, that seems to have no effect. I tried changing the width in the size option, but that only stretches the diagram horizontally. I have tried different viewdir options, but they all cut the diagram off at one edge. I'm sure it's something basic that I'm missing, but I'm too much of a novice to notice. Any clues?

  • Signature disapears when renewing closing command of the letter class
    by s.k on March 21, 2026 at 12:34 pm

    I need to align the \closing{} of the letter package with the body of the letter, on the left, while keeping the \signature{} but this code is actually removing the \signature{} from the rendered document: \documentclass[a4paper]{letter} \signature{Your Name} \address{Your Address} \date{\today} % I renew the closing command here, before beginning the document: \renewcommand{\closing}[1]{\par\noindent#1\par} \begin{document} \begin{letter}{Recipient Name \\ Recipient Address} \opening{Dear Sir or Madam,} This is the body of the letter. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin gravida augue at eleifend vestibulum. Nullam mollis molestie mi eget viverra. Interdum et malesuada fames ac ante ipsum primis in faucibus. Ut scelerisque dui in eros imperdiet consectetur. Cras venenatis elit nec orci elementum pellentesque. \closing{Sincerely,} \vspace{1cm} \hspace*{0.6\textwidth} \signature{} \end{letter} \end{document} Here's the corresponding result using Texmaker 5.0.3 on Ubuntu 22.04.5:

  • Vertical spacing in \polylongdiv from the polynom package
    by ThomasO on March 21, 2026 at 3:51 am

    When using fractions in \polylongdiv, the vertical spacing turns out rather awkward. If no fractions are used for the coefficients, the spacing is fine. I have tried to adjust the vertical spacing using arrayrowsep=..., but without any visible change. Is it possible to adjust this vertical spacing for fractions? \documentclass{article} \usepackage{polynom} \polyset{style=C,div=:,arrayrowsep=1cm} \begin{document} \polylongdiv[arrayrowsep=1cm]{(1/5)x^2-(3/7)x+4/9}{x-1/2} \polylongdiv[arrayrowsep=1cm]{5x^2-5x+6}{x-3} \end{document}

  • Can I make a numbered tcolorbox have a number from a previous section?
    by LaTeXereXeTaL on March 21, 2026 at 12:42 am

    I have a working exercise/solution engine based on that from the tcolorbox documentation and it works perfectly. There is one thing I would like to change if possible. In my MWE, I create three exercises and their corresponding solutions and I also create new autorefnames for their respective counters. The exercises are in two different sections but all the solutions are in a new section and that causes the solution numbers typeset when I cite them with \autoref to reflect the new section, not the sections of the corresponding exercises. In other words, the names of the solutions to Exercise 1.1 and Exercise 2.1 typeset as Solution 3.1 and Solution 3.2 whereas I would like them to be Solution 1.1 and Solution 2.1 respectively even if they are in the third section. I think my question is: can I make a solution's number retain the value of the number of its corresponding exercise even when the solution is in a different section of the document? I have experimented and nothing I have tried works. This is for a larger book project and I can live with the situation but I want to know if my question has a relatively simple answer. MWE: % !TEX program = lualatexmk % !TEX encoding = UTF-8 Unicode \documentclass{article} \usepackage[language=english]{lipsum} \usepackage{tcolorbox} \usepackage{hyperref} \hypersetup{colorlinks} \tcbuselibrary{skins,theorems} \newcounter{exercisecounter} \newcounter{solutioncounter} \newcommand{\exercisecounterautorefname}{Exercise} \newcommand{\solutioncounterautorefname}{Solution} \NewTColorBox[use counter=exercisecounter,number within=section]{exercise}{m +!O{}} {% coltitle=black,% title={Exercise~\thetcbcounter:},% label={exer:#1},% attach title to upper=\quad,% after upper={\par\hfill {Solution on page~\pageref{soln:#1}}},% lowerbox=ignored,% savelowerto=exercise-\thetcbcounter.tex,% record={\string\solution{#1}{exercise-\thetcbcounter.tex}},% #2 }% \NewTotalTColorBox[use counter=solutioncounter,number within=section]{\solution}{m m}{% coltitle=black,% title={Solution of Exercise~\ref{exer:#1} on page~\pageref{exer:#1}:},% label={soln:#1},% attach title to upper=\par,% }{\input{#2}} \tcbset{no solution/.style={no recording,after upper=}} \begin{document} \section{Exercises} \lipsum[1] \tcbstartrecording\relax \begin{exercise}{one} This is the first exercise. \tcblower This is the first solution. \end{exercise} I can cite \autoref{exer:one} on page~\pageref{exer:one} and solution \autoref{soln:one} on page~\pageref{soln:one}. \section{Another Section} \lipsum[1] \begin{exercise}{two} This is the second exercise. \tcblower This is the second solution. \end{exercise} \begin{exercise}{three} This is the third exercise. \tcblower This is the third solution. \end{exercise} \tcbstoprecording I can cite \autoref{exer:two} on page~\pageref{exer:two} and solution \autoref{soln:two} on page~\pageref{soln:two}. I can cite \autoref{exer:three} on page~\pageref{exer:three} and solution \autoref{soln:three} on page~\pageref{soln:three}. \newpage \section{Solutions} \tcbinputrecords \end{document}

  • How can Initials with special characters (e.g. German Umlaute) be designed? [duplicate]
    by Thomkrates on March 20, 2026 at 6:56 pm

    I would like to use Initials in a nice poetry book and need for German Umlaute (Ä Ö Ü) those designs. And the general question is: Why are Initials always without special characters, also for other languages other than German? And for now: How is it possible to produce Ä Ü Ö manually? \documentclass[a4paper]{article} \input Zallman.fd \pagestyle{empty} \begin{document} \begin{center} \fontsize{60pt}{72pt}\usefont{U}{Zallman}{xl}{n} ABCDE \\ FGHIJK \\ LMNOP \\ QRSTU \\ VWXYZ \\ ÄÖÜ \\%<-- Special characters Umlaute Initials?! \end{center} \vfill \begin{center} Font name: ``Zallman'' (ZallmanCaps) \end{center} \end{document} Is there a trick to get them nice?

  • xint: calc array with binomial coefficients only one time
    by cis on March 20, 2026 at 2:12 pm

    I need all binomial coefficients for n=1..100 and k=1..100 several times, so I wrote a code with xint: \xintdefvar BinomialArray = ndseq(binomial(n,k), n=1..100; k=1..100); \xintdeffunc abinomial(n,k):=BinomialArray[n-1,k-1]; I measured out for that: ******************************************** *** TOTAL COMPILATION TIME REPORT: *** (l3benchmark) + TOC: 2.27 s ******************************************** This is OK, but I asked myself: Is there any way I can store the array (in a file?) so that it doesn't have to be recalculated on every new run? \documentclass[paper=a5, paper=landscape]{scrarticle} \usepackage[margin=10mm]{geometry} \usepackage{xintexpr} \usepackage{amsmath} \begin{document} \xintdefvar BinomialArray = ndseq(binomial(n,k), n=1..100; k=1..100); \xintdeffunc abinomial(n,k):=BinomialArray[n-1,k-1]; %Test: \xinteval{BinomialArray[100-1,50-1]} works Test: $\dbinom{100}{50}=\xinteval{abinomial(100, 50)}$ % Show complete array - on your own risk :() %\newpage %\begingroup %\tiny %BinomialArray = \xintthealign\xintexpr BinomialArray\relax %\endgroup \end{document}

  • Creating a triangle using intersection and automatically clipping the exceeding line
    by user516076 on March 20, 2026 at 3:18 am

    As what my knowledge could tell, It's possible to create a triangle with only 2 coordinates to make real angles to be exact, and using path to create long rays and naming the intersection of those rays and finally connect them with \draw. MWE: \documentclass[tikz, border=10pt]{standalone} \usepackage{siunitx} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[scale=2] \clip (0,0) rectangle (5,2.1); \coordinate (A) at (0,0); \coordinate (C) at (5,0); \path[name path=AB] (A) -- ++(37:4); \path[name path=BC] (C) -- ++(137:4); \path[name intersections={of=AB and BC, by=B}]; \draw[thick] (A) -- (B) -- (C) -- cycle; \end{tikzpicture} \end{document} There is a noticable difference if I comment \clip in the 6th line. Without it, it's going to be a white space... It's impractical to calculate the height of the object if I make another drawing with more complicated shape. So, is it possible to autocrop the exceeding lines? What I meant by exceeding lines is like the cyan lines in the figure below. It's because they contribute to white space if I change \draw to \path: So, if possible, I want TikZ to automate cropping the intersection, in other words, getting rid of those exceeding lines without estimating like how much the height is (would consume loads of time if I make other complicated figures with intersections). To illustrate what I actually want, roughly I want something like this: Yes, I deliberately cropped it poorly to give an example as to what it shows if I gave them an incorrect clipping, which I wish I didn't need to clip it, but instead, I wish TikZ only read the intersection point and two given coordinates to draw.

  • Accessible PDF, include pdf with pdfpages and add alt text
    by YamiOmar88 on March 19, 2026 at 10:44 am

    I am creating an accessible PDF using tagpdf as follows: \DocumentMetadata{ lang = fr-FR, pdfversion = 2.0, pdfstandard = ua-2, pdfstandard = a-4f, %or a-4 tagging = on, tagging-setup={math/setup=mathml-SE} } \documentclass[a4paper,11pt]{article} % Page layout \usepackage[margin=2.5cm]{geometry} \usepackage{pdfpages} % General information \author[]{YamiOmar88} \title{Some Title} \date{} % remove semantic paragraphs: \AssignTaggingSocketPlug{para/semantic/begin}{noop} \AssignTaggingSocketPlug{para/semantic/end}{noop} \begin{document} % --- Poster pages (NOT accessible, marked as artifacts) --- \tagstructbegin{tag=Artifact, alt={Tableau de bord non accessible}} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \tagstructend \end{document} I include pages from another PDF file using the pdfpages package and the command \includepdf. Here, for this example I'm always including the same page #1 and using a sample image to be able to compile it. When I look at my tags I see this: <Document> <Private> <Figure> <p> <Figure> <p> As I declared the artifact, the <Private> tag shows the appropriate alt-text. However, the <Figure> tags contain the path to the image as alt text. How can I change that? I do not want that path to be made public. And what are the <p> tags? Where did they come from? Note: The code is compiled with LuaLaTeX using MiKTeX 26.2. My LaTeX version is LaTeX2e <2025-11-01>, L3 programming layer <2026-01-19>.