Week
- How to make the 7th and 8th author align on the space?by Alastair Stratford on September 10, 2026 at 4:58 pm
I hope you get this since I'm really bad at explaining. I get this LaTeX code from IEEE, and it only has 6 authors on the template. I am setting this since I'm transferring our research, and we are 8 authors. The thing is, the spacing is really off, and I want to align it in the spaces that the 1st-6th author, like the two spaces between the authors. PS: IEEE Conference template was the provided template given to us. I actually don't know why also. \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts % The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out. \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{xcolor} \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} \begin{document} \title{Conference Paper Title*\\ {\footnotesize \textsuperscript{*}Note: Sub-titles are not captured in Xplore and should not be used} \thanks{Identify applicable funding agency here. If none, delete this.} } \author{\IEEEauthorblockN{1\textsuperscript{st} Given Name Surname} \IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\ \textit{name of organization (of Aff.)}\\ City, Country \\ email address or ORCID} \and \IEEEauthorblockN{2\textsuperscript{nd} Given Name Surname} \IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\ \textit{name of organization (of Aff.)}\\ City, Country \\ email address or ORCID} \and \IEEEauthorblockN{3\textsuperscript{rd} Given Name Surname} \IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\ \textit{name of organization (of Aff.)}\\ City, Country \\ email address or ORCID} \and \IEEEauthorblockN{4\textsuperscript{th} Given Name Surname} \IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\ \textit{name of organization (of Aff.)}\\ City, Country \\ email address or ORCID} \and \IEEEauthorblockN{5\textsuperscript{th} Given Name Surname} \IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\ \textit{name of organization (of Aff.)}\\ City, Country \\ email address or ORCID} \and \IEEEauthorblockN{6\textsuperscript{th} Given Name Surname} \IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\ \textit{name of organization (of Aff.)}\\ City, Country \\ email address or ORCID} \and \IEEEauthorblockN{7\textsuperscript{th} Given Name Surname} \IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\ \textit{name of organization (of Aff.)}\\ City, Country \\ email address or ORCID} \and \IEEEauthorblockN{8\textsuperscript{th} Given Name Surname} \IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\ \textit{name of organization (of Aff.)}\\ City, Country \\ email address or ORCID} } \maketitle \end{document}
- Small caps with Linux Libertine 0by user242399 on September 10, 2026 at 10:50 am
I am writing a document using XeLaTeX and I use fontspec with Linux Libertine O as the main font. When I use small caps (\textsc), the text looks correct in the compiled document, but if I copy and paste the text, the characters K and R are uppercase and the rest lowercase. This is what it looks like in the compiled document: This is what the text looks like if I copy and paste it somewhere else: I would like to know what causes this and if there is any way to unify it, either all uppercase or all lowercase. \documentclass{article} \usepackage{fontspec} \setmainfont{Linux Libertine O} \begin{document} \textsc{abcdefghijklmnopqrstuvwxyz} \end{document}
- Accessibility: alt-text for a math environmentby Danner on September 9, 2026 at 8:31 pm
As I want a client who uses a screen reader to have a nice experience, I want to somehow overwrite the alt-text(*see edit) of a whole math environment. All examples that I have seen add alt text to a figure or tikzcd etc. I have a long equation that I am spreading across multiple lines. One might use the packages Breqn or Tabstackengine to typeset this, but I don't think these generate alt-text (per https://latex3.github.io/tagging-project/tagging-status/). How do I do this? What are the complicating factors? *EDIT: I have been convinced: I must do tagging. To that end, I did basic research. Tug 2021 Frank Mittelbach’s “Taming the Beast: Advances in paragraph tagging with pdfTeX and XeTeX” PDF Days Europe 2025 Ulrike Fischer & Frank Mittelbach’s “Tagged and Accessible PDF with LaTeX — revisited” The documentation for the tagpdf research package The tagging project instructions: Using Latex to produce accessible pdf Here is a minimal working example \documentclass[letterpaper, oneside, 12pt, openany]{book} % For special alignment of math % This is very helpful for typesetting elementary algebra \usepackage{tabstackengine} \usepackage{mathtools} \DeclareMathOperator{\Conjunct}{\textup{ and }} \DeclareMathOperator{\Followedby}{;} \begin{document} %visual ouptut \[ (P \Followedby Q) \Followedby R = \left\{ x \in S \middle| \Centerstack[l]{% $P_1(x) \Conjunct $ \\$P_2(x) \Conjunct $ \\$P_3(x)$}\right\} \] %alt text should be this \[ (P \Followedby Q) \Followedby R = \left\{ x \in S \middle| P_1(x) \Conjunct P_2(x) \Conjunct P_3(x)\right\} \] \end{document} and the output
- How to get exact normal line spacing before and after a block quote when changing font size and spacing?by Tacerface on September 9, 2026 at 3:32 pm
Hello everyone, I am looking for a clean way to format block quotes in my document, specifically ensuring that the vertical spacing remains completely symmetric and matches the surrounding text. My main document uses a line spacing of 1.5 (via the setspace package) and a standard font size of 11pt. For my block quotes, I need a custom environment that applies the following formatting: 1 cm indentation on both the left and right sides A smaller font size of 10pt Single line spacing Italic text What I am trying to achieve: I am looking for a clean way to define this environment. Crucially, I want the vertical space exactly above and below the quote to perfectly match the normal text's line spacing (the 1.5 spacing of the main text). How can I define this custom environment? Any help is greatly appreciated!!!!!! \documentclass[11pt,a4paper]{article} \usepackage{setspace} \usepackage{quoting} \usepackage{lipsum} \newenvironment{block}{% \par\setstretch{1} \begin{quoting}[font={itshape, small},indentfirst=false,leftmargin=1cm] }{\end{quoting}} \setstretch{1.5} \begin{document} \lipsum[1][1-4] \begin{block} \lipsum[2][1-5] \end{block} \lipsum[3] \end{document}
- trying to understand xcolor colorletby JamesM on September 9, 2026 at 3:28 pm
I'm having difficulty understanding the use of the ! operator in xcolor: as I understand it from reading around (including xcolor documentation, but not the code itself): \colorlet{newcolour}{red!60} creates a color which is 60% red and the remainder (40% I guess) white. OK. \colorlet{newcolour}{red!60!blue} is 60% red and 40% blue - is that right? But why is this different from \colorlet{newcolour}{red!60!blue!40}? Here is a MWE, and all 4 colours ought to be the same (from my understanding, which is obviously wrong). Can someone explain? \documentclass{standalone} \usepackage{xcolor} \colorlet{mycolorA}{red!60!blue} \colorlet{mycolorB}{red!60!blue!40!} \colorlet{mycolorC}{red!60!blue!40!green!} \colorlet{mycolorD}{red!60!blue!40!green!0} \begin{document} \Large \parbox{0.75\textwidth}{ Here is the test: \color{mycolorA} mycolorA = \{red!60!blue\} is this \color{mycolorB} mycolorB = \{red!60!blue!40\} is this \color{mycolorC} mycolorC = \{red!60!blue!40!green\} is this \color{mycolorD} mycolorD = \{red!60!blue!40!green!0\} is this \color{black} the colorD line, but in black, reads: \\ mycolorD = \{red!60!blue!40!green!0\} is this (it's invisible!) } \end{document} Giving
- Reason for char2path bug in the handler with space from TikZ in the latest TL26?by Explorer on September 9, 2026 at 2:36 pm
I have the following code: \documentclass{article} \usepackage{char2path} \begin{document} x \end{document} It works fine with TL26(the frozen version in March, or says with Overleaf,TL26), but complained that with the lastest one: ! Package pgfkeys Error: I do not know the key '/tikz/cs/point/.storein', to wh ich you passed '\tikz@cs@point ', and I am going to ignore it. Perhaps you miss pelled it. See the pgfkeys package documentation for explanation. Type H <return> for immediate help. ... l.410 \tikzset{cs/point/.store in=\tikz@cs@point} % ? I opened the issue here, but I was wonder what is changed here, to prevent the handler /.store in was used in the package? It looks like a breaking change for me. Here below are two lists of the \listfiles: List 1. worked. *File List* article.cls 2025/01/22 v1.4n Standard LaTeX document class size10.clo 2025/01/22 v1.4n Standard LaTeX file (size option) char2path.sty 2025-07-28 v1.0.0 A LaTeX package that converts characters into TikZ paths tikz.sty 2025-08-29 v3.1.11a (3.1.11a) pgf.sty 2025-08-29 v3.1.11a (3.1.11a) pgfrcs.sty 2025-08-29 v3.1.11a (3.1.11a) pgfrcs.code.tex pgfcore.sty 2025-08-29 v3.1.11a (3.1.11a) graphicx.sty 2026-05-17 v1.2e Enhanced LaTeX Graphics (DPC,SPQR) keyval.sty 2026-05-17 v1.15 key=value parser (DPC) graphics.sty 2026-05-17 v1.4h Standard LaTeX Graphics (DPC,SPQR) trig.sty 2023/12/02 v1.11 sin cos tan (DPC) graphics.cfg 2016/06/04 v1.11 sample graphics configuration pdftex.def 2025/09/29 v1.2d Graphics/color driver for pdftex pgfsys.sty 2025-08-29 v3.1.11a (3.1.11a) pgfsys.code.tex pgfsyssoftpath.code.tex 2025-08-29 v3.1.11a (3.1.11a) pgfsysprotocol.code.tex 2025-08-29 v3.1.11a (3.1.11a) xcolor.sty 2024/09/29 v3.02 LaTeX color extensions (UK) color.cfg 2016/01/02 v1.6 sample color configuration mathcolor.ltx pgfcore.code.tex pgfcomp-version-0-65.sty 2025-08-29 v3.1.11a (3.1.11a) pgfcomp-version-1-18.sty 2025-08-29 v3.1.11a (3.1.11a) pgffor.sty 2025-08-29 v3.1.11a (3.1.11a) pgfkeys.sty pgfkeys.code.tex pgfmath.sty pgfmath.code.tex pgffor.code.tex tikz.code.tex etoolbox.sty 2025/10/02 v2.5m e-TeX tools for LaTeX (JAW) l3backend-pdftex.def 2026-02-18 L3 backend support: PDF output (pdfTeX) supp-pdf.mkii epstopdf-base.sty 2020-01-24 v2.11 Base part for package epstopdf epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live *********** List 2. Not worked... *File List* article.cls 2025/01/22 v1.4n Standard LaTeX document class size10.clo 2025/01/22 v1.4n Standard LaTeX file (size option) char2path.sty 2025-07-28 v1.0.0 A LaTeX package that converts characters int o TikZ paths tikz.sty 2026-08-01 v3.1.12 (3.1.12) pgf.sty 2026-08-01 v3.1.12 (3.1.12) pgfrcs.sty 2026-08-01 v3.1.12 (3.1.12) pgfutil-common.tex pgfutil-latex.def pgfrcs.code.tex pgf.revision.tex pgfcore.sty 2026-08-01 v3.1.12 (3.1.12) graphicx.sty 2026-05-17 v1.2e Enhanced LaTeX Graphics (DPC,SPQR) keyval.sty 2026-05-17 v1.15 key=value parser (DPC) graphics.sty 2026-05-17 v1.4h Standard LaTeX Graphics (DPC,SPQR) trig.sty 2023/12/02 v1.11 sin cos tan (DPC) graphics.cfg 2016/06/04 v1.11 sample graphics configuration pdftex.def 2025/09/29 v1.2d Graphics/color driver for pdftex pgfsys.sty 2026-08-01 v3.1.12 (3.1.12) pgfsys.code.tex pgfkeys.code.tex pgfkeyslibraryfiltered.code.tex pgf.cfg 2026-08-01 v3.1.12 (3.1.12) pgfsys-pdftex.def 2026-08-01 v3.1.12 (3.1.12) pgfsys-common-pdf.def 2026-08-01 v3.1.12 (3.1.12) pgfsyssoftpath.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfsysprotocol.code.tex 2026-08-01 v3.1.12 (3.1.12) xcolor.sty 2024/09/29 v3.02 LaTeX color extensions (UK) color.cfg 2016/01/02 v1.6 sample color configuration mathcolor.ltx pgfcore.code.tex pgfmath.code.tex pgfmathutil.code.tex pgfmathparser.code.tex pgfmathfunctions.code.tex pgfmathfunctions.basic.code.tex pgfmathfunctions.trigonometric.code.tex pgfmathfunctions.random.code.tex pgfmathfunctions.comparison.code.tex pgfmathfunctions.base.code.tex pgfmathfunctions.round.code.tex pgfmathfunctions.misc.code.tex pgfmathfunctions.integerarithmetics.code.tex pgfmathcalc.code.tex pgfmathfloat.code.tex pgfint.code.tex pgfcorepoints.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcorepathconstruct.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcorepathusage.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcorescopes.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcoregraphicstate.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcoretransformations.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcorequick.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcoreobjects.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcorepathprocessing.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcorearrows.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcoreshade.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcoreimage.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcoreexternal.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcorelayers.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcoretransparency.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcorepatterns.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcorerdf.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfmoduleshapes.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfmoduleplot.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfcomp-version-0-65.sty 2026-08-01 v3.1.12 (3.1.12) pgfcomp-version-1-18.sty 2026-08-01 v3.1.12 (3.1.12) pgffor.sty 2026-08-01 v3.1.12 (3.1.12) pgfkeys.sty pgfkeys.code.tex pgfmath.sty pgfmath.code.tex pgffor.code.tex tikz.code.tex pgflibraryplothandlers.code.tex 2026-08-01 v3.1.12 (3.1.12) pgfmodulematrix.code.tex 2026-08-01 v3.1.12 (3.1.12) tikzlibrarytopaths.code.tex 2026-08-01 v3.1.12 (3.1.12) etoolbox.sty 2025/10/02 v2.5m e-TeX tools for LaTeX (JAW) tikzlibrarypatterns.code.tex 2026-08-01 v3.1.12 (3.1.12) pgflibrarypatterns.code.tex 2026-08-01 v3.1.12 (3.1.12) tikzlibraryfadings.code.tex 2026-08-01 v3.1.12 (3.1.12) pgflibraryfadings.code.tex 2026-08-01 v3.1.12 (3.1.12) tikzlibrarycalc.code.tex 2026-08-01 v3.1.12 (3.1.12) l3backend-pdftex.def 2026-08-10 L3 backend support: PDF output (pdfTeX) supp-pdf.mkii epstopdf-base.sty 2020-01-24 v2.11 Base part for package epstopdf epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live *********** Edit I found a simpler version: \documentclass{article} \usepackage{tikz} \ExplSyntaxOn \usetikzlibrary{calc} \ExplSyntaxOff \begin{document} x \end{document} My follow-up question is, it looks like a breaking change for me... Would this change break plenty of packages? Because before 2026, maybe March(?) It's allowed to put \usetikzlibrary{calc} within .dtx(or expl3 environment,which leave off <space>) directly? But now not allowed? The most immediate impression seems to be that the author of dtx needs to make an additional protective switch due to the use of \usetikzlibrary{calc}? I don't think that is convenient....
- When I use "\d{ð}" to get letter "eth" with dot below, the dot appears under the previous letterby David Graff on September 8, 2026 at 10:44 pm
Here's the "minimal" example. I'm working on an Arabic-to-English dictionary, so I need English, Arabic and Phonetic Alphabet. The parts of the example that involve Arabic are commented out, and apparently don't affect the underdot problem. \documentclass[notitlepage]{article} \usepackage[english,arabic]{babel} % \usepackage{luabidi} \usepackage{titlesec} \usepackage{textcomp} \usepackage{fontspec} \babelfont[*english, *arabic]{rm}{Times New Roman} \begin{document} \pagestyle{empty} % \paragraph{\RLE{أظرَف}} blah blah. % \RLE{ ماأَظرفِك... مِالصّين.} [ma\d{ð}irfik ... ʔi\d{s}\d{s}ħan ... miṣṣiːn.] Blah blah. \end{document} I'm using LuaLaTeX. Note that the example uses both "ṣ" and "\d{s}", and these are rendered correctly, but the dot for ð appears under the preceding "a".
- Vertically center table cells containing characters with no descenders or rotated textby user448253 on September 8, 2026 at 6:50 pm
In the example below the horizontal centering (\tabcolsep=1pt) works fine but how to do the same vertically for the rotated text "Donnes" and for the other lines (no descenders: depth should be set to 0). There should be a gap of (1pt) above and below the fboxes. \documentclass{article} \usepackage{boldline} \usepackage[utf8]{inputenc} \usepackage{rotating} \fboxrule=0.01pt % hair rule \fboxsep=-\fboxrule % don't add to the box dimensions \newcommand{\myTurnA}[1]{\fbox{\rotatebox[origin=c]{90}{#1}}} \newcommand{\myTurnB}[1]{\fbox{\rotatebox[origin=c]{-90}{#1}}} \newcommand{\myItem}[1]{\fbox{#1}} \begin{document} \begin{center} \begin{table} \centering \setlength{\tabcolsep}{1pt} \setlength{\extrarowheight}{0pt} \begin{tabular}{V{3}cV{3}c|c|c|cV{3}} \hlineB{3} \myTurnA{Tour} & \myTurnA{Table} & \myTurnB{Donnes} & \myTurnB{Vs} & \myTurnB{Relais} \\ \hlineB{3} \myItem{1} & \myItem{1} & \myItem{4-6} & \myItem{EO 2} & \myItem{-}\\ \hline \myItem{2} & \myItem{21} & \myItem{4-6} & \myItem{EO 22} & \myItem{7}\\ \hlineB{3} \end{tabular} \end{table} \end{center} \end{document}
- nicematrix column count errorby ebcontrol on September 8, 2026 at 1:47 pm
The following code compiles correctly, but there is a warning in the log file: Package nicematrix Warning: Columns not used. (nicematrix) The preamble of your environment {NiceTabular} is (nicematrix) '| >{$}c<{$} | >{$}l<{$} |'. It announces 4 (nicematrix) columns but you only used 2. The columns that you (nicematrix) did not used won't be created. You won't have (nicematrix) similar warning till the end of the document. The code as below: \documentclass{standalone} \usepackage{nicematrix} \begin{document} \begin{NiceTabular}{| >{$}c<{$} | >{$}l<{$} |} \text{Variable} & \text{Formula} \\ \hline x & g^3(y) = \sqrt{y} \end{NiceTabular} \end{document}
- Composite function diagramby D G on September 8, 2026 at 10:59 am
Expected result: Except for the order of composition. Need help for: middle arrows intersection regions with color and labels adding cutting curve in the most right ellipse \documentclass[tikz,border=1cm,12pt]{standalone} \usepackage{fouriernc} \usetikzlibrary{calc,positioning,shapes.geometric} \tikzset{ elps/.style 2 args={ draw, ellipse, minimum width=#1, minimum height=#2 }, node distance=3cm, >=latex } \begin{document} \begin{tikzpicture} \node(Df) [elps={3cm}{5cm},label={above:$D_f$}] {}; \node(Rf) [elps={3cm}{5cm},right=of Df,label={above:$R_f$}] {}; \node(fiDg) [elps={3cm}{5cm},below=-2cm of Df,label={below:$f^{-1}\left(D_g\right)$}] {}; \node(Dg) [elps={3cm}{5cm},below=-2cm of Rf,label={below:$D_g$}] {}; \node(Rg) [elps={3cm}{5cm},right=of Dg,label={below:$R_g$}] {}; \draw[->] (Df) to[bend left=30] node[above] {$f$} (Rf); \draw[->] (Dg) to[bend left=30] node[above] {$g$} (Rg); \draw[->] (Dg) to[bend left=30] node[above] {$f^{-1}$} (fiDg); \end{tikzpicture} \end{document}
- Memoir: Why does the placement of \usepackage[T1]{fontenc} affect the page layout when using \linespread in memoir?by user1362373 on September 8, 2026 at 8:59 am
In memoir, I noticed that when I use \linespread command, the placement of \usepackage[T1]{fontenc} affects the page layout. Consider the following MWE: \documentclass[a4paper,10pt]{memoir} \usepackage[T1]{fontenc} \usepackage[osf]{newpx} \linespread{1.05} \usepackage{lipsum} \checkandfixthelayout \begin{document} \typeout{The value of baselineskip is \the\baselineskip} \typeout{The value of topskip is \the\topskip} \typeout{The value of parskip is \the\parskip} \lipsum[1-6] \end{document} The relevant lines in the output of \checkandfixthelayout are: Text height and width: 598pt by 341pt Upper and lower margins: 125.33748pt and 121.70937pt If I change the order of the lines to \usepackage[osf]{newpx} \linespread{1.05} \usepackage[T1]{fontenc} I get Text height and width: 602.20172pt by 341pt Upper and lower margins: 125.33748pt and 117.50764pt The values of \baselineskip, \topskip and \parskip are not changed. Thus, the order affects the text height and the lower margin (with the sum being unaffected). If I remove the \linespread command, the order of using fontenc and newpx makes no difference. What's the explanation for this behaviour? (Background: I use \linespread{1.05} because this is what was recommended by the LaTeX font catalogue for URW Palladio, which is the font I used before switching to newpx in response to @egreg's answer. The usage example for URW Palladio had the order \usepackage{mathpazo}, \linespread{1.05} and \usepackage[T1]{fontenc}. I noticed the effect of the order when I tried to find the cause for different page layouts after switching from mathpazo to newpx.)
- What set of paper-size value does \newgeometry inherit fromby lyl on September 8, 2026 at 4:28 am
By the following codes, I want my third page to restore geometry to the set of first page(margin=3in) except that top size changes to 0.1in(\restorgeometry and then \newgeometry), that is to say, the left/right/bottom margin is 3in, and the top margin is 0.1in. The output shows that the left/right margin size is different from both the first and second page. I'm confused. what value on earth dees the second \newgeometry inherit from? And how to make some small changes on base of original page set? \documentclass[a4paper]{article} \usepackage{geometry} \geometry{showframe} \geometry{margin=3in} \begin{document} first page, margin=3in\clearpage \newgeometry{margin=1in} second page, margin=1in\clearpage \restoregeometry \newgeometry{top=0.1in} third page, inheritance of left/right margin from the first page(by \string\restorgeometry) is wanted, but seems from neither first nor second page. \end{document}
- Redefine a math operator already defined in mismathby murray on September 8, 2026 at 1:00 am
I use the mismath package, which among other math operators, defines \card, but with a definition different from the one I want, which is simply: \DeclareMathOperator{\card}{card} To effect this substitute definition, I tried the two methods given by @egreg in https://tex.stackexchange.com/a/175272/13492, but neither works as desired. This source shows both methods: % !TEX program = lualatex \NeedsTeXFormat{LaTeX2e}[2026-06-01] \documentclass{article} \usepackage{mismath} \usepackage{amsfonts} %% Need different def of \card from mismath % Method 1 (egreg) \let\card\relax% Different \card defined in mismath! \DeclareMathOperator{\card}{card} % Method 2 (egreg) %% Define \RedeclareMathOperator \makeatletter \newcommand\RedeclareMathOperator{% \@ifstar{\def\rmo@s{m}\rmo@redeclare}{\def\rmo@s{o}\rmo@redeclare}% } % this is taken from \renew@command \newcommand\rmo@redeclare[2]{% \begingroup \escapechar\m@ne\xdef\@gtempa{{\string#1}}\endgroup \expandafter\@ifundefined\@gtempa {\@latex@error{\noexpand#1undefined}\@ehc}% \relax \expandafter\rmo@declmathop\rmo@s{#1}{#2}} % This is just \@declmathop without \@ifdefinable \newcommand\rmo@declmathop[3]{% \DeclareRobustCommand{#2}{\qopname\newmcodes@#1{#3}}% } \@onlypreamble\RedeclareMathOperator \makeatother % Uncomment next line for Method 2 %\RedeclareMathOperator{\card}{card} \begin{document} We have $\card(\mathbb{Z}) = \aleph_{0}$. \end{document} The first method, using \let\card\relax, gives the desired output, but produces this warning: Package mismath Warning: Command \card already exists (mismath) and will not be redefined. The second method (comment out that \let... line and uncomment the \RedeclareMathOperator line) does not allow compilation, causing the error: /card.tex:33: LaTeX Error: \card undefined. Is there some satisfactory way to do this still using \DeclareMathOperator or a variant thereof? Note that the mismath package makes its math operator definition thusly: \AtBeginDocument{\mm@macro{card}{\abs}} where the package defines: \newcommand\mm@macro[2]{ \@ifundefined{#1}{ \expandafter\def\csname #1\endcsname{#2} }{\mm@warning{#1}} }
- Use shared counter for theorem environments in ltx-talkby mathmandan on September 7, 2026 at 5:49 pm
Consider the following example: \DocumentMetadata{%uncompress, language = en-US, % pdfversion = 2.0, % pdfstandard = {ua-2, A-4f}, % tagging = on, % tagging-setup = {math/setup=mathml-SE, extra-modules={verbatim-mo}} % } \documentclass{ltx-talk} %\usepackage{amsthm} % optional \newtheorem{thrm}{Theorem} \newtheorem{prop}{Proposition} % separate counters for Theorems and Propositions %\newtheorem{prop}[thrm]{Proposition} % shared counter; raises error \begin{document} \begin{frame} \begin{thrm} The limit of a sum is the sum of the limits. \end{thrm} \begin{prop} The limit of a difference is the difference of the limits. \end{prop} \end{frame} \end{document} This compiles as expected, and shows Theorem 1 and Proposition 1. Now suppose I want Theorems and Propositions to share a counter, so that I would get Theorem 1 followed by Proposition 2. In the past I have done this by replacing \newtheorem{prop}{Proposition} by \newtheorem{prop}[thrm]{Proposition}. (In the above example, comment out one line and un-comment another.) Unfortunately this raises an error for me: ! Undefined control sequence. <argument> \exp:not:n {[{thrm}]} l.17 The shared counter syntax shown above works fine for me in article class documents, and I'm pretty sure it worked for me in an ltx-talk document, as of at least July 2, 2026 (so after the 2026-06-01 LaTeX kernel release). (I am using LuaLaTeX, in a TeXLive installation, up-to-date as of September 7, 2026.) How can I make separate theorem environments share a counter in ltx-talk?
- Hairpins decrescendo horizontal width not working in Musixtexby ABV on September 7, 2026 at 3:46 pm
It is needed to implement Hairpins decrescendo with custom horizontal width in Musixtex. The basic code is as follow: \documentclass[12pt]{article} % ========== FORMATO DE PÁGINA: A4 VERTICAL ========== \usepackage[a4paper,portrait,left=0.4cm,right=0.2cm,top=0.2cm,bottom=0.2cm]{geometry} \pagestyle{empty} % ========== PAQUETES ========== \usepackage{tikz} \usetikzlibrary{quotes} \usetikzlibrary{shapes} \usetikzlibrary{fit,positioning} \usetikzlibrary{arrows.meta} \usetikzlibrary{decorations} \usepackage{amsmath} \usepackage{xcolor} \usetikzlibrary{calc} \usepackage{musicography} \usepackage{musixtex} \input musixper \input musixlyr \input musixjt %\input musixps \xdefinecolor{red-undar}{RGB}{179,35,79} \begin{document} \begin{music} \centerline{\Bigtype R\,A\,Í\,C\,E\,S\,\,\,\,\,\,\,D\,E\,L\,\,\,\,\,\,\,F\,E\,S\,T\,E\,J\,O} \vskip1ex % ========== CONFIGURACIÓN GLOBAL ========== \parindent15mm% \staffbotmarg9\Interligne \font\B=phvb8t at 12pt \font\A=phvb8t at 10pt \A% \setsongraise1{7mm} \setstaffs1{1} \setlines{1}{5} \setclef{1}{\treble} \setclefsymbol{1}{\drumclef}% \generalmeter{\meterfrac{12}8}% \setname1{% \begin{tikzpicture}[baseline] \node[align=center, font=\A, inner sep=0pt, yshift=4mm] {Cajón\\Peruano}; \end{tikzpicture}% } %\nobarnumbers% \systemnumbers% \def\raisebarno{5\internote}% % acerca el número al pentagrama \def\shiftbarno{-5pt}% % posición horizontal \def\writebarno{\eightrm\the\barno\barnoadd}% quita el recuadro, usa texto simple \startrule % ancho de sistema = ancho del texto de la página A4 (sin sobreancho) % ========== SISTEMA 1 (6 compases) ========== %\setcrescheight{-7\Internote} \startpiece \notes\usf p\ibu0i0\qb0{fj}\tbu0\qb0f\en%\bar \notes\ibu0i0\qb0{f}\tbu0\qb0f\ds\en%\bar \notes\ibl0i0\qb0{j}\tbl0\qb0j\ds\en%\bar \notes\ibu0i0\qb0{f}\tbu0\qb0f\ds\en\bar%Fin motivo Festejo %Inicio motivo Festejo \notes\icresc\usf p\ibu0i0\qb0{fj}\tbu0\qb0f\en%\bar \notes\ibu0i0\qb0{f}\tbu0\qb0f\ds\en%\bar \notes\ibl0i0\qb0{j}\tbl0\qb0j\ds\en%\bar \notes\ibu0i0\qb0{f}\tbu0\qb0f\ds\en\bar%Fin motivo Festejo %Inicio motivo Festejo \notes\usf p\ibu0i0\qb0{fj}\tbu0\qb0f\en%\bar \notes\ibu0i0\qb0{f}\tbu0\qb0f\ds\en%\bar \notes\ibl0i0\qb0{j}\tbl0\qb0j\ds\en%\bar \notes\ibu0i0\qb0{f}\tbu0\qb0f\ds\en\bar%Fin motivo Festejo %Inicio motivo Festejo \notes\usf p\ibu0i0\qb0{fj}\tbu0\qb0f\en%\bar \notes\ibu0i0\qb0{f}\tbu0\qb0f\ds\en%\bar \notes\ibl0i0\qb0{j}\tbl0\qb0j\ds\en%\bar \notes\ibu0i0\qb0{f}\tbu0\qb0f\ds\en% \znotes\raisebox{-20pt}{\tdecresc}\en\setdoubleBAR% \nolyr% \lyricsoff% \endpiece% \end{music} \end{document} The current output is as follow: The desired output is as follow: Note: notices that the width of the decrescendo hairpins should be at the end of the system.
- Selecting fonts for individual alphabets with `lua-unicode-math`by moro11 on September 7, 2026 at 3:42 pm
At the moment i probably wont switch to lua-unicode-math but i tried it out a little and stumbled across a problem i would like to address: setting specific fonts seems not to be supported by \setmathfont. Consider the following examples \documentclass{standalone} \usepackage{fontspec} \usepackage{lua-unicode-math} \setmathfont{STIX Two Math} \setmathfont[range={scr,bfscr}, StylisticSet=1]{STIX Two Math} \begin{document} $A \mathcal{A} \mathscr{A}$ \end{document} \documentclass{standalone} \usepackage{fontspec} \usepackage{lua-unicode-math} \setmathfont{STIX Two Math} \setmathfont[version=bold]{NewCMMath-Bold} \begin{document} $A$ {\boldmath$A$} \end{document} It is clear, that in the first example, not only \symscr but also \symcal (and i would assume all fonts) are replaced by the second call of \setmathfont, while in the second example we have the same problem, where not just the bold version but all fonts are replaced by the second call. Of course, this setup (in particular the option range and version) is just copy pasted from a typical unicode-math setup and there is no reason why the \setmathfont command provided by lua-unicode-math should take the same arguments at the \setmathfont command provided by unicode-math. But considering that the documentation of lua-unicode-math is very thin at the moment and only, there is not much information available on how to configure your fonts. Thus, i choose these setups to express what i would like to do (not stating that i expect it to work like that). Thus, to my main question: what is the intended way to fine tune your font setup manually, beyond loading a pre-defined setup via \usepackage{lmu-<some provided font>}?
- `flalign` equations inside an `algorithm2e` environment are slightly indentedby Thibault de Villèle on September 7, 2026 at 10:19 am
Take the following MWE: \documentclass{article} \usepackage[ruled]{algorithm2e} \usepackage{amsmath, mathtools}% mathtools for \mathllap... \begin{document} \begin{algorithm}[h]% \DontPrintSemicolon% \SetKwComment{Comment}{(\,}{\,)}% \KwIn{\(C\), a matrix}% \( C \gets \mathrm{Id}(3) \)\;% % Reduce above/below skips to show the mis-alignment: \setlength{\abovedisplayskip}{-4.5pt plus 0.5pt minus 0.5pt}% \setlength{\belowdisplayskip}{-4.5pt plus 0.5pt minus 0.5pt}% \setlength{\abovedisplayshortskip}{-4.5pt plus 0.1pt minus 0.1pt}% \setlength{\belowdisplayshortskip}{-4.5pt plus 0.1pt minus 0.1pt}% \begin{flalign*}% C &\gets \mathrm{Id}(3) && \mathllap{\Comment*[f]{Should not be indented}}% \end{flalign*}\;% \Return{\(C\)}% \caption{\AmS\ example.}% \end{algorithm} \end{document} Produces (LuaLaTeX, TeXlive 2026): I'd expect the text-style equation (between \( ... \)) to be aligned with the display-style one right below. However, even with a flalign environment, it seems a slight left margin (skip?) is added to flalign environments. How could I get rid of it? I have a few such use cases of this flalign* + \Comment environment in my document, and they all have that indentation.
- Blockwise random order of questions (with answers) using mcexamby Tripedior on September 7, 2026 at 9:10 am
This is a follow-up question to Blockwise random order of questions using mcexam: I would like to randomize the order of questions of each field, but not shuffle questions of different fields together using the mcexam package. The questions should be consecutively numbered (1,2,3,4 in the MWE). My actual application of course has more than two questions in each block, and also more than two blocks. As was already suspected in the answer to that question, there unfortunately are problems when also providing answers to the questions. Answers themselves are already a problem, but things seem to behave even more unpredictably when using the [correct] argument: When using output=exam, the mc@counter seems to correspond to the number of answer options When using output=answers, the mc@counter seems to correspond to the number of the correct answer in the list AFTER randomization I have disabled randomizequestions for now, to remove one factor from the equation (but the idea is to activate it again in the future). My suspicion is that the mc@counter is also used for something related to answers and, thus, the suggestion in the previous question regarding the blockwise random order breaks at this point. Attached you find a new MWE (I added an output of the value of resumequestions to the end hook of the mcquestions environment for debugging purposes). Edit: I would also need questions with more than one correct answer, i.e., where more than one answer gets the [correct] argument. \documentclass[a4paper]{article} \usepackage[ numberofversions=1, seed=11, randomizequestions=false, randomizeanswers=true, writeRfile=false, ]{mcexam} \mcexamoptions{output=answers} %\mcexamoptions{output=exam} \newcounter{resumequestions} \setcounter{resumequestions}{0} \makeatletter \AddToHook{env/mcquestions/end}{\addtocounter{resumequestions}{\value{mc@counter}}Value of resumequestions: \the\value{resumequestions}} \makeatother \renewcommand\mcquestionlabelfmt[1]{\addtocounter{setmcquestionsi}{\value{resumequestions}}\arabic{#1}\addtocounter{setmcquestionsi}{-\value{resumequestions}}} \begin{document} \begin{mcquestions} % First block of questions (1-2, ordered randomly in the future using randomizequestions=true) \question How much is $3+2$? \begin{mcanswerslist} \answer a \answer b \answer c \end{mcanswerslist} \question How much is $2+2$? \begin{mcanswerslist} \answer a \answer b \answer c \answer[correct] d \answer e \answer f \end{mcanswerslist} \end{mcquestions} \begin{mcquestions} % Second block of questions (3-4, ordered randomly in the future using randomizequestions=true) \question Is John Doe alive? \begin{mcanswerslist} \answer a \answer b \answer c \end{mcanswerslist} \question Is Jane Doe alive? \begin{mcanswerslist} \answer a \answer b \answer c \answer d \answer[correct] e \answer f \end{mcanswerslist} \end{mcquestions} \end{document} Screenshot using output=answers:
- Adjusting different column widths automatically in a tableby Soluble on September 7, 2026 at 7:36 am
I saw the adjustment of column width in a table in this link. When I implemented it, I observed that both columns are getting the same width, although it is not necessary in one column. For example, one \documentclass[a4paper,10pt]{article} \usepackage{tabularx} \begin{document} \begin{table} \begin{tabularx}{\columnwidth}{X|X}\hline Limit of sequence & A sequence said to have limit L if given any error e, all the terms of the sequence except finitely many have error at most the given number e.\\\hline \end{tabularx} \end{table} \end{document} I observed that in the output, I get two columns of the same width. But the first column has not many entries; it is the second column only, whose size needs to be adjusted automatically. How can I modify above table? Or is there any other way to adjust automatically the column widths?
- How to adapt extent of \rvert with mathpazo?by user1362373 on September 7, 2026 at 7:15 am
When I use inlined derivatives in Computer Modern, the extent of the vertical line matches that of the slash: \documentclass{standalone} \usepackage{amsmath} \begin{document} $du/dx\rvert_a$ \end{document} By contrast, when I use Mathpazo, the extents do not match: \documentclass{standalone} \usepackage{amsmath} \usepackage[sc,osf]{mathpazo} \usepackage[T1]{fontenc} \begin{document} $du/dx\rvert_a$ \end{document} The bottom of the vertical line is seen to be lower than the bottom of the slash. How can I adjust the vertical line to avoid this mismatch?
- Immediate expanding of \clist_map for use with expand= in tblr environmentby Don Hosek on September 7, 2026 at 1:07 am
For maintainability in a tblr, I’ve developed a macro that works from lists to handle setting the entries. It works pretty well but with one exception: I would like to have it expand the following: \clist_map_inline:Nn \l_fd_clist { & csname pl_##1endcsname } for filling in the cells of a row (the various pl_WHATEVER macros are set earlier in the process). But apparently the expansion is only one level deep (which most of the time is good because otherwise the earlier list handling wouldn’t work correctly). I could split out the code that interprets the input lists and that sets the line and only have the latter part of the expand= option, which might be the best option (it would also allow me to deal with the awkwardness of the fact that I still have a manually generated header row which needs to be kept in sync with the body), but I don’t really like the idea of having to have two macros for each line instead of one like I have now. (Although as I think about it, it also occurs to me that I could do something like \edef\fdline#1#2#3#4{% \noexpand\setfdline{#1}{#2}{#3}{#4}% \clist_map_inline … } but I’d figured I’d see if there was something added in to the TeX core that I’m unfamiliar with or if in the course of writing out this question I’ve come across the best solution. Edited to add: OK, this is deep into yak-shaving territory here,¹ but closing my question nerd-sniped me. So here’s a MWE showing the ugly implementation: \documentclass{article} \usepackage{tabularray} \begin{document} \ExplSyntaxOn \clist_new:N \l_fd_clist \clist_set:Nn \l_fd_clist {A, B, C} \def\test#1{ \clist_map_inline:Nn \l_fd_clist { \expandafter\gdef \csname pl_##1\endcsname {} } \clist_map_inline:nn {#1} { \expandafter\gdef \csname pl_##1\endcsname {X} } & \pl_A & \pl_B & \pl_C\\ % ❶ } \ExplSyntaxOff \begin{tblr}[expand=\test]{cccc} \test{A,C} \test{B,C} \end{tblr} \end{document} The line marked ❶ is where I want something more elegant. The ideal would be something like: \expanded\clist_map_function:NN \l_fd_clist \cell_def with \celldef defined as: \def\cell_def#1{& \csname pl_#1\endcsname} which gives as its first error: ! Missing { inserted. <to be read again> & l.29 \end {tblr} (Removing \expanded gives the Misplaced alignment tab character & error which indicates that it didn’t even get there). I had decided to just leave the ugly version of the table be since the fancy version wasn’t working.
- The `.bib` file does not work properly on the journal's submission platformby Hausdorff on September 6, 2026 at 6:40 pm
The \cite{} command works correctly on my PC. However, on some journal platforms, citations appear as [?]. I uploaded the following .tex and .bib files to the journal's submission platform (Elsevier). .tex file \documentclass{article} \begin{document} \section{Introduction} This is an example citation of an article \cite{einstein}. \bibliographystyle{plain} \bibliography{references} \end{document} \endinput .bib file @article{einstein, author = {Albert Einstein}, title = {The Foundation of the General Theory of Relativity}, journal = {Annalen der Physik}, volume = {354}, number = {7}, pages = {769--822}, year = {1916} } OUTPUT on my PC OUTPUT on the journal's submission platform (Elsevier). Please let me know how to overcome this issue.
- Are table rules untagged in a tagged PDF? Checkers disagreeby fishface342 on September 6, 2026 at 12:17 am
Trying to make a long document work well with tagging, I ran into an issue where two accessibility checkers disagree about whether table horizontal lines are tagged correctly. Specifically, for the following example, the current version of PAC (26.1.0.0) reports that the three \hline objects are not tagged, whereas Acrobat's accessibility checker seems fine with this. Same issue with booktabs using \toprule, etc. Not sure whether this is a bug, and if so, whether it's in one of the checkers or in the original pdf generation, but I figured people here will know better than me. Thanks in advance! MWE (compiling with pdfLaTeX): \DocumentMetadata{lang=en-US, pdfversion=1.7, tagging=on} \documentclass{article} \begin{document} \begin{tabular}{ll} \hline A & B\\ \hline C & D\\ \hline \end{tabular} \end{document}
- tabularray diagbox not working with xepersianby Shahriar on September 5, 2026 at 6:01 pm
\documentclass{article} \usepackage{xepersian} \settextfont{IRXLotus} \usepackage{tabularray} \UseTblrLibrary{diagbox} \begin{document} \begin{tblr}{ colspec = {c c c}, hlines, vlines, } \diagbox{X}{Y} & A & B \\ 1 & 2 & 3 \\ \end{tblr} \end{document} Running this, I get Undefined control sequence. \end error. The culprit is xepersian + tabularray (if I remove xepersian it renders correctly). But what's the workaround? Versions: xepersian: 26.01.01 tabularray: 2025C diagbox: 2.4 biditools: (not installed) bidi: 26.01.08 Update \makeatletter \providecommand\UseMathForPositioningText{% \m@th } \makeatother Adding this between the two packages loading command makes it work, but the text is not aligned correctly... I don't know whether it's the expected alignment or not.
- tabto creates overlapping lines when using displaystyle mathsby AO3 user without CSS knowledge on September 5, 2026 at 5:03 pm
Using tabto on a line that contains displaystyle math causes the math expression to overlap with the text above it. Expected behavior at the top (what happens when I don't use tabto on the second line) VS what actually happens when I use tabto Here's a MWE : \documentclass{article} \usepackage{tabto} \begin{document} Text with a sum under it The sum :$\displaystyle\sum_{i=0}^{n}i$ Text that gets overlapped The sum :\tabto{\CurrentLineWidth} $\displaystyle\sum_{i=0}^{n}i$ \end{document} I'm doing calculations later on with the value tabto gives me, so I can't just get rid of it. Is there either another package that can give the current line width that isn't tabto and doesn't cause the same issues a way to force it to respect the actual line height Other people had similar issues with the package but the solutions proposed don't seem to work in that case. Edit: Here's what my actual document looks like. The tabto is here to calculate the max width of the following varwidth. \documentclass{article} \usepackage{tabto} \usepackage{varwidth, calc} \begin{document} Some text some text some text some text some text some text. Some more text on a new paragraph \tabto{\CurrentLineWidth}\begin{varwidth}[t]{\linewidth-\TabPrevPos} $\displaystyle\sum_{i=0}^{n}i$ Here is a longer paragraph that I want to be in a box. The tabto at the beginning helps me calculate the width of that box. \end{varwidth} \end{document}
- How to reduce column separation space for particular column using tabularrayby MadyYuvi on September 5, 2026 at 2:23 pm
My code are: \documentclass[twocolumn]{article} \usepackage{amsmath} \usepackage{array} \usepackage{tabularray} \UseTblrLibrary{booktabs,siunitx} \usepackage{lipsum} \SetTblrInner{ rowsep=0pt, row{1}={l,b}, hborder{1}={belowspace=6pt}, hborder{2}={abovespace=2pt,belowspace=6pt}, hborder{Z}={abovespace=6pt}, width=\linewidth, row{1} = {guard}, } \begin{document} \begin{align} {F_d} = mgf\cos \theta + mg\sin \theta + \delta \tag*{(1)} \end{align} \lipsum[1] \begin{table} \caption{Value of Grid Convergence Index.\label{table1-09544062261479876}} \begin{tblr}{@{}X[1,l]lll@{}} \toprule {} & {\textit{Cpmin}} & {\textit{Cpmin}} & {\textit{Cpmin}}\\ \midrule {GCI N1-N2} & {0.95\%} & {0.46\%} & {0.86\%}\\ {GCI N2-N3} & {0.59\%} & {0.33\%} & {0.58\%}\\ \bottomrule \end{tblr} \end{table} \end{document} which produced the output as below: I need to reduce the column separation (equal space to all column) after first column, I understand that alignment X does the trick, if I applied to all column, but my requirement is all column should be aligned with l, please advise. Expected output: Else, kindly advise how to adjust (decrease) the columnsep after first column manually.
- siunitx rounding to figures doesn't always pad trailing 0by Jakob on September 5, 2026 at 10:23 am
I'm having trouble getting my desired figures padded when the number gets rounded. I don't want to use round-mode=places since I have differing amounts of leading 0s. Here's an example: \documentclass{article} \usepackage{siunitx} \sisetup{ round-mode = figures, round-precision = 3, round-pad = true } \begin{document} \num{0.7603} % 0.760: expected behaviour \num{0.9095} % 0.91: missing trailing 0 \end{document}
- Improved alignment of molecules in a reaction suiteby Nicolas on September 4, 2026 at 8:58 pm
To show different possible mechanisms, I code this figure: \documentclass[border=3mm]{standalone} \usepackage{graphicx} % Required for inserting images \usepackage{chemfig} \usetikzlibrary{arrows,bending} % \tikzset {[foo /.tip = {Stealth[sep] Latex[sep]}} % \tikzset{ niv2/.tip = {Stealth[red, sep=5pt]_.} } % \tikzset{ niv1/.tip = {Stealth[red, sep=1pt]_.} } % \tikzset{ niv123/.tip = {Stealth[red, sep=1pt]_.} } \begin{document} \schemestart \chemfig{C(-[:120]H)(-[:240]H_3C)=[@{p1}]C(-[:60]H)(-[:300]H)} \+ \chemfig{@{p2}H-[@{p3}]@{p4}\charge{0=\|,90=\|,270=\|}{Cl}} \hspace{.3cm} \arrow(b--)[,1.3,,,draw=none] \subscheme{ \chemfig{CH_3-CH_2-\charge{90:4pt=$\oplus$}{CH_2}} \arrow(c--d){->}[-90,1.5,,,,draw=none] \chemfig[baseline=15pt]{CH_3-\charge{110:3pt=$\oplus$}{CH}-CH_3} } \subscheme{ \arrow(@c--e){->[\charge{0=\|,90=\|,180=\|,-90=\|,45:4pt=$\ominus$}{Br}]}[,1] \chemfig{CH_3-CH_2-CH_2-Br} \arrow(e--f){->}[-90,1.5,,,,draw=none] \chemfig{CH_3-CH(-[:-90]Br)-CH_3} \arrow(@d--@f){->[\charge{0=\|,90=\|,180=\|,-90=\|,45:4pt=$\ominus$}{Br}]}[,1] } \chemmove{ \draw[thick,shorten >=10pt] (b.east) -- ++(1,0) |- (c.west); \draw[thick,shorten >=10pt] (b.east) -- ++(1,0) |- (d.west); \draw[shorten <=1pt,shorten >=1pt](p1).. controls +(80:20mm) and +(100:10mm)..(p2); \draw[shorten <=1pt,shorten >=4pt](p3).. controls +(80:6mm) and +(100:6mm)..(p4); } \schemestop \end{document} Problem: the molecules are not well aligned which means that the arrows (especially the bottom for the bromide ion) are tilted. How can I align vertically?
- Customized chapter TOC entries with modified roman numeral displaysby Jethro on September 4, 2026 at 5:06 pm
MWE: \documentclass[12pt,openany]{book} \usepackage{titlesec,tocloft} \renewcommand{\thechapter}{\Roman{chapter}} \renewcommand{\cftchapaftersnum}{.} % Add a period after each chapter number in the TOC. \usepackage{titlesec} \titleformat{\chapter}[display]{\Huge\centering\bfseries}{CHAPTER \thechapter.}{25pt}{}{} \makeatletter \def\l@chapter#1#2{% \pagebreak[3] \bfseries \vskip .75em plus 1pt \@tempdima 3em \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \advance\leftskip\@tempdima \hskip -\leftskip \leavevmode %\MakeUppercase {#1} \dotfill \hbox to\@pnumwidth{\hss #2} \par \endgroup } \makeatother \begin{document} \tableofcontents \chapter{This is the First Chapter Heading} \chapter{This is the Second Chapter Heading but It is Longer Than the First So That It Extends Over Multiple Lines in the TOC} \end{document} The output: I am trying to add a period after each roman numeral chapter entry. I figured that \renewcommand{\cftchapaftersnum}{.} should do the trick. It doesn't. How may I add a period after each roman numeral in the TOC?
- Problem of vertical placement of two moleculesby Nicolas on September 4, 2026 at 12:57 pm
I have the following chemical equation in Chemfigs: \documentclass[border=1mm]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{chemfig} \usepackage{chemmacros} \begin{document} \setchemfig{scheme debug=true} \schemestart \chemfig{*6(--=---)} \arrow{->[\ch{Br2}]} \chemname{\chemfig{*6(--(<Br)-(<:Br)---)}}{trans-1,2-dibromo\\cyclohexane} \schemestop \end{document} The problem is that vertical alignment is not correct between cyclohexene and dibromocyclohexane. I tried the trick to add\arrow{0}[,0] but it does not work. How to properly replace cycles vertically like this ?