• Hyphenation in slash constructions not working anymore
    by suricata78 on December 3, 2025 at 7:58 am

    With the recent updates of the babel and the listings packages (for me that meant babel 25.14 --> 25.16 and listings 1.10c --> 1.11b), I encountered a change in the hyphenation behavior in my documents: Before the updates, compounds like "linebreaking/hyphenation" would be hyphenated wherever needed, including in the second word. After the updates, this does not work anymore, "hyphenation" is not hyphenated but runs into the margin. In the log file I see these lines now: ==> First Aid for listings.sty no longer applied! Expected: 2024/09/23 1.10c (Carsten Heinz) but found: 2025/11/14 1.11b (Carsten Heinz) so I'm assuming it got fixed. where before the update it said ==> First Aid for listings.sty applied! Please see the following MWE for testing. \documentclass{article} \usepackage[english]{babel} \usepackage{listings} \begin{document} asfölkjhasdöflhaöeoikljhkjhlkjhsaldkjfaösdljkaöslkjhöklkjhlö linebreaking/hyphenation \end{document} If the listings package is loaded and the file is compiled with the old versions of babel and listings, "linebreaking/hyphenation" is hyphenated like this (which is what I want): I know I could use shorthands and other "manual" hyphenation solutions, but this would seem like a big step back from this working so nicely and automatically. So my question is: Is there a way to get the First Aid solution back? Note: I am actually using the listings package to print code snippets in my documents. I was surprised to see it affects hyphenation outside listings environments - it was an unknown but much appreciated side effect 🙂

  • How to tagging documents with figures mixed latex/pdf from fig
    by user2609605 on December 3, 2025 at 7:57 am

    I want tagged pdf from latex and for that specify tagging=on in \DocumentMetatdata. I know that if including PDF figures thePic with \includegraphics, an alt text must be given like so: \includegraphics[alt=whats on the pic]{thePic} Now my problem is that I have a lot of fig pictures consisting of a kind of graphs annotated with latex text. Thus I export with fig2dev in two parts: fig2dev -L pdftex thePic.fig thePic.pdf fig2dev -L pdftex_t -p xxx thePic.fig thePic.tex The result is some thePic.tex I can include with \input{thePic} which contains a picture environment which defines the latex text directly and includes the graphics via \includegraphics{thePic.pdf}. But how to get tagged this?? I found the accessibility package but unfortunately this seems to support pdflatex only and I have for good reasons lualatex. I also found package latex-lab-graphic but the status of this package is not clear. It is not very explicit about how to use it. Seemingly one can enclose pictures in a structure to tag them. This would be what I need. My feeling is, that I would prefer if the alt text would be included in the pic itself, but I think this is in general no option. I know there are many formats out there to be included in latex and even more techniques to do so. Why assigning alt to includegraphics and not to \caption of figures and tables? I imagine \caption[alt=desc, ...]{normal text}.

  • Why are there no current debian-equivs filex for texlive
    by Namal on December 3, 2025 at 7:06 am

    I am always installing texlive through the installer script. And the tutorial tells me to create the dummy package for it. But there is no equivs file for the current texlive version (2025). Can I just ignore this step or can I use the old equivs file?

  • Inconsistent spacing behavior between `equation`s with `fleqn` option?
    by Explorer on December 3, 2025 at 6:38 am

    Let's see the following two codes: \documentclass[12pt,a4paper]{article} \usepackage{showframe} \usepackage{amsmath} \usepackage{lipsum} \begin{document} \lipsum[1][1-3] \begin{equation}% x^2+y^2=z^2 \label{eq:1} \end{equation}% \lipsum[1][1-3] \begin{equation}% x^2+y^2=z^2 \label{eq:2} \end{equation}% \lipsum[1][1-3] \begin{equation}% x^2+y^2=z^2 \label{eq:3} \end{equation}% \lipsum[1][1-3] aa \eqref{eq:1} and \eqref{eq:2} and \eqref{eq:3} \end{document} It gives normally: While, when I add fleqn: \documentclass[12pt,a4paper,fleqn]{article} \usepackage{showframe} \usepackage{amsmath} \usepackage{lipsum} \begin{document} \lipsum[1][1-3] \begin{equation}% x^2+y^2=z^2 \label{eq:1} \end{equation}% \lipsum[1][1-3] \begin{equation}% x^2+y^2=z^2 \label{eq:2} \end{equation}% \lipsum[1][1-3] \begin{equation}% x^2+y^2=z^2 \label{eq:3} \end{equation}% \lipsum[1][1-3] aa \eqref{eq:1} and \eqref{eq:2} and \eqref{eq:3} \end{document} The spacing expand unexpectedly. IMHO, flqno.clo just move the formula left, without adding the spacing. I want to know how to keep the \above(below)display(short)skip the same as the reqno's case. I found two (maybe) relative links.... But not exactly the same, I think(they both relative with hyperref)... https://tex.stackexchange.com/a/235837/322482 https://tex.stackexchange.com/a/122358/322482

  • Shaded Tabular table not working as expected
    by Álvaro on December 3, 2025 at 4:27 am

    I have this code: \documentclass{article} \usepackage{array,multirow,xcolor,colortbl} \definecolor{tableheadercolor}{HTML}{FFCE63} % Orange from the Keams template \colorlet{tablerowcolor}{tableheadercolor!20} % 20% header color + 80% white \begin{document} \begin{table}[ht] \centering \caption{Opened and Closed JIRA Tickets for ED by Month} \begin{tabular}{| >{\centering\arraybackslash}m{0.1\textwidth}| >{\centering\arraybackslash}m{0.15\textwidth}| >{\centering\arraybackslash}m{0.15\textwidth}| >{\centering\arraybackslash}m{0.15\textwidth}|} \hline \rowcolor{tableheadercolor} \textbf{Year} & \textbf{Month} & \textbf{Opened JIRAs} & \textbf{Closed JIRAs} \\ \hline \multirow{1}{*}{\centering 2023} & December & 2 & 1 \\ \hline \multirow{12}{*}{\cellcolor{tablerowcolor}\centering 2024} & \cellcolor{tablerowcolor} January & \cellcolor{tablerowcolor} 1 & \cellcolor{tablerowcolor} 0 \\ \cline{2-4} & February & 0 & 1 \\ \cline{2-4} & \cellcolor{tablerowcolor} March & \cellcolor{tablerowcolor} 0 & \cellcolor{tablerowcolor} 0 \\ \cline{2-4} & April & 0 & 0 \\ \cline{2-4} & \cellcolor{tablerowcolor} May & \cellcolor{tablerowcolor} 3 & \cellcolor{tablerowcolor} 1 \\ \cline{2-4} & June & 0 & 0 \\ \cline{2-4} & \cellcolor{tablerowcolor} July & \cellcolor{tablerowcolor} 0 & \cellcolor{tablerowcolor} 0 \\ \cline{2-4} & August & 2 & 2 \\ \cline{2-4} & \cellcolor{tablerowcolor} September & \cellcolor{tablerowcolor} 0 & \cellcolor{tablerowcolor} 0 \\ \cline{2-4} & October & 1 & 0 \\ \cline{2-4} & \cellcolor{tablerowcolor} November & \cellcolor{tablerowcolor} 1 & \cellcolor{tablerowcolor} 0 \\ \cline{2-4} & December & 2 & 1 \\ \hline \multirow{11}{*}{\centering 2025} & \cellcolor{tablerowcolor} January & \cellcolor{tablerowcolor} 2 & \cellcolor{tablerowcolor} 8 \\ \cline{2-4} & February & 4 & 2 \\ \cline{2-4} & \cellcolor{tablerowcolor} March & \cellcolor{tablerowcolor} 0 & \cellcolor{tablerowcolor} 3 \\ \cline{2-4} & April & 8 & 4 \\ \cline{2-4} & \cellcolor{tablerowcolor} May & \cellcolor{tablerowcolor} 2 & \cellcolor{tablerowcolor} 0 \\ \cline{2-4} & June & 2 & 4 \\ \cline{2-4} & \cellcolor{tablerowcolor} July & \cellcolor{tablerowcolor} 1 & \cellcolor{tablerowcolor} 4 \\ \cline{2-4} & August & 2 & 1 \\ \cline{2-4} & \cellcolor{tablerowcolor} September & \cellcolor{tablerowcolor} 1 & \cellcolor{tablerowcolor} 3 \\ \cline{2-4} & October & 2 & 0 \\ \cline{2-4} & \cellcolor{tablerowcolor} November & \cellcolor{tablerowcolor} 0 & \cellcolor{tablerowcolor} 1 \\ \hline \end{tabular} \end{table} \end{document} However, the row for year 2024 is not correctly shaded: What I want to achieve is rows with alternate shading.

  • latexmk: add_cus_dep and and .deps file
    by ajd on December 3, 2025 at 12:07 am

    I am using latexmk with the nomencl package. Here is my .latexmkrc file: $pdf_mode = 1; $dependents_list = 1; $deps_file = ".deps"; add_cus_dep("nlo", "nls", 0, "nlo2nls"); sub nlo2nls { system("makeindex $_[0].nlo -s nomencl.ist -o $_[0].nls -t $_[0].nlg"); } It compiles fine with latexmk but when I inspect the .deps file I do not see my .nls file listed. I want the .nls file to show up in the .deps file so it gets detected by arxiv-collector. Is there a way around this?

  • mtpro2 (MathTime Professional Fonts II) special braces
    by Martín Moreno on December 2, 2025 at 11:14 pm

    Many texts that use the mtpro2 style make braces like this: (Elementary Number Theory by David Burton, 7th edition). There is also James Munkres' Topology: I've read all the mtpro2 manuals, but only the following are presented: Although Michael Spivak passed away, he left us a beautiful typeface for LaTeX. Does anyone know anything? Or could someone suggest something? In particular, this can be useful in the 'cases' environment. It looks like the braces I want are in bold, but I could be wrong.

  • installer for texlive does not work for historic releases
    by user2609605 on December 2, 2025 at 10:57 pm

    EVALUATING please no posts in the meantime I wrote a script to install at least two releases of texlive: one historic but quite new and one still alive, at time of this writing 2025. It is not perfect for 2025 but still works. For 2024 it yields the following error: INFO: Try downloading archived release... --2025-12-02 23:44:41-- https://mirror.nju.edu.cn/tex-historic/systems/texlive/2024/install-tl-unx.tar.gz Resolving mirror.nju.edu.cn (mirror.nju.edu.cn)... 210.28.130.3, 2001:da8:1007:4011::3 Connecting to mirror.nju.edu.cn (mirror.nju.edu.cn)|210.28.130.3|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 5839378 (5.6M) [application/octet-stream] Saving to: ‘install-tl-unx.tar.gz’ install-tl-unx.tar.gz 100%[=====================================================================================================>] 5.57M 884KB/s in 6.5s 2025-12-02 23:44:49 (884 KB/s) - ‘install-tl-unx.tar.gz’ saved [5839378/5839378] ✔ DONE: Download succeeded. ℹ INFO: installing texlive 2024 scheme small into /usr/local/texlive/2024 Loading https://ftp.gwdg.de/pub/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb ./install-tl: No small, switching to scheme-minimal. ============================================================================= ./install-tl: The TeX Live versions of the local installation and the repository being accessed are not compatible: local: 2024 repository: 2025 Perhaps you need to use a different CTAN mirror? (For more, see the output of install-tl --help, especially the -repository option. Online via https://tug.org/texlive/doc.) ============================================================================= ✖ ERROR: Installer failed with exit code 1. localhost:/home/ernst/OpenSource/SoftwareQMngMnt/src/main/resources/eu/simuline/qMngmnt/installation # The script at least the part until the error looks like that: #!/bin/bash - # color functions error() { echo -e "\e[91m✖ ERROR: $1\e[0m"; } warn() { echo -e "\e[93m⚠ WARN: $1\e[0m"; } info() { echo -e "\e[94mℹ INFO: $1\e[0m"; } succ() { echo -e "\e[92m✔ DONE: $1\e[0m"; } [ "$EUID" -ne 0 ] && { error "Please run as root or via sudo."; exit 1; } [ "$#" -eq 1 ] || { error "Usage: $0 <year in 4 digits>"; exit 1; } YEAR="$1" [[ "$YEAR" =~ ^[0-9]{4}$ ]] || { error "Year must be exactly 4 digits"; exit 1; } # folder for script and for packagesTexlive<year>.txt SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # folder where all texlive releases are to be installed ... ROOT="/usr/local/texlive" # each release in the folder of its year INSTALL_DIR="$ROOT/$YEAR" # The architecture for which to install (the current) ARCH=$(uname -m)-$(uname | tr '[:upper:]' '[:lower:]') # The subfolder of the installation with the binaries for the given architecture BIN_DIR="$INSTALL_DIR/bin/$ARCH" SCHEME=small # new or update if [ ! -d "$BIN_DIR" ]; then if [ -d "$INSTALL_DIR" ]; then info "Reinstalling existing release $YEAR for architecture $ARCH..." else info "Installing texlive $YEAR for architecture $ARCH..." fi FILE="install-tl-unx.tar.gz" rm -f "$FILE" # try URL for life release info "Try downloading final release..." URL="https://mirror.ctan.org/systems/texlive/$YEAR/tlnet-final/$FILE" wget "$URL" if [ $? -ne 0 ]; then info "Try downloading archived release..." # try URL for archived release # list of historic servers: https://www.tug.org/historic/ URL="https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/$YEAR/$FILE" URL="https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/$YEAR/$FILE" URL="https://mirror.nju.edu.cn/tex-historic/systems/texlive/$YEAR/$FILE" wget "$URL" || { error "Downloading $FILE failed, both as live release and as archived one."; exit 2; } fi succ "Download succeeded." INSTALLER="install-tl" INSTALLER_DIR=$(tar -tf "$FILE" | grep -E "^[^/]+/$INSTALLER" | cut -d/ -f1 | head -1) [ -n "$INSTALLER_DIR" ] || { error "Unexpected folder structure of $FILE."; exit 3; } rm -rf "$INSTALLER_DIR" tar -xzf "$FILE" pushd "$INSTALLER_DIR" > /dev/null || { error "Could not enter installation folder $INSTALLER_DIR."; exit 3; } info "installing texlive $YEAR scheme $SCHEME into $INSTALL_DIR" chmod +x "$INSTALLER" ./$INSTALLER --scheme "$SCHEME" --no-interaction -paper "a4" --texdir "$INSTALL_DIR" \ || { error "Installer failed with exit code $?."; exit 3; } # ./$INSTALLER --repository https://mirror.us-midwest.utah.edu/ctan/historic/systems/texlive/2024/tlnet-final \ # --scheme "$SCHEME" --no-interaction -paper "a4" --texdir "$INSTALL_DIR" || \ # { error "Installer failed with exit code $?."; exit 3; } popd > /dev/null # schema small is installed even with a reinstall with scheme minimal succ "Installed texlive $YEAR with schema $SCHEME for architecture $ARCH." fi ... THe problem seems to be invoking the installer. By the way seemingly small is not provided. I wonder why now //ftp.gwdg.de/pub/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb is loaded and whether this is the point where 2025 an 2024 get mixed up. I tried the -repository option but i cannot figure out the correct URL.

  • Re-typesetting the result of \unvbox
    by Frisket on December 2, 2025 at 10:30 pm

    If I typeset some text into a \vbox narrower than the rest of the document, I can \vsplit some of it to use, but I then want the remainder re-typeset to the text width of the document. Here is an example of it not working (the \unvbox'd material is at the width it was set at and is not being reset to the main width): \documentclass{article} \usepackage{lipsum} \begin{document} \setbox0=\vbox{\divide\hsize by2\lipsum[2]} \vsplit0 to2cm \hrule % added to show where the split occurs \unvbox0 \end{document} In my innocence I understood from the TeXbook and elsewhere that the glue at the top level in the remainder of the box after \vsplitting would be unset, making the contents available for use (in my case, the contents will always be plain text with no macros). I see a number of specialist solutions (eg Centering contents after \unvbox) but they all involve taking special action on the \unvbox'd material, which contains all kinds of other stuff like alignments, whereas I need to have it treated as if it were fresh text.

  • Where to find texlive installer for older releases [duplicate]
    by user2609605 on December 2, 2025 at 10:06 pm

    While it is no problem to find an installer for the current texlive release (2025 at time of this writing), I found difficult to find historic releases. At least 2024 would be helpful because it is the newest frozen. What I did find is URL="https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/$YEAR/install-tl-unx.tar.gz" but this was the only reliable. I am European and I would like to have at least one server in Europe, maybe another one in Asia or South America or Canada, offering at least 2024 reliably. What I like about Utah: They offer really back to Adam and Eve which makes me confident, that they will continue to offer in future also.

  • How to restrict a renewbibmacro to a specific entry type in the bibliography
    by Jonathan Granzow on December 2, 2025 at 8:47 pm

    I am modifying my bibliography style (ext-authoryear) to get this for all sources that offer urls: Author, S. (year). Title. Subtitle. Publisher. Abgerufen am TT.MM.YYYY von https://www.hf.uni-koeln.de/. After days of struggle I finally managed to put URLSEEN and URLFROM in the desired order, adding the German words "Abgerufen am (URLSEEN) von (URLFROM)" with the help of a renewbibmacro command - though I still don't understand when to use URLSEEN and URLDATE. My problem is that other entry types will get a superfluous "von" at the end of the printed bib entry. I am glad for any advice! Here comes the MWE: \documentclass[11pt,a4paper,openany]{scrbook} \usepackage[hidelinks]{hyperref} \usepackage[sfdefault]{quattrocento} \usepackage[T1]{fontenc} %\usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{url} \urlstyle{same} \usepackage{color} \usepackage[babel,german=quotes]{csquotes} \usepackage[toc,page]{appendix} \usepackage{xurl} \usepackage{doi} \usepackage{textcomp} \usepackage[backend=biber, style=ext-authoryear, citestyle=authoryear-icomp, uniquename=minfull, uniquelist=true, ibidtracker=false, pagetracker=true, sorting=nyvt, sortcase=false, maxnames=2, innamebeforetitle=true, isbn=false, maxbibnames=8, minbibnames=8, dashed=false, giveninits]{biblatex} \DeclareFieldFormat{doi}{\href{https://doi.org/#1}{https://doi.org/{#1}}} \DefineBibliographyStrings{german}{% urlseen = {Abgerufen am}, urlfrom = {von}} \DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1} \DeclareFieldFormat{url}{\url{#1}} \renewbibmacro*{url+urldate}{% \usebibmacro{urldate}{}% \newunit\newblock \addspace \text{von} \nopunct \usebibmacro{url}} \begin{filecontents*}{examplelit.bib} @misc{Aaron.2013, author = {Aaron, Samuel}, year = {2013}, title = {{Sonic Pi}}, url = {https://sonic-pi.net/}, urldate = {2025-11-23}, } @article{Aaron.2016b, author = {Aaron, Samuel and Blackwell, Alan F. and Burnard, Pamela}, year = {2016}, title = {{The development of Sonic Pi and its use in educational partnerships: co-creating pedagogies for learning computer programming}}, journal = {{Journal of Music, Technology and Education}}, doi = {10.17863/CAM.8369}, file = {AaronBlackwellBurnard-revised-V2:Attachments/AaronBlackwellBurnard-revised-V2.doc:application/msword}, } @incollection{Ahner.2021, author = {Ahner, Philipp}, title = {{Ding-Praktiken, musikalische Praxen und Praxisfelder: Soziomaterielle Betrachtungen zu analogen und digitalen Dingen im Musizieren, musikbezogenen Lernen und in der Musikdidaktik des Aufbauenden Musikunterricht}}, pages = {103--117}, publisher = {Helbling}, isbn = {9783990697689}, editor = {Schilling-Sandvo{\ss}, Katharina and Goebel, Matthias and Spychiger, Maria}, booktitle = {{Musikalische Bildung: Festschrift f{\"u}r Werner Jank}}, year = {2021}, file = {Ahner-2021-Ding-Praktiken-musikalische-Praxen-und-Praxisfelder-scan-preview:Attachments/Ahner-2021-Ding-Praktiken-musikalische-Praxen-und-Praxisfelder-scan-preview.pdf:application/pdf}, } @book{Dreyfus.1986, author = {Dreyfus, Hubert L. and Dreyfus, Stuart E.}, year = {1986}, title = {{Mind over machine: The power of human intuition and expertise in the era of the computer}}, publisher = {{Basil Blackwell}}, isbn = {978-0631151265}, } \end{filecontents*} \addbibresource{examplelit.bib} \begin{document} \textcite{Aaron.2013} did a great job with Sonic Pi. \textcite{Aaron.2016b}, \textcite{Dreyfus.1986}, \textcite{Ahner.2021}. \printbibliography \end{document}

  • Is there a way in TikZ or Lua to make a short function which converts letters to their corresponding alphabetical position (and vice versa)?
    by Jasper on December 2, 2025 at 5:38 pm

    Is there a way in TikZ or Lua to make a short function which converts letters to their corresponding alphabetical position (and vice versa)? The only way I can think of it so string check each letter, but that sounds too computationally expensive. M(non)WE: \documentclass[tikz,border=1cm]{standalone} \newcommand{\letterpos}[1]{ \pgfmathparse{#1 == a} \ifnum\pgfmathresult=1 1 \fi \pgfmathparse{#1 == ab} \ifnum\pgfmathresult=1 2 \fi \pgfmathparse{#1 == c} \ifnum\pgfmathresult=1 3 \fi \pgfmathparse{#1 == d} \ifnum\pgfmathresult=1 4 \fi \pgfmathparse{#1 == e} \ifnum\pgfmathresult=1 5 \fi } \begin{document} \begin{tikzpicture} \foreach \letter in {a,b,...,e} { \node at (\letterpos{\letter},0) {\letter}; } \end{tikzpicture} \end{document}

  • Redefine quotation environment to remove initial indent
    by agoldst on December 2, 2025 at 4:13 pm

    The default LaTeX quotation environment starts each paragraph with an indentation. I prefer for a multi-paragraph block quote not to indent the first paragraph (as recommended by the Chicago Manual of Style, for example). It is of course possible to write \begin{quotation}\noindent every time. But I would like to redefine the environment. I tried to modify the default article.cls definition of quotation minimally, but the result somehow puts a word space at the start of the quotation. How do I avoid this space without having to manually begin every block quote with a \noindent? Example: \documentclass{article} \newenvironment{lquote}{\list{}{\listparindent 1.5em% \itemindent\listparindent \rightmargin \leftmargin \parsep 0pt plus 1pt}\item\noindent\relax}% {\endlist} \begin{document} Quotation environment with explicit noindent: \begin{quotation} \noindent He finally lit on the ground and walked around the body to see if it were really dead. Peered into its nose and mouth. Examined it well from end to end and leaped upon it and bowed, and the others danced a response. That being over, he balanced and asked: ``What killed this man?'' \end{quotation} Custom environment attempting to put noindent at the beginning \begin{lquote} He finally lit on the ground and walked around the body to see if it were really dead. Peered into its nose and mouth. Examined it well from end to end and leaped upon it and bowed, and the others danced a response. That being over, he balanced and asked: ``What killed this man?'' \end{lquote} \end{document} On my system, pdflatex gives this:

  • Section title with \star
    by Roberto Rastapopoulos on December 2, 2025 at 1:47 pm

    I am trying to get the following: But when I insert it in this way: \documentclass[a4paper,12pt]{amsart} \usepackage{hyperref} \begin{document} \tableofcontents \section{Introduction} \subsection{$\star$ N-Soliton solutions} Some text about N-soliton solutions... \end{document} I get the error "Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `math shift' [...]". When I write \subsection{\star N-Soliton solutions} I get How can I get the first one without the error? I have tried several things, but all come with another problem.

  • Three-columns paracol with image, second column shifted left, third column shifted right
    by user40960 on December 2, 2025 at 1:04 pm

    I have a three-columns paracol between two paragraphs of normal text, see code and output below. In the first attempt where I use \columnratio, the second column is shifted too much to the left and overlaps the image, and the third column is also shifted too much to the right. In the second attempt where I use \setcolumnwidth, the problem with the second column has disappeared but the problem with the third column has gotten much worse. What is the best way to adjust the sizes in this situation ? The image used is available at https://github.com/jonathandoyle58/some_icons/blob/main/bart_simpson.png (although it shouldn't matter which image is used, since the \includegraphics sets the size independently of the original image size). \documentclass{article} \usepackage{calc} \usepackage[export]{adjustbox} \usepackage{multicol} \usepackage{paracol} \usepackage{lipsum} \usepackage{xcolor} \usepackage[colorlinks = true, linkcolor = blue, urlcolor = blue, citecolor = blue, anchorcolor = blue]{hyperref} \newcommand*{\foto}{% \includegraphics[width=0.2\textwidth,height=\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}]{bart_simpson}% } \begin{document} \lipsum[2] \columnratio{0.1,0.4} \begin{paracol}{3} \foto \switchcolumn \begin{flushleft} Amet ac, Aenean Ante a, Dui a. Adipiscing ad intervestibulum vestibulum. Condimentum a'est Leo Arcu cras Diam a. \end{flushleft} \switchcolumn \bigskip \begin{tabular}{r} \color{gray}\large 7 Augue dui Accumsan 96150 Taho\\ \ bart.simpson@mail.com \\ +33 671549730\\ \href{https://github.com/bart-simpson/}{\color{gray}{github.com/bart-simpson/}} \\ \href{https://www.linkedin.com/in/bart-simpson-3a7uvl65/}{\color{blue}{@bart-simpson-3a7uvl65/}} \\ \end{tabular} \end{paracol} \bigskip \setcolumnwidth{0.25\textwidth} \begin{paracol}{3} \foto \switchcolumn \begin{flushleft} Amet ac, Aenean Ante a, Dui a. Adipiscing ad intervestibulum vestibulum. Condimentum a'est Leo Arcu cras Diam a. \end{flushleft} \switchcolumn \bigskip \begin{tabular}{r} \color{gray}\large 7 Augue dui Accumsan 96150 Taho\\ \ bart.simpson@mail.com \\ +33 671549730\\ \href{https://github.com/bart-simpson/}{\color{gray}{github.com/bart-simpson/}} \\ \href{https://www.linkedin.com/in/bart-simpson-3a7uvl65/}{\color{blue}{@bart-simpson-3a7uvl65/}} \\ \end{tabular} \end{paracol} \lipsum[2] \end{document}

  • Under `zref-clever`, command to retrieve name strings of a given reference type?
    by Peter LeFanu Lumsdaine on December 2, 2025 at 12:50 pm

    I’m using zref-clever, and looking for a way to explicitly retrieve the various name strings associated to a given reference type — so I can write e.g. \zcrefgetstring{theorem}{Name-pl} and get “Theorems”. Presumably the package must already include some command that does roughly this, but as far as I can find, it’s not documented in the user manual, so must be internal-only. I am searching through the code, which is excellently documented but quite long and complex — so I am also asking here, either in case someone who knows the package better can give the answer quicker than I can find it, and (even if I find it first myself) to make the answer more easily searchable in future. MWE, showing approximate desired usage; expected output is hopefully clear: \documentclass{article} \usepackage{zref-clever} \newcommand{\zcrefgetstring}[2]{UNDEFINED} \begin{document} The reference type \texttt{theorem} has name \zcrefgetstring{theorem}{name-sg}. Capitalised and in plural, it is \zcrefgetstring{theorem}{Name-pl}. \end{document} Edit: I’ve tracked down the occurrence of this in reference typesetting to the calls to \__zrefclever_opt_tl_get:cNF inside \__zrefclever_type_name_setup:, but that invocation is heavily dependent on the context where it’s called during the reference-processing stack, and I haven’t yet figured out to invoke \__zrefclever_opt_tl_get successfully in an external context.

  • Using \columnratio to set column width in a paracol with more than two columns
    by user40960 on December 2, 2025 at 10:18 am

    I want a three-column paracol environment where the second and third column have equal width and this width is three times the width of the first column. The command \columnratio seems indicated for this task. Unfortunately no example at all of their use is provided in the user manual. This older question gives a good, clear answer but only for two columns. Here are my failed attempts : \documentclass{article} \usepackage{paracol} \usepackage{lipsum} \usepackage{lmodern} \begin{document} \columnratio{1,3,3} \begin{paracol}{3} \lipsum[2] \switchcolumn \lipsum[2] \switchcolumn \lipsum[2] \end{paracol} \columnratio{3,3} \begin{paracol}{3} \lipsum[2] \switchcolumn \lipsum[2] \switchcolumn \lipsum[2] \end{paracol} \end{document}

  • Biblatex-publist replacing all co-authors with et al
    by user383619 on December 2, 2025 at 5:40 am

    When using biblatex-publist with a reference that has several authors, all co-authors are incorrectly replaced with a single "et al." See reference [1] in the screenshot for an example. What I expect is "with <name>" (as shown correctly in reference [2]) or "with <name> et al." (as shown correctly in reference [3]). Why does this happen? Is this a bug? If I use a different base style or specify maxnames=99, the problem goes away. But I don't think this is addressing the (potential) underlying bug. Here's an MWE. \documentclass{article} % \newcommand*\publistbasestyle{ieee} \usepackage[ style=publist, plauthorhandling=omit, nameorder=given-family, % maxnames=99 ]{biblatex} \plauthorname{Herrmann} \plauthorname{Kastenholz} \plauthorname{Murray} \addbibresource{biblatex-examples.bib} \begin{document} \nocite{herrmann,kastenholz,murray} \printbibliography[heading=none] \end{document}

  • xcolor not fully colouring commutative diagrams drawn by tikzcd
    by Ishan Deo on December 2, 2025 at 3:12 am

    I'm using xcolor in a table whose cells contain commutative diagrams drawn by tikzcd. However, the colour from xcolor is not fully going through these commutative diagrams, as can be seen by the image below Here is a MWP for the code \documentclass[12pt]{article} \usepackage[svgnames,table]{xcolor} \usepackage{tikz-cd} \begin{document} \begin{table} \centering \rowcolors{1}{Gray!10}{} \begin{tabular}{c} $\displaystyle \begin{tikzcd}[column sep=huge, ampersand replacement=\&] * \arrow[r, bend left = 40, "\,", ""{name=U, inner sep=1pt, below}] \arrow[r, bend right = 40, "\,"{below}, ""{name=D, inner sep=1pt}] \& \arrow[Rightarrow, from=U, to=D, "\alpha"] * \end{tikzcd}$ \end{tabular} \end{table} \end{document} Why is this error happening? And how can I fix it?

  • cases environment with left brace bolded
    by Martín Moreno on December 2, 2025 at 3:11 am

    I want a reformulation of the cases environment, where the left brace '{' is bolded. Could someone formulate the renewenvironment?

  • LaTeX doesn't accept citations as numbers with Author-year references
    by hager moharram on December 1, 2025 at 9:28 pm

    In Springer Nature submission guidelines, they require this style in referencing: Gamelin FX, Baquet G, Berthoin S, Thevenet D, Nourry C, Nottin S, Bosquet L (2009) Effect of high intensity intermittent training on heart rate variability in prepubescent children. Eur J Appl Physiol 105:731-738. https://doi.org/10.1007/s00421-008-0955-8 at the same time, they ask for this style in citation: 'This effect has been widely studied [1-3,7].' but no matter how I try to arrange my references like this, it doesn't show an author-year style. It shows either the numeric style in citation or the author-year style. Is it possible that the journal itself edits the manuscript to show references in this style? or am I doing something wrong? this is my MWE. I don't know what to put more to help as I am new in LaTeX. \usepackage{natbib} \documentclass[pdflatex,sn-mathphys-num]{sn-jnl}% Math and Physical Sciences Numbered Reference Style \bibliographystyle{spbasic} \bibliography{sn-bibliography} By the way I used every document class I can use, but without any results.

  • AMSrefs incorrectly uses singular "ed." instead of "eds." for a second bibitem with the same editors
    by LSpice on December 1, 2025 at 8:13 pm

    The problem description is in the title: AMSrefs incorrectly uses singular "ed." instead of "eds." for a second bibitem with the same editors. I'm not sure if it's OK to report such bugs here, but I have done so successfully in the past, so hopefully this is OK, too. Here's a MWE (or maybe not really M, but hopefully acceptably brief): \documentclass{article} \usepackage{amsrefs} \begin{document} \begin{bibdiv} \begin{biblist} \bib{SGA-3.1}{book}{ editor={Demazure, Michel}, editor={Grothendieck, Alexander}, title={Sch\'emas en groupes. I: Propri\'et\'es g\'en\'erales des sch\'emas en groupes}, } \bib{SGA-3.2}{book}{ editor={Demazure, Michel}, editor={Grothendieck, Alexander}, title={Sch\'emas en groupes. II: Groupes de type multiplicatif, et structure des sch\'emas en groupes g\'en\'eraux}, } \end{biblist} \end{bibdiv} \end{document} The expected outcome is that the first entry is listed with "Michel Demazure and Alexander Grothendieck (eds.)", and the second entry is listed with "————— (eds.)". Actually the second entry is listed with "————— (ed.)".

  • Splitting a sentence into characters (incl. spaces) and displaying each character in a tikz node
    by Ted Black on December 1, 2025 at 5:50 pm

    I have written the following code using expl3 \documentclass{article} \usepackage{tikz} \ExplSyntaxOn \NewDocumentCommand{\boxedglyphs}{m} { \mgs_box_chars:n { #1 } } \cs_new_protected:Npn \mgs_box_chars:n #1 { \seq_set_split:Nnn \l_tmpa_seq {} {#1} \seq_map_inline:Nn \l_tmpa_seq { \mgs_box_one_char:n { ##1 } } } \cs_new_protected:Npn \mgs_box_one_char:n #1 { \tl_if_blank:nTF { #1 } {\tikz{\node[draw=red] {\textvisiblespace};}} {\tikz{\node[draw=red,inner~sep=0pt,outer~sep=0pt,minimum~height=2ex,] {#1};}} } \ExplSyntaxOff \newcommand{\new}{new} \begin{document} \boxedglyphs{Hello~brave~\new~world!} \end{document} The code is used to break a sentence in individual characters and/or words/subwords. The code works well except with spaces. The output I get is The code does not recognize blank spaces in \tl_if_blank; instead it just goes to the false branch and prints a node with a blank space. I am sure I am missing something elementary but having looked through the documentation of interface3 I am no wiser. Any hints would be appreciated.

  • Section specific \thepage and \numpages for an exam class document
    by BoiBhai on December 1, 2025 at 5:21 pm

    I'm compiling past-year-questions of an examination into a question booklet and I've chosen to structure different years' question papers as different section contents of the exam class document. In the footer I currently display document level page numbering and totalling: Page \thepage of \numpages I want to be able to display section level page numbering and totalling: Page \thepageWithinSection of \numpagesInSection Is there a way of accomplishing this? Below is a MWE of my current configuration. Also, what about at the subsection level? Note that in case of subsections, I might also create new subsection's within the questions environment. Would it work then? Thanks! \documentclass{exam} \begin{document} \footer{}{\thepage\ of \numpages}{} \section{2025} \begin{questions} \question What is my name? \newpage \question What is my age? \end{questions} \section{2024} \begin{questions} \question What is your name? \newpage \question What is your age? \end{questions} \end{document}

  • datetime2 to display date in a custom format
    by user1850133 on December 1, 2025 at 4:09 pm

    I'm trying to setup the date style using datetime2. I want the code bits to display the date all these styles (I will use only one per document): Wednesday, 01^{st} December 2025 wednesday, 01st december 2025 wed. 01 dec. 2025. I must be able to display the current date or a given one. I took some solutions found on the web but I can't do what I want. The date displayed by the \maketitle macro is not displaying the date accordingly with the style setup. \documentclass{article} \usepackage[calc,showdow,english]{datetime2} \usepackage{polyglossia,fontsize,fix-cm} \setdefaultlanguage{english} \DTMnewdatestyle{mydateformat}{% \renewcommand{\DTMdisplaydate}[4]{% \DTMtweekdayname{##4},\space% \DTMmonthname{##2}\nobreakspace% (full) Month \number##3,\space% day, \number##1% year }% \renewcommand{\DTMDisplaydate}{\DTMdisplaydate}% } \title{document de test} \author{myself} \begin{document} \let\today\DTMtoday \today \DTMsetdatestyle{mydateformat} \maketitle \today \end{document}

  • Missing hyphens with IBM Plex fonts and `\DocumentMetadata`
    by chrispi_cookie on December 1, 2025 at 3:38 pm

    I would like to use IBM Plex Serif (and other IBM Plex fonts) for my documents. Everything works fine without \DocumentMetadata. But if I use \DocumentMetadata TeX is hangry and eats all my hyphens. See the mwe and pdf output below. \DocumentMetadata{lang=de} \documentclass{article} \usepackage{unicode-math} \setmainfont{IBM Plex Serif} \begin{document} test test test test test test test test test test test test test test Schifffahrtsbauergasse \end{document} I'm aware of the discussion at GitHub regarding missing hyphens with \DocumentMetadata (https://github.com/latex3/tagging-project/issues/967). However, I have absolutely no real knowledge of fonts, other than that I use them. As this is the tagging repo I thought it has something to do with tagging. But even without tagging=on or no tagging option at all the hyphens are missing. The following workaround was described in the discussion, but I'm not sure if that is a good idea (and it doesn't work for me neither). \tagpdfsetup{activate/softhyphen=false} Is there something (maybe a working workaround) I can do to use IBM Plex together with \DocumentMetadata and correct hyphenation (and enable tagging) at the moment? If required I am using a current LaTeX version: LaTeX2e <2025-11-01> L3 programming layer <2025-11-14>

  • Resumé with geometry and multicol - third column shifed to the right
    by user40960 on December 1, 2025 at 2:42 pm

    I'm using LaTeX to write my resumé. I chose the geometry and multicol packages as my main tools (although I'm open to solutions using other packages), the main reason for the geometry package is to save space because I need all the document gathered on one single page. The source code below does almost what I want, with the obvious defect being located in the three-column paragraph : there is too much space (wasted space) between the photo and the text in the second column, and as a result the contact data in the third column are pushed too far to the right. Any help appreciated. The icons (pdf and png) used in the LaTeX source are available at https://github.com/jonathandoyle58/some_icons \documentclass{article} \usepackage{tikz} \usepackage{calc} \usepackage[export]{adjustbox} \usepackage{marvosym} \usepackage{multicol} \usepackage{tcolorbox} \usepackage{xcolor} \usepackage[colorlinks = true, linkcolor = blue, urlcolor = blue, citecolor = blue, anchorcolor = blue]{hyperref} \newcommand*{\badge}{% \includegraphics[height=\heightof{M}+\heightof{M},valign=c]{badge}% } \newcommand*{\book}{% \includegraphics[height=\heightof{M}+\heightof{M}+\heightof{M},valign=c]{book}% } \newcommand*{\burette}{% \includegraphics[height=\heightof{M}+\heightof{M}+\heightof{M},valign=c]{burette}% } \newcommand*{\diploma}{% \includegraphics[height=\heightof{M}+\heightof{M}+\heightof{M},valign=c]{diploma}% } \newcommand*{\foto}{% \includegraphics[height=\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M}]{bart_simpson}% } \newcommand*{\github}{% \includegraphics[height=\heightof{M}]{github_icon}% } \newcommand*{\glove}{% \includegraphics[height=\heightof{M}+\heightof{M}]{glove_498313}% } \newcommand*{\linkedin}{% \includegraphics[height=\heightof{M}]{linkedin_icon}% } \newcommand*{\manreading}{% \includegraphics[height=\heightof{M}+\heightof{M}+\heightof{M},valign=c]{manreading}% } \newcommand*{\manspeaking}{% \includegraphics[height=\heightof{M}+\heightof{M}+\heightof{M}+\heightof{M},valign=c]{manspeaking}% } \newcommand*{\pin}{% \includegraphics[height=\heightof{M}]{pin}% } \newcommand*{\sitting}{% \includegraphics[height=\heightof{M}+\heightof{M}+\heightof{M},valign=c]{sitting}% } \newcommand*{\spanner}{% \includegraphics[height=\heightof{M}+\heightof{M}]{spanner}% } \addtolength{\textwidth}{4cm} \addtolength{\textheight}{7cm} \addtolength{\hoffset}{-2cm} \addtolength{\voffset}{-3.5cm} \begin{document} \pagestyle{empty} \centerline{\color{cyan}\Huge \badge~Bart Simpson} \bigskip \centerline{\color{orange}\huge Adipiscing-Pellentesque dui} \bigskip \begin{center} Aenean adipiscing ac pellentesque amet ad intervenenatis dui, consequat a'at accumsan. Et ante condimentum eu aptent id auctor est convallis in mi aliquam arcu congue leo curabitur nam vestibulum ut dignissim. \end{center} \bigskip \begin{multicols}{3} \foto \columnbreak \begin{center} Amet ac, Aenean Ante a, Dui a. Adipiscing ad intervestibulum vestibulum. Condimentum a'est Leo Arcu cras Diam a. \end{center} \columnbreak \bigskip \begin{tabular}{r} \color{gray}\large \pin~7 Augue dui Accumsan 96150 Taho\\ \Letter\ bart.simpson@mail.com \\ \Telefon\ +33 671549730\\ \github \ \href{https://github.com/bart-simpson/}{\color{gray}{github.com/bart-simpson/}} \\ \linkedin \ \href{https://www.linkedin.com/in/bart-simpson-3a7uvl65/}{\color{blue}{@bart-simpson-3a7uvl65/}} \\ \end{tabular} \end{multicols} \setlength{\columnseprule}{1pt} \def\columnseprulecolor{\color{green}} \begin{tcolorbox}[ sharp corners=all, colback=white, colframe=green, size=tight, boxrule=1mm, left=3mm,right=3mm ] {\begin{multicols}{2} \ \newline \bigskip \centerline{\Large \burette~Experience} \bigskip \ \newline {\bf Pellentesque Amet} : Dui (Augue) , Ante - ad.arcu/at.cras \newline {\it\small Condimentum a'consectetur eu Diam a, Est Duis, Adipiscing} \ \newline \ \newline {\bf Augue pellentesque ad accumsan} : Class Bibendum, Dolor Eleifend, Amet - ante/arcu \newline \ \newline {\bf Adipiscing intervenenatis Aenean} Consequat Convallis, Curabitur - amet. ante / arcu cras \newline \bigskip \columnbreak \ \newline \bigskip \centerline{\Large \diploma~Training} \bigskip \noindent {\bf Augue interpulvinar ``Adipiscing-pellentesque a'sollicitudin''}, Class Aliquam Amet, dolor ante \newline \ \newline \ \newline {\bf Interpulvinar Augue}, Class.dui Amet, ad at/et/ante \newline \ \newline {\bf Accumsan ad intervenenatis}, Condimentum Amet a At Ante, arcu-cras\newline {\it\small Intervenenatis class, pellentesque. Consectetur eu sollicitudin a'id consequat aenean in ars} \newline \end{multicols}} \end{tcolorbox} \begin{tcolorbox}[ sharp corners=all, colback=white, colframe=green, size=tight, boxrule=1mm, left=3mm,right=3mm ] {\begin{multicols}{2} \ \newline %\bigskip \centerline{\Large \spanner~Skills} \ \newline %\bigskip {\bf Accumsan ad interpulvinar} Dui, Amet, A, Ante, Adipiscing, Augue. \newline \ \newline {\bf Augue-dui} Amet a, Est a, Consequat a \newline \ \newline {\bf Adipiscing} Aliquam, Aenean Amet, Aliquet, Ante ad Augue \newline \ \newline \columnbreak \ \newline \bigskip \centerline{\Large \manspeaking~Langues} \bigskip \ \newline {\bf Aliquam} Aliquet (consequat \& interpulvinar conubia) \newline \ \newline {\bf Consequat} Ad, aenean \newline \ \newline \end{multicols}} \end{tcolorbox} \begin{tcolorbox}[ sharp corners=all, colback=white, colframe=green, size=tight, boxrule=1mm, left=3mm,right=3mm ] {\begin{multicols}{2} \ \newline %\bigskip \centerline{\Large \glove~Soft skills} \smallskip \ \newline %\bigskip Interpulvinar, accumsan, aliquam \ \newline \ \newline \columnbreak \ \newline \bigskip \centerline{\Large \manreading~Hobbies} \bigskip \ \newline Condimentum ac adipiscing intervenenatis. Augue dui amet.interpulvinar \ \newline \end{multicols}} \end{tcolorbox} \end{document}

  • Numbering only in a specific line of an align environment (without \tag or extra packages) [duplicate]
    by Sebastiano on December 1, 2025 at 9:56 am

    I’m trying to number a system of equations using the amsmath package, but I would like the equation number to appear on a specific line within the align environment. In my example, I want the numbering to appear on the second line instead of the first one. Here is the code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align}\label{498h} \mathcal{L}\left\{ t \cos(a t) \right\} & = \frac{ s^2 - a^2 }{ (s^2 + a^2)^2 } \int_0^t \frac{\partial{K(\sigma,\gamma)}}{\partial \sigma}K_L e(\sigma) \\ & = \frac{8 h^3}{a^3}-\frac{8 (h^2-1) h}{a^3}+\frac{16 u}{a^2} \end{align} I want the numered equation on the 2nd \eqref{498h} \end{document} I would like only the second line to be numbered, leaving the first one unnumbered. Moreover, I do not want to use additional packages or the \tag command or \nonumber. In general, for example, if I have 35 line of equation, how is it possible to put, the number in the 24-th equation? I have not checked whether a similar question has already been answered on the site. Thank you all!

  • French spacing conflicts with cleveref
    by Erwann on December 1, 2025 at 5:41 am

    In this example I must choose between \cref{sec:bar} and French spacing (o/w disabled using \NoAutoSpace; I presume because sec:bar is read sec\thinspacing:bar. Is there a solution? \documentclass{article} \usepackage[T1]{fontenc} \usepackage[french]{babel} %\NoAutoSpacing \usepackage{cleveref} \begin{document} \section{Foo} bonjour: monde; oui? non! «aujourd'hui» % Voir~\cref{sec:bar} %(./debug-108.aux) %! Missing \endcsname inserted. %<to be read again> % \unskip %l.14 Voir~\cref{sec:bar} % %? \section{Bar}\label{sec:bar} bonjour: monde; oui? non! « aujourd'hui » \end{document}

  • Practical guidelines for using sockets
    by Niranjan on December 1, 2025 at 4:22 am

    I have read the documentation of sockets and I was wondering how sockets can be used for practical use-cases. While surfing SE, I found this discussion around the topic and this mesmerizing picture-mode-illustrated answer 😛, but still didn't find a straight forward example. I asked AI to give a sample code and got the following (some manual cleanup done and some deprecated commands removed from the original AI-response): \DocumentMetadata{tagging=on} \documentclass{article} \begin{document} \NewSocket{greeting-socket}{0} \NewSocketPlug{greeting-socket}{formal}{Dear ma’am/sir,} \NewSocketPlug{greeting-socket}{informal}{Hi there,} \NewSocketPlug{greeting-socket}{friendly}{Hello, friend!} \NewSocket{closing-socket}{0} \NewSocketPlug{closing-socket}{formal}{Sincerely,} \NewSocketPlug{closing-socket}{informal}{Cheers,} \section*{Formal Letter} \AssignSocketPlug{greeting-socket}{formal} \AssignSocketPlug{closing-socket}{formal} \UseSocket{greeting-socket} This is a formal letter content. \UseSocket{closing-socket} John Doe \section*{Informal Note} \AssignSocketPlug{greeting-socket}{informal} \AssignSocketPlug{closing-socket}{informal} \UseSocket{greeting-socket} This is an informal note. \UseSocket{closing-socket} Jane \section*{Friendly Message} \AssignSocketPlug{greeting-socket}{friendly} \AssignSocketPlug{closing-socket}{informal} \UseSocket{greeting-socket} Just a quick message to say hi. \UseSocket{closing-socket} Your pal \end{document} Now the question is if this type of usage can be called "standard"? Imagine I have some code instead of the un-expandable text in the given example. Here are some questions: Are the names used here recommendable? What names do the kernel use-cases of sockets use? What should package authors use? (The documentation says: Best practice naming conventions are . . . to be documented but it is dated 2024-12-27 which is quite old now, so I assume some recommendations can be given?) Usually it is said that sockets are to be used only once unlike hooks. Does that mean multiple usages of \AssignSocketPlug wrong? The documentation does say: If the programming logic should change, then all that is necessary is to make a new assignment with \AssignSocketPlug to a different {⟨socket-plug-name⟩}. but it also says: A socket is typically only used in one place in code, but this is not a requirement, i.e., if the same operation with the same inputs need to be carried out in several places the same named socket can be used. So I am confused. In the given example, what exactly is wrong (or atypical)? The multiple uses of \AssignSocketPlug or \UseSocket? Theoretically both seem to be fine, but not sure what is expected. Is there any general consensus on what should not be used in sockets? Anything else regarding sockets based on the example or beyond it?