Hot
- Unwanted horizontal shift of equation* on overlay when \label is present and equation ends with , or ;by João Alves Jr. on March 19, 2026 at 7:26 pm
Since sometime between August 2025 and March 2026, a \label inside equation* causes an unwanted horizontal shift of the displayed equation when advancing overlays, provided the equation ends with , or ;. The shift does not occur when the equation ends with ., nor when equation (numbered) is used instead of equation*, nor when \label is absent. The following MWE reproduces the problem: \documentclass{beamer} \begin{document} \begin{frame}{Test} \begin{equation*}\label{E:Test} A, \end{equation*} \pause Text. \end{frame} \end{document} Observed behavior: On overlay 1, the equation appears at one horizontal position. After advancing to overlay 2 (via \pause), the equation shifts slightly to the right. Expected behavior: The equation should remain at the same horizontal position across all overlays. Conditions that trigger the bug (all three must hold simultaneously): equation* (unnumbered); \label{...} inside it; the equation ends with , or ; (mathematical punctuation, i.e. \mathpunct). Conditions under which the bug does not occur: \label removed from equation*; equation (numbered) used instead of equation*; equation ends with . instead of , or ;. Suspected cause: During the overlay retypsetting pass, the \label inside equation* triggers a write to the .aux file. This side effect appears to disturb the internal state of display math mode at the moment the final punctuation is processed. Since , and ; are \mathpunct and insert spacing via \mskip, they are sensitive to the math mode state at that point; . is not a \mathpunct in math mode and is therefore unaffected. Workaround: Remove \label from equation* environments. This is semantically correct in any case, since an unnumbered equation cannot be meaningfully referenced. Environment: MiKTeX (updated) with a recent Beamer version. The problem was not present in August 2025 and began occurring by March 2026 or before, suggesting it was introduced by an update to Beamer or one of its dependencies in that interval.
- xint / pgffor: Loop-wise calculation of the values of the cumulative binomial distribution - performanceby cis on March 19, 2026 at 3:53 pm
I have some code here that calculates the functions \bdceval{\n}{\p}{\k}, row by row, for fixed \n and \k values and values p from a list \def\pList{0.1, 1/6, 0.25, 0.3, 0.4, 0.5}. It works and is correct. But I'm wondering: Is this well-designed in terms of performance? I can only manage to implement \makePListRow{\n}{\k} with two commands. \documentclass{article} \usepackage{tikz} \usepackage{xintexpr} \def\pList{0.1, 1/6, 0.25, 0.3, 0.4, 0.5} % Function: \xintNewFloatExpr{\bdceval}[3]{add(binomial(#1,v)*#2^v*(1-#2)^(#1-v), v=0..#3)} % Commands for List: \newcommand{\myRowMapper}[1]{\xintRound{4}{\bdceval{\n}{#1}{\k}}} \NewExpandableDocumentCommand{\makePListRow}{mm}{% \xintListWithSep{, }{% \xintApply{\myRowMapper}{\xintCSVtoList{\pList}}% }% } \begin{document} \foreach \n in {2,3,7}{% \foreach \k in {0,...,\n}{% \n, \k, \makePListRow{\n}{\k} \par }% } \end{document}
- Accessible PDF, include pdf with pdfpages and add alt textby 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>.
- Accessible PDF, declaring an artifact for included pdf pagesby YamiOmar88 on March 19, 2026 at 10:34 am
I am building 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{lipsum} \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} \maketitle \section*{Some Section} \lipsum[1] \clearpage % --- 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} As it can be seen, I add pages using \includepdf. For this example purpose, I'm adding the example-image.pdf as a page so the code can be compiled without external files. The <Artifact> I declare shows as a <Private> tag inside the <Sect> tag. But in this particular file I'm working, it would make more sense for it to be at the same level as the <Sect> tag instead of inside it. Is this possible? In other words, I want this: <Document> <p> <p> <Sect> <H1> <p> <Private> instead of this: <Document> <p> <p> <Sect> <H1> <p> <Private> 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>.
- Drawing a parallel line that is perpendicular to another line and connecting the end linesby user516076 on March 19, 2026 at 9:39 am
I wish to draw something like this: I can draw the two lines, though it is difficult to be precise. However I don't know what to do next as for the dashed line and the arrow line. The dashed lines are perpendicular to MK and JL, but the arrow line are parallel to those lines. And the difficult part is connecting the dashed line with the arrow line. I failed to draw the 90 degree sign, it looks too big and ugly. My attempt: \documentclass[tikz,border=3pt]{standalone} \usepackage{amsmath} \usetikzlibrary{calc,intersections,angles,quotes,arrows.meta} \begin{document} \begin{tikzpicture}[line cap=round,line join=round,>=Stealth] % ---------- circle ---------- \def\r{3.0} \coordinate (O) at (0,0); % points on the circle chosen by polar coordinates % (this is the important part) \coordinate (J) at (86:\r); \coordinate (M) at (142:\r); \coordinate (L) at (232:\r); \coordinate (K) at (332:\r); % circle \draw[black,line width=0.9pt] (O) circle (\r); % ---------- cyan lines ---------- \colorlet{mycyan}{cyan!70!blue} % main solid chords \path[name path=JL] (J) -- (L); \path[name path=MK] (M) -- (K); \draw[mycyan,line width=1.1pt] (J) -- (L); \draw[mycyan,line width=1.1pt] (M) -- (K); % intersection N \path[name intersections={of=JL and MK, by=N}]; % ---------- right-angle mark at N ---------- \coordinate (Nu) at ($(N)!0.42!(M)$); \coordinate (Nv) at ($(N)!0.42!(J)$); \coordinate (Nw) at ($(Nu)+(Nv)-(N)$); \draw[black,line width=0.8pt] (Nu) -- (Nw) -- (Nv); % ---------- center ---------- \fill (O) circle (2.2pt); % ---------- labels ---------- \node[font=\fontsize{21}{21}\selectfont] at ($(J)+(0.02,0.35)$) {$J$}; \node[font=\fontsize{21}{21}\selectfont] at ($(M)+(-0.45,0.08)$) {$M$}; \node[font=\fontsize{21}{21}\selectfont] at ($(L)+(-0.28,-0.18)$) {$L$}; \node[font=\fontsize{21}{21}\selectfont] at ($(K)+(0.5,-0.02)$) {$K$}; \node[font=\fontsize{21}{21}\selectfont] at ($(N)+(0.38,0.02)$) {$N$}; \node[font=\fontsize{25}{25}\selectfont] at ($(O)+(0,-0.55)$) {$O$}; \end{tikzpicture} \end{document} Also, explain to me what the trick is, so that I can implement it in other cases.
- Extra Part tags in accessible, tagged PDFby YamiOmar88 on March 19, 2026 at 9:10 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{lipsum} % General information \author[]{YamiOmar88} \title{Some Title} \date{} \begin{document} \maketitle \section*{Some Section} \lipsum[1-3] \begin{itemize} \item The first item \item Something here \item A final item \end{itemize} \end{document} When I check the PDF with the PDF Accessibility Checker a.k.a. PAC (or look at the tags in PDF-XChange Editor) I see that before each <p> or <L> tag there is a <Part> tag. The PAC complains that this tag is being misused. But I don't know how to tell LaTeX to not put it there. Is there anything I should be doing differently? The code is compiled with LuaLaTeX using MiKTeX 26.2. My LaTeX version is LaTeX2e <2025-11-01>, L3 programming layer <2026-01-19>. Note: I read your comments about minimizing my sample code. I'm trying to improve. Hope this was better.
- Chronos: Fully disable year labelsby Anoduck - The Anonymous Duck on March 19, 2026 at 8:25 am
Working on a timeline for a legal case in which all events occurred over five months. So far, I have twelve events and two time periods, and I still need to add more. I need to disable the output of years on all labels, since it is not necessary and is cluttering up the timeline. \documentclass[12pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{chronos} \usepackage{amsmath} \usepackage{csquotes} \begin{document} \begin{chronos} [ %debug, event splitter, no color rotation, colour scheme=default, frame=true, %levels=3:5, event/colour rotation=false, period/colour rotation=false, every text tags+={font=\normalfont\footnotesize}, timeline={% timeline font=\normalfont\footnotesize, dates={2020-05-01}:{2020-09-30}, every date format={!d/!m}, timeline show years=false } ] \chronosmaintitle{% name=Timeline of Events, at=current bounding box.north, yshift=120pt } \chronosevent{% date={2020-05-10}, name=event1 } \chronosperiod{ dates={2020-05-01}:{2020-06-01}, name=period1, yshift=80pt } \chronosevent{ date={2020-06-10}, name=event2 } \chronosevent{% date={2020-06-20}, name=event3, yshift=15pt } \chronosevent{% date={2020-07-01}, name=event4, yshift=25pt } \chronosevent{% date={2020-07-15}, name=event5, yshift=10pt, xshift=-10pt } \chronosperiod{ dates={2020-06-20}:{2020-07-20}, name=period2, yshift=80pt } \chronosevent{% date={2020-07-20}, name=event6, yshift=20pt, xshift=20pt } \chronosevent{% date={2020-07-25}, name=event7, yshift=40pt, xshift=20pt } \chronosevent{% date={2020-07-30}, name=event8, yshift=60pt, xshift=20pt } \chronosevent{% date={2020-08-05}, name=event9 } \chronosevent{% date={2020-08-15}, name=event10, yshift=12pt } \chronosevent{% date={2020-09-10}, name=event11 } \chronosevent{% date={2020-09-25}, name=event12, yshift=15pt } \end{chronos} \end{document}
- What are the meaningful differences between cloud LaTeX editors in 2026, especially for AI-assisted writing?by Nilofer on March 19, 2026 at 5:28 am
I'm a PhD student evaluating cloud LaTeX editors for writing my dissertation. I've used Overleaf for years but I'm noticing a new wave of editors claiming AI-powered features. I've looked at: Overleaf — familiar, but not reliable, and compilation is slow on large documents OpenAI Prism — new, AI-native, backed by OpenAI (I don't trust OpenAI) Papeeria — free tier, minimal AI Bibby AI (trybibby.com) — seems focused on bibliography error detection specifically with a good AI benchmark they published outperforming OpenAI and Overleaf. My question is: for someone writing a 200-page dissertation with 300+ citations, what are the meaningful technical differences between these editors, particularly: How does real-time bibliography validation differ across platforms? Do any of them integrate with arXiv directly? Is AI autocomplete in LaTeX actually useful or is it mostly marketing?
- Biblatex failing when citations contain volume numberby PunySoloist on March 19, 2026 at 2:57 am
I'm having some issues with biblatex, where the code seems to mysteriously fail if certain fields are included in the references file. Here's a MWE: this is my main document. \documentclass[11pt]{scrartcl} \usepackage{biblatex} \addbibresource{references.bib} \begin{document} Hi!~\cite{prime_counting} \printbibliography[title=References] \end{document} After much experimentation (and binary search), I realized the following. The below document corresponds to references.bib. @article{prime_counting, title={On the exact number of primes below a given limit}, author={Brauer, Alfred}, journal={The American Mathematical Monthly}, % volume={53}, % number={9}, % pages={67--69}, % year={67}, % publisher={JSTOR} } This code compiles correctly. However, if the volume number is uncommented, the code fails. Here are my error messages: Package biblatex: Please (re)run Biber on the file: (biblatex) scratch_paper (biblatex) and rerun LaTeX afterwards. LaTeX: Citation 'prime_counting' on page 1 undefined. LaTeX: Empty bibliography. If I have other references, if even one of them contains a volume field, all of them fail. I'm not sure why this is; any help would be greatly appreciated. The same error occurs regardless of if I use the recipe latexmk or latexmk -> biber -> latexmk x2. I'm on Mac. More info from comment: I see no .blg file in my directory. Also, I have deleted the cache and reran, but the problem is still present. My setup used to work (a few months ago), but I tried it again yesterday and it mysteriously did not.
- Use lining figures in \url when font defaults to old style figureby David Purton on March 19, 2026 at 12:57 am
Some fonts use old style figures by default, but allow lining figures to be selected using OpenType features. When lining fugures are selected by default, how can I get lining figures also in the \url command to match? One option is to use \href, but this loses the line breaking features of \url. MWE % TeX Program = lualatex \documentclass{article} \usepackage{fontspec} \setmainfont{Cormorant Garamond}[Numbers=Lining] \usepackage{url} \urlstyle{same} \begin{document} test123 \url{test123} \end{document}
- TexLive 2026 package installation problemby Horas on March 18, 2026 at 4:06 pm
I am installing TexLive 2026. And I got this message. Regrettably, I don't find a way to run the solution: tlmgr update --all --reinstall-forcibly-removed Can someone help me please? Thank you in advance. *** PLEASE READ THIS WARNING *********************************** The following (inessential) packages failed to install properly: aboensis adigraph adrconv alertmessage alpha-persian answers apprendre-a-programmer-en-tex arsclassica avremu babel-basque babel-catalan babel-croatian babel-czech babel-interlingua babel-irish babel-kurmanji babel-piedmontese babel-romansh babel-slovak babel-thai barracuda beamercolorthemeowl beamertheme-cleaneasy beamertheme-cuerna beamertheme-focus beamertheme-pure-minimalistic beamertheme-saintpetersburg beamerthemenord beautybook beautynote biber biber-ms bibleref bjfuthesis bmstu bookcover bophook burmese businesscard-qrcode c90 ccicons chappg chapterfolder chktex cjk classicthesis cleanthesis cluttex cmbright confproc context-notes-zh-cn context-simpleslides conv-xkv cora-macs cqubeamer dashbox decimal dlrg-templates doclicense drac dynblocks ebezier elegantbook elegantpaper elmath els-cas-templates elteiktdk elteikthesis emo endnotes-hy epiolmec etdipa europasscv europecv exam-lite exam-n exam-zh fancymag fancytooltips faq-fr-gutenberg fascicules fast-diagram fcltxdoc featpost feupphdteses fithesis foliono fontinst formation-latex-ul ftc-notebook fundus-calligra fundus-sueterlin gentium-sil graphicxbox gridslides ha-prosper hebdomon hfutthesis histogr hithesis hitreport hitszbeamer hitszthesis hpsdiss hu-berlin-bundle hypdvips hyph-utf8 hyphen-hungarian imtekda inline-images iodhbwm is-bst jeuxcartes jourcl jourrr kastrup ketcindy keyfloat knuth-pdf koma-script-examples kotex-utf ktbox ku-template l3experimental l3packages latex-course latex-for-undergraduates lcg lengthconvert letgut lilyglyphs lisp-on-tex listbib mahjong makecookbook manfnt margbib mathcomp mcmthesis mdsymbol minitoc multibbl multicap musixtex mycv navydocs ndsu-thesis-2022 novel nwafuthesis nwejm nxuthesis ogham oldstyle opbible panneauxroute papertex patch pbsheet pdfscreen pdfslide permute pgf-periodictable plantslabels powerdot-tuliplab proflycee pst-barcode pst-shell pst-solides3d pst-spinner pstricks q-and-a quantumcubemodel qyxf-book rcs-multi realhats rebuttal recipebook revtex4-1 runtexfile savefnmark sduthesis sectsty semantic seuthesis seuthesix sitem sjtutex skb spelatex sseq stellenbosch stellenbosch-2 stex svn-multi svn-prov tabularborder tcolorbox tex-virtual-academy-pl texlive-ja texlive-sr texproposal texworks.windows thesis-gwu tiet-question-paper tikz-network tile-graphic tlc-article tlcockpit tlmgr-intro-zh-cn todonotes tudscr uafthesis ualberta uantwerpendocs udesoftec udiss uestcthesis uiucredborder unamth-template unbtex underlin vgrid visualfaq-fr vlna vmargin wallcalendar wintools.windows xcookybooky xebaposter xepersian xtuthesis yathesis yazd-thesis zbmath-review-template You can fix this by running this command: tlmgr update --all --reinstall-forcibly-removed to complete the installation. Blockquote
- alt text for hyperlink - accessible PDF - screen reader reads link instead of textby YamiOmar88 on March 18, 2026 at 2:29 pm
I have the following sample code, where a \hyperlink is defined: \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} % Fonts and encoding \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} % Graphics (optional) \usepackage{graphicx} \usepackage{pdfpages} % Header / footer \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear header and footer \usepackage{xcolor} \usepackage[colorlinks=true, linkcolor=blue!50!black]{hyperref} \usepackage[ngerman,french]{babel} \AddToHookWithArguments{env/otherlanguage/begin}{\tagpdfsetup{text/lang=\BCPdata{language}}} \AddToHook{cmd/select@language/after}{\tagpdfsetup{text/lang=\BCPdata{language}}} \usepackage{tagpdf} \tagpdfsetup{activate-all} \tagpdfsetup{math/alt/use} \usepackage{hyperref} \hypersetup{ pdftitle = {Titre}, pdfauthor = {Nom Organisation}, pdfsubject = {Données statistiques – yyyy}, pdfkeywords= {statistiques, 2026}, pdfdisplaydoctitle = true, bookmarks = true, bookmarksopen = true, bookmarksnumbered = true, colorlinks = true, linkcolor = blue, pdflang = {fr-FR} } % --- HEADER: logo top-left --- \setlength{\headheight}{30pt} \fancyhead[L]{% \includegraphics[height=1.5cm,alt={Logo du Organisation}]{example-image} } % Remove header and footer rules \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} % No page numbers \pagenumbering{gobble} % General information % \author[]{} \title{ {\normalsize type.structure}\\ {\Large nom.structure}\\ {\normalsize nom.gestionnaire}\\ {\small address.structure}} % \institute{} \date{} \begin{document} \tagstructbegin{tag=H1} \begin{center} {\normalsize type.structure} {\LARGE \textbf{nom.structure}} {\normalsize nom.gestionnaire} {\small address.structure} \end{center} \tagstructend \vspace{1.5cm} \thispagestyle{fancy} % --- Intro (accessible) --- \section*{Français} Le texte en langue française. Ceci est un lien vers \hyperlink{fr-poster}{un tableau de bord}. \selectlanguage{ngerman} \begin{otherlanguage}{ngerman} \section*{Deutsch} Der Text in deutscher Sprache \end{otherlanguage} \clearpage % --- Poster pages (NOT accessible, marked as artifacts) --- \tagstructbegin{tag=Artifact, alt={Tableau de bord non accessible}} \hypertarget{fr-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \hypertarget{de-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \tagstructend \end{document} The code is compiled with LuaLaTeX using MiKTeX 26.2. My LaTeX version is LaTeX2e <2025-11-01>, L3 programming layer <2026-01-19>. When I test it with a screen reader, instead of reading the text "un tableau de bord", it reads "fr-poster". How do I fix this? Am I missing an alt text? Why isn't it reading the actual text?
- Is there currently a way to use custom lists in slides with ltx-talk class?by ChristopherE on March 18, 2026 at 2:13 pm
The ltx-talk class for slides defines its own basic lists, so that they can be used with overlays. I am interested in using custom lists, for example ones that pre-format dialogue. Doing this in the usual way with enumitem currently fails. A brief example follows. Is there a way to insulate custom lists from the class's baked-in list definitions, so that this will work, by putting them in something like a minipage environment? Failure case \DocumentMetadata{tagging = on, lang = en-us} \documentclass[aspect-ratio=4:3]{ltx-talk} \usepackage{enumitem} \newlist{dialist}{description}{1} \setlist[dialist]{font=\textsc, leftmargin=2cm, style=nextline} \begin{document} \begin{frame} \frametitle{Dialogue} \begin{dialist} \item[Socrates] And your opinion is right, as you can prove in this way: if some one asked you “Is there, Gorgias, a false and a true belief?” you would say, Yes, I imagine. \item[Gorgias] I should. \item[Socrates] But now, is there a false and a true knowledge? \end{dialist} \end{frame} \end{document} error: ! Package enumitem Error: Non standard \item.
- Multiple line title in Accessible PDF - LuaLaTeX, tagpdfby YamiOmar88 on March 18, 2026 at 1:42 pm
I am trying to create an accessible PDF using LaTeX and compiling with LuaLaTeX. For information, this is the top of a log file (I assume the latex version being used): This is LuaHBTeX, Version 1.24.0 (MiKTeX 26.2) (format=lualatex 2026.3.17) 18 MAR 2026 14:30 restricted system commands enabled. LaTeX2e <2025-11-01> L3 programming layer <2026-01-19> My code looks 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} % Fonts and encoding \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} % Graphics (optional) \usepackage{graphicx} \usepackage{pdfpages} % Header / footer \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear header and footer \usepackage{xcolor} \usepackage[colorlinks=true, linkcolor=blue!50!black]{hyperref} \usepackage[ngerman,french]{babel} \usepackage{tagpdf} \tagpdfsetup{activate-all} \tagpdfsetup{math/alt/use} \usepackage{hyperref} \hypersetup{ pdftitle = {Titre}, pdfauthor = {Nom Organisation}, pdfsubject = {Données statistiques – yyyy}, pdfkeywords= {statistiques, 2026}, pdfdisplaydoctitle = true, bookmarks = true, bookmarksopen = true, bookmarksnumbered = true, colorlinks = true, linkcolor = blue, pdflang = {fr-FR} } % --- HEADER: logo top-left --- \setlength{\headheight}{30pt} \fancyhead[L]{% \includegraphics[height=1.5cm,alt={Logo du Organisation}]{example-image} } % Remove header and footer rules \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} % No page numbers \pagenumbering{gobble} % General information % \author[]{} \title{ \normalsize{type.structure}\\ \Large{nom.structure}\\ \normalsize{nom.gestionnaire}\\ \small{address.structure}} % \institute{} \date{} \begin{document} \tagstructbegin{tag=H1} \begin{center} \normalsize{type.structure} \LARGE{\textbf{nom.structure}} \normalsize{nom.gestionnaire} \small{address.structure} \end{center} \tagstructend \vspace{1.5cm} \thispagestyle{fancy} % --- Intro (accessible) --- \section*{Français} Le texte en langue française. \selectlanguage{ngerman} \begin{otherlanguage}{ngerman} \section*{Deutsch} Der Text in deutscher Sprache \end{otherlanguage} \clearpage % --- Poster pages (NOT accessible, marked as artifacts) --- \tagstructbegin{tag=Artifact, alt={Tableau de bord non accessible}} \hypertarget{fr-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \hypertarget{de-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \tagstructend \end{document} Question: I don't know how to properly create the title, that needs to have several lines. The way I did it (without using \maketitle) produces an H1 tag that contains a Part tag. This Part tag contains 4 P tags. It is my understanding that the H1 tag should not contain other tags. How should I be declaring the title instead?
- Multiligual accessible PDF - Language not recognized by screen readersby YamiOmar88 on March 18, 2026 at 11:12 am
I am creating a PDF using LaTeX and compiling with LuaLaTeX. Here is a copy of my code: \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} % Fonts and encoding \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} % Graphics (optional) \usepackage{graphicx} \graphicspath{{/icons}} \usepackage{pdfpages} % Header / footer \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear header and footer \usepackage{xcolor} \usepackage[colorlinks=true, linkcolor=blue!50!black]{hyperref} \usepackage[ngerman,french]{babel} \usepackage{tagpdf} \tagpdfsetup{activate-all} \tagpdfsetup{math/alt/use} \usepackage{hyperref} \hypersetup{ pdftitle = {Titre}, pdfauthor = {Nom Organisation}, pdfsubject = {Données statistiques – yyyy}, pdfkeywords= {statistiques, 2026}, pdfdisplaydoctitle = true, bookmarks = true, bookmarksopen = true, bookmarksnumbered = true, colorlinks = true, linkcolor = blue, pdflang = {fr-FR} } % --- HEADER: logo top-left --- \setlength{\headheight}{30pt} \fancyhead[L]{% \includegraphics[height=1.5cm,alt={Logo du Organisation}]{logo} } % Remove header and footer rules \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} % No page numbers \pagenumbering{gobble} % General information % \author[]{} \title{ \normalsize{type.structure}\\ \Large{nom.structure}\\ \normalsize{nom.gestionnaire}\\ \small{address.structure}} \title{nom.structure} % \institute{} \date{} \begin{document} \tagstructbegin{tag=H1} \begin{center} \normalsize{type.structure} \LARGE{\textbf{nom.structure}} \normalsize{nom.gestionnaire} \small{address.structure} \end{center} \tagstructend \vspace{1.5cm} \thispagestyle{fancy} % --- Intro (accessible) --- \section*{Français} Le texte en langue française. \selectlanguage{ngerman} \begin{otherlanguage}{ngerman} \section*{Deutsch} Der Text in deutscher Sprache \end{otherlanguage} \clearpage % --- Poster pages (NOT accessible, marked as artifacts) --- \tagstructbegin{tag=Artifact, alt={Tableau de bord non accessible}} \hypertarget{fr-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{//dashboard/file_fr_de.pdf} \hypertarget{de-poster}{} \includepdf[pages=2, fitpaper=true, artifact]{//dashboard/file_fr_de.pdf} \tagstructend \end{document} Question: I verify the accessibility on PAC. The PAC version I have doesn't recognize PDF 2.0, but is enough to see if the language is identified. For all tags, the "lang" attribute is empty. If I look at the file using other software (PDF-XChange Editor), the "lang" attribute says "default". I tried the text to speech from Modzilla and it only gets read in french. How an I properly indicate which portions of the text are to be read in German? Thank you for your time and please do not hesitate to answer partially! I really appreciate your help.
- How to create a CJK IDS command that becomes a new word?by 2023 Siri on March 18, 2026 at 11:10 am
I would like to have this command, for example: \ids{⿰钅使} so that even if the character is not included in Unicode, it can still be used to form a new character for display.
- How to cite episodes from a Netflix series in Chicago style?by Nex Oudega on March 18, 2026 at 10:32 am
While working on a paper for university, I came across the problem of wanting to refer to a few episodes from a Netflix series, but not knowing how to format this in the .bib file. I use Zotero to keep track of my references and when I generate a reference from there, everything seems to be fine: However, when I export the references in BibLaTeX format and import them into my .bib file, the bibliography doesn't look right: Charlie Covell is supposed to show as scriptwriter and Georgi Banks-Davies is supposed to be shown as director. That this show is by Netflix also doesn't seem to appear. How would I go about formatting this? This is my code (i.e. how Zotero has formatted it): @misc{banks-davies_episode1_2024, title = {Episode 1}, titleaddon = {Kaos}, publisher = {Netflix}, author = {Banks-Davies, Georgi}, editora = {Covell, Charlie}, editoratype = {collaborator}, date = {2024-08-29}, }
- plain TeX to LaTeX conversionby GowriSaro on March 18, 2026 at 10:22 am
I'm having bunch of Plain TeX equations, few examples given below: $$ a+b=c $$ $$ - {\pi \over 2} < \theta < {\pi \over 2}.\eqno{(1)} $$ $$ \left\{ \matrix{ \dot{\varphi}_1 = \varphi_2 \cr \dot{\varphi}_2 = M^{-1} ( \varphi_1) \cr } \right. , $$ \bye Is there any possibility to convert those to LaTeX format, please advise.
- Space between top of text area and chapter heading using \EditInstance formating (ruled headformat)by polaren on March 18, 2026 at 9:34 am
A follow up question to How to modify the chapter headings using \EditInstance. The accepted answer solved the basic layout, but how can I eliminate the vertical space between the top of the text area and the top rule of the chapter heading when using the ruled headformat? The code written by cfr in the linked question produces The current output has unwanted space above the top rule (see image above), while I want the rule to align with the top of the text area (see image below). MWE 1 (based on cfr’s answer; shows the problem) % Source - https://tex.stackexchange.com/a/760937 % Posted by cfr (edited by polaren) % Retrieved 2026-03-17, License - CC BY-SA 4.0 \DocumentMetadata{% lang=en-GB, pdfstandard=ua-2, pdfversion=2.0, tagging=on, } %%\documentclass{book} \documentclass[11pt,a4paper,twoside,final]{report} \usepackage[margin=25mm,top=24mm,bottom=24mm,nomarginpar,nohead,footskip=11mm]{geometry} \usepackage{showframe}\renewcommand\ShowFrameLinethickness{0.05mm} \usepackage{hyperref} % Needed to pass VeraPDF. \hypersetup{ pdftitle={MWE}, pdfauthor={cfr}, pdfsubject={Answer to First question to LaTeX Stack Exchange.}, } \ExplSyntaxOn \makeatletter \dim_new:N \l__heading_indent_dim \skip_new:N \l__heading_rule_ht_skip \skip_new:N \l__heading_rule_dp_skip \skip_new:N \l__heading_rule_wd_skip \skip_new:N \l__heading_before_rule_skip \skip_new:N \l__heading_after_rule_skip \tl_new:N \l__heading_after_code_tl \tl_new:N \l__heading_before_code_tl \tl_new:N \l__heading_number_title_sep_tl \cs_new_protected_nopar:Npn \__heading_rule: { \tag_mc_end_push: \tag_mc_begin:n {artifact} \hrule height \l__heading_rule_ht_skip width \l__heading_rule_wd_skip depth \l__heading_rule_dp_skip \tag_mc_end: \tag_mc_begin_pop:n {} } \DeclareTemplateInterface{headformat}{ruled}{5} { indent : length = 0pt , before-code : tokenlist = , after-code : tokenlist = , number-title-sep : tokenlist = 20pt , % WWW-HHHH-YYYY ?????????????????? rule-depth : skip = 0.2pt , rule-height : skip = 0.2pt , rule-width : skip = \linewidth , before-rule-sep : skip = 5pt , after-rule-sep : skip = 5pt , } \DeclareTemplateCode{headformat}{ruled}{5} { after-code = \l__heading_after_code_tl , before-code = \l__heading_before_code_tl , indent = \l__heading_indent_dim , number-title-sep = \l__heading_number_title_sep_tl , rule-depth = \l__heading_rule_dp_skip , rule-height = \l__heading_rule_ht_skip , rule-width = \l__heading_rule_wd_skip , before-rule-sep = \l__heading_before_rule_skip , after-rule-sep = \l__heading_after_rule_skip , } { \__head_show_arguments:nnnnn {#1}{#2}{#3}{#4}{#5} \tl_if_empty:oF {#1} { \SetTemplateKeys{headformat}{ruled}{#1} } \group_begin: \UseTaggingSocket{sec/title/begin}{{\int_use:N\l__head_level_int}{#3}} \__heading_rule: \skip_vertical:N \l__heading_after_rule_skip \par \normalfont \normalcolor \interlinepenalty \@M \l__head_decls_tl{} \bool_if:NTF \l__head_unnumbered_bool { \dim_compare:nNnTF \l__heading_indent_dim < \c_zero_skip { \skip_horizontal:N \l__heading_indent_dim \MakeLinkTarget[\l__head_name_tl]{} } { \MakeLinkTarget[\l__head_name_tl]{}\skip_horizontal:N \l__heading_indent_dim } } { \dim_compare:nNnTF \l__heading_indent_dim < \c_zero_skip { \skip_horizontal:N \l__heading_indent_dim \MakeLinkTarget{\l__head_name_tl} } { \MakeLinkTarget{\l__head_name_tl}\skip_horizontal:N \l__heading_indent_dim } \l__head_number_decls_tl #2 \skip_horizontal:n { \l__heading_number_title_sep_tl } } \l__head_title_decls_tl \l__heading_before_code_tl {#3} \l__heading_after_code_tl \par \skip_vertical:N \l__heading_before_rule_skip \__heading_rule: \UseTaggingSocket{sec/title/end} \group_end: } \DeclareInstance{headformat}{ruled}{ruled} { indent = 0pt , before-code = , after-code = , } \makeatother \ExplSyntaxOff \EditInstance{heading}{chapter}{ number-format=\makebox[12mm][l]{\theheading.}, number-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, title-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, after-sep=4mm, %before-sep=0mm, headformat-instance=ruled, decls=\raggedright\parindent 0pt\rmfamily } \EditInstance{headformat}{ruled}{ rule-depth=0.05mm, rule-height=0.05mm, } \usepackage{kantlipsum} \begin{document} \chapter*{Unnumbered Chapter} abc \chapter{Title of Chapter} \kant[1] \end{document} MWE 2 (fragile workaround; desired appearance) \DocumentMetadata{ lang = sv, pdfversion = 2.0, pdfstandard = ua-2, tagging = on, } \documentclass[11pt,a4paper,twoside,final]{report} \usepackage[margin=25mm,top=24mm,bottom=24mm,nomarginpar,nohead,footskip=11mm]{geometry} \usepackage{showframe}\renewcommand\ShowFrameLinethickness{0.05mm} \usepackage[document]{ragged2e} % Needed for compilation. \usepackage{hyperref} % Needed to pass VeraPDF. \hypersetup{ pdftitle={MWE}, pdfauthor={polaren}, pdfsubject={First question to LaTeX Stack Exchange.}, } \EditInstance{heading}{chapter}{ number-format=\makebox[12mm][l]{\theheading.}, number-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, title-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, after-sep=0mm, before-sep=0mm, start-code=\clearpage\vspace*{-10.75mm}\rule{\textwidth}{0.1mm}\newline\vspace*{-18mm}, final-code=\vspace*{-5mm}\rule{\textwidth}{0.1mm}\newline\vspace*{0mm}, headformat-instance=hang, decls=\raggedright\parindent 0pt\rmfamily } \setlength{\parskip}{6pt plus 1pt minus 1pt} %\setlength{\parskip}{0pt} \usepackage{kantlipsum} \begin{document} \chapter*{Unnumbered Chapter} Test. \chapter{Title of Chapter} \kant[1] \end{document} Any suggestions on how to achieve the desired layout using the ruled headformat (rather than manual spacing adjustments) would be greatly appreciated.
- Commutative diagram in xy-picby Olga on March 18, 2026 at 8:08 am
I want to draw a commutative diagram like the figure below using xy-pic package. But I don't know how to draw a vertical arrow \mapsto in xy-pic. Edit: \documentclass{article} \usepackage[all,cmtip]{xy} \newcommand{\tuple}[1]{\langle #1 \rangle} \begin{document} \[\begin{xy} {\ar@{|->}(0,0)*{};(10,0)*{}}; \end{xy}\] \end{document} I know how to draw commutative diagrams in the \begin{CD} ... \end{CD} environment. But I have a big problem understanding the order of commands in xy-pic
- How to define a function which can be used with an underline symbol?by Sunshine on March 18, 2026 at 6:16 am
While using the underbrace command, it works as \underbrace{AAAA}_{bbb} is it possible to define a command \newcommand{\newunder}[2]{\underbrace{#1}_{#2}} so that when I use it, the way is the same as the command underbrace above? \newunder{AAAA}_{bbb}
- Cannot fit long table using longtblrby luchonacho on March 18, 2026 at 1:53 am
Below is a MWE which does not break the table in two pages. I've been playing with the settings inside \begin{longtblr}[]{HERE} but can't figure out the problem. Any ideas? \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{amsmath,amsfonts,amssymb} \usepackage{graphicx} \usepackage[table,xcdraw]{xcolor} \usepackage{bm,setspace} \usepackage{geometry} \usepackage{longtable} \usepackage{booktabs} \usepackage{array} \usepackage{multirow} \usepackage{float} \usepackage{caption} \usepackage{lscape} \usepackage{adjustbox} \usepackage{tabularray} \begin{document} Some text here... \begin{landscape} \singlespacing \begin{longtblr}[ caption = {Some text here very long indeed...}, ]{ stretch=0.9, colspec = lcccccccccccccccccccccccccccc, } \midrule Dependent variable: & \multicolumn{23}{c}{Some text here...} \\ \midrule & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria \\ %\\[-1.8ex] & (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) & (9) & (10) & (11) & (12) & (13) & (14) & (15) & (16) & (17) & (18) & (19) & (20) & (21) & (22) & (23)\\ \hline \\[-1.8ex] A & 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603 \\ & (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567) \\ B & $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259 \\ & (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793) \\ C & 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013 \\ & (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010) \\ D & 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229 \\ & (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136) \\ E & $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049 \\ & (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629) \\ F & 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008 \\ & (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091) \\ G & $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089 \\ & (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080) \\ \hline \\[-1.8ex] Observations & 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19 \\ R$^{2}$ & 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497 \\ Adjusted R$^{2}$ & 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245 \\ \hline \hline \\[-1.8ex] \multicolumn{24}{l}{Note: Significance codes: ***: p<0.01, **: p<0.05, *: p<0.1} \\ \end{longtblr} \end{landscape} \end{document}
- Projective limit spanish acute accentby Esteban Saldarriaga-Marin on March 17, 2026 at 7:24 pm
I am using babel package with Spanish style (in amsart class), which puts acute accents in math symbols such as \lim, \max, \inf, etc. It is actually nice, because it keeps all the formatting in the same language and style. However, it doesn't put the accent in \varprojlim, which doesn't go with the general layout. Is it possible to make \varprojlim have the accent as everything else? MWE: \documentclass{amsart} \usepackage[spanish]{babel} \usepackage{amssymb,amsfonts,amsmath} \begin{document} \[ \lim \; \inf \; \max \] \[ \varprojlim \] \end{document} Result:
- tikz, scaling widths of linesby Zarko on March 17, 2026 at 2:39 pm
It seems (or is apparently) that thickness of lines is hart coded. Consequently at driving of an line, the use for example scale=2 make line only longer and its thickens is not changes, see MWE below: \documentclass[margin=3mm, varwidth]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \tikzset{LA/.style = {-Straight Barb, line width=1mm}} \begin{document} \begin{tikzpicture} \draw[LA] (0,0) -- ++ (2,0); \end{tikzpicture} \begin{tikzpicture}[scale=2] \draw[LA] (0,0) -- ++ (2,0); \end{tikzpicture} \end{document} Does exist some trick by which will be scaled thickness of line too? The best way would be as option of the line style, which will has effect just on this particular line. My quick search on site so far didn't give me any suggestion ...
- TikZ / xint: break a loop at the second term, which is 1.0000by cis on March 17, 2026 at 11:34 am
The following loop is an example of a loop that, starting from a certain sequence member, is rounded to 1.0000. How can I break the loop at the second term, which is 1.0000 (in this example, that's the 13th)? Note: I'm using TikZ and xint; both are possible options. \documentclass[margin=5pt, varwidth]{standalone} \usepackage{tikz} \usepackage{xintexpr} \begin{document} \foreach \x in {1,...,15}{%% \x: \xintround{4}{\xinteval{1-exp(-\x/1.2)}}\par }%% \end{document}
- How to use twocolumn-mode after paracols without a pagebreakby Niranjan on March 17, 2026 at 10:31 am
I have the following code: \documentclass{article} \usepackage{graphicx} \usepackage{microtype} \usepackage{xcolor} \usepackage{paracol} \usepackage{kantlipsum} \begin{document} \title{Sample title} \author{Sample author} \maketitle \begin{paracol}{2} \kant[1-2]% \switchcolumn \color{green}% \kant[1-3]% \end{paracol} \medskip \noindent\rule{\linewidth}{0.5pt} \medskip \begingroup \let\clearpage\relax \twocolumn \endgroup \kant[1-2] \begin{figure*}[t]% \centering \includegraphics{example-image-a}% \caption{Test figure}% \end{figure*} \kant[3-4] \end{document} The objective is to start the twocolumn mode just after the paracols are finished. Please note that this is used inside a production environment and I don't really have any control over the content. It is generated in a non-standard syntax and it should be treated as it is. What I mean is, in this case, please abstain from editing the sample text \kant and the sample float in any way. I want a solution that will externally process the content exactly as I have written it and still give the expected results. I can't use multicol package as I need to use table* and figure* environments which are not supported with that package. Is there any way to prevent the twocolumn text from overlapping with the paracols text? Is there any other package that supports this kind of typesetting?
- How to correctly place a label on a bent arrow using to[bend] in TikZby Bubble Man on March 17, 2026 at 5:40 am
I draw an arrow with a label like this. \documentclass[dvipdfmx]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[auto=left] \node[name=A] at (0,0) {$A$}; \node[name=B] at (1,0) {$B$}; \draw[->] (A) -- (B) node[pos=0.5]{$f$}; \end{tikzpicture} \end{document} I like this notation because the order is “a coordinate, a coordinate, and a label.” This is more readable than “a coordinate, a label, and a coordinate.” I want to bend the arrow while keeping this order. I tried the following: \documentclass[dvipdfmx]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[auto=left] \node[name=A] at (0,0) {$A$}; \node[name=B] at (1,0) {$B$}; \draw[->] (A) to[bend left=30] (B) node[pos=0.5]{$f$}; \end{tikzpicture} \end{document} However, this does not work properly—the label appears at coordinate A. I know I can achieve this with a \newcommand, but is there another way? Thank you.
- Trimming causes compilation failureby BambOo on March 16, 2026 at 2:59 pm
I'm using https://tex.stackexchange.com/a/647838/141947 to operate over a list of image files to include them easily in a document. For some reason, adding a trim option to \includegraphics results in a compilation failure with File ended while scanning use of \Gread@parse@vp Why does it break ? MWE \documentclass{article} \usepackage{graphicx} \ExplSyntaxOn \NewDocumentCommand{\plotloop}{O{.}m} {% #1 = common prefix, default . for the current directory % #2 = list of file names \clist_map_inline:nn { #2 } { \begin{figure}[p] \centering \includegraphics[scale=1, angle=90]{example-image-##1} % Works % \includegraphics[scale=1, angle=90, trim={0cm 0cm 0cm 0cm},clip]{example-image-##1} % Fails \caption{Left~\protect\detokenize\expandafter{example-image-##1}} \end{figure} \begin{figure}[p] \centering \includegraphics[{scale=1, angle=90}]{example-image-##1} \caption{Right~\protect\detokenize\expandafter{example-image-##1}} \end{figure} } } \ExplSyntaxOff \begin{document} \plotloop{a,b,c} \end{document}
- Theorem citation style [duplicate]by Davide on March 15, 2026 at 12:23 pm
I would like to cite theorems in my manuscript by specifying the reference in the theorem title. I tried using the following code: \begin{theorem}[{\cite[Thm.~2.5]{reference_paper}}] Statement of the theorem \end{theorem} or \begin{theorem} \cite[Thm.~2.5]{reference_paper}. Statement of the theorem \end{theorem} These produce the first two results shown in the attached image, but I would prefer something similar to the third row. Being able to remove the space after '(' in the first example would also be fine. Do you have any suggestions? Thanks in advance! This question is similar to this, but I do not want to specify the number manually and was looking for a more LaTeX-style way of doing it.
- Count spaces in LaTeXby Vincent on March 12, 2026 at 7:11 pm
I would like to create a fast/optimized fully expandable function that counts the number of spaces in an argument: \documentclass{article} \begin{document} \countspaces{ A B } % Should return 3 (1 is ok too if leading and trailing spaces are removed) \countspaces{A \mycommand B} % Should return 2 (\mycommand is not expanded) \countspaces{A {a b c} B} % Should return 2 (spaces inside groups are not counted) \end{document} Explicit spaces should be counted too. How to achieve that?