Hot
- lua-unicode-math clash with mismathby 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?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?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 includeonlyby 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 errorby 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 fileby 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 Thanks in advance!
- Put a text in the middle of a path move operation in Tikzby 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 centeredby 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 Modernby 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 mdframedby 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 clickableby 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!
- Reference order [closed]by Rajasekar on January 12, 2026 at 6:25 am
Using flushend package to balance the spread in two column paper; in some articles, the references in the very last column is not coming in correct order. That is, in the place of #35, 38 is priting at the top, then remaining references printing in correct order. If we give columnbreak before, it comes correct. Please suggest any solution to correct this.
- How to properly induce a forced page break in `longtblr`by Subhajit Paul on January 12, 2026 at 6:05 am
I want to force a page break within a longtblr environment. The documentation states that this can be done using the \pagebreak command; however, when I do so, the contfoot-text is not applied. How can I force a page break while still preserving the contfoot-text? The following MWE demonstrates my exact use case and explains the motivation for enforcing a page break. \documentclass[a5paper]{article} \usepackage[margin=2in, includeheadfoot]{geometry} \usepackage[table]{xcolor} \usepackage{tabularray} \DeclareTblrTemplate{contfoot-text}{mystyle}{\small\itshape Continued on next page\textellipsis} \SetTblrTemplate{contfoot-text}{mystyle} \DeclareTblrTemplate{conthead-text}{mystyle}{(\emph{Continued})} \SetTblrTemplate{conthead-text}{mystyle} \begin{document} \begin{longtblr} [ caption={Long table} ] { colspec = {X[l,m] Q[l,m,0.5\linewidth]}, row{1} = {c,m,bg=gray,font=\bfseries}, column{1} = {font=\bfseries}, rowhead = {1}, hlines, vlines, } A & B \\ \SetCell[r=10]{l,m}Merged 1 & R1\\ & R2\\ & R3\\ & R4\\ & R5\\ & R6\\ & R7\\ & R8\\ & R9\\ & R10\\\pagebreak \SetCell[r=10]{l,m}Merged 2 & R1\\ & R2\\ & R3\\ & R4\\ & R5\\ & R6\\ & R7\\ & R8\\ & R9\\ & R10 \end{longtblr} \end{document} A hack is given in this answer. However, I will wait for any better alternative.
- Cyrillic script letter el with tailby 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?
- Suble change in header on last overlay of every frameby scottkosty on January 11, 2026 at 10:55 pm
It is often useful to know when I'm on the last overlay of a frame (i.e., when the next overlay will be on a different frame). I use miniframes, and one idea for a subtle change is to have the "current dot" turn from black to light grey. However, I'm open to other ideas. Related threads: Signaling the last overlay in a beamer frame shows how to make a change in the footer. Lightweight change to beamer font/colors mid-frame shows how to change the page style. Here is an example of the Beamer style I am using. There is some complicated code in it which collapses the miniframes to be on the same line as the section names (to reduce vertical space). In the example I use "hint" to mean that when that text is shown, that's when the miniframes should have a subtle change so that I can know I'm on the last overlay. \documentclass{beamer} \beamerdefaultoverlayspecification{<alert@+|+->} \usecolortheme{crane} \useoutertheme[ subsection=false ]{smoothbars} %%%%% % this code changes the miniframe dots to be on the same line as the section name, to save vertical space: % https://tex.stackexchange.com/questions/88182/beamer-miniframes-side-by-side-section-names-and-navigation-dots \usepackage{etoolbox} \makeatletter \patchcmd{\slideentry}{\advance\beamer@tempdim by -.05cm}{\advance\beamer@tempdim by\beamer@vboxoffset\advance\beamer@tempdim by\beamer@boxsize\advance\beamer@tempdim by 1.2\pgflinewidth}{}{} \patchcmd{\slideentry}{\kern\beamer@tempdim}{\advance\beamer@tempdim by 2pt\advance\beamer@tempdim by\wd\beamer@sectionbox\kern\beamer@tempdim}{}{} \makeatletter % reduce margin between dots and frame title \setbeamertemplate{frametitle}{% \vspace*{-0.6ex}% <- make more negative to pull title upward \begin{beamercolorbox}[wd=\paperwidth,ht=2.3ex,dp=1.0ex,leftskip=1em]{frametitle}% \usebeamerfont{frametitle}\insertframetitle \end{beamercolorbox}% } %%%%% \begin{document} \section{Summation operator and the mean} \begin{frame} \begin{itemize} \item On the overlay introducing this item, the hint should not show, since there are more overlays left in this frame. \item This one is also not the last. \item This is the last overlay of the frame. Show the hint. \end{itemize} \end{frame} \begin{frame} \begin{itemize} \item another frame just for testing. \item On the overlay introducing this item, I also want the hint since it is the last overlay of the frame as well. \end{itemize} \end{frame} \end{document}
- ConTeXt: Spacing between main text body and footnote(s) areaby Jeff Dodson on January 11, 2026 at 10:55 pm
This might be something that's simple, and I'm making it difficult. But I'm struggling with it, so I thought I'd post here (I didn't see a similar question posted). I've got a ConTeXt project where I'm showing two separate footnote apparatuses. One apparatus, called "appnote," is the main apparatus. There's a second apparatus called "marginal" that, if it appears on a given page, will display above the apparatus named "appnote". Depending on the particular page, you might have no apparatuses show up (if there's no notes), one apparatus show up, or both show up. I always want a horizontal rule to be displayed between the main text body and the footnote area. And if both apparatuses show up, I'd like the two apparatuses to also be separated from each other with a horizontal rule. These horizontal rules should be the width of the entire text area. So here's my question: If you are typesetting on a grid under the above conditions, what is the proper way to ensure that whichever apparatuses shows up are separated from each other and the main text body properly? I'm assuming that some sort of logic might be necessary, because if both apparatuses show up, it's the top apparatus that needs spacing between itself and the main text body. Whereas if only the lower apparatus shows up, it would need that extra spacing between itself and the main text body. Here's the code I have as a working sample: \definepapersize[Trade][width=6in, height=9in] \setuppapersize[Trade] \setupinterlinespace[line=15pt] % Set up a two-sided layout \setuppagenumbering[alternative=doublesided, location={bottom, middle}] % Set up a geometry for our main body that is grid-based. \setuplayout[ grid=yes, % Layout on a grid % ------------------------------------------------------------------- backspace=0.75in, % 0.75in inner margin cutspace=1in, % 1in outer margin width=middle, % Text width (6in - (0.75in + 1in) = 4.25in) % ------------------------------------------------------------------- topspace=45pt, % 3 lines above the header header=15pt, % 1 line header headerdistance=15pt, % 1 line between the header and the body % ------------------------------------------------------------------- lines=34, % 34 lines of text (34 * 15 = 510) % ------------------------------------------------------------------- footerdistance=15pt, % 1 line between the body and the footer footer=15pt, % 1 line footer bottomspace=33pt, % Remainder to fill 9in (648 - other = 33) ] \definenote[marginal][way=bypage, location=page] \setupnotation[marginal][number=yes, alternative=serried] \setupnote[marginal][ grid=yes, rule=off, location=page, before={\blank[7.5pt]\blackrule[width=\textwidth,height=0.4pt]\blank[3.75pt]}, width=\textwidth, paragraph=yes, alternative=serried, bottom={\ifnotes\blank[none]\fi}, inbetween={\hskip .5em plus .2em minus .1em}, style={\switchtobodyfont[9pt]}, indenting=no ] \definenote[appnote][way=bypage, location=page] \setupnotation[appnote][number=yes, alternative=serried] \setupnote[appnote][ grid=yes, rule=off, location=page, before={\blank[7.5pt]\blackrule[width=\textwidth,height=0.4pt]\blank[3.75pt]}, width=\textwidth, paragraph=yes, alternative=serried, inbetween={\hskip .5em plus .2em minus .1em}, style={\switchtobodyfont[9pt]}, indenting=no ] \showgrid \starttext Lorem ipsum dolor sit amet consectetur\appnote{This is note number one.} adipiscing elit. Quisque faucibus ex sapien vitae\appnote{This is note number two.} pellentesque sem placerat. In id\appnote{This is note number three.} cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia. Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubianubiotopia. Now is the time for all good men. \stoptext If both apparatuses show up, the main text body is always separated from the footnote area by at least 1/2 of a grid line. However, as shown in the image below, the sample demonstrates that if only one apparatus appears on a page, there are cases where there's no separation at all between the main text body and the footnote area. This is the problem I'm trying to solve. On most pages, there does end up being a decent buffer of one line between the main text body and the footnote area. However, the above sample demonstrates what happens at times: There's no distance at all between the main text and the footnote area. So to repeat the question above: If I have multiple apparatuses, which can either not show up, or show up in various combinations, how can I ensure that uniform spacing occurs between each apparatus and between the top apparatus and the main text body? Note also that the sample here does define the "marginal" apparatus, but doesn't show any notes from it. You can easily add "marginal" notes to the sample code, but I didn't include any here because the problem only occurs when one apparatus appears.
- Why is my pgffor loop not iterating as expected? \foreach \i[parse=true] in {0,pi/18,...,2*pi-pi/18} {works \i\\}by Jasper on January 11, 2026 at 10:47 pm
Why is my pgffor loop not iterating as expected? \documentclass{article} \usepackage{pgffor} \begin{document} \foreach \i[parse=true] in {0,pi/18,...,2*pi-pi/18} {works \i\\} \end{document} It only prints the first two elements of the sequence, but not the rest. It does however work when I evaluate the numbers first: \documentclass{article} \usepackage{pgffor} \usepackage{pgfmath} \begin{document} \pgfmathsetmacro{\a}{pi/18} \pgfmathsetmacro{\b}{2*pi-\a} \foreach \i[parse=true] in {0,\a,...,\b} {works \i\\} \end{document} I would expect parse = true to do this for me. Am I mistaken?
- tikz: using the pos key to place nodes along a plotby 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}
- Problem with \ifxby user209882 on January 11, 2026 at 6:32 pm
\def\drawDSID#1#2{ \def\trP{#2}\def\rpT{R}\def\trV{\ifx{\trP}{\rpT}3\else2\fi} \trV} The result is always 2, irrespective of #2, eg \drawDSID{(0,-7)}{R};
- Creating a CircuiTikz custom voltage source component/style with a plus sign for polarityby 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 symbolby 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}
- TeXStudio 4.9.1 with strange behaviourby Thomkrates on January 11, 2026 at 4:53 pm
When using TexStudio 4.9.1, which I today have downloaded and installed, there is a strange behaviour when compling with LuaLaTeX. I installed the newest version, since this behaviour has been found the foremost version 4.8.7. Klicking in the menu LuaLteX, compling is starting with pdfLaTex and runs after that lualatex, but gives me an error that LuaLaTex is needed in my source. My source seems correct, since a small MWE works well with LuaLaTeX compiling. I have checked the run settings in the menu, but they are correct, as usual. Does anybody know what can be wrong? And how to fix this?
- label referencing problem in tcolorboxby mmjt on January 11, 2026 at 5:38 am
I am trying to use tcolorboxes to highlight exercises in a math tutorial (book document class) for a course I teach. I use a \label in the box hoping to reference the exercise by number in the solutions manual. However, the label does not "attach" to the colorbox; instead it returns the section number. Thus, Exercise "17" is referenced as "2.2.3" because that is the chapter section it is in. This behavior is different to that of a normal LaTeX environment and I am going in circles trying to resolve the issue. The tcolorbox manual is very detailed, but I cannot sort out this (seemingly) simple issue. What I want to accomplish is this: (1) create a box and put a \label{mylabel} in it. (2) \ref{mylabel} returns the box (exercise) number. (3) I want to reset the box numbering at the start of each chapter, with no "cross-talk" between the similarly numbered boxes in each chapter. I hope somebody can help restore my sanity and reveal the secret to doing this! Here is a MWE: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{most} \begin{document} \section{Introduction} This document contains labeled tcolorboxes in Section \ref{sec:example}. The first box is numbered as \ref{box:label1}. \section{An Example Section} \label{sec:example} \newcounter{myboxcounter} \newtcolorbox[auto counter]{mybox}[1][]{ enhanced, colback=blue!5!white, colframe=blue!75!black, fonttitle=\bfseries, before title={\refstepcounter{myboxcounter}}, title={Exercise~\arabic{myboxcounter}\ifx#1\empty\else\ (#1)\fi}, fonttitle=\bfseries, breakable } \begin{mybox}[] \label{box:label1} This is box \ref{box:label1}. \end{mybox} \begin{mybox}[] \label{box:label2} This is box \ref{box:label2}. \end{mybox} \subsection{An Example Section} \begin{mybox}[] \label{box:label3} This is box \ref{box:label3}. The first two are boxes \ref{box:label1} and \ref{box:label2}. \end{mybox} \end{document}
- tex4ht does not create local TOC when using starred version of sectioning with an explicit \addcontentslineby Nasser on January 11, 2026 at 12:01 am
setup: I wanted to make all my sections and subsections without numbers showing on the left side of each entry. So I changed to using the star version and with manually entering each section or subsection into the main toc. But now I find that only the main TOC is created, but local toc at top of each section is missing. This happens with splitting or no splitting. Removing the star version of sectioning, the local TOC shows up again as expected. Here is a MWE \documentclass[12pt]{article} \begin{document} \ifdefined\HCode \Configure{tableofcontents*}{section} \TocAt{section,subsection} \else \tableofcontents \fi \section*{section 1} \addcontentsline{toc}{section}{section 1}% text \subsection*{subsection 1} \addcontentsline{toc}{subsection}{subsection 1}% text \subsection*{subsection 2} \addcontentsline{toc}{subsection}{subsection 2}% text \end{document} Compiled with make4ht -ulm default -a debug C.tex 'mathjax,htm' Gives this Now see what happens when I change back to normal sectioning (i.e. no star) \documentclass[12pt]{article} \begin{document} \ifdefined\HCode \Configure{tableofcontents*}{section} \TocAt{section,subsection} \else \tableofcontents \fi \section{section 1} text \subsection{subsection 1} text \subsection{subsection 2} text \end{document} Compiled using same command gives I expected local TOC to show up in both cases. Is there a workaround? reference https://puszcza.gnu.org.ua/bugs/index.php?667
- Double integral with intexgral: display errorby Sebastiano on January 10, 2026 at 8:35 pm
Am I make a mistake, but the code \integral[symbol=\iint, llimit=S, variables={x, y}]{f(x, y)} taken from the manual on page 7 does not give me the double integral? \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage[italic=true]{intexgral} \begin{document} \begin{equation} \integral[symbol=\iint, llimit=S, variables={x, y}]{f(x, y)} \end{equation} \begin{equation} \integral[nint=2, llimit=\Omega, variables={x, y}]{f(x,y)} \end{equation} \end{document}
- How to move an equations system letter to midline height?by graograman on January 10, 2026 at 6:36 pm
I'd like to move the letter H below so it's at a midline height in between the two equations, please. Here's a MWE. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \left.\begin{matrix} \frac{x-h}{a}=\sec\theta\Rightarrow x-h=a\sec\theta\Rightarrow x=a\sec\theta+h \\ \frac{y-k}{b}=\tan\theta\Rightarrow y-k=b\tan\theta\Rightarrow y=b\tan\theta+k \end{matrix}\right\}\Rightarrow \mbox{\Huge$\mathcal{H}$:} \begin{matrix} x=a\sec\theta+h \\ y=b\tan\theta+k \end{matrix} \end{equation*} \end{document} This code produces the equations system thus:
- 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?