Hot
- Low accessibility score for my ltx-talk presentation because of itemizeby Elena on January 16, 2026 at 11:35 pm
I have customised my ltx-talk slides to have nice bullet and triangle symbols for my itemize items. \renewcommand{\labelitemi}{\textcolor{myblue}{$\bullet$}} \renewcommand{\labelitemii}{\textcolor{notecolor}{$\blacktriangleright$}} Now, the accessibility thingy in Moodle says that "This PDF contains images without description", and the offending images are the bullets and the triangles from the items. I checked, and I don't get that complaint if I comment the two commands above. Is there a way to have the bullets and triangles and not to get that error?
- Hungarian clickable references with manual suffixesby taiwan12 on January 16, 2026 at 9:03 pm
I’m typesetting a document in Hungarian. Hungarian uses case suffixes / postpositions attached to the noun (e.g. ábra, ábrán, ábrára, táblázat, táblázaton), so I need to manually provide the inflected noun in running text. Additionally, I use the chemstyle package and I want scheme environments to behave like figures: same counter as figures (one shared sequence) same caption name (schemes should say “Ábra” in the caption, not “Scheme”) schemes should appear in the List of Figures This scheme/figure integration is already working; I include that code only because it’s part of the real setup. What I’m stuck on is a small helper macro for clickable references that lets me manually supply the Hungarian noun/suffix without duplicating it. \newcommand*\myref[2][ábra]{\hyperref[#2]{\ref*{#2}.~#1}} Desired output (whole text clickable) ábra ábrán táblázat táblázaton Current output (wrong: noun duplicated) ábra 1. ábra ábra 1. ábrán táblázat 1. táblázat Important: If I remove chemstyle (and the scheme-related unification code), then my referencing setup behaves as expected. The duplication issue appears only when chemstyle is loaded / schemes are involved. MWE \documentclass{report} \usepackage[magyar]{babel} \usepackage{geometry} \usepackage[demo]{graphicx} \usepackage{chemstyle} \usepackage[colorlinks]{hyperref} \usepackage[figurewithin=none, tablewithin=none]{caption} \newcommand*\myref[2][ábra]{\hyperref[#2]{\ref*{#2}.~#1}} \makeatletter % scheme and figure counter \let\c@scheme\c@figure \renewcommand{\thescheme}{\thefigure} % schemename caption figurename \renewcommand{\schemename}{\figurename} % scheme into lof \def\ext@scheme{lof} \let\l@scheme\l@figure \makeatother \begin{document} \tableofcontents \chapter{A} \begin{figure}[H] \centering \includegraphics[width=0.5\linewidth]{...} \caption{Caption} \label{figA} \end{figure} \begin{scheme} \centering \includegraphics[width=0.5\linewidth]{...} \caption{Caption} \label{schA} \end{scheme} \begin{figure}[H] \centering \includegraphics[width=0.5\linewidth]{...} \caption{Caption} \label{figB} \end{figure} \begin{table}[H] \centering \begin{tabular}{c|c} & \\ & \end{tabular} \caption{Caption} \label{tabA} \end{table} \myref[ábra]{figA}, \myref[ábra]{schA}, \myref[ábra]{figB}, \myref[táblázat]{tabA} \myref[ábrán]{figA}, \myref[táblázaton]{tabA} \clearpage \phantomsection \addcontentsline{toc}{chapter}{Ábrák jegyzéke} \listoffigures \clearpage \phantomsection \addcontentsline{toc}{chapter}{Táblázatok jegyzéke} \listoftables \end{document} MWE without chemstyle \documentclass{report} \usepackage[magyar]{babel} \usepackage{geometry} \usepackage[demo]{graphicx} \usepackage[colorlinks]{hyperref} \usepackage[figurewithin=none, tablewithin=none]{caption} \newcommand*\myref[2][ábra]{\hyperref[#2]{\ref*{#2}.~#1}} \begin{document} \tableofcontents \chapter{A} \begin{figure}[h] \centering \includegraphics[width=0.5\linewidth]{...} \caption{Caption} \label{figA} \end{figure} \begin{figure}[h] \centering \includegraphics[width=0.5\linewidth]{...} \caption{Caption} \label{figB} \end{figure} \begin{table}[h] \centering \begin{tabular}{c|c} & \\ & \end{tabular} \caption{Caption} \label{tabA} \end{table} \myref[ábra]{figA}, \myref[ábra]{figB}, \myref[táblázat]{tabA} \myref[ábrán]{figA}, \myref[táblázaton]{tabA} \clearpage \phantomsection \addcontentsline{toc}{chapter}{Ábrák jegyzéke} \listoffigures \clearpage \phantomsection \addcontentsline{toc}{chapter}{Táblázatok jegyzéke} \listoftables \end{document}
- Exercise - answer - solutionby Andrius Berniukevičius on January 16, 2026 at 8:39 pm
I’m trying to set up a LaTeX workflow where, in the source code, each problem is written “locally” as a block: an exercise (the statement), immediately followed by a short answer, immediately followed by a full solution. So when I write the LaTeX file, the exercise, answer, and solution stay next to each other for easy editing. However, in the compiled PDF I want them separated into three different sections: Exercises — only the statements Answers — only the short final answers Solutions — only the full worked solutions Thanks for suggestions and help.
- Is that possible to just fill=white for text in only one node?by Explorer on January 16, 2026 at 8:07 pm
I have the following code \documentclass[tikz,border=5pt]{standalone} \begin{document} \ExplSyntaxOn \keys_define:nn {mykey} { foo .tl_set:N = \l_tmpa_tl } \keys_set:nn {mykey} { foo = {O\quad K},%<- } \begin{tikzpicture} \draw[dotted] (0,0) -- (2,0); \node[inner~sep=0pt] at (1,0) {\l_tmpa_tl}; \end{tikzpicture} \begin{tikzpicture} \draw[dotted] (0,0) -- (2,0); \node[fill=white,inner~sep=0pt] at (1,0) {\l_tmpa_tl}; \end{tikzpicture} \ExplSyntaxOff \begin{tikzpicture} \draw[dotted] (0,0) -- (2,0); \node[fill=white,inner sep=0pt] at (.7,0) {O}; \node[fill=white,inner sep=0pt] at (1.3,0) {K}; \end{tikzpicture} \end{document} For the sake of the template settings, the text O\quad K should be put as a token list, as a whole, but I need the third picture's result. Is that possible to just fill=white to just shade the "text area"?
- The spacing between the title and the enumerate, and the spacing for each itemby Hana Seo on January 16, 2026 at 6:24 pm
I used setspace package here to space the items in enumerate, but this causes two problems for me. The spacing between the title and the enumerate also widens, The spacing for each item also widens. For example, consider the first item. What I want: The spacing doesn't affect the space between the title and the enumerate. The spacing doesn't affect each item in the enumerate. First time posting here so... let me know if I'm breaking any etiquette or if I'm unclear. Thank you. \documentclass{article} \usepackage{graphicx} % Required for inserting images \usepackage{geometry} % Changing margins \geometry{letterpaper, margin=1in} \usepackage{setspace} % Doublespace \usepackage{multicol} % Multicolumn \title{Quizzes} \begin{document} \maketitle \begin{spacing}{3} \begin{multicols}{2} \begin{enumerate} \item Define reciprocal of a number using words. This is a long sentence. \item The reciprocal of $\frac{10}{33}$ is: \item The reciprocal of $\frac{11}{30}$ is: \item The reciprocal of $\frac{1}{5}$ is: \item The reciprocal of $\frac{a}{b}$ is: \item $1\frac{8}{9} \div 1\frac{1}{2}$ \item $1\frac{5}{11} \div 6$ \item $\frac{3}{5} \div \frac{7}{9}$ \item $1\frac{1}{12} \div \frac{17}{18}$ \item $13 \div \frac{9}{16}$ \item $\frac{1}{16} \div \frac{1}{6}$ \item $1\frac{3}{5} \div 1\frac{1}{2}$ \item $\frac{1}{9} \div \frac{14}{19}$ \item $15 \div 2\frac{2}{3}$ \item $2\frac{3}{5} \div 1\frac{1}{3}$ \end{enumerate} \end{multicols} \end{spacing} \end{document}
- ConTeXt not handling per-page (i.e., bypage) footnotes properly even in very simple MWEby Jeff Dodson on January 16, 2026 at 3:08 pm
I've noticed something while experimenting with ConTeXt: I can make an incredibly simple MWE that demonstrates ConTeXt not handling per-page footnotes properly. Here's the MWE: \setupnote[footnote][way=bypage, paragraph=yes, location=page, distance=0.5em] \setupnotation[footnote][way=bypage, alternative=serried, inbetween={\hskip 1.5em plus 1em minus 0.5em}, width=broad, distance=.5em, indentation=no] \starttext \dorecurse{500}{This is some text with footnotes\footnote{This is a first footnote for verse \recurselevel.} that are fun to read.\footnote{This is a second footnote for verse \recurselevel{} that is longer.} } \stoptext And here's one of the pages from the PDF if I compile the MWE: Note that while the footnotes marked in the text body range from 1 to 48, the footnotes shown in the apparatus are 52, 53, then 1 to 48. You can see similar undesirable results here: On both of those pages, I'd expect to see "1" as the first footnote in both the body and apparatus. This MWE can be made to work properly simply by modifying the words in the test sentence slightly. It seems like it's just a matter of happenstance as to whether ConTeXt can actually resolve the footnotes and what pages they should be on. I did notice that when ConTeXt is unable to resolve the notes, the compilation takes a long time. So to be clear, you can run many compilation passes, and in the case of the above MWE, ConTeXt will never resolve the notes properly, as far as I can tell. I'm sure the most likely answer is that I'm doing something wrong in my MWE. However, I've tried a number of different sets of settings, and per-page footnotes never seem to work reliably for me if I'm showing them in run-on (i.e., "serried") paragraph form. Does anyone know why this is the case? UPDATE: Note that if you put a \par after the sentence inside the \dorecurse as shown below, so that each sentence is a separate paragraph (instead of having one huge paragraph), ConTeXt still doesn't typeset it properly. \setupnote[footnote][way=bypage, paragraph=yes, location=page, distance=0.5em] \setupnotation[footnote][way=bypage, alternative=serried, inbetween={\hskip 1.5em plus 1em minus 0.5em}, width=broad, distance=.5em, indentation=no] \starttext \dorecurse{500}{This is some text with footnotes\footnote{This is a first footnote for verse \recurselevel.} that are fun to read.\footnote{This is a second footnote for verse \recurselevel{} that is longer.}\par} \stoptext Here's an image if each sentence is a separate paragraph:
- `fontspec` conflict with `mlmodern` for sans serifby designer0588 on January 16, 2026 at 2:35 pm
I want to create a document using LuaTeX that displays some Chinese characters. For this purpose I use package fontspec: % !TEX program = lualatex \documentclass[12pt]{article} \usepackage[tbtags]{amsmath} \usepackage{bm} \usepackage{fontspec} \newfontfamily\CJKfont{SimSun} % Must contain U+266B0 \usepackage{mlmodern} \usepackage[T1]{fontenc} \def\T{{\mathsf{T}}} \begin{document} An equation with sans serif \[ \frac{\partial L}{\partial \bm{x}^\T}=\bm{y}^\T. \] Some Chinese characters: {\CJKfont 机器学习} (Machine Learning) \end{document} The compiler returns Font shape 'TU/mlmr/m/n' undefined and substitutes the standard latin modern roman font for capital t. Without fontspec this issue disappears. Replacing \mathsf{T} with \top does not remove the error messages. I can try to introduce the Chinese characters without fontspec but any ideas what causes this conflict?
- Best way to break up long equation to fit the IEEE format (double column)by Joar Bertholdsson on January 16, 2026 at 12:41 pm
I have a very long equation where the fraction line spans the whole equation, which makes it fit poorly in the IEEEtran format! Below is an image of the equation(s) in question, along with the current code I am using. Feel free to think creatively for a solution, I am open to almost anything. \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath, amssymb, amsthm} \usepackage{geometry} \usepackage{empheq} \geometry{margin=1in} \begin{document} \begin{empheq}[left=\empheqlbrace]{alignat=2} \label{eq:EOM} &\ddot x_w &= \frac{ \dfrac{k_t}{R_m}V_m - \left(\dfrac{k_e k_t}{R_m}+b_f\right)\left( \frac{\dot{x}_w}{r_w} - \dot\theta_b \right) - r_w m_b l_b\!\left(\ddot\theta_b\cos\theta_b-\dot\theta_b^{2}\sin\theta_b\right) }{ \dfrac{I_w}{r_w}+r_w m_w + r_w m_b }, \\ &\ddot\theta_b &= \frac{ - \dfrac{k_t}{R_m}V_m + \left(\dfrac{k_e k_t}{R_m}+b_f\right)\left( \frac{\dot{x}_w}{r_w} - \dot\theta_b \right) + m_b l_b g \sin\theta_b - m_b l_b \ddot x_w \cos\theta_b }{ I_b + m_b l_b^{2} }. \end{empheq} \end{document} Any help would be awesome Edit: Its my first time working with the IEEEtran format but for this questions, it is just a double-column format. More information can be see here: https://www.overleaf.com/latex/templates/ieee-conference-template/grfzhhncsfqn Furthermore, I have updated the code above so that it's compilabl,e and below is a link to my set of equations in a IEEEtran document: https://www.overleaf.com/read/sqrtfcwfjygr#70ecc2 Edit 2: Three different "solutions" can be see in the image below, its probably best to drop the curly bracket and use ´\multline´: Here is the code to recreate the image above: \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{mathtools} \usepackage{empheq} \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} \begin{document} \begin{verbatim} \splitfrac \end{verbatim} \begin{empheq}[left=\empheqlbrace]{align} \ddot{x}_w &= \frac{ \splitdfrac{ \frac{k_t}{R_m}V_m - \left(\frac{k_e k_t}{R_m}+b_f\right)\left( \frac{\dot{x}_w}{r_w} - \dot\theta_b \right) }{ - r_w m_b l_b \left(\ddot\theta_b\cos\theta_b-\dot\theta_b^{2}\sin\theta_b\right) } }{ \frac{I_w}{r_w} + r_w (m_w + m_b) } \label{eq:EOM_xw} \\[1em] \ddot\theta_b &= \frac{ \splitdfrac{ -\frac{k_t}{R_m}V_m + \left(\frac{k_e k_t}{R_m}+b_f\right)\left( \frac{\dot{x}_w}{r_w} - \dot\theta_b \right) }{ + m_b l_b g \sin\theta_b - m_b l_b \ddot{x}_w \cos\theta_b } }{ I_b + m_b l_b^{2} } \label{eq:EOM_thetab} \end{empheq} Fraction and multline\\ \begin{empheq}[left=\empheqlbrace]{align} \begin{split} \ddot x_w &= \frac{1}{\frac{I_w}{r_w} + r_w (m_w + m_b)} \Bigg[ \frac{k_t}{R_m}V_m \\ &\quad - \left(\frac{k_e k_t}{R_m}+b_f\right)\left( \frac{\dot{x}_w}{r_w} - \dot\theta_b \right) \\ &\quad - r_w m_b l_b \left(\ddot\theta_b\cos\theta_b-\dot\theta_b^{2}\sin\theta_b\right) \Bigg] \end{split} \label{eq:EOM_xw} \\[15pt] \begin{split} \ddot\theta_b &= \frac{1}{I_b + m_b l_b^{2}} \Bigg[ -\frac{k_t}{R_m}V_m \\ &\quad + \left(\frac{k_e k_t}{R_m}+b_f\right)\left( \frac{\dot{x}_w}{r_w} - \dot\theta_b \right) \\ &\quad + m_b l_b g \sin\theta_b - m_b l_b \ddot x_w \cos\theta_b \Bigg] \end{split} \label{eq:EOM_thetab} \end{empheq} Negative exponent and multline\\ \begin{multline}\label{eq:EOM_xw} \ddot x_w = \left( \frac{I_w}{r_w} + r_w (m_w + m_b) \right)^{-1} \\ \times \Bigg[ \frac{k_t}{R_m}V_m - \left(\frac{k_e k_t}{R_m}+b_f\right)\left( \frac{\dot{x}_w}{r_w} - \dot\theta_b \right) \\ - r_w m_b l_b \left(\ddot\theta_b\cos\theta_b-\dot\theta_b^{2}\sin\theta_b\right) \Bigg] \end{multline} \end{document}
- Italian format letterby RenatoP on January 16, 2026 at 12:13 pm
I need to develop an Italian simple letter. I need that sender and recipient stay on the left side one below the other. I use letteracdp class that is a good Italian style class but sender and receiver are like English letter. How can I obtain that? this is an example: \documentclass[boldsubject,italicsignature,smartindent]{letteracdp} \usepackage[italian]{babel} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{layaureo} \usepackage{lipsum} \address{Dott.~Lorenzo Pantieri \\Dipartimento di Matematica \\Università degli Studi di Bologna \\Via Zamboni, 5 \\40125 Bologna} \signature{Dott.~L.~Pantieri}%\date{} % al solito, la data è opzionale;% il valore predefinito è \today\place{Bologna}\ \begin{document} \begin{letter}{Prof.~Enrico Gregorio \\Dipartimento di Informatica \\Università di Verona \\Strada Le Grazie, 15 \\37134 Verona} [Questo è loggetto opzionale della lettera.] \opening{Egregio Prof.~Gregorio,} \lipsum[1] \closing{La saluto molto cordialmente,}5 \PS Qui ci va un eventuale post scriptum.\cc{Prof.~Claudio Beccari\\Dipartimento di Elettronica \\Università di Torino \\Corso Duca degli Abruzzi, 24 \\10129 Torino} \begin{enclosures} \item L' arte di scrivere lettere con \LaTeX \end{enclosures} \end{letter} \end{document} dott Lorenzo Pantieri address should stay on the right, just before prof Enrico Gregorio Thank you Renato
- Drawing a porous sandwich beamby Tldi You on January 16, 2026 at 9:03 am
Can we reproduce this image in LaTeX Tikz? I try this \documentclass[tikz,border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{patterns,arrows.meta,decorations.pathmorphing} \begin{document} \begin{tikzpicture}[scale=1] %------------------------------------------------- % Common styles %------------------------------------------------- \tikzset{ block/.style={draw, thick, fill=orange!20}, caps/.style={draw, thick, fill=blue!40}, axis/.style={->, thick}, profile/.style={thick}, } %================================================= % (b) SD %================================================= \begin{scope}[xshift=0cm] % Top and bottom caps \draw[caps] (0,4) rectangle (4,4.5); \draw[caps] (0,0) rectangle (4,0.5); % Main block with layered patterns \draw[block] (0,0.5) rectangle (4,4); % Internal layers \draw[pattern=checkerboard, pattern color=orange!70] (0,2.7) rectangle (4,4); \draw[pattern=crosshatch, pattern color=orange!70] (0,1.6) rectangle (4,2.7); \draw[pattern=grid, pattern color=orange!70] (0,0.5) rectangle (4,1.6); % Axes \draw[axis] (0,2.25) -- (5,2.25) node[above] {$x$}; \draw[axis] (0,2.25) -- (0,5) node[above] {$z$}; % Right profile \draw[domain=0.5:4,smooth,,red,variable=\z] plot ({6-cos(180*\z/((4-0.5)))},{\z}); % Labels \node[right] at (4.1,3.9) {$E_{\max},\,\rho_{\max}$}; \node[right] at (4.1,0.6) {$E_{\max},\,\rho_{\max}$}; \node at (2,-0.6) {(b) SD}; \end{scope} %================================================= % (c) ASD %================================================= \begin{scope}[xshift=8cm] % Top and bottom caps \draw[caps] (0,4) rectangle (4,4.5); \draw[caps] (0,0) rectangle (4,0.5); % Main block \draw[block] (0,0.5) rectangle (4,4); % Gradient-like pattern layers \draw[pattern=checkerboard, pattern color=orange!70] (0,2.5) rectangle (4,4); \draw[pattern=crosshatch dots, pattern color=orange!70] (0,0.5) rectangle (4,2.5); \draw[pattern=checkerboard, pattern color=orange!70] (0,0.5) rectangle (4,1.6); % Axes \draw[axis] (0,2.25) -- (5,2.25) node[above] {$x$}; \draw[axis] (0,0.5) -- (0,5) node[above] {$z$}; % Right profile (asymmetric) % \draw[profile] % (4,4) .. controls (4.8,3.5) and (4.8,1.5) .. (4,0.5); % Labels \node[right] at (4.1,3.9) {$E_{\max},\,\rho_{\max}$}; \node[right] at (4.1,0.6) {$E_{\min},\,\rho_{\min}$}; \node at (2,-0.6) {(c) ASD}; \draw[domain=0.5:4,smooth,,red,variable=\z] plot ({1*(5-cos(45+(180*\z)/(2*(4-0.5)))))},{\z}); \end{scope} \end{tikzpicture} \end{document} Current result:
- datetime2, command \currenttime undefinedby Zarko on January 16, 2026 at 6:43 am
What is wrong with the following MWE: \documentclass{article} \usepackage[showzone=false, showseconds=false]{datetime2} \makeatletter \renewcommand*{\dtm@datetimesep}{\quad} \makeatother \begin{document} \currenttime \end{document} Compilation of above MWE gives error ! Undefined control sequence. l.18 \currenttime
- How to ensure blank vertical space added at the start of a new page is ignored?by Gary on January 16, 2026 at 6:18 am
How can this be coded to ignore the added vertical blank space when the section starts a new page? -- the section starting at {\blank[10mm]\sc In-line Intro.} I may be causing issues trying to get this example to fit on one page side-by-side; but the issue is that when try to remove the added vertical space left when moving a section title to the margin while having a paragraph "type" that should have some added vertical space separating it from the previous paragraph, when that paragraph starts a new page, the blank space is not ignored. Sometimes these paragraphs do not start a new section; thus, their spacing cannot be set by the \definehead alone. If the \blank[10mm] is removed, the top of the first line of the second page is even with the top of the section title on the first page. I tried \blank[10mm,samepage] but that did not work. Thank you. \setuppapersize[A7, portrait][A6, landscape] \setuppaper[nx=2,ny=1] \setuparranging[XY] \definemargindata [InOuterMargin] [outer][ margin=margin, width=\rightmarginwidth, line=1, location=outer, align=middle] \define[2]\MyHeadMarg{\InOuterMargin{#1 #2}} \definehead [SectionA] [section] [ before=\blank[-1*big], after=\blank[{-1*big}], % before=\blank[nowhite], % after=\blank[nowhite], % before=\blank[back], % after=\blank[back], indentnext=yes, command=\MyHeadMarg, ] \starttext \startsection[title={A Normal Section}] \samplefile{ward}A few more needed words. \stopsection \startSectionA[title={Marg}] {\blank[10mm]\sc In-line Intro.} \samplefile{ward} \stopSectionA \stoptext
- How to typeset this smiley symbol used in a math book? [duplicate]by user19872448 on January 16, 2026 at 5:45 am
I found the following symbol used inside mathematical formulas in the book A Mathematical Prelude to the Philosophy of Mathematics: How can this symbol be replicated in LaTeX? Is there a standard way or package to typeset it?
- Separate reference list for the appendicesby Gaslight Deceive Subvert on January 15, 2026 at 10:14 pm
My appendices happen to contain a lot of citations that are irrelevant to the main part of the article. Can they be put in a separate appendix with separate running numbers? Something like this: \documentclass[acmsmall, manuscript, screen, review]{acmart} \begin{document} % End of main content. \bibliographystyle{ACM-Reference-Format} \bibliography{refs} \appendix % Appendices here ... % List of references for the appendices. \bibliography{refs} \end{document}
- Hierarchical lists in ConTeXt?by filokalos on January 15, 2026 at 8:08 pm
Can't find the way to write a hierarchical list in ConTeXt. it should be like 1. 1.1 1.1.2 2. 2.1 Only the first numbers of each hierarchy appear. Could anybody help, please?
- Why adding titlesec makes links in toc inside PDF no longer work when using \setcounter{secnumdepth}{0}?by Nasser on January 15, 2026 at 6:28 pm
I wanted TOC not to have section numbers displayed. So instead of using the star version of sections, found that simply adding \setcounter{secnumdepth}{0} does that. But then I found that once package titlesec was added, links inside the pdf no longer work. Here is MWE, which generates 10 sections and some subsection. Clicking on links in the PDF does nothing. Once titlesec is removed, all links work fine. \documentclass[12pt]{article} \usepackage{hyperref} \usepackage{titlesec} \usepackage{lipsum} \usepackage{luacode} \begin{luacode*}%this so I do not have to type 10 sections by hand function generateFewSections(n) local i for i = 1, n do s="\\section{section " .. i .. "}\n \\lipsum[1]\n " .. "\\subsection{subsection 1}\n \\lipsum[1]\n " .. "\\subsection{subsection 2}\n \\lipsum[1]\n " tex.print(s) end end \end{luacode*} \newcommand\generateFewSections[1]{\directlua{generateFewSections(#1) }}% \begin{document} \setcounter{secnumdepth}{0} \setcounter{tocdepth}{1} \tableofcontents \generateFewSections{10} \end{document} Compiled on Linux using lualatex C.tex this shows pdf links do not work. i.e. clicking on link does not jump to the section in the pdf. Removing titlesec links work OK now. This only happens when adding \setcounter{secnumdepth}{0}. Removing this, then now titlesec does not cause any issue. If this by design or is there a bug here? Can I use \setcounter{secnumdepth}{0} and also use titlesec? TL 2025, updated about 2-3 weeks ago.
- VS Code LaTeX Workshop: how to configure settings.json when using both biber and makenomenclature?by palloc on January 15, 2026 at 6:26 pm
I am working on a LaTeX document in VS Code using the LaTeX Workshop extension (windows 11). My document uses biblatex with biber, as well as the nomencl package to generate a nomenclature. How should I correctly configure the settings.json file in VS Code (LaTeX Workshop) to handle both biber and makenomenclature? I have come up with the configuration below, but I suspect that this is not the best or recommended approach. main.tex \documentclass{report} \usepackage{geometry} \usepackage[backend=biber]{biblatex} \addbibresource{bib.bib} \usepackage{nomencl} \makenomenclature \begin{document} \include{abbrev} \printnomenclature \chapter{First} \cite{knuth1984texbook} \printbibliography \end{document} abbrev.tex \nomenclature{A}{a} bib.bib @book{knuth1984texbook, title={The texbook}, author={Knuth, Donald Ervin and Bibby, Duane}, volume={15}, year={1984}, publisher={Addison-Wesley Reading} } setting.json { "latex-workshop.latex.tools": [ { "name": "latexmk", "command": "latexmk", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "%DOC%" ] }, { "name": "biber", "command": "biber", "args": ["%DOCFILE%"] }, { "name": "makenomenclature", "command": "makeindex", "args": [ "%DOCFILE%.nlo", "-s", "nomencl.ist", "-o", "%DOCFILE%.nls" ] } ], "latex-workshop.latex.recipes": [ { "name": "latexmk → biber → nomencl → latexmk", "tools": [ "latexmk", "biber", "makenomenclature", "latexmk" ] } ], "latex-workshop.latex.recipe.default": "latexmk → biber → nomencl → latexmk", "latex-workshop.advanced.userConfiguration": true, "latex-workshop.message.bibtex.notfound": "ignore", "latex-workshop.latex.autoClean.run": "onBuilt", "latex-workshop.latex.autoBuild.run": "never", "files.exclude": { "**/*.aux": true, "**/*.bbl": true, "**/*.blg": true, "**/*.log": true, "**/*.out": true, "**/*.toc": true, "**/*.lof": true, "**/*.lot": true, "**/*.nlo": true, "**/*.nls": true, "**/*.fls": true, "**/*.bcf": true, "**/*.fdb_latexmk": true, "**/*.ilg": true, "**/*.run.xml": true, "**/*.synctex.gz": true }, "editor.wordWrap": "on" }
- Is this this most tagging friendly way to make a "complete" table?by Miloop on January 15, 2026 at 5:48 pm
For me, a "complete" table is one with a caption, the body and the tablenotes. After having a look at the list of compatible packages with tagging, I believe that my options currently are limited. The most "robust" solution that I could come up has this code: \DocumentMetadata{lang=en-UK, tagging=on, pdfstandard=UA-2} \documentclass{article} \usepackage{longtable} %<= In other cases when the table gets too long % \usepackage{booktabs} %<= Make the tables look clean % \usepackage[tablewithin=none,figurewithin=none,singlelinecheck=false]{caption} %<= The caption runs into the margin without this! % \usepackage{accsupp} %<= To get the screen-reader to read the cell content and then its corresponding tablenote. % % Left-align all longtables \setlength{\LTleft}{0pt} \setlength{\LTright}{\fill} \setlength{\LTcapwidth}{\textwidth} \setlength{\parindent}{0pt} \begin{document} \section{Understanding tables} The table \ref{Ch1_Tab1} below attempts to be as tagging compatible as possible to help screen-readers. \begin{longtable}{llc} \caption{Left-aligned longtable with left-aligned caption \label{Ch1_Tab1}}\\ \toprule \textbf{Category} & \textbf{Item} & \BeginAccSupp{ActualText="Quantity expressed in kilo gram"} \textbf{Quantity}\textsuperscript{1} \EndAccSupp{} \\ \midrule \endfirsthead \toprule \textbf{Category} & \textbf{Item} & \BeginAccSupp{ActualText="Quantity expressed in kilo gram"} \textbf{Quantity}\textsuperscript{1} \EndAccSupp{} \\ \midrule \endhead \bottomrule \endlastfoot Fruit & Apples & 12 \\ Fruit & Oranges & 8 \\ Dairy &\BeginAccSupp{ActualText="Milk that is Camel's milk"} Milk\textsuperscript{2}\EndAccSupp{} & 4 \\ Grain & Rice & 20 \\ \end{longtable} \begin{enumerate} %<= Manually adding this so it can enlist the tablenotes below. \footnotesize \setlength{\itemsep}{0pt} % No space between items \setlength{\parskip}{0pt} % No space between paragraphs in items \setlength{\topsep}{0pt} % No space around the list \item Quantity expressed in kg. \item Camel's milk. \end{enumerate} This should generate a tagged document with tablenotes, right? \end{document} That looks like this: I assume that in an ideal situation, the screen-reader would read the content of a cell followed by its corresponding tablenote when available. In this case however, I'll have to use the accsupp package. Is this the way forward in the interim until the tagging compatibility is ready for the threeparttable and other similar table-based packages?
- How can I modify a personnal macro so that it behaves differently in the Beamer class and the Article class? [duplicate]by AndréC on January 15, 2026 at 2:35 pm
I wrote a macro \exo{} that automatically numbers the exercises in a worksheet or in an assessment (the option allows you to choose and display the grading rubric). It was corrected by @egreg here: Text justification problem with a personal command that moves right-aligned text to the next line if there is no room This macro works perfectly in the Article class, but I'm having trouble importing it into the Beamer class. I would like to remove the line that adds a new paragraph when I'm in the Beamer class so that the text appears at the top of the slide. When I use the macro @ifclassloaded{beamer}, the word "ifclassloaded" appears at the top of the slide! \makeatletter \@ifclassloaded{beamer}{}{ % Code spécifique aux autres classes (ex: article) \par \vspace{3pt} % } \makeatother How can I modify my \exo macro to remove the paragraph break in the Beamer class? \documentclass[hyperref={pdfpagemode=FullScreen, colorlinks=true,linkcolor=,urlcolor=link}, xcolor={dvipsnames,svgnames,table},aspectratio=1610,12pt,french]{beamer} \usepackage{tasks} \usepackage{amsmath, amsfonts, amssymb} \usepackage{tikz} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % from question https://tex.stackexchange.com/questions/309632/raise-or-lower-hrulefill % % réponse https://tex.stackexchange.com/a/309671/138900 % % Here I use leaders to provide \drulefill (dashed rule fill), with 4 governing parameters: % % \ruleht is the elevation of the dash, what the OP of this question is seeking to control % % \repfrac is a fraction between 0 and 1 (inclusive) that indicates the solid fraction of the dashed line. By setting the value=1, the dashed line becomes solid, which is what the OP wants. % % \replength is the period (length) of the dash/gap cycle. % % \rulewidth is the thickness of the fill rule. \newlength\replength \newcommand\ruleht{3pt}% ELEVATION OF RULE \newcommand\repfrac{.66}% SOLID FRACTION OF DASH LINE [0->1] (USE 1 FOR SOLID) \replength=.6em\relax% PERIOD OF DASHED RULE \newcommand\rulewidth{1pt}% THICKNESS OF RULE \newcommand\drulefill[1][black]{\leavevmode\textcolor{#1}{\dashfill}\hfil\kern\dimexpr\repfrac\replength-\replength\relax} \newcommand\dashfill[1][\repfrac]{\cleaders\hbox to \replength{% \smash{\rule[\ruleht]{\repfrac\replength}{\rulewidth}}}\hfill} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -------------------------------------- % Nouvelle commande \exo pour numéroter les exercices % -------------------------------------- % solution de egreg %compteur pour numéroter avant le \newcommand {\exo} % ce sont des entiers (et non des décimaux) \newcounter{exo} \newcommand {\exo}[2][]{ %barème optionnel \renewcommand\ruleht{0pt}% ELEVATION OF RULE \renewcommand\rulewidth{3pt}% THICKNESS OF RULE \renewcommand\repfrac{1}% SOLID FRACTION OF DASH LINE [0->1] (USE 1 FOR SOLID) \stepcounter{exo} % \makeatletter \@ifclassloaded{beamer}{}{ % Code spécifique aux autres classes (ex: article) \par \vspace{3pt} % } \makeatother \if\relax\detokenize{#1}\relax \tikz\draw[line width=3pt,orange!90!black](0,0)--(1.5,0);\tikz[baseline=(X.base)]\node[draw,orange!90!black,fill=none,inner sep=3pt,outer sep=0pt,text=orange!80!black,line width=2pt](X){Ex: \theexo};\textbf{ \textsc{#2}}\drulefill[orange!90!black]%\vspace{-3pt}% \par \else \rule{\linewidth}{.02pt} % \smallskip \textbf{\textsc{Exercice\,\theexo\,:}\, #2} % egreg solution https://tex.stackexchange.com/q/593198/138900 \nobreak\hfill\penalty50\hskip1em\null\nobreak \hfill$\makebox[5mm]{}\big/\textit{#1~point}\ifdim#1cm<2cm \else \textit{s}\fi$ {\parfillskip=0pt \finalhyphendemerits=0 \par}% <--- braces! \fi\smallskip\vspace{2pt} } \begin{document} \begin{frame}[t,fragile] \frametitle{\exo{\'Ecrire les sommes et les différences ci-dessous sous forme d'un \textbf{nombre décimal}, puis sous forme d'une \textbf{fraction décimale}:}} \begin{tasks}[item-format=\ensuremath,before-skip=3pt, after-item-skip= 8pt](2) \task \dfrac{3}{10}+\dfrac{2}{10}=\dotfill \task \dfrac{28}{100}-\dfrac{3}{100}=\dotfill \task \dfrac{3}{10}+\dfrac{5}{100}=\dotfill \task \dfrac{6}{10}-\dfrac{45}{100}=\dotfill \task \dfrac{17}{100}-\dfrac{3}{1000}=\dotfill \task \dfrac{58}{1000}-\dfrac{42}{1000}=\dotfill \task 8-\dfrac{23}{100}+\dfrac{4}{1000}=\dotfill \task *156+\dfrac{483}{10}-\dfrac{37}{100}+\dfrac{92}{1000}=\dotfill \end{tasks} \end{frame} \begin{frame}[t]{\'Ecrire les sommes et les différences ci-dessous sous forme d'un \textbf{nombre décimal}, puis sous forme d'une \textbf{fraction décimale}:} \begin{tasks}[item-format=\ensuremath,before-skip=3pt, after-item-skip= 8pt](2) \task \dfrac{3}{10}+\dfrac{2}{10}=\dotfill \task \dfrac{28}{100}-\dfrac{3}{100}=\dotfill \task \dfrac{3}{10}+\dfrac{5}{100}=\dotfill \task \dfrac{6}{10}-\dfrac{45}{100}=\dotfill \task \dfrac{17}{100}-\dfrac{3}{1000}=\dotfill \task \dfrac{58}{1000}-\dfrac{42}{1000}=\dotfill \end{tasks} \begin{tasks}[item-format=\ensuremath,start=6](2) \task 8-\dfrac{23}{100}+\dfrac{4}{1000}=\dotfill \task *156+\dfrac{483}{10}-\dfrac{37}{100}+\dfrac{92}{1000}=\dotfill \end{tasks} \end{frame} \end{document}
- In a standalone subpreamble, \newcommand not considered as already defined but acro's \DeclareAcronym considered as already definedby Denis Bitouzé on January 15, 2026 at 2:24 pm
Consider the following MCE (say test.tex): \begin{filecontents*}[overwrite]{subfile} \documentclass{article} \newcommand{\foo}{foo} \begin{document} \foo{} \end{document} \end{filecontents*} \documentclass{article} \usepackage[subpreambles]{standalone} \usepackage{acro} \begin{document} \input{subfile} \end{document} The generated test.sta file: contains \newcommand {\foo }{foo}), is loaded two times (see test.log), but no complaint regarding a command \foo already defined. By contrast, the following MCE (again, say test.tex): \begin{filecontents*}[overwrite]{subfile} \documentclass{article} \DeclareAcronym{cd}{short = CD , long = compact disc} \begin{document} \ac{cd}. \end{document} \end{filecontents*} \documentclass{article} \usepackage[subpreambles]{standalone} \usepackage{acro} \begin{document} \input{subfile} \end{document} fails to compile at the 3rd run because of: (./test.sta ! LaTeX Error: Control sequence \g__acro_cd_pages_seq already defined. Do you understand why?
- Creating a label-reference system for asterisk/obelus symbols in LaTeX equationsby Samuel on January 15, 2026 at 12:16 pm
In LaTeX, I wish to use a sequence of asterisk/obelus symbols ($\dagger$, $\ddagger$, $\ast_1$, $\ast_2$, $\ast_3$, ... ) within my equations and then reference them later in the text. See the following example: \documentclass{article} \usepackage{amsmath} \begin{document} \noindent Here is a minimal example of an equation: \begin{equation} \label{eq:parallelogram_law_like_inequality} \begin{alignedat}{3} \langle a, a-b \rangle &= &\;& \|a\|^2 - \langle a, b \rangle \\ &\leq_{\dagger} & & \|a\|^2 - \langle a, b \rangle + \frac{1}{2}\|b\|^2 \\ &= & & \frac{1}{2}\|a\|^2 + \frac{1}{2}\Big(\|a\|^2 - 2 \langle a, b \rangle + \|b\|^2 \Big)\\ &=_{\ddagger} & & \frac{1}{2} \|a\|^2 + \frac{1}{2}\|a-b\|^2 \end{alignedat} \end{equation} where $\dagger$ follows from blar and $\ddagger$ is an application of the blah blah. \end{document} However rather than manually matching up the different *1, *2, *3, ..., I would like to use some syntax along the lines of \note\label{note:blar} and later \ref{note:blar}. This should automatically enumerate the notes in the order they appear and create a hyperref target and link similarly to how equation/figure/table references work. What is the neatest way to achieve this? Thanks!
- Primes in Latexby legogubben on January 15, 2026 at 10:18 am
I want to create a command \isthisprime{<number>} where it decides whether <number> is or is not prime, and if it is, it also returns the order of the prime (eg, 2 is the first, 3 is the second, and so on). Here is my attempt at a code (excuse my choice of naming the counters): \documentclass{article} \usepackage{amsmath} \usepackage{enumitem} \usepackage{lipsum,blindtext} \newcount\div \newcount\divs \newcount\somnum \newcount\yes \newcount\yess \newcount\numberofprimes \newcommand{\isthisprime}[1]{% %Decide if #1 is prime \div=2 \yes=0 \ifnum#1<2 \yes=1 \fi \loop \ifnum\div<#1 \ifnum#1=\numexpr(#1/\div)*\div\relax \yes=1 \fi \advance\div by 1 \repeat \numberofprimes=0 \somnum=2 \yess=0 \divs=2 %Checking every number less than or equal to #1 \ifnum\yes=0 \loop \ifnum\somnum<\numexpr#1+1\relax \loop%checking if somnum is prime \ifnum\divs<\somnum \ifnum\somnum=\numexpr(\somnum/\divs)*\divs\relax \yess=1 \fi \advance\divs by 1 \repeat \ifnum\yess=0 \advance\numberofprimes by 1 \fi \yess=0\divs=2\advance\somnum by 1 \repeat \fi \ifnum\yes=0 #1 is a prime with index~\the\numberofprimes. \else #1 is not a prime. \fi } \begin{document} \isthisprime{101}\newline \isthisprime{102} \end{document} The idea: the first part of the code decides whether or not <number> is a prime; if it is we set the counter \yes=1, otherwise it remains equal to 0. So if \yes=1 we check every number less than or equal to <number> to see if it is prime or not. At every occurrence of prime, we increase the counter \numberof primes. Hence \numberofprimes will determine the order of <number>, if it prime that is. The part where it decides whether or not the input is prime or not is fine. However, it cannot find its order. It just says that the order is 1 if the input is prime. It cannot see what is wrong with my code, so I would appreciate any advice! Thank you in advance.
- Alignment of twoside book headers with images and passing dynamic content to variablesby chibisuketyan on January 15, 2026 at 7:33 am
I am tasked with a very specific book design and have done this until now with Scribus but want to switch to LaTeX and try to get it done to learn it. The design of the booklet is very specific, as it consists of a two sided design, where the left page always has a header with a numbering, two headlines aligned to the right (like title / subtitle) which use japanese and then the right page again 2 headlines aligned to the left with a picture to the right and on both headers a vertical line to separate it from the main text. The structure of the content is as shown below and a new double-page "section" with an incremented number of the "story" starts then after the doublet. I have been able to create some basic structure but struggle with the question how I can achieve to pass over the headers 4 headlines and picture information into the code efficiently. I am using now the fancyhdr package and created even and odd page headers. The main thing I can't get my head around is how a basic document flow should be. To make it more clear, here is how it should look like: My questions are: How can the code be improved in terms of handling dynamic content being passed to the setheadlines command? How can the content of the header be aligned so that the image and headlines are always at the same position? Is that handled through a parbox construct? \documentclass[11pt,twoside]{book} \usepackage{emptypage} \usepackage[export]{adjustbox} %alignment für Bilder \raggedbottom % Seitenformat A5 \usepackage[ a5paper, inner=20mm, outer=15mm, top=15mm, bottom=45mm ]{geometry} % Schrift & Japanisch \usepackage{fontspec} \usepackage{xeCJK} \setmainfont{lato} \setCJKmainfont{IPAexMincho} % Grafik & Layout \usepackage{graphicx} \usepackage{tikz} \usepackage{lipsum} \usepackage{setspace} \usepackage{lastpage} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{lipsum} \usepackage{microtype} \newcounter{mychapter} \setcounter{mychapter}{1} % --- fancyhdr --- \pagestyle{fancy} % Page style muss auf "fancy" gesetzt werden \newcommand{\chapterdiamond}[1]{% \begin{tikzpicture}[] \node[draw, rotate=45, minimum size=1cm] {}; \node[draw, rotate=45, minimum size=1.3cm] {}; \node at (0,0) {{\Large\bfseries #1}}; %\node at (0,0) {\rotatebox{-45}{\Large\bfseries #1}}; \end{tikzpicture} } \newcommand{\setheadlines}[2]{ \Large\bfseries #1\\ \Small\bfseries #2\\ } % Alles resetten \fancyhead{} \fancyfoot{} % Ungerade Seite Linkes Alignment \fancyhead[LO]{ \chapterdiamond{\themychapter} \stepcounter{mychapter} } % Ungerade Seite Rechtes Alignment \fancyhead[RO]{ \stepcounter{mychapter} } % Gerade Seite Rechtes Alignment \fancyhead[RE]{ \includegraphics[height=3cm,right]{example-image-b.png} \hfill } \fancyfoot[RE]{ Seite \thepage \hspace{1pt} von \pageref{LastPage} } \fancyfoot[LO]{ Seite \thepage \hspace{1pt} von \pageref{LastPage} } % Spacing für Header \setlength{\headheight}{85pt} % --- Begin Document --- \begin{document} \fancyhead[RO]{ \Large\bfseries 日本語の例\\ \normalsize\bfseries 更に日本語です} \fancyhead[LE]{ \Large\bfseries Headline3\\ \normalsize\bfseries Headline4} \lipsum[1-15] % dummy text \newpage \lipsum[1-5] % dummy text \end{document}
- Is there a tool that translates LaTeX written with user-defined commands into standard LaTeX?by Steven Thomas Hatton on January 15, 2026 at 7:23 am
I have a (far from ideal) collection of macros that I \include in the preambles of my documents. It's very useful in giving my documents uniform semantic representation. For example, contravariant vector component functions all have a common appearance which I control globally. The down-side to this is that when I want to post an except to math.stackexchange.com, for example, I have to manually convert all of my LaTeX code into standard LaTeX which is independent of my preamble. Obviously the Tex-engine (e.g., lualatex) converts my macros into a form that TeX understands which is equivalent to standard LaTeX. Is there a tool that will take my customized LaTeX documents and convert them into standard LaTeX? Here's an example. (Please don't question the sanity of my notation. I have professionals for that.) \documentclass[a4paper,10pt]{article} \usepackage{amsmath} \newcommand{\CONST}[1]{\mathrm{#1}} \newcommand{\dd}{\CONST{d}} % differential d \newcommand{\DD}[2]{\frac{\dd#1}{\dd\CONST{#2}}} % derivative \newcommand{\PD}[2]{\frac{\partial #1}{\partial\CONST{#2}}} % partial derivative \begin{document} Written using my macros: \begin{align*} \dd f & = \PD{f}{x}\dd x + \PD{f}{y}\dd y.\\ \DD{f}{t} & = \PD{f}{x}\DD{x}{t}+\PD{f}{y}\DD{y}{t} \end{align*} What I want the tool to output: \begin{align*} \mathrm{d} f & = \frac{\partial f}{\partial \mathrm{x}} \mathrm{d} x + \frac{\partial f}{\partial \mathrm{y}} \mathrm{d} y.\\ \frac{\mathrm{d} f}{\mathrm{d}\mathrm{t}} & = \frac{\partial f}{\partial \mathrm{x}}\frac{\mathrm{d}x}{\mathrm{d}\mathrm{t}} +\frac{\partial f}{\partial \mathrm{y}}\frac{\mathrm{d}y}{\mathrm{d}\mathrm{t}} \end{align*} \end{document}
- Help me draw a labor supply diagramby henry on January 15, 2026 at 6:26 am
I'm trying to draw these two diagram in a slide but I cannot do it. Anyone can help me please. This is my previous code: \begin{frame}{Backward-bending Supply Curve} \vspace{0.1cm} \begin{columns}[T] \column{0.55\textwidth} \centering \resizebox{1\textwidth}{!}{% \begin{tikzpicture} \begin{axis}[ axis lines = left, xmin=0, xmax=125, ymin=0, ymax=3200, xtick={70, 80, 90, 110}, ytick=\empty, xlabel={leisure ($L$)}, ylabel={consumption(\textdollar)}, ylabel style={rotate=90, at={(axis description cs:0.03,1)}, anchor=south}, xlabel style={at={(axis description cs:1,0)}, anchor=north west}, clip=false] \coordinate (E) at (axis cs: 110, 0); \filldraw[black] (E) circle (2.5pt) node[right, font=\footnotesize] {$E$}; \node[below, font=\scriptsize] at (axis cs: 110, -50) {}; \coordinate (P1) at (axis cs: 90, 260); \coordinate (P2) at (axis cs: 70, 800); \coordinate (P3) at (axis cs: 80, 750); \draw[lineBlue, thick] (axis cs: 0, 1430) -- (E) node[pos=0.15, left, font=\tiny, black] {$w=13$}; \draw[lineBlue, thick] (axis cs: 0, 2200) -- (E) node[pos=0.15, left, font=\tiny, black] {$w=20$}; \draw[lineBlue, thick] (axis cs: 0, 2750) -- (E) node[pos=0.15, right, font=\tiny, black] {$w=25$}; \draw[curveBlack, thick] (axis cs: 60, 800) to[out=-75, in=160] (P1) to[out=-20, in=170] (axis cs: 115, 120) node[right, font=\tiny] {$U_1$}; \draw[curveBlack, thick] (axis cs: 45, 1600) to[out=-80, in=145] (P2) to[out=-35, in=165] (axis cs: 105, 300) node[right, font=\tiny] {$U_2$}; \draw[curveBlack, thick] (axis cs: 60, 1600) to[out=-85, in=135] (P3) to[out=-45, in=170] (axis cs: 105, 200) node[right, font=\tiny] {$U_3$}; \draw[dashed, thin, gray] (P1) -- (axis cs: 90, 0); \draw[dashed, thin, gray] (P2) -- (axis cs: 70, 0); \draw[dashed, thin, gray] (P3) -- (axis cs: 80, 0); \filldraw[dotRed] (P1) circle (2pt); \filldraw[dotRed] (P2) circle (2pt); \filldraw[dotRed] (P3) circle (2pt); \draw[dotted, thick, black] (E) .. controls (100,100) .. (P1) .. controls (80, 500) .. (P3) -- (P2) node[above left, font=\tiny] {Expansion Path}; \end{axis} \end{tikzpicture} } \vspace{0.1cm} \footnotesize \textbf{(a) Optimal bundles} \column{0.45\textwidth} \centering \resizebox{1\textwidth}{!}{% \begin{tikzpicture} \begin{axis}[ axis lines = left, xmin=0, xmax=55, ymin=0, ymax=32, xtick={0, 20, 30, 40}, ytick={10, 13, 20, 25}, xlabel={Giờ làm việc ($H$)}, ylabel={Mức lương ($w$)}, ylabel style={rotate=90, at={(axis description cs:0.05,1)}, anchor=south}, xlabel style={at={(axis description cs:1,0)}, anchor=north west}, grid=major, grid style={dotted, gray!50}, clip=false ] \coordinate (S1) at (axis cs: 20, 13); \coordinate (S2) at (axis cs: 40, 20); \coordinate (S3) at (axis cs: 30, 25); \coordinate (S0) at (axis cs: 0, 10); \draw[lineBlue, very thick] (S0) to[out=10, in=-120] (S1) to[out=60, in=-90] (S2) % Đoạn dốc lên to[out=90, in=-20] (S3) % Đoạn vòng ngược to[out=160, in=-60] (axis cs: 25, 30); \filldraw[dotRed] (S1) circle (2.5pt); \filldraw[dotRed] (S2) circle (2.5pt); \filldraw[dotRed] (S3) circle (2.5pt); \filldraw[black] (S0) circle (2pt); \node[right, font=\scriptsize, color=lineBlue] at (axis cs: 30, 28) {Labor Supply}; \end{axis} \end{tikzpicture} } \vspace{0.1cm} \footnotesize \textbf{(b) Labor supply} \end{columns} \end{frame}
- Using Adobe Reader with TeXnic Centerby John Kormylo on January 14, 2026 at 8:38 pm
None of the solutions here work for me. Google says to use acroviewR15 but Adobe says to use acroview. acroviewR25 doesn't work either. I am using Winodws 11, TeXnicCenter 2.02 stable (64bit), and Acrobat Reader 25.001.20997 at C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe. Acrobat Reader opens with the default window, but freezes.
- No headings in index for words starting with umlauts (pdflatex)by Hakan on January 14, 2026 at 7:44 pm
When I turn on headings for entries in index, I get the following error: ! LaTeX Error: Invalid UTF-8 byte sequence (�\check@icr). This is a minimal tex file: \documentclass{scrbook} \usepackage{splitidx} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \makeindex \newindex[Index of Fruits]{fru} \begin{document} \sindex[fru]{Äpfel} \sindex[fru]{üzüm} \printindex[fru][Index of Fruits] \end{document} This is a minimal style file: headings_flag 1 heading_prefix "{\\textbf{" heading_suffix "}}\\nopagebreak\n" If I set headings_flag to 0 in the style file, I get no error messages. But the entries in index don't get headings in this case. In order to reproduce the same error, follow these steps: pdflatex file.tex splitindex file.idx -- -s style.ist pdflatex file.tex There is a similar question, which has no accepted answer. Index category for umlauts
- How to underline a tagged parbox?by Teepeemm on January 14, 2026 at 7:20 pm
I have answer blanks on an exam, and then I like to fill them in with the answers. Because the answer may need to be a displayed equation, I put it all in a parbox that gets underlined. This all works fine, until I try to enable tagging, at which point the displayed equation causes "Package tagpdf Error: The number of automatic begin and end text para hooks differ!" Is there a tagging friendly way to underline a parbox? \DocumentMetadata{lang=en-US,tagging=on} \documentclass{article} \begin{document} 1. \underline{\parbox{1in}{~}}\par 2. \underline{\parbox{1in}{\makebox[1in]{}}}\par 3. \underline{\parbox{1in}{okay}}\par 4. \underline{\parbox{1in}{$okay$}}\par 5. \underline{\parbox{1in}{\[not~okay\]}} \end{document}
- upright math Greek lowercase letter with lua-unicode-mathby murray on January 14, 2026 at 5:53 pm
Allagedly, command \mupdelta in math mode should give an upright lowercase Greek delta, as shown in this table from unimath-symbols: However, with lua-unicode-math, the result of \mupdelta is not upright, as shown in the first letter of the output below. Here's the source: % !TEX program = lualatex \NeedsTeXFormat{LaTeX2e}[2025-11-01] \documentclass{article} \usepackage{mismath} \usepackage{fontspec,lua-unicode-math} \ExpandArgs{c}\def{ver@unicode-math.sty}{} \setmainfont[Scale=1.0]{TeXGyreTermesX} \setmathfont{STIX Two Math}[Scale=MatchUppercase,math-style=ISO] \usepackage{mathfixs} % defines \mathup command \begin{document} $\mupdelta \quad \delta \quad \symup{\delta} \quad \mathup{\delta}$ \end{document} (The result is the same Italic delta even if mismath is not loaded. Likewise the same if unicode-math is used instead of lua-unicode-math.) What's wrong? Note: See the related comment from DavidCarlisle in https://tex.stackexchange.com/a/758142/13492
- Making geometric frieze (pattern) with tikzby Erwan on January 14, 2026 at 9:11 am
i'm trying to do some geometric frieze with tikz. The last goal is to do a command to draw one of the 7 possible frieze (see wikipedia). But, first, i just do 1 frieze. Results: My code: \documentclass[tikz]{standalone} \begin{document} \newcommand{\footstep}[4]{ \begin{scope}[ xshift=#3cm, %for translation yshift=#4cm, %for translation xscale=#1, %for reflexion yscale=#2 %for reflexion ] \draw (1, 3) -- (1, 0); \draw (1, 0) -- (7, 0); \draw (6, 3) -- (7, 0); \draw (6, 3) -- (5, 0); \draw (5, 0) -- (4, 2); \draw (4, 2) -- (2, 0); \draw (2, 0) -- (1, 3); \end{scope} } \begin{tikzpicture}[rounded corners=1pt, very thick, scale=.75] \draw[help lines] (0,-1) grid (22,5); \footstep{1}{1}{0}{0} \footstep{1}{-1}{7}{3} \end{tikzpicture} \end{document} but i have to find the parameters by myself. I'd like something automatic. Something like : xshift = "scope width" yshift = "scope height" Thanks