Hot
- In what font is the curly T?by Tbw on January 15, 2026 at 5:04 am
In what font is this curly T from Lee's Introduction to Topological Manifolds? Closest I could find was from TeX font eusm10:
- Bending edges in a controlled way with tikzby Daniel A on January 15, 2026 at 12:37 am
I want two edges in this figure here that are bent and join v_2 with v_5 and v_2 with v_11 but remain in the big ellipse. The usual bend command does not allow me to do that, I have also tried some AI to help. I know there are some sophisticated answers about similar issues but I would like something simple that fixes this problem here easily. \begin{tikzpicture}[semithick, line cap=round, line join=round, scale=0.8] % --- Parameters --- \def\r{0.2} % Small circle radius % --- Coordinates --- \coordinate (ET) at (0, 3); % v1 \coordinate (EB) at (0, -3); % v2 % Inner Circles Points \coordinate (C1T) at (-3, \r); % v5 \coordinate (C1B) at (-3, -\r); % v6 \coordinate (C2T) at (-1, \r); % v7 \coordinate (C2B) at (-1, -\r); % v8 \coordinate (C3T) at (1, \r); % v9 \coordinate (C3B) at (1, -\r); % v10 \coordinate (C4T) at (3, \r); % v11 \coordinate (C4B) at (3, -\r); % v12 % --- Drawing Boundaries (Solid) --- \draw[thick] (0,0) ellipse (5 and 3); \foreach \x in {-3,-1,1,3} { \draw[thick] (\x,0) circle (\r); } % --- Inner Edges (Dashed) --- % 1. Poles Fan \draw[dashed] (ET) to[bend right=30] (C1T); \draw[dashed] (ET) to[bend right=10] (C2T); \draw[dashed] (ET) to[bend left=10] (C3T); \draw[dashed] (ET) to[bend left=30] (C4T); \draw[dashed] (EB) to[bend left=30] (C1B); \draw[dashed] (EB) to[bend left=10] (C2B); \draw[dashed] (EB) to[bend right=10] (C3B); \draw[dashed] (EB) to[bend right=30] (C4B); % 2. DEFORMED EDGES: v2 to v5 and v2 to v11 (restored) %\draw[dashed] (EB) to[bend left=60] (C1T); %\draw[dashed] (EB) to[bend right=60] (C4T); % 3. Horizontal Bridges \draw[dashed] (C1T) to[bend left=20] (C2T); \draw[dashed] (C1B) to[bend right=20] (C2B); \draw[dashed] (C2T) to[bend left=20] node[midway, above] {$b_1$} (C3T); \draw[dashed] (C2B) to[bend right=20] node[midway, below] {$b_2$} (C3B); \draw[dashed] (C3T) to[bend left=20] (C4T); \draw[dashed] (C3B) to[bend right=20] (C4B); % 4. Deformed Outer Bridges \draw[dashed] (C1T) to[bend left=10] (C2B); \draw[dashed] (C3T) to[bend left=10] (C4B); \draw[dashed] (C2B) to[bend right=10] (C3T); % --- Labeling Vertices (Adjusted for no overlap) --- \begin{scriptsize} \fill (ET) circle (1.5pt) node[above=2pt] {$v_1$}; \fill (EB) circle (1.5pt) node[below=2pt] {$v_2$}; % Circle 1 \fill (C1T) circle (1pt) node[above left] {$v_5$}; \fill (C1B) circle (1pt) node[below left] {$v_6$}; % Circle 2 \fill (C2T) circle (1pt) node[above left] {$v_7$}; \fill (C2B) circle (1pt) node[below left] {$v_8$}; % Circle 3 \fill (C3T) circle (1pt) node[above right] {$v_9$}; \fill (C3B) circle (1pt) node[below right] {$v_{10}$}; % Circle 4 \fill (C4T) circle (1pt) node[above right] {$v_{11}$}; \fill (C4B) circle (1pt) node[below right] {$v_{12}$}; \end{scriptsize} \end{tikzpicture}
- Text is not being shown when using \psSolid[object=point, text=foobar]by Rodrigo Morales on January 14, 2026 at 10:02 pm
I'm trying to compile the code shared in this answer. The code block below shows the code from that answer. The author included the screenshot below in its answer. \documentclass{article} \usepackage[dvipsnames]{pstricks} \usepackage{pst-solides3d} \begin{document} \begin{pspicture}[solidmemory,fontsize=20](-4,-4)(4,4) \psset{Decran=30,viewpoint=20 40 30 rtp2xyz, lightsrc=viewpoint} \psSolid[object=dodecahedron,a=2.5,action=draw*,name=my_dodecahedron, fillcolor=green!50!white] \psSolid[object=point,definition=solidgetsommet, args=my_dodecahedron 0,linecolor=blue,text=A,pos=uc,name=A] \psSolid[object=point,definition=solidgetsommet, args=my_dodecahedron 4,linecolor=blue,text=B,pos=uc,name=B] \psSolid[object=line,args=A B,linecolor=blue] \psSolid[object=vecteur,args=A,linecolor=blue] \psSolid[object=vecteur,args=B,linecolor=blue] \axesIIID(2.5,2.5,2.5)(3.5,3,3) \end{pspicture} % \begin{pspicture}[solidmemory,fontsize=20](-4,-4)(4,4) \psset{Decran=30,viewpoint=20 40 35 rtp2xyz, lightsrc=viewpoint} \psSolid[object=dodecahedron,a=2.5,action=draw*,RotX=22.5,RotY=22.5, fillcolor=red!50!white,name=my_dodecahedron,action=draw**, % numfaces=all,num=all, ] \psSolid[object=point,definition=solidcentreface, args=my_dodecahedron 2,linecolor=white,text=Centre face 2,pos=uc] \psSolid[object=point,definition=solidgetsommet, args=my_dodecahedron 0,linecolor=white,text=A,pos=cl,name=A] \psSolid[object=point,definition=solidgetsommet, args=my_dodecahedron 4,linecolor=white,text=B,pos=cl,name=B] \psSolid[object=line,args=A B,linecolor=white] \end{pspicture} \end{document} I compiled the document using this command: $ lualatex main. I opened the PDF using Okular (PDF reader) version 24.12.3. and the built-in PDF reader of Mozilla Firefox 146.0.1, but the text for vertices A and B is not shown. My question is: Why is my system creating a PDF without those texts? UPDATE (2026-01-14T22:14:56+0000) If you visit the package documentation available at CTAN (archive link), you will notice that in page 150, the example sets the key text, but the example doesn't show the text. System information $ lualatex --version This is LuaHBTeX, Version 1.18.0 (TeX Live 2024) Development id: 7611 Execute 'luahbtex --credits' for credits and version details. There is NO warranty. Redistribution of this software is covered by the terms of the GNU General Public License, version 2 or (at your option) any later version. For more information about these matters, see the file named COPYING and the LuaTeX source. LuaTeX is Copyright 2022 Taco Hoekwater and the LuaTeX Team. $ okular --version okular 24.12.3 cat /usr/local/texlive/2024/release-texlive.txt TeX Live (https://tug.org/texlive) version 2024 This file is public domain. It is read by install-tl --version, tlmgr --version, and texconfig conf, and a final line appended with the precise version number by tl-update-images during a build. The following blank line helps avoid confusing output when used directly from svn, so don't delete it.
- Using Adobe Reader with TeXnic Centerby John Kormylo on January 14, 2026 at 8:38 pm
None of the solutions here work for me. Google says to use acroviewR15 but Adobe says to use acroview. acroviewR25 doesn't work either.
- How to make a self-defined citation command have a completion word list in texstudio?by W.J on January 14, 2026 at 7:49 pm
Here is a MWE which uses 'pdflatex' and is compiled in TeXstudio with texlive2024. \documentclass{article} \usepackage{natbib} \bibliographystyle{plain} \newcommand{\hcite}[1]{{\setcitestyle{square,super}\cite{#1}}} \begin{document} The existing command ``\verb|\cite{he2016deep}|'' leads to ``refer to \cite{he2016deep}''. \\ My command ``\verb|\hcite{he2016deep}|'' leads to ``refer to the paper\hcite{he2016deep}''. \bibliography{ref.bib} \end{document} '\cite' has a completion word list (cwl) like the following. However, my command '\hcite' does not have that cwl. Hence I want to know how to make this command also have a completion word list in TeXstudio? Thanks in advance!
- Really Wide Hat, Tildes Doesnt Work Even As LaTeX, TeX [duplicate]by stefano paoletti on January 14, 2026 at 7:46 pm
$$ a\cdot\left (\widehat{\sin\theta\over\csc\varrho^{n\mp\widehat{def}}}\right )\mapsto s^{n\over y^x}+1/c $$ It is possible to get hat wider than widehat, ready for going out of nowhere? this is a solution... using the package amsmath to make the wider, also works within wide tildes
- No headings in index for words starting with umlauts (pdflatex)by Hakan on January 14, 2026 at 7:44 pm
When I turn on headings for entries in index, I get the following error: ! LaTeX Error: Invalid UTF-8 byte sequence (�\check@icr). This is a minimal tex file: \documentclass{scrbook} \usepackage{splitidx} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \makeindex \newindex[Index of Fruits]{fru} \begin{document} \sindex[fru]{Äpfel} \sindex[fru]{üzüm} \printindex[fru][Index of Fruits] \end{document} This is a minimal style file: headings_flag 1 heading_prefix "{\\textbf{" heading_suffix "}}\\nopagebreak\n" If I set headings_flag to 0 in the style file, I get no error messages. But the entries in index does not get headings in this case. In order to reproduce the same error, follow these steps: pdflatex file.tex splitindex file.idx -- -s style.ist pdflatex file.tex There is a similar question, which has no accepted answer. Index category for umlauts
- Reset numbering of subsections to 0 automatically after each sectionby Pedro G. Mattos on January 14, 2026 at 7:43 pm
I want to have subsections after each section to be numbered starting at 0: Section 1.0 Subsection 1.1 Subsection 1.2 Subsection Section 2.0 Subsection 2.1 Subsection 2.2 Subsection I know I can achieve with the command \setcounter{subsection}{-1} after each \section{} command (Getting section numbering to start at 0), but I do not want to do it manually everytime. I have been suggested both \usepackage{etoolbox} \apptocmd{\section}{\setcounter{subsection}{-1}}{}{} and \AddToHook{cmd/section/after}{\setcounter{subsection}{-1}} but none works for me. I have no problem using a package like etoolbox, but I prefer solutions that do not depend on packages if possible.
- How to underline a tagged parbox?by Teepeemm on January 14, 2026 at 7:20 pm
I have answer blanks on an exam, and then I like to fill them in with the answers. Because the answer may need to be a displayed equation, I put it all in a parbox that gets underlined. This all works fine, until I try to enable tagging, at which point the displayed equation causes "Package tagpdf Error: The number of automatic begin and end text para hooks differ!" Is there a tagging friendly way to underline a parbox? \DocumentMetadata{lang=en-US,tagging=on} \documentclass{article} \begin{document} 1. \underline{\parbox{1in}{~}}\par 2. \underline{\parbox{1in}{\makebox[1in]{}}}\par 3. \underline{\parbox{1in}{okay}}\par 4. \underline{\parbox{1in}{$okay$}}\par 5. \underline{\parbox{1in}{\[not~okay\]}} \end{document}
- Strange behavior of a counter using siunitx, mathtools and array (2025)by Watson on January 14, 2026 at 7:17 pm
Consider the following piece of code (MWE): \documentclass{article} \usepackage{siunitx} \usepackage{mathtools} \newcounter{A} \setcounter{A}{1} \begin{document} $\begin{array}{c} \text{\arabic{A}:} \text{\arabic{A}\stepcounter{A}:} \text{\arabic{A}\stepcounter{A}:} \text{\arabic{A}\stepcounter{A}:} \text{\arabic{A}\stepcounter{A}:} \end{array}$ \end{document} Compiling with the 2025 TeX distribution, it produces the following output: 1:2:6:10:14 which is very unexpected, since I just increment the counter A once by line. On the other hand: Compiling with the 2024 or 2023 TeX distribution yields the expected output 1:2:3:4:5 The expected output is also obtained if we swap the two line \usepackage{siunitx} and \usepackage{mathtools}. Can anyone explain this strange behavior to me?
- Is there a BibTeX style file that allows showing numeric-style citation call-outs with letters instead of arabic numerals?by TLo on January 14, 2026 at 6:48 pm
I employ BibTeX to create formatted bibliographies. When one uses numeric-style citation call-outs (say, with the help of the plain or abbrv bibliography style), the citation call-outs are shown as arabic numerals by default. Question: Is there a way to employ uppercase Latin-alphabet letters -- A to Z -- instead of arabic numerals?
- Defining New Math Operators Which Add Space If No Delimiter After and No Space If Delimiter After [duplicate]by tangulo on January 14, 2026 at 5:58 pm
Built in math operators like \sin and \cos have the property that if a delimiter (such as a parenthesis, bracket, or brace) is placed after, there is no space between the operator and the delimiter. For example, \sin(x) and \sin (x) are both rendered without a space in the middle. On the other hand, if there is no delimiter after, there is always a space before the next character. For example, \sin\alpha and \sin x are both rendered with a space in the middle. My question is how do I define math operators that have this property? For example, I would like to define the principal argument of a complex number as "Arg" with the capital "A."
- upright math Greek lowercase letter with lua-unicode-mathby murray on January 14, 2026 at 5:53 pm
Allagedly, command \mupdelta in math mode should give an upright lowercase Greek delta, as shown in this table from unimath-symbols: However, with lua-unicode-math, the result of \mupdelta is not upright, as shown in the first letter of the output below. Here's the source: % !TEX program = lualatex \NeedsTeXFormat{LaTeX2e}[2025-11-01] \documentclass{article} \usepackage{mismath} \usepackage{fontspec,lua-unicode-math} \ExpandArgs{c}\def{ver@unicode-math.sty}{} \setmainfont[Scale=1.0]{TeXGyreTermesX} \setmathfont{STIX Two Math}[Scale=MatchUppercase,math-style=ISO] \usepackage{mathfixs} % defines \mathup command \begin{document} $\mupdelta \quad \delta \quad \symup{\delta} \quad \mathup{\delta}$ \end{document} (The result is the same Italic delta even if mismath is not loaded. Likewise the same if unicode-math is used instead of lua-unicode-math.) What's wrong? Note: See the related comment from DavidCarlisle in https://tex.stackexchange.com/a/758142/13492
- conflicts between pstricks and animate packagesby fabien on January 14, 2026 at 4:01 pm
I would like to use the animate package, but unfortunately it somehow clashes with pstricks. Here is my minimal working example, compiled with $ pdflatex --shell-escape mwe.tex \documentclass{report} \usepackage{pstricks} \usepackage{animate} \usepackage[pspdf={-dALLOWPSTRANSPARENCY -dNOSAFER},crop=off,runs=2]{auto-pst-pdf} \begin{document} \psdiabox*[fillcolor=gray]{Test} \begin{center} \animategraphics[controls, loop, scale=0.32]{1}{images_}{0}{2}% \end{center} \end{document} And I get the following error: Error: /typecheck in --div-- Operand stack: 1 0 -0.119927 -0.139248 a 65781.8 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1944 1 3 %oparray_pop 1943 1 3 %oparray_pop 1928 1 3 %oparray_pop 1801 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval-- 4 --nostringval-- %repeat_continue --nostringval-- Dictionary stack: --dict:774/1123(ro)(G)-- --dict:0/20(G)-- --dict:158/200(L)-- --dict:102/300(L)-- If I comment out the psdiabox line, the animation is correctly created in a PDF (but I need Pstricks in other places in the PDF). Is it possible to make animate and pstricks work together ?
- Making a Vertical Adjustment to a Side-by-Side Image with a Minipageby DDS on January 14, 2026 at 3:47 pm
Consider the code: \documentclass[11pt]{book} \usepackage{graphicx,lipsum} \begin{document} \thispagestyle{empty} \begin{minipage}{3in} \lipsum[13] \end{minipage} %\vspace{35pt} \hspace*{20pt} \includegraphics[width=.3\linewidth,keepaspectratio]{example-image} \end{document} with output QUESTION: How may I drop the image on the right down a little (say, 20pt or 30pt)? I have been able to adjust the horizontal distance between the minipage and the image without any problem; however, I have not been able to adjust the vertical positioning of the latter in similar fashion. Thank you.
- Attaching points errorby Paul Ferris on January 14, 2026 at 3:16 pm
I have put together an exam paper and have successfully managed to do all the marks to add up as the paper goes along including adding marks per question. However, the final question has the final part \part[2] but the paper displays [5 marks]. It doesn't matter what values I put in the \parts [] bit it always displays [5 marks]. All other questions and parts are working correctly. Any idea's please why the code says 2 marks but the display says 5 marks? code below: \part[2] Calculate the size of the missing angle $PRQ$. \end{parts} \vspace*{60mm} \ans display:
- How to to detect if the last character of some input is, after possible expansion, a closing double quote?by Denis Bitouzé on January 14, 2026 at 1:43 pm
I'd like to detect if the last character of some input is, after possible expansion, ”. In the following MCE (to be run with lualatex), the ⟨input⟩s are “Foo” and \enquote{Bar}, so the corresponding expanded inputs “Foo” and “Bar” both end with ” but \str_item:en {⟨expanded input⟩} {-1} considers } is the last character of the later. \documentclass{article} \usepackage{csquotes} \begin{document} \ExplSyntaxOn \cs_generate_variant:Nn \str_item:nn { en } \cs_new_protected:Nn \__test:n { \str_set:Nn \l_tmpa_str {#1} \tl_set:Nn \l_tmpa_tl {\exp_not:e {#1}} \begin{description} \item[Input:] \l_tmpa_str. \item[Expanded~ input:] \exp_not:e {#1}. \item[Last~ character~ of~ the~ expanded~ input:] \str_item:en {\exp_not:e {#1}} {-1}. \end{description} } % \begin{enumerate} \item \__test:n {“Foo”} \item \__test:n {\enquote{Bar}} \end{enumerate} \ExplSyntaxOff \end{document} How to to detect if the last character of some input is, after possible expansion, ”?
- How to implement math formulas in the bibliography?by Filippo on January 14, 2026 at 1:12 pm
Is there a way to implement math formulas in my Bibliography using Zotero? For example when I write $T\bar T$ in the title within a Zotero item, overleaf displays $T \bar T$ instead of writing the math version. Why and is there a way to fix this?
- Issues with adding tablenotes in a taggedpdf using lualatexby Miloop on January 14, 2026 at 12:15 pm
I am trying to add tablenotes using threeparttable and tablenotes using lualatex. I want the output to look like this: Here is the minimal code: \DocumentMetadata{lang=en-UK, tagging=on, pdfstandard=UA-2} \documentclass[a4paper,12pt,oneside]{book} % Table \usepackage{threeparttable} \usepackage{booktabs} \AtBeginEnvironment{tablenotes}{\footnotesize} \begin{document} \begin{table} \begin{threeparttable} \caption{Classifications of diabetes according to Ahlqvist et al. [48]} % \begin{tabular}{l l p{6cm}} \toprule \textbf{Cluster} & \textbf{Type} & \textbf{Characteristics}\\ \midrule Cluster 1 & Severe Autoimmune Diabetes (SAID) & Early onset, Low BMI, Insulin deficient, GADA\tnote{1} antibodies, Poor metabolic control.\\ \midrule Cluster 2 & Severe Insulin-deficient Diabetes (SIDD) & Early onset, Low BMI, Insulin deficient, Pool metabolic control.\\ \midrule Cluster 3 & Severe Insulin resistant Diabetes (SIRD) & High BMI\tnote{2}, Insulin resistant (high HOMA-IR)\tnote{3}.\\ \midrule Cluster 4 & Mild Obesity-related Diabetes (MOD) & High BMI\\ \midrule Cluster 5 & Mild Age-related Diabetes (MARD) & Late onset, High BMI\\ \bottomrule \end{tabular} \begin{tablenotes} \item[1] GADA: glutamic acid decarboxylase antibody \item[2] BMI: Body Mass Index \item[3] HOMA: homeostasis model assessment \end{tablenotes} \end{threeparttable} \end{table} \end{document} However, I am getting the error: ! Package tagpdf Error: The number of automatic begin (11) and end (10) (tagpdf) text-unit para hooks differ! I wonder if this is somehow linked to my previous query on enumerate in tagged documents: Unable to enumerate in tagged lualatex.
- Advanced enumeration: Text Left and right to enumitemby gegenphase on January 14, 2026 at 9:28 am
I got a question regarding the enumerate-environment whilst I was looking at the TeX-errorlog by Donald E. Knuth himself. I tried to find a solution online (Google) but was not successful. It splits up in three: How is it possible to Put a text on the left hand side next to the enumeration-label like he is always doing it. E.g. 12 $\mapsto$ \textbf{13} on page 1 of his log. Put a text on the right hand side of the entire line, like §240 D on page 1 of his log. Have a header in the middle of the line without breaking the enumeration. The error-log can for example be found here: https://ctan.math.washington.edu/tex-archive/info/knuth-pdf/errata/errorlog.pdf. My ideas for the specific questions: use \item[$12 \; \mapsto$ \textbf{13}] and set the enumerate-item counter manually which is a suboptimal way. use the flushright environment (or perhaps \hfill?) which is also suboptimal, if the text within the enumeration item is multiple lines and I only want the text to appear on the first line. using the pause-feature of enumerations, breaking the enumeration with \end and starting it again. I cant imagine that this is the way Knuth was doing it. There has to be a way to achieve this more elegantly. Thanks.
- Making geometric frieze (pattern) with tikzby Erwan on January 14, 2026 at 9:11 am
i'm trying to do some geometric frieze with tikz. The last goal is to do a command to draw one of the 7 possible frieze (see wikipedia). But, first, i just do 1 frieze. Results: My code: \documentclass[tikz]{standalone} \begin{document} \newcommand{\footstep}[4]{ \begin{scope}[ xshift=#3cm, %for translation yshift=#4cm, %for translation xscale=#1, %for reflexion yscale=#2 %for reflexion ] \draw (1, 3) -- (1, 0); \draw (1, 0) -- (7, 0); \draw (6, 3) -- (7, 0); \draw (6, 3) -- (5, 0); \draw (5, 0) -- (4, 2); \draw (4, 2) -- (2, 0); \draw (2, 0) -- (1, 3); \end{scope} } \begin{tikzpicture}[rounded corners=1pt, very thick, scale=.75] \draw[help lines] (0,-1) grid (22,5); \footstep{1}{1}{0}{0} \footstep{1}{-1}{7}{3} \end{tikzpicture} \end{document} but i have to find the parameters by myself. I'd like something automatic. Something like : xshift = "scope width" yshift = "scope height" Thanks
- Fonts with corporite identity [closed]by user2609605 on January 14, 2026 at 8:55 am
Currently we use pdflatex and have to look like word a bit. Means we use fonts helvet for base text, mathptmx for math and courier for code samples. Well, now we want to switch to fonts offered by texlive for sake of reproducibility and if possible avoid proprietary ones. I found already tgheros a good substitute for helve, isn't it? For the rest, no idea, I heared luximo for courier... What worries me more is, that we will switch to lualatex in future and for this I could not find reasonable substitutes. I tried \setmainfont{TeXGhreHeros}[several trials] but nothing is really close to helvet. For the other fonts also no clue. What are your suggestions? Is the problem I describe a common one?
- invoking mpost from latexmkby user2609605 on January 14, 2026 at 8:29 am
I want to create mps from mp code with mpost. My mp files always have a single pic only. On the console I use something like mpost -interaction=nonstopmode -recorder -s prologues=2 -s 'outputtemplate="%j.mps"' F4_05someMetapost which seems to work fine for both linux and windows. Now I try to write some entry in .latexmkrc doing the same. From How to use latekmk with feynmf/feynmp? I have add_cus_dep('mp', '1', 0, 'mpost'); sub mpost { my $file = $_[0]; my ($name, $path) = fileparse( $file ); pushd( $path ); my $return = system "mpost $name" ; popd(); return $return; } but I wonder how to place the quotes to get it right. If nothing helps, I drop -s 'outputtemplate="%j.mps"' and do a simple move of xxx.1 to xxx.mps. In fact, there are restrictions, we need flexibility to put in various options so better to process general options for mpost. A first step would be to setup the above invocation of mpost within my .latexmkrc file.
- Unable to enumerate in tagged lualatexby Miloop on January 14, 2026 at 7:12 am
I am trying to make an inline list using enumerate*, but it isn't working when trying to make a tagged document. I want the output to look like this: , but I am getting lonely item errors. Here is my minimal code that generates the error: \DocumentMetadata{lang=en-UK, tagging=on, pdfstandard=UA-2} \documentclass[a4paper,12pt,oneside]{book} \usepackage[inline]{enumitem} \begin{document} Therefore such ideas are expressed as: \begin{enumerate*}[label=(\roman*)] \item Suggestions \item Compulsions \item Delusions \item Pertrusions \item Overwhelming sense of righteousness \item Own by themselves where every entity is largely linked to another for its own survival. \end{enumerate*} \end{document} and here is the first bit of the the error in the .log: ! LaTeX Error: Lonely \item--perhaps a missing list environment. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.11 \item S uggestions Try typing <return> to proceed. If that doesn't work, type X <return> to quit.
- convert an undefined control sequence stored in a tl to a stringby Erwann on January 14, 2026 at 4:04 am
Given a token list variable containing a control sequence, \l_tmpa_tl = \l__erw_str, where \l__erw_str is undefined, how can convert it to a string? \documentclass{article} \ExplSyntaxOn \exp_args:Ne \tl_show:n{ \cs_to_str:N \l__erw_str } % expecting l__erw_str ✅ \tl_set:Nn \l_tmpa_tl { \l__erw_str } \exp_args:Ne \tl_show:n { \exp_args:No \cs_to_str:N { \tl_use:N\l_tmpa_tl} } % ❌ \ExplSyntaxOff \begin{document} \end{document} *.log: ) > l__erw_str. <recently read> } l.9 } ? ! Undefined control sequence. \l_tmpa_tl ->\l__erw_str l.21 } ? > . <recently read> } l.21 } ? ! Too many }'s. \exp_args:Ne ..._after:wN #1\tex_expanded:D {{#2}} l.21 }
- Help with an issue related to expansion [closed]by Colas on January 14, 2026 at 12:03 am
I have the following code: \gdef\varReponsePremiereLigne{} \newcommand{\reponsePremiereLigne}[1]{\gdef\varReponsePremiereLigne{#1}} \newcommand{\reponseDeuxiemeLigne}[1]{\reponseCORE{\begingroup\setstretch{1}\hspace{-2mm}\begin{tabular}{l}\varReponsePremiereLigne \\ #1\end{tabular}\hspace{-2mm}\endgroup}} \newcommand{\reponseCORE}[1] {\par\ajouteReponse{\mbox{#1}}\addReponseToAux{#1}} \newcommand{\addReponseToAux}[1] {\immediateprotectedwrite{\fich@ans}{\printNumeroDeCalul {\protect\dotfill} } \immediate\write\fich@ans{\unexpanded{\fbox{#1}}\par}} In the code above, the problem is that when I call the two commands \reponsePremiereLigne{...} and \reponseDeuxiemeLigne{...} more than once, only the last value assigned to the variable \varReponsePremiereLigne is taken into account. I understand that this is related to TeX’s expansion mechanism, but I do not know how to structure the macros so that each call preserves its own value of \varReponsePremiereLigne (or is expanded at the right time). How to fix this so that multiple calls to \reponsePremiereLigne{...} and \reponseDeuxiemeLigne{...} behave correctly? Thank you very much.
- Multicols inside enumerate gives me a weird position for labelby GVT on January 13, 2026 at 11:38 pm
This is a long fragment of code but it is the shortest one I could get showcasing my problem, sorry for that: \documentclass[12pt,oneside]{book} \usepackage[shortlabels]{enumitem} \usepackage{multicol} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds,fit} \begin{document} \begin{enumerate} \item[Exercise 1] \begin{enumerate} \begin{multicols}{2} \item \phantom{O} \begin{center} \begin{tikzpicture} \begin{scope} \draw (0,0) rectangle (5,5); \end{scope} \end{tikzpicture} \end{center} \item \phantom{O} \begin{center} \begin{tikzpicture} \begin{scope} \draw (0,0) rectangle (5,5); \end{scope} \end{tikzpicture} \end{center} \end{multicols} \begin{multicols}{2} \item \phantom{O} \begin{center} \begin{tikzpicture} \begin{scope} \draw (0,0) rectangle (5,5); \end{scope} \end{tikzpicture} \end{center} \item \phantom{O} \begin{center} \begin{tikzpicture} \begin{scope} \draw (0,0) rectangle (5,5); \end{scope} \end{tikzpicture} \end{center} \end{multicols} \end{enumerate} \end{enumerate} \end{document} The result is this: What I don't understand is, why (a) is located in the upper-left corner of the picture (how I wanted it to be), while (c) is located in the bottom-left of its corresponding picture? I noticed that if I change \item[Exercise 1] to \item Exercise 1 the problem goes away, but I really wanted to know why this happens, and how could I avoid it without making this change. My question sounds similar to this one, but I don't think they are the same.
- ConTeXt: Correct final page number in Lua script for footnote placementby Jeff Dodson on January 13, 2026 at 5:54 pm
I'd like to create footnotes where a verse number (rather than a counter) is shown in the apparatus next to the note text. Also, if more than one note occurs on a page for a particular verse, instead of prefixing subsequent notes for that verse with the verse number, I'd like to just see a separator, such as the vertical bar character "|". However, if the footnotes for a particular verse are present on two separate pages, I'd like the verse number to appear again on the second page. So it becomes important in this situation to know the final page number that a footnote will end up on. In other words, if verse 34 is near the end of page 1, and it has two footnotes that appear on page 1, then the first footnote will be prefixed in the apparatus with "34", while the second footnote will be prefixed by "|". Now let's say verse 34 has a third footnote, but that note appears on the next page. I'd like that note to be prefixed by "34" again in the apparatus. So the final page number that the note falls on has an effect on what prefix appears with the note in the apparatus. Here's a minimum working example that demonstrates the problem: \startluacode userdata = userdata or {} userdata.last_verse = 0 userdata.last_chapter = 0 userdata.last_page = 0 function userdata.get_verse_label(curr_chap, curr_verse) local curr_page = tex.count["realpageno"] local label = "" if curr_page > userdata.last_page then userdata.last_verse = 0 userdata.last_page = curr_page end if curr_verse == userdata.last_verse then label = "{\\bf \\textbar\\space}" else label = "{\\bf " .. curr_verse .. "\\space}" end userdata.last_chapter = curr_chap userdata.last_verse = curr_verse context(label) end \stopluacode \newcount\CurrentVerse \newcount\CurrentChapter \unexpanded\def\setverse#1#2{% \global\CurrentChapter=#1 \global\CurrentVerse=#2 #2 } \definenote[footnote][way=bypage, location=page] \setupnotation[footnote][number=no, alternative=serried] \setupnote[footnote][ rule=yes, location=page, width=\textwidth, paragraph=yes, alternative=serried, indenting=no ] \def\note#1{% \footnote{% \ctxlua{userdata.get_verse_label(\the\CurrentChapter, \the\CurrentVerse)}% #1% } } \starttext \dorecurse{100}{ \setverse{1}{\recurselevel}This is some text with footnotes.*\note{This is a first footnote for verse \recurselevel.}\note{This is a second footnote for verse \recurselevel.} } \stoptext In this example, you can see the following output on page 2 of the PDF: If you look at the first footnote appearing on page 2, you can see the second footnote that belongs to verse 34. Since this is the first note that appears on the page for that verse, I'd like the verse number to show up. However, I think that my Lua code, when it calls tex.count["realpageno"], is only seeing a first-pass page number. When that second footnote for verse 34 gets ultimately bumped to page 2, it's already been typeset with the vertical bar. My question: Is there a way to modify my Lua to have access to the final page number for the note, and to modify the note prefix accordingly? Incidentally, the reason I'm doing this is to emulate the footnote apparatus for the Nestle-Aland editions. So this is a real world need. UPDATE: Here's another way of indicating what I'm looking for: I understand that in ConTeXt if I label a footnote like this: \footnote[fnfirst]{This is some footnote text.} Then I can elsewhere refer to the final page number for that footnote with \at{page}[fnfirst]. So the question is: Is there a way (in ConTeXt or Lua) to access the value of \at{page}[...] and use that value in logic to modify whether the footnote in the apparatus is prefixed with a verse number or with a "|" separator character?
- Boxed titles as something other than underlaysby Jesco on January 13, 2026 at 5:49 pm
This \documentclass[a4paper,12pt]{article} \usepackage{tcolorbox} \tcbuselibrary{most} \tcbset{skin=enhanced} \begin{document} \begin{tcolorbox}[flip title, title=hi] Some content \begin{tcolorbox}[flip title, title=hi] \end{tcolorbox} \end{tcolorbox} \end{document} leads to the outer box having a flip title, while the inner does not. I believe I have understood that this is because boxed titles are drawn as underlays. Is there some way to have them drawn as e.g. overlays instead, without having to resort to manually imitating them via TikZ?
- How may I upside-down the exclamation operator? [closed]by Frode Alfson Bjørdal on January 12, 2026 at 9:03 pm
Edit: On account of some stress while writing up the document, I wrongly stated in the comments below that the beamer was in pdf-tex. That was the major factor which created strong criticism from some, or at least so I think. The criticism should have been constructive, it seems to me, and directed towards my wrong claim that it is a pdf-tex preamble. If so, I would have resolved the problem myself by means of the benefits LuaLaTex provides. I have has this \newcommand{\Vis}{\boldsymbol{!}} for a bold and fat exclamation mark to serve as an operator. Some advised me to use \newcommand{\Avail}{\mathord{\raisebox{0.2ex}{\rotatebox{180}{$\boldsymbol{!}$}}}} for the dual operator with an upside-down exclamation mark. But the latter definition generated stability problems or something like that, in the document. Is there a more stable manner to obtain the dual operators which I want, which I may put into my preamble, which is as follows? \documentclass[english,aspectratio=169]{beamer} % ========================= % LuaLaTeX font setup % ========================= \usepackage{fontspec} % ========================= % Graphics % ========================= \usepackage{tikz} % Serif text font (safe, neutral) \setmainfont{Latin Modern Roman} % Math font %\setmathfont{Latin Modern Math} % ========================= % Language and typography % ========================= \usepackage[english]{babel} \babelprovide[import]{arabic} \babelprovide[import]{persian} \usepackage{luabidi} \babelfont[arabic]{rm}{Amiri} \babelfont[persian]{rm}{Amiri} \usepackage{microtype} \usepackage{url} % ========================= % Mathematics % ========================= \usepackage{amsmath} % Also has \boldsymbol \usepackage{mathtools} %========================== \usepackage{bm} % For \bm (often preferred to \boldsymbol %under \usepackage{amsmath} for better spacing) %========================== % ========================= % UiO Beamer theme % ========================= \makeatletter\let\arrowvert\@undefined\makeatother%To avoid expand LaTeX Error: Command `\arrowvert' already defined./usr/local/texlive/2023/texmf-dist/tex/latex/newtx/newtxmath.sty, 878 \usefonttheme{professionalfonts} \usetheme{UiO} \urlstyle{sf} % -------------------------------------------------------- %Graphics (required for \rotatebox) %--------------------------------------------------------- \usepackage{graphicx} % ========================= % Semantic macros % ========================= \newcommand{\defeq}{\mathrel{\vcentcolon=}} \newcommand{\Vis}{\boldsymbol{!}} \newcommand{\Avail}{\mathord{\raisebox{0.2ex}{\rotatebox{180}{$\boldsymbol{!}$}}}} \newcommand{\Tr}{\mathsf{Tr}} \newcommand{\Aut}{\mathsf{AE}} % ========================== % Bend supports %=========================== \newcommand{\godel}[2][]{% \mspace{1\medmuskip}% \vphantom{#2}% \begin{tikzpicture}[baseline=(M.south)] \node[inner ysep=0pt,inner xsep=4pt](M){\smash[b]{$#2\mathstrut$}}; \draw[rounded corners=.5mm,#1]([xshift=-1mm]M.south east)--(M.south east)--++(0,.14); \draw[rounded corners=.5mm,#1]([xshift=1mm]M.south west)--(M.south west)--++(0,.14); \end{tikzpicture}% \mspace{1\medmuskip}% } % ========================= % Bibliography matters % ========================= \usepackage[ backend=biber, style=authoryear, maxbibnames=3, giveninits=true ]{biblatex} \renewbibmacro*{in:}{} \addbibresource{lassiclib.bib} % ========================= % Front matter % ========================= \begin{document} $\Avail{\godel{A}}\defeq$ just if $\vdash A\wedge \ldots$ Compare $!$ with $\Avail{~}$ \end{document}