• Help with an issue related to expansion
    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 label
    by 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 placement
    by 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.

  • Boxed titles as something other than underlays
    by 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?

  • Economic diagram draw
    by henry on January 13, 2026 at 4:41 pm

    Could someone please help me create the graph below in LaTeX?

  • Is it possible to put sections in a table?
    by ZY D on January 13, 2026 at 2:25 pm

    For some reason, I have to put the article inside a table. The article is several pages long, with some pictures in it. I have tried longtable, but find I cannot use commands like \caption, and sections are not paged as expected.

  • How to create a multi-column figure within a one-column document
    by jamshark70 on January 13, 2026 at 10:08 am

    Using TeX Live 2023/Debian. I am creating a document in single column format, which will contain many examples comparing code versus graphical patching representations of the same concepts. If every such example is arranged vertically, it will waste a lot of vertical space, so whenever possible, I would like to place the code on the left and a screenshot of the graphical patcher on the right, within the figure, while the rest of the page is single column. I did a couple of searches and I can only find answers about placing a single column figure into a multiple column document (e.g. Placing a figure in one-column within a two-column document). While I can understand why that's a popular requirement, it's the opposite of what I want to do.

  • Acro package: Use long form for pdfcomment
    by miile7 on January 13, 2026 at 10:05 am

    I am using the (awesome) acro package to manage my acronyms. Therefore, I want acronyms to be displayed in the pdf when hovering over them. acro supports this out of the box by using the pdfcomment package and the pdfcomments/use=true option. I always want to display the long form of the acronym, which is (in my case) always just text. So currently I'm using the following (for MWE see below): \DeclareAcronym{AI}{ short=AI, long=artificial intelligence, pdfcomment=artificial intelligence, } While this creates exactly the output I'm looking for (and I'll continue to use it, if not otherwise possible), it feels weird to insert the same text twice. As acro has served with perfect solutions to all my problems until now, I'm wondering whether there is a more elegant way to just use the long form for the pdf comments. Thank you in advance. Minimal Working Example (MWE): \documentclass{article} \usepackage{acro} \usepackage{pdfcomment} \acsetup{ pdfcomments/use=true, } \DeclareAcronym{AI}{ short=AI, long=artificial intelligence, pdfcomment=artificial intelligence, } \begin{document} Currently, the big thing is \ac{AI}. \end{document} Results in the following intended behavior:

  • Extendable tabularray tabular's width exceeds \linewidth in case of merged cells
    by Denis Bitouzé on January 13, 2026 at 10:05 am

    The following tabularray's tabular is as expected: the extendable X column type makes its width exactly equal to \linewidth: \documentclass[draft]{article} \usepackage{tabularray} \begin{document} \noindent \begin{tblr}{ vlines, colspec={ l l X }, % cell{1}{1} = {c=2}{}, } Foo & bar & baz \\ \end{tblr} \end{document} But, as soon as the the first two cells (of the single row) are merged (uncomment cell{1}{1} = {c=2}{}), the tabular's width exceeds \linewidth: How to circumvent this trouble?

  • I want to recreate this by implementing a low lvl macro
    by Nyxzore on January 13, 2026 at 1:37 am

    Naturally i want this to add the next comment after it detects the next y. My current progress is: \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\hbrace}[1]{% \mathop{% \vtop{% \m@th% \ialign{% ##\crcr% $\hfil\displaystyle{#1}\hfil$% \crcr% \noalign{\kern 1pt \nointerlineskip }% \negthinspace \vrule height 3pt width .3pt% \leaders\hrule height 1.4pt depth -1pt \hfill% \vrule height 3pt width .3pt \negthinspace \crcr% \noalign {\kern 1pt}% }% }% }\limits% } \makeatother \begin{document} \begin{center} $\hbrace{\text{heyyyyy}}$ \end{center} \end{document}

  • lua-unicode-math clash with mismath
    by murray on January 12, 2026 at 11:09 pm

    Loading mismath.sty either before or after loading lua-unicdoe-math causes error: "Command \mathbfsfit already defined", as with the following source. (The error does not occur when using unicode-math instead of lua-unicode-math.) What could a workaround be? % !TEX program = lualatex \NeedsTeXFormat{LaTeX2e}[2025-11-01] \documentclass{article} %\usepackage{mismath} % same error if load mismath here \usepackage{fontspec,lua-unicode-math} %\usepackage[math-style=ISO]{unicode-math} % no clash with this instead \defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX} \defaultfontfeatures[TeXGyreTermesX]{% Does not come with a .fontspec file. UprightFont=*-Regular, BoldFont=*-Bold, ItalicFont=*-Italic, BoldItalicFont=*-BoldItalic, SlantedFont=*-Slanted, BoldSlantedFont=*-BoldSlanted, Ligatures={Common,TeX}, Extension=.otf } \setmainfont[Scale=1.0]{TeXGyreTermesX} \setmathfont{STIX Two Math}[Scale=MatchUppercase,math-style=ISO] \usepackage{mismath} % causes clash - does redefine \mathbfsfit on its line 62 \begin{document} Hello. \end{document} The offending code in mismath seems to be in its lines 57-64: \AtEndPreamble{% necessary to work with unicode-math \ifmm@decimalcomma\RequirePackage{decimalcomma}\fi \ifmm@ibrackets\RequirePackage{ibrackets}\fi \@ifpackageloaded{multicol}{\mm@multicoltrue}{} \@ifpackageloaded{unicode-math}{\mm@unicodemathtrue}{ \DeclareMathAlphabet{\mathbfsfit}{\encodingdefault}% {\sfdefault}{bx}{it}} } Note that mismath loads mleftright and mathtools, and mathtools in turn loads amsmath.

  • How do I set a really compact latex style? [closed]
    by user3133512 on January 12, 2026 at 9:08 pm

    How to set a really compact latex style? bibliographystyle{abbrv} which shortens names but this style lists editors, location and other things that use more space than necessary

  • How may I upside-down the exclamation operator? [closed]
    by Frode Alfson Bjørdal on January 12, 2026 at 9:03 pm

    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}

  • Trying to create multiple families of include and includeonly
    by Ethan Duckworth on January 12, 2026 at 8:25 pm

    I'm typesetting a book with 11 chapters and about 90 sections, and each section file also has a separate file of exercises. I'd like to have flexible options for typesetting just one chapter, or one section, or just exercises, etc., with the nice features that \include offers for preserving page numbers, section numbers, etc. I've thought of a way to do this with families of include and includeonly. Something like this \documentclass{book} \newenvironment{includechapter}[1] {} {} \newcommand{\includesection}[1]{} \newcommand{\includeexercises}[1]{} % this command, by itself, would cause only chapter 2 to typeset, % including the files sec2p1, exs2p1, sec2p2, exs2p2. Nothing from % chapter2 would typeset. % \includechapteronly{chapter2} % this command, by itself, would prevent any other sections to % typeset. % \includesectiononly{sec1p2} % this command, by itself, would prevent any other exercises to % typeset. % \includeexercises{exs1p2} % these three commands, would turn off chapter2, turn off all % sections, and turn on only one set of exercises % \includechapteronly{chapter1} % \includesectiononly{} % \includeexercises{exs1p2} \newif\ifAnyPart \makeatletter \if@chapterpartsw \ifAnyParttrue\fi \if@sectionpartsw \ifAnyParttrue\fi \if@exercisespartsw \ifAnyParttrue\fi \makeatother \begin{document} \ifAnyPart\else \tableofcontents \fi \begin{includechapter}{chapter1} % file chapter1 has \chapter command \includesection{sec1p1} % has \section command \includeexercises{exs1p1} % has \section*{Section\thesection Exercises} \includesection{sec1p2} \includeexercises{exs1p2} \end{includechapter} \begin{includechapter}{chapter2} \includesection{sec2p1} \includeexercises{exs2p1} \includesection{sec2p2} \includeexercises{exs2p2} \end{includechapter} \ifAnyPart\else \printindex \fi \end{document} I think I might be able to figure out how to copy code from \include and \includeonly and make three different versions of it, three different lists to check, etc. But I'm sure I'll make some mistakes. Maybe other people will know how to do this, or pitfalls I should look out for, or that there's some other way to do it. Or (worst!) that it's not really possible.

  • Conflict between KOMA-Script (scrbook) and babel [czech] after MiKTeX update: "\@startsection" hook error [duplicate]
    by JardaFait on January 12, 2026 at 8:14 pm

    After updating MiKTeX (verified in MiKTeX Console, 2026-01-12), I encountered the following issue: Minimal Working Example (MNWE): \documentclass{scrbook} \usepackage[czech]{babel} \begin{document} Test with babel \end{document} Error log: ! LaTeX hooks Error: Generic hooks cannot be added to '@startsection'. It seems the problem is related to the combination of: The scrbook class (KOMA-Script) The babel package with czech option The new LaTeX hooks system (2020+) Possibly the xpatch package Question: How can I resolve this conflict? Is there a recommended approach or workaround to use scrbook together with babel (Czech) without triggering this error?

  • TeX capacity exceeded when tikz read from file
    by JKomp on January 12, 2026 at 7:06 pm

    I have a tikz graphic that generates fine when I inline the code. My document has a lot of graphics so I've been placing each tikz in its own file and importing when needed. Thus, when I placed this graphic in its own file pdf generation would fail with a TeX capacity exceeded error. I don't understand why. Here's the code that works: \documentclass{article} % LTeX: enabled=false \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture}[inner sep=0pt, outer sep=0pt] \definecolor{bodyOline}{RGB}{151,154,155} \definecolor{bodyFill}{RGB}{242,242,242} \definecolor{ecgGreen}{RGB}{4,203,153} \path[draw=bodyOline,fill=bodyFill] (6.1343, 11.9492).. controls (5.8796, 11.88) and (5.7804, 11.7586) .. (5.755, 11.4852).. controls (5.7461, 11.3894) and (5.7216, 11.2718) .. (5.7005, 11.224).. controls (5.6373, 11.0812) and (5.6635, 10.9434) .. (5.7921, 10.7421).. controls (5.8487, 10.6536) and (5.9002, 10.5186) .. (5.9002, 10.4592).. controls (5.9002, 10.4244) and (5.8769, 10.3504) .. (5.8485, 10.2946).. controls (5.7826, 10.1655) and (5.6565, 10.1113) .. (5.316, 10.0657).. controls (5.1705, 10.0463) and (4.9725, 9.9971) .. (4.8514, 9.9504).. controls (4.7354, 9.9057) and (4.5734, 9.8567) .. (4.4914, 9.8415).. controls (4.4095, 9.8264) and (4.2614, 9.7857) .. (4.1622, 9.7511).. controls (3.8569, 9.6448) and (3.6778, 9.6081) .. (3.3205, 9.5787).. controls (2.8182, 9.5375) and (2.7741, 9.5293) .. (2.368, 9.4022).. controls (2.1643, 9.3384) and (1.8741, 9.2675) .. (1.7233, 9.2447) -- (1.449, 9.2032) -- (1.3661, 9.2813).. controls (1.2548, 9.3862) and (1.0668, 9.4888) .. (0.9479, 9.5096).. controls (0.7757, 9.5398) and (0.7866, 9.4321) .. (0.966, 9.3308).. controls (1.0791, 9.2671) and (1.1149, 9.2077) .. (1.0407, 9.2071).. controls (0.9632, 9.2065) and (0.5831, 9.0819) .. (0.5065, 9.0321).. controls (0.3775, 8.9481) and (0.3281, 8.8325) .. (0.408, 8.8018).. controls (0.431, 8.793) and (0.4402, 8.7662) .. (0.4315, 8.7332).. controls (0.4075, 8.6415) and (0.4949, 8.6348) .. (0.5873, 8.7212) -- (0.6687, 8.7974) -- (0.6225, 8.7248).. controls (0.5414, 8.5976) and (0.6282, 8.5155) .. (0.7276, 8.6254).. controls (0.7539, 8.6545) and (0.7879, 8.6783) .. (0.8031, 8.6783).. controls (0.8201, 8.6783) and (0.8185, 8.6661) .. (0.799, 8.6466).. controls (0.7002, 8.5478) and (0.8155, 8.5148) .. (0.9737, 8.5966).. controls (1.0275, 8.6244) and (1.1416, 8.6598) .. (1.2272, 8.6753).. controls (1.3128, 8.6908) and (1.4319, 8.7271) .. (1.4918, 8.756).. controls (1.5906, 8.8037) and (1.6707, 8.8096) .. (2.3548, 8.8199).. controls (3.0998, 8.8312) and (3.1174, 8.8328) .. (3.8232, 8.9504).. controls (4.2161, 9.0159) and (4.6661, 9.0816) .. (4.8231, 9.0965).. controls (4.9801, 9.1113) and (5.1262, 9.1381) .. (5.1478, 9.156).. controls (5.1694, 9.1739) and (5.1941, 9.1815) .. (5.2027, 9.173).. controls (5.2113, 9.1644) and (5.2234, 8.9097) .. (5.2296, 8.6069).. controls (5.2358, 8.3042) and (5.2534, 7.9196) .. (5.2686, 7.7523).. controls (5.323, 7.1562) and (5.3273, 6.6689) .. (5.2796, 6.4952).. controls (5.1854, 6.1515) and (5.1977, 5.4763) .. (5.3213, 4.217).. controls (5.3371, 4.0552) and (5.343, 3.835) .. (5.3344, 3.7275).. controls (5.2565, 2.7617) and (5.2564, 2.6914) .. (5.332, 2.2258).. controls (5.3895, 1.8717) and (5.4007, 1.7318) .. (5.3896, 1.5081).. controls (5.3717, 1.1474) and (5.3478, 1.0764) .. (5.1569, 0.8191).. controls (4.9456, 0.534) and (4.9341, 0.5004) .. (5.0153, 0.4058).. controls (5.0507, 0.3645) and (5.1006, 0.3288) .. (5.1262, 0.3264).. controls (5.1517, 0.324) and (5.2234, 0.3149) .. (5.2854, 0.3062).. controls (5.4295, 0.2859) and (5.5998, 0.3658) .. (5.6362, 0.4707).. controls (5.6498, 0.5101) and (5.6811, 0.5781) .. (5.7056, 0.6218).. controls (5.7301, 0.6654) and (5.7849, 0.7638) .. (5.8274, 0.8404) -- (5.9046, 0.9797) -- (5.864, 1.2505).. controls (5.8111, 1.6038) and (5.8264, 1.8986) .. (5.9134, 2.2008).. controls (5.9674, 2.3887) and (5.9881, 2.5389) .. (6.0069, 2.8812).. controls (6.0378, 3.4423) and (6.0767, 3.8307) .. (6.1237, 4.0481).. controls (6.1441, 4.1427) and (6.1752, 4.3367) .. (6.1927, 4.4791).. controls (6.2102, 4.6215) and (6.2305, 4.732) .. (6.2379, 4.7247).. controls (6.2453, 4.7173) and (6.2545, 4.184) .. (6.2585, 3.5396).. controls (6.2624, 2.8953) and (6.2738, 2.1706) .. (6.2839, 1.9292).. controls (6.2982, 1.5853) and (6.293, 1.433) .. (6.2599, 1.2249).. controls (6.2367, 1.0789) and (6.2177, 0.9363) .. (6.2177, 0.9081).. controls (6.2177, 0.8392) and (6.354, 0.7036) .. (6.4905, 0.6369).. controls (6.5515, 0.607) and (6.6645, 0.5232) .. (6.7416, 0.4507).. controls (6.884, 0.3168) and (7.0274, 0.252) .. (7.1447, 0.2686).. controls (7.2738, 0.2869) and (7.3366, 0.5764) .. (7.2359, 0.6893).. controls (7.207, 0.7215) and (7.106, 0.81) .. (7.0115, 0.8859).. controls (6.8981, 0.9768) and (6.818, 1.0669) .. (6.7763, 1.1504).. controls (6.7196, 1.264) and (6.7149, 1.2992) .. (6.7299, 1.4918).. controls (6.747, 1.7115) and (6.7843, 1.9371) .. (6.8771, 2.3812).. controls (6.9436, 2.6994) and (6.9849, 3.032) .. (6.9854, 3.2537).. controls (6.9857, 3.3486) and (7.004, 3.5097) .. (7.0261, 3.6116).. controls (7.1264, 4.0736) and (7.1188, 4.0086) .. (7.2122, 5.1991).. controls (7.2554, 5.7494) and (7.251, 6.332) .. (7.2003, 6.7842).. controls (7.1749, 7.0112) and (7.2019, 7.399) .. (7.2732, 7.8317).. controls (7.3297, 8.1742) and (7.3953, 9.0021) .. (7.3709, 9.0656).. controls (7.3633, 9.0854) and (7.364, 9.1198) .. (7.3726, 9.1421).. controls (7.3854, 9.1756) and (7.4156, 9.1674) .. (7.5503, 9.0936).. controls (7.765, 8.976) and (8.0756, 8.8964) .. (8.4005, 8.8759).. controls (8.546, 8.8666) and (8.7016, 8.848) .. (8.7461, 8.8344).. controls (8.8928, 8.7898) and (9.7504, 8.7645) .. (10.3375, 8.7875).. controls (10.927, 8.8106) and (11.1195, 8.7956) .. (11.2777, 8.7144).. controls (11.3177, 8.6939) and (11.4248, 8.6761) .. (11.5157, 8.6748).. controls (11.6091, 8.6735) and (11.7354, 8.6511) .. (11.8058, 8.6233).. controls (11.911, 8.5818) and (11.9362, 8.5797) .. (11.9666, 8.6102).. controls (11.9864, 8.63) and (12.0256, 8.6508) .. (12.0536, 8.6565).. controls (12.0851, 8.6628) and (12.104, 8.6878) .. (12.103, 8.7217).. controls (12.1018, 8.762) and (12.114, 8.7733) .. (12.149, 8.7642).. controls (12.2164, 8.7465) and (12.2402, 8.8279) .. (12.1853, 8.8886).. controls (12.1432, 8.9352) and (12.1432, 8.9397) .. (12.1862, 8.9637).. controls (12.248, 8.9983) and (12.2174, 9.0688) .. (12.1252, 9.1043).. controls (12.0848, 9.1198) and (11.9625, 9.1496) .. (11.8533, 9.1703).. controls (11.5671, 9.2248) and (11.5691, 9.2235) .. (11.6475, 9.3075).. controls (11.7358, 9.4023) and (11.7815, 9.4938) .. (11.7636, 9.5403).. controls (11.7417, 9.5973) and (11.7001, 9.5865) .. (11.5658, 9.4885).. controls (11.4984, 9.4393) and (11.3539, 9.3547) .. (11.2448, 9.3006).. controls (11.047, 9.2024) and (11.0456, 9.2021) .. (10.7993, 9.2187).. controls (10.6634, 9.2279) and (10.3806, 9.2703) .. (10.1709, 9.3129).. controls (9.9052, 9.367) and (9.6777, 9.3947) .. (9.4206, 9.4044).. controls (9.0365, 9.4188) and (8.8567, 9.4469) .. (8.7308, 9.512).. controls (8.6899, 9.5331) and (8.5274, 9.5872) .. (8.3697, 9.6321).. controls (8.212, 9.677) and (7.985, 9.7552) .. (7.8653, 9.806).. controls (7.7455, 9.8567) and (7.573, 9.9102) .. (7.4819, 9.9249).. controls (7.3867, 9.9402) and (7.2047, 10.004) .. (7.0542, 10.0748).. controls (6.8344, 10.1782) and (6.7865, 10.2118) .. (6.7563, 10.284).. controls (6.6999, 10.4191) and (6.7122, 10.4872) .. (6.8395, 10.7449).. controls (6.9586, 10.986) and (6.994, 11.1723) .. (6.9325, 11.2338).. controls (6.9182, 11.2481) and (6.8897, 11.3558) .. (6.8692, 11.4729).. controls (6.8007, 11.8652) and (6.7541, 11.9079) .. (6.3235, 11.9727).. controls (6.2872, 11.9781) and (6.202, 11.9676) .. (6.1343, 11.9492); \begin{scope}[line width=1.0pt, circle,minimum size=19.0pt,font=\small] \node[draw=black,fill=red] (LL) at (6.5,1.5) {\textbf{LL}}; \node[draw=black,fill=ecgGreen] (RL) at (5.6,1.5) {\textbf{RL}}; \node[draw=black,fill=white] (RA) at (1.75,9.0) {\textbf{RA}}; \node[draw=black,fill=black,text=white] (LA) at (11.0,9.0) {\textbf{LA}}; \end{scope} \draw[<->, blue,line width = 3.0pt] (RA) -- node[yshift=0.35cm,font=\Large] {\textbf{I}} (LA); \draw[<->, blue,line width = 3.0pt] (RA) -- node[xshift=0.5cm,font=\Large] {\textbf{II}} (LL); \draw[<->, blue,line width = 3.0pt] (LA) -- node[xshift=0.6cm,font=\Large] {\textbf{III}} (LL); \end{tikzpicture} \end{figure} \end{document} Now if I place this in two files: file: myGraphic.tex \documentclass{article} % LTeX: enabled=false \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture} \input{Limb_leads2.tex} \end{tikzpicture} \end{figure} file: Limb_leads2.tex % Original body sillouette from Wikipedia % By Npatchett - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=39235282 % https://commons.wikimedia.org/wiki/File:Limb_leads_of_EKG.png#/media/File:Limb_leads_of_EKG.png % 1) Copied one sillouette image % 2) Removed extraneous graphics % 3) Converted to SVG % 4) Converted to tikz \begin{tikzpicture}[inner sep=0pt, outer sep=0pt] \definecolor{bodyOline}{RGB}{151,154,155} \definecolor{bodyFill}{RGB}{242,242,242} \definecolor{ecgGreen}{RGB}{4,203,153} \path[draw=bodyOline,fill=bodyFill] (6.1343, 11.9492).. controls (5.8796, 11.88) and (5.7804, 11.7586) .. (5.755, 11.4852).. controls (5.7461, 11.3894) and (5.7216, 11.2718) .. (5.7005, 11.224).. controls (5.6373, 11.0812) and (5.6635, 10.9434) .. (5.7921, 10.7421).. controls (5.8487, 10.6536) and (5.9002, 10.5186) .. (5.9002, 10.4592).. controls (5.9002, 10.4244) and (5.8769, 10.3504) .. (5.8485, 10.2946).. controls (5.7826, 10.1655) and (5.6565, 10.1113) .. (5.316, 10.0657).. controls (5.1705, 10.0463) and (4.9725, 9.9971) .. (4.8514, 9.9504).. controls (4.7354, 9.9057) and (4.5734, 9.8567) .. (4.4914, 9.8415).. controls (4.4095, 9.8264) and (4.2614, 9.7857) .. (4.1622, 9.7511).. controls (3.8569, 9.6448) and (3.6778, 9.6081) .. (3.3205, 9.5787).. controls (2.8182, 9.5375) and (2.7741, 9.5293) .. (2.368, 9.4022).. controls (2.1643, 9.3384) and (1.8741, 9.2675) .. (1.7233, 9.2447) -- (1.449, 9.2032) -- (1.3661, 9.2813).. controls (1.2548, 9.3862) and (1.0668, 9.4888) .. (0.9479, 9.5096).. controls (0.7757, 9.5398) and (0.7866, 9.4321) .. (0.966, 9.3308).. controls (1.0791, 9.2671) and (1.1149, 9.2077) .. (1.0407, 9.2071).. controls (0.9632, 9.2065) and (0.5831, 9.0819) .. (0.5065, 9.0321).. controls (0.3775, 8.9481) and (0.3281, 8.8325) .. (0.408, 8.8018).. controls (0.431, 8.793) and (0.4402, 8.7662) .. (0.4315, 8.7332).. controls (0.4075, 8.6415) and (0.4949, 8.6348) .. (0.5873, 8.7212) -- (0.6687, 8.7974) -- (0.6225, 8.7248).. controls (0.5414, 8.5976) and (0.6282, 8.5155) .. (0.7276, 8.6254).. controls (0.7539, 8.6545) and (0.7879, 8.6783) .. (0.8031, 8.6783).. controls (0.8201, 8.6783) and (0.8185, 8.6661) .. (0.799, 8.6466).. controls (0.7002, 8.5478) and (0.8155, 8.5148) .. (0.9737, 8.5966).. controls (1.0275, 8.6244) and (1.1416, 8.6598) .. (1.2272, 8.6753).. controls (1.3128, 8.6908) and (1.4319, 8.7271) .. (1.4918, 8.756).. controls (1.5906, 8.8037) and (1.6707, 8.8096) .. (2.3548, 8.8199).. controls (3.0998, 8.8312) and (3.1174, 8.8328) .. (3.8232, 8.9504).. controls (4.2161, 9.0159) and (4.6661, 9.0816) .. (4.8231, 9.0965).. controls (4.9801, 9.1113) and (5.1262, 9.1381) .. (5.1478, 9.156).. controls (5.1694, 9.1739) and (5.1941, 9.1815) .. (5.2027, 9.173).. controls (5.2113, 9.1644) and (5.2234, 8.9097) .. (5.2296, 8.6069).. controls (5.2358, 8.3042) and (5.2534, 7.9196) .. (5.2686, 7.7523).. controls (5.323, 7.1562) and (5.3273, 6.6689) .. (5.2796, 6.4952).. controls (5.1854, 6.1515) and (5.1977, 5.4763) .. (5.3213, 4.217).. controls (5.3371, 4.0552) and (5.343, 3.835) .. (5.3344, 3.7275).. controls (5.2565, 2.7617) and (5.2564, 2.6914) .. (5.332, 2.2258).. controls (5.3895, 1.8717) and (5.4007, 1.7318) .. (5.3896, 1.5081).. controls (5.3717, 1.1474) and (5.3478, 1.0764) .. (5.1569, 0.8191).. controls (4.9456, 0.534) and (4.9341, 0.5004) .. (5.0153, 0.4058).. controls (5.0507, 0.3645) and (5.1006, 0.3288) .. (5.1262, 0.3264).. controls (5.1517, 0.324) and (5.2234, 0.3149) .. (5.2854, 0.3062).. controls (5.4295, 0.2859) and (5.5998, 0.3658) .. (5.6362, 0.4707).. controls (5.6498, 0.5101) and (5.6811, 0.5781) .. (5.7056, 0.6218).. controls (5.7301, 0.6654) and (5.7849, 0.7638) .. (5.8274, 0.8404) -- (5.9046, 0.9797) -- (5.864, 1.2505).. controls (5.8111, 1.6038) and (5.8264, 1.8986) .. (5.9134, 2.2008).. controls (5.9674, 2.3887) and (5.9881, 2.5389) .. (6.0069, 2.8812).. controls (6.0378, 3.4423) and (6.0767, 3.8307) .. (6.1237, 4.0481).. controls (6.1441, 4.1427) and (6.1752, 4.3367) .. (6.1927, 4.4791).. controls (6.2102, 4.6215) and (6.2305, 4.732) .. (6.2379, 4.7247).. controls (6.2453, 4.7173) and (6.2545, 4.184) .. (6.2585, 3.5396).. controls (6.2624, 2.8953) and (6.2738, 2.1706) .. (6.2839, 1.9292).. controls (6.2982, 1.5853) and (6.293, 1.433) .. (6.2599, 1.2249).. controls (6.2367, 1.0789) and (6.2177, 0.9363) .. (6.2177, 0.9081).. controls (6.2177, 0.8392) and (6.354, 0.7036) .. (6.4905, 0.6369).. controls (6.5515, 0.607) and (6.6645, 0.5232) .. (6.7416, 0.4507).. controls (6.884, 0.3168) and (7.0274, 0.252) .. (7.1447, 0.2686).. controls (7.2738, 0.2869) and (7.3366, 0.5764) .. (7.2359, 0.6893).. controls (7.207, 0.7215) and (7.106, 0.81) .. (7.0115, 0.8859).. controls (6.8981, 0.9768) and (6.818, 1.0669) .. (6.7763, 1.1504).. controls (6.7196, 1.264) and (6.7149, 1.2992) .. (6.7299, 1.4918).. controls (6.747, 1.7115) and (6.7843, 1.9371) .. (6.8771, 2.3812).. controls (6.9436, 2.6994) and (6.9849, 3.032) .. (6.9854, 3.2537).. controls (6.9857, 3.3486) and (7.004, 3.5097) .. (7.0261, 3.6116).. controls (7.1264, 4.0736) and (7.1188, 4.0086) .. (7.2122, 5.1991).. controls (7.2554, 5.7494) and (7.251, 6.332) .. (7.2003, 6.7842).. controls (7.1749, 7.0112) and (7.2019, 7.399) .. (7.2732, 7.8317).. controls (7.3297, 8.1742) and (7.3953, 9.0021) .. (7.3709, 9.0656).. controls (7.3633, 9.0854) and (7.364, 9.1198) .. (7.3726, 9.1421).. controls (7.3854, 9.1756) and (7.4156, 9.1674) .. (7.5503, 9.0936).. controls (7.765, 8.976) and (8.0756, 8.8964) .. (8.4005, 8.8759).. controls (8.546, 8.8666) and (8.7016, 8.848) .. (8.7461, 8.8344).. controls (8.8928, 8.7898) and (9.7504, 8.7645) .. (10.3375, 8.7875).. controls (10.927, 8.8106) and (11.1195, 8.7956) .. (11.2777, 8.7144).. controls (11.3177, 8.6939) and (11.4248, 8.6761) .. (11.5157, 8.6748).. controls (11.6091, 8.6735) and (11.7354, 8.6511) .. (11.8058, 8.6233).. controls (11.911, 8.5818) and (11.9362, 8.5797) .. (11.9666, 8.6102).. controls (11.9864, 8.63) and (12.0256, 8.6508) .. (12.0536, 8.6565).. controls (12.0851, 8.6628) and (12.104, 8.6878) .. (12.103, 8.7217).. controls (12.1018, 8.762) and (12.114, 8.7733) .. (12.149, 8.7642).. controls (12.2164, 8.7465) and (12.2402, 8.8279) .. (12.1853, 8.8886).. controls (12.1432, 8.9352) and (12.1432, 8.9397) .. (12.1862, 8.9637).. controls (12.248, 8.9983) and (12.2174, 9.0688) .. (12.1252, 9.1043).. controls (12.0848, 9.1198) and (11.9625, 9.1496) .. (11.8533, 9.1703).. controls (11.5671, 9.2248) and (11.5691, 9.2235) .. (11.6475, 9.3075).. controls (11.7358, 9.4023) and (11.7815, 9.4938) .. (11.7636, 9.5403).. controls (11.7417, 9.5973) and (11.7001, 9.5865) .. (11.5658, 9.4885).. controls (11.4984, 9.4393) and (11.3539, 9.3547) .. (11.2448, 9.3006).. controls (11.047, 9.2024) and (11.0456, 9.2021) .. (10.7993, 9.2187).. controls (10.6634, 9.2279) and (10.3806, 9.2703) .. (10.1709, 9.3129).. controls (9.9052, 9.367) and (9.6777, 9.3947) .. (9.4206, 9.4044).. controls (9.0365, 9.4188) and (8.8567, 9.4469) .. (8.7308, 9.512).. controls (8.6899, 9.5331) and (8.5274, 9.5872) .. (8.3697, 9.6321).. controls (8.212, 9.677) and (7.985, 9.7552) .. (7.8653, 9.806).. controls (7.7455, 9.8567) and (7.573, 9.9102) .. (7.4819, 9.9249).. controls (7.3867, 9.9402) and (7.2047, 10.004) .. (7.0542, 10.0748).. controls (6.8344, 10.1782) and (6.7865, 10.2118) .. (6.7563, 10.284).. controls (6.6999, 10.4191) and (6.7122, 10.4872) .. (6.8395, 10.7449).. controls (6.9586, 10.986) and (6.994, 11.1723) .. (6.9325, 11.2338).. controls (6.9182, 11.2481) and (6.8897, 11.3558) .. (6.8692, 11.4729).. controls (6.8007, 11.8652) and (6.7541, 11.9079) .. (6.3235, 11.9727).. controls (6.2872, 11.9781) and (6.202, 11.9676) .. (6.1343, 11.9492); \begin{scope}[line width=1.0pt, circle,minimum size=19.0pt,font=\small] \node[draw=black,fill=red] (LL) at (6.5,1.5) {\textbf{LL}}; \node[draw=black,fill=ecgGreen] (RL) at (5.6,1.5) {\textbf{RL}}; \node[draw=black,fill=white] (RA) at (1.75,9.0) {\textbf{RA}}; \node[draw=black,fill=black,text=white] (LA) at (11.0,9.0) {\textbf{LA}}; \end{scope} \draw[<->, blue,line width = 3.0pt] (RA) -- node[yshift=0.35cm,font=\Large] {\textbf{I}} (LA); \draw[<->, blue,line width = 3.0pt] (RA) -- node[xshift=0.5cm,font=\Large] {\textbf{II}} (LL); \draw[<->, blue,line width = 3.0pt] (LA) -- node[xshift=0.6cm,font=\Large] {\textbf{III}} (LL); \end{tikzpicture} I get: TeX capacity exceeded, sorry [input stack size=10000]. \pgf@selectfontorig ->\pgf@selectfontorig I can get it to build if I remove all font=`` and ``\textbf references. Why would importing the file make a difference?

  • Can I customize margins and spacing for bibliography?
    by user3133512 on January 12, 2026 at 6:28 pm

    Can I customize line spacing and margins for bibliography?, in particular make margins wider and spacing smaller. Like is there a command like {\linespacingsinglenospace\widemargins\bibliography{main}}? https://www.overleaf.com/read/yfycskzvvvjp#038e60

  • Can someone please explain why I am getting these errors and how to fix them? (Scatterplots and captions)
    by L. Finsbury on January 12, 2026 at 6:05 pm

    Could someone please help me explain why am I getting the following errors in my .tex file, and also how to fix it? I am trying to construct a scatterplot using Tikz. I am getting 5 errors in total: LaTeX Error: \caption outside float. (This is for the first code paragraph btw) And then for the 2nd code paragraph unclosed \begin{figure} unclosed \begin{tikzpicture} unclosed \begin{axis} found at \end{document} unclosed \begin{axis} This is the following code: \caption{Posterior mean return \protect $\mu_j$ versus posterior standard deviation $\sigma_j$ for each asset. The scatter plot illustrates the risk-return tradeoffs captured by the hierarchical Bayesian model. Assets with higher expected returns are associated with greater posterior uncertainty, while more stable assets exhibit lower variance. Shrinkage priors moderate extreme estimates, allowing SFO principals to make informed allocation decisions balancing potential upside with risk exposure.} \label{fig:risk_return} \begin{figure}[h!] \centering \begin{tikzpicture} \begin{axis}[ width=12cm, height=8cm, xlabel={Posterior Standard Deviation $\sigma_j$}, ylabel={Posterior Mean Return $\mu_j$}, title={Risk-Adjusted Returns for Portfolio Assets}, grid=major, scatter/classes={ a={mark=o,draw=blue}, b={mark=square*,draw=red}, c={mark=triangle*,draw=green} }, legend pos=north west ] % Example data: format {x y class error_lower error_upper} \addplot[ only marks, scatter, mark size=2.5pt, error bars/.cd, y dir=both, y explicit ] coordinates { (0.005,0.012) +- (0,0.004) % Asset 1 (0.007,0.009) +- (0,0.005) % Asset 2 (0.004,0.015) +- (0,0.006) % Asset 3 (0.006,0.011) +- (0,0.003) % Asset 4 }; \addlegendentry{Portfolio Assets} \end{axis} \end{tikzpicture} \caption{Scatterplot of posterior mean returns vs posterior standard deviation for portfolio assets. Error bars show 95\% credible intervals.} Any help would be greatly appreciated.

  • Put a text in the middle of a path move operation in Tikz
    by Harald on January 12, 2026 at 4:24 pm

    I know how to use \draw (0,0) -- node[below]{X} (10,0); to put the text X in the middle below the line between the coordinates. What I would like to have is the very same, but without drawing the line, yet the following does not work (somewhat to my surprise :-/) \draw (0,0) node[below]{X} (10,0); I figured out a way involving node at ($ ...!.5!... $) yet \draw would sometimes be a bit more natural and I would in particular like to understand why it does not work, as I seem to miss some fundamental knowledge here.

  • How to highlight a rank and file with lines and box the coordinate labels on a chessboard diagram?
    by Dao Minh Duc on January 12, 2026 at 4:08 pm

    I can already place pieces, arrows, and coordinates on the chessboard. What I’d like to do now is to highlight a specific rank and file by: drawing a horizontal line across a rank (e.g. rank 5), drawing a vertical line along a file (e.g. file d), and drawing rectangular boxes around the corresponding coordinate labels (5 and d), as shown in the image below. Is there a standard or recommended way to do this using common chess diagram tools (e.g. LaTeX chessboard / xskak with TikZ overlays, or other libraries)? Thanks a lot

  • In ltx-talk make text body not vertically centered
    by Jim Hefferon on January 12, 2026 at 3:44 pm

    In ltx-talk the default is for body text to be vertically centered. How to instead make it display always starting from the page top? Vertical centering makes the text jump around when I use the \only<..>{} command. That is, how to achieve what in Beamer I get with \beamer@centeredfalse? Here is an MWE. Between slides 1 and 2 the first paragraph jumps up. \DocumentMetadata{tagging = on} \documentclass{ltx-talk} \usepackage{blindtext} \begin{document} \begin{frame} \frametitle{Frame title} \blindtext \only<2>\blindtext \end{frame} \end{document}

  • Can no longer change BoldFont with New Computer Modern
    by mbert on January 12, 2026 at 3:13 pm

    Until a recent update, the following example used New Computer Modern book weight in the first paragraph and Latin Modern demibold in the second paragraph (confirmed with an older texlive in Overleaf). After the update, the BoldFont setting no longer seems to work and New Computer Modern bold is used. \documentclass{article} \usepackage{fontspec} \usepackage{kantlipsum} \setmainfont{NewCM10-Book.otf}[ BoldFont=lmromandemi10-regular.otf, ] \begin{document} \kant[1][1-2] \bfseries \kant[1][1-2] \end{document} I know there was some recent discussion around NewCM defaulting to Harf mode and not being able to override this due to the provided .fontspec files. Did something change so that setting BoldFont is no longer possible? Note that if NewCM10-Book.otf is changed to another font, say TeX Gyre Pagella, then the example works as expected.

  • breakage regarding thmtools and mdframed
    by DavidIsDumb on January 12, 2026 at 2:12 pm

    So basically this time I was using overleaf again and came across this error: When I do \documentclass[11pt]{scrartcl} \usepackage[dvipsnames,svgnames]{xcolor} \usepackage[framemethod=TikZ]{mdframed} \usepackage{amsmath,amssymb,amsthm} \usepackage{thmtools} \mdfdefinestyle{mdgreenbox}{linecolor=ForestGreen,backgroundcolor=ForestGreen!5, linewidth=2pt,rightline=false,leftline=true,topline=false,bottomline=false,} \declaretheoremstyle[headfont=\bfseries\sffamily\color{ForestGreen!70!black}, mdframed={style=mdgreenbox},headpunct={.},]{thmgreenbox} \mdfdefinestyle{mdblackbox}{linecolor=black,backgroundcolor=RedViolet!5!gray!5, linewidth=3pt,rightline=false,leftline=true,topline=false,bottomline=false,} \declaretheoremstyle[mdframed={style=mdblackbox}]{thmblackbox} \declaretheorem[style=thmblackbox,name=Blah,numbered=no]{bla} \declaretheorem[style=thmgreenbox,name=Blahblah,numbered=no]{blah} \begin{document} \begin{bla} \begin{blah} Blah blah blah blah blah \end{blah} \begin{proof} blah blah blah blah blah \end{proof} \begin{itemize} \item Blah blah blah blah blah \item Blah blah blah blah blah \end{itemize} \end{bla} \end{document} It breaks and gives me which is just weird. The “Blah.” should be at the very front of the black box while the “Proof” should be right below the green. Also there is no bullet point for the first item in itemize. Surprisingly, If I remove the Blahblah section (the green box) everything comes out normally! (The blahs are edited from some content in my actual file)

  • PDF 2.0 + hyperref: titles of toc entries are not clickable
    by Andreas Deininger on January 12, 2026 at 1:49 pm

    mwe.tex: %\DocumentMetadata{lang=en} \documentclass{scrartcl} \usepackage[hidelinks]{hyperref} \begin{document} \tableofcontents \clearpage \section{My first section} \end{document} I'm now running: latexmk -lualatex mwe.tex This produces mwe.pdf, pdf version 1.5. If I open the file in Adobe Acrobat, the section title My first section in the TOC is clickable so that I can directly jump to the section text. Now I'm uncommenting the first line and compile the document again. The compilation run now produces PDF version 2.0. Unfortunately, in the pdf produced, the section title in the TOC is not clickable any more. What do I have to add (\hypersetup !?) to make the TOC title clickable again? Thanks for our help!

  • Cyrillic script letter el with tail
    by moorooduc on January 11, 2026 at 11:19 pm

    I am trying to typeset a text in the Khanty language, whose orthography uses the Cyrillic script. I know how to make Cyrillic script work in the book project, but Khanty has the letter Ӆ ӆ (that's a Cyrillic lower case "L" with a tail: https://en.wikipedia.org/wiki/El_with_tail). I don't find a way to typeset this correctly. Does anyone have advice?

  • tikz: using the pos key to place nodes along a plot
    by Jasper on January 11, 2026 at 7:39 pm

    In this tikz MWE, why is the node placement not even close to pos=0.7 on a plotted curve? \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \draw[ domain = 0:2, samples = 100, variable = \y ] plot (\y*\y,\y) node[pos = 0.7, above left] {\(x=y^2\)} ; \end{tikzpicture} \end{document}

  • Creating a CircuiTikz custom voltage source component/style with a plus sign for polarity
    by MatG on January 11, 2026 at 6:24 pm

    In certain contexts (italian schools) an ideal DC voltage source is represented by the symbol in this circuit: \documentclass{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0) to[V,a^=V1,name=VS] (0,4); \node[above left,inner sep=1pt] at (VS.e) {$+$}; \draw (0,0) to[V,a=V2,name=VS] (4,0); \node[above right,inner sep=1pt] at (VS.e) {$+$}; \draw (4,4) to[V,a=V3,name=VS] (0,4); \node[below left,inner sep=1pt] at (VS.e) {$+$}; \draw (4,4) to[V,a^=V4,name=VS] (4,0); \node[below right,inner sep=1pt] at (VS.e) {$+$}; \end{circuitikz} \end{document} This is the symbol I want. Unfortunately, drawing circuits like this is rather cumbersome, so I’m wondering whether it would be possible to define a CircuiTikz style or a custom component that produces the symbol in a more natural way. I’m not a TikZ expert, and I struggle with the part of the documentation that explains how to create new components. I’m aware of existing questions such as: Adding a plus sign in a circuit diagram Including +/- signs to battery in Circuitikz But the answers there didn't help me. I also had no luck with AI tools, so I’m hoping someone with more experience in CircuiTikz and TikZ can offer some guidance.

  • circuitikz: 'draw=none' for a electrical symbol
    by cis on January 11, 2026 at 4:58 pm

    If I use color=white, the resistor R wouldn't be visible unless I added a colored background. Out of theoretical interest: Is there a way to pass the resistor with something like draw=none, so that it isn't drawn? (The rest should be drawn as before.) \documentclass[margin=5pt, multi=circuitikz]{standalone} \usepackage{circuitikz} \usetikzlibrary{backgrounds} \begin{document} \begin{circuitikz}[european resistors, background rectangle/.style={draw=none, fill=gray!25, rounded corners}, show background rectangle, ] \draw[] (0,0) to[L=L] (2,0) to[R=R](4,0); \draw[yshift=-12mm] (0,0) to[L=L] (2,0) to[R=R, color=white](4,0); \end{circuitikz} \end{document}

  • Redefine `$...$` to `\(...\)`
    by weisj on January 10, 2026 at 2:44 pm

    The mathtools package can automatically insert italics correction when using \(...\) for inline math mode. See this answer. However, I much prefer $...$ for inline math as I find it more readable and comfortable to type on my keyboard layout. I am currently using the following hack to keep using the $...$ syntax while preserving the italics correction. \catcode`\$=13% \def$#1${\(#1\)}% I haven't had issues with it in my current document, but I was wondering whether there are reasons this might be a bad idea. I would image that if this was harmless the mathtools package would use it to also patch the $...$ syntax for the mathic feature. So my question is: Is this safe and are there any caveats I might be overseeing?

  • How to tweak the distance of resistor's "+"/"-" label's vertical distance when `raised` is set?
    by Explorer on January 10, 2026 at 10:09 am

    I have the following code: \documentclass[margin=5pt]{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz}[european] \ctikzset{voltage=raised}%<- \draw (0,0) -- ++(1,0) to[R=R,label distance=3pt, v=$\mathrm{u_R}$] ++(0,+3) -- ++(-1,0); \end{circuitikz} \end{document} However, I want the "+" and "-" to get closer with "u_R"(that is: shift "+" up and shift "-" down), I have tried shift and label distance and voltage/distance from node, but all failed, because they justs tweak the distance between the wire. It's hard for me to dig it out from the manual, is that exists elegant method?