• Simplest way to fill format text using a loop, preferably using built in loops?
    by scribe on July 6, 2026 at 9:29 pm

    Here is what I want to do in LaTeX but in Python, data = [ ('path/to/file1', 'Caption for file1.', 'fig:label1'), ('path/to/file2', 'Caption for file2.', 'fig:label2'), ('path/to/file3', 'Caption for file3.', 'fig:label3'), ('path/to/file4', 'Caption for file4.', 'fig:label4') ] for entry in data: print( f'\\begin{{figure}}[htbp]\n\ \\centering\n\ \\includegraphics[width=0.8\\textwidth]{{{entry[0]}}}\n\ \\caption{{{entry[1]}}}\n\ \\label{{{entry[2]}}}\n\\end{{figure}}' ) This will result in the following text over the console, \begin{figure}[htbp] \centering \includegraphics[width=0.8\textwidth]{path/to/file1} \caption{Caption for file1.} \label{fig:label1} \end{figure} \begin{figure}[htbp] \centering \includegraphics[width=0.8\textwidth]{path/to/file2} \caption{Caption for file2.} \label{fig:label2} \end{figure} \begin{figure}[htbp] \centering \includegraphics[width=0.8\textwidth]{path/to/file3} \caption{Caption for file3.} \label{fig:label3} \end{figure} \begin{figure}[htbp] \centering \includegraphics[width=0.8\textwidth]{path/to/file4} \caption{Caption for file4.} \label{fig:label4} \end{figure} How do I do this but in LaTeX? I know how to run simple loops like shown here: https://www.dickimaw-books.com/latex/admin/html/docsvlist.shtml \newcommand*{\mylist}{Parrot,Canary,Zebra,Arara,Duck}% \makeatletter \@for\thisitem:=\mylist\do{\thisitem. } \makeatother However, I not sure how to run a loop over a list of lists and index the inner list.

  • How to get a dedicated geometry only for the two pages following the page dedicated to the chapter title?
    by Denis Bitouzé on July 6, 2026 at 4:31 pm

    For a LaTeX class I'm currently working on, based on a graphic designer work, I need to change the \chapter command (roughly) as follows: the chapter title has to be typeset on a (odd) dedicated page, with a dedicated geometry, the two following pages, which contain the beginning of the chapter text, have to be typeset with a dedicated geometry, the following pages (until the next chapter) have to be typeset with the default geometry. The following MCE is a (clearly fragile) attempt to do so, which: works as expected with simple paragraphs (Lorem ipsum), doesn't work with a “real” document (\blinddocument), as shown: pages 3-7: the default geometry is restore starting on page 6, versus pages 9-13: the default geometry isn't restore starting on page 12. Do you understand what's going on and how to get the expected result? \documentclass{book} \usepackage{geometry} \usepackage{lipsum} \usepackage{fgruler} \usepackage{afterpage} \usepackage{blindtext} \geometry{ % Default geometry (small margin, just for the example) showframe, paperwidth=200mm, paperheight=250mm, margin=1cm } \renewcommand{\chapter}[1]{% \cleardoublepage \newgeometry{% Dedicated geometry for the chapter title (dedicated) page % (\newgeometry induces clearpage) tmargin=5cm, centering, } \thispagestyle{empty} \begin{center} \Huge\bfseries#1 % Chapter title \end{center} \newgeometry{% Dedicated geometry for the two pages following the chapter % title (dedicated) page tmargin=3cm } \afterpage{% On the following page \afterpage{% On the following page… \aftergroup\restoregeometry % … restore the default geometry } } } \begin{document} \fgruler*[type=in]{alledges} \lipsum[1] \chapter{Test} \lipsum[1-35] \blinddocument \lipsum[1-35] \end{document}

  • Creating an A0 Conference poster [closed]
    by Happy Vilakazi on July 6, 2026 at 2:56 pm

    Hi everyone I am trying to recreate the attached poster, but Im not winning...I have tried to code as shown below, please assist: % ============================================================================ % Microscopic Nucleus--Nucleus Interaction Potentials in CDCC Calculations % of Weakly Bound Nuclei % Happy Vilakazi & Prof. N.K. Timol -- UNISA / NRF / SAIP % % A0 portrait poster built with tcolorbox's "poster" library. % Compile with: pdflatex cdcc_poster.tex (run twice) % % IMAGE PLACEHOLDERS: search for "REPLACE" to find where the real logos, % QR code and nuclei density images should be dropped in. % ============================================================================ \documentclass[a0paper,portrait]{a0poster} \usepackage[margin=1.2cm]{geometry} \usepackage[T1]{fontenc} \usepackage{helvet} \renewcommand{\familydefault}{\sfdefault} \usepackage{amsmath,amssymb} \usepackage{graphicx} \usepackage{booktabs,multirow,array} \usepackage{enumitem} \usepackage{tikz} \usetikzlibrary{arrows.meta,positioning,decorations.pathreplacing,calc,shadows.blur} \usepackage[poster]{tcolorbox} \usepackage{pifont} % \ding checkmarks \usepackage{ragged2e} % ---------------------------------------------------------------------------- % Colour palette % ---------------------------------------------------------------------------- \definecolor{posterNavy}{RGB}{25,42,94} % section header bars \definecolor{posterNavyDark}{RGB}{16,28,66} \definecolor{posterMaroon}{RGB}{122,20,34} % main title \definecolor{posterRed}{RGB}{198,28,40} % accents / subheadings \definecolor{posterCream}{RGB}{253,249,240} % motivation box fill \definecolor{posterGrey}{RGB}{245,246,248} % page background boxes \definecolor{posterGreen}{RGB}{20,110,60} \definecolor{posterBlue}{RGB}{30,90,170} \definecolor{posterOrange}{RGB}{235,120,20} % ---------------------------------------------------------------------------- % Box styles % ---------------------------------------------------------------------------- \tcbset{ posterblock/.style={ enhanced, colback=white, colframe=posterNavy, boxrule=1.2pt, arc=4mm, fonttitle=\Large\bfseries, coltitle=white, colbacktitle=posterNavy, titlerule=0mm, toptitle=2.5mm, bottomtitle=2.5mm, halign title=center, left=5mm, right=5mm, top=4mm, bottom=4mm, drop fuzzy shadow=black!30 }, redblock/.style={ posterblock, colbacktitle=posterMaroon, colframe=posterMaroon } } % Numbered white circle used in the Objectives box \newcommand{\numcircle}[1]{% \tikz[baseline=-0.6ex]{\node[circle,fill=posterNavy,text=white, inner sep=1.2mm,font=\large\bfseries]{#1};}} % Green check bullet used in Expected Outcomes \newcommand{\greencheck}{\textcolor{posterGreen}{\ding{51}}~} % Placeholder macro: prints a framed grey box until the real image exists. % Usage: \imgplaceholder{width}{height}{label} \newcommand{\imgplaceholder}[3]{% \begin{tikzpicture} \node[draw=black!40, fill=black!8, minimum width=#1, minimum height=#2, align=center, font=\small\color{black!60}] {#3}; \end{tikzpicture}} \pagestyle{empty} \begin{document} \begin{tcbposter}[ poster = {showframe=false, columns=12, rows=100, spacing=8mm}, boxes = {posterblock} ] % ============================================================================ % HEADER % ============================================================================ \posterbox[blankest, interior engine=path, halign=center, valign=center] {name=header, column=1, span=12, row=1, rowspan=7}{% \begin{minipage}{0.16\linewidth}\centering % REPLACE with: \includegraphics[width=\linewidth]{unisa_logo.png} \imgplaceholder{10cm}{4cm}{UNISA logo}\\[4mm] % REPLACE with: \includegraphics[width=0.7\linewidth]{atom_graphic.png} \imgplaceholder{7cm}{7cm}{Atom graphic} \end{minipage}\hfill \begin{minipage}{0.60\linewidth}\centering {\veryHuge\bfseries\color{posterMaroon} Microscopic Nucleus--Nucleus\\[2mm] Interaction Potentials in CDCC\\[2mm] Calculations of Weakly Bound Nuclei\\[8mm]} {\LARGE\bfseries Happy Vilakazi$^{1}$, Prof.\ N.K.\ Timol$^{2}$}\\[5mm] {\Large\itshape\color{posterBlue} $^{1}$Department of Physics, University of South Africa (UNISA), South Africa\\[1mm] $^{2}$University of South Africa (UNISA), South Africa} \end{minipage}\hfill \begin{minipage}{0.20\linewidth}\centering % REPLACE with NRF + SAIP logos side by side \imgplaceholder{6.5cm}{4cm}{NRF logo}\hspace{2mm}% \imgplaceholder{6.5cm}{4cm}{SAIP logo}\\[4mm] % REPLACE with: \includegraphics[width=5cm]{qr_code.png} \imgplaceholder{5cm}{5cm}{QR code}\\[1mm] {\normalsize\bfseries\color{posterRed} SCAN ME for more information} \end{minipage}} % ============================================================================ % ROW 1 : ABSTRACT | MOTIVATION + RESEARCH PROBLEM | OBJECTIVES % ============================================================================ \posterbox[redblock, title=ABSTRACT] {name=abstract, column=1, span=4, row=8, rowspan=15}{% \justifying Weakly bound and halo nuclei exhibit strong coupling to the continuum, making breakup an essential reaction mechanism that significantly influences elastic scattering, fusion and transfer reactions. Traditional calculations often employ phenomenological Woods--Saxon optical potentials, whose parameters depend heavily on experimental elastic-scattering data. This study investigates a microscopic alternative by constructing nucleus--nucleus interaction potentials using the double-folding model with M3Y effective nucleon--nucleon interactions. These potentials are incorporated into the Continuum Discretized Coupled Channels (CDCC) framework to examine their influence on breakup observables. The work aims to improve the predictive capability of reaction models for weakly bound nuclei where experimental data remain scarce.} \posterbox[blankest] {name=midcol, column=5, span=4, row=8, rowspan=15}{% \begin{tcolorbox}[posterblock, title=1.\ \ MOTIVATION, colback=posterCream] \begin{itemize}[leftmargin=8mm, itemsep=1.5mm, label=\textcolor{posterNavy}{\textbullet}] \item Breakup strongly influences nuclear reactions. \item Continuum couplings affect reaction observables. \item Important for exotic nuclei and nuclear astrophysics. \item Necessary for reliable radioactive beam experiments. \end{itemize} \end{tcolorbox} \vspace{4mm} \begin{tcolorbox}[redblock, title=2.\ \ RESEARCH PROBLEM] Current CDCC calculations generally use phenomenological Woods--Saxon potentials which: \begin{itemize}[leftmargin=8mm, itemsep=1mm, label=\textcolor{posterRed}{\textbullet}] \item require elastic-scattering data \item are phenomenological \item have limited predictive capability. \end{itemize} \vspace{2mm} \begin{center} \textbf{\color{posterRed} This study investigates:\\ Can microscopic double-folding potentials\\ improve CDCC predictions?} \end{center} \end{tcolorbox}} \posterbox[title=3.\ \ OBJECTIVES] {name=objectives, column=9, span=4, row=8, rowspan=15}{% \begin{itemize}[leftmargin=14mm, itemsep=5mm, label={}] \item \numcircle{1}\ \ Construct microscopic nucleus--nucleus potentials using the double-folding model. \item \numcircle{2}\ \ Implement M3Y--Reid and M3Y--Paris interactions (density-independent and density-dependent). \item \numcircle{3}\ \ Perform CDCC calculations for weakly bound nuclei. \item \numcircle{4}\ \ Examine continuum--continuum coupling effects. \item \numcircle{5}\ \ Compare calculated observables with experimental data. \end{itemize}} % ============================================================================ % ROW 2 : WEAKLY BOUND & HALO NUCLEI | DOUBLE-FOLDING MODEL % ============================================================================ \posterbox[title=4.\ WEAKLY BOUND \& HALO NUCLEI] {name=halo, column=1, span=3, row=23, rowspan=18}{% \centering {\large\bfseries Examples of nuclei studied}\\[4mm] % REPLACE the nine placeholders below with the density-distribution images \newcommand{\nuc}[1]{\begin{minipage}{0.3\linewidth}\centering \imgplaceholder{5.6cm}{5.6cm}{}\\[-13mm]{\color{white}\bfseries #1}\\[9mm] \end{minipage}} \nuc{$^{6}$Li}\hfill\nuc{$^{7}$Li}\hfill\nuc{$^{8}$B}\\[3mm] \nuc{$^{11}$Be}\hfill\nuc{$^{11}$Li}\hfill\nuc{$^{15}$B}\\[3mm] \nuc{$^{20}$C}\hfill\nuc{$^{30}$F}\hfill\nuc{$^{37}$F}\\[4mm] These nuclei have low separation energies and extended spatial distributions.} \posterbox[title=5.\ DOUBLE-FOLDING MODEL] {name=dfm, column=4, span=9, row=23, rowspan=18}{% \begin{minipage}[t]{0.36\linewidth} {\large\bfseries\color{posterRed} 5.1 Geometry}\\[3mm] \centering \begin{tikzpicture}[scale=1.1, >=Stealth] % projectile (blue) and target (red) density clouds \shade[inner color=posterBlue!80, outer color=posterBlue!10] (0,0) circle (2.3); \shade[inner color=posterRed!80, outer color=posterRed!10] (8,-0.8) circle (2.6); \fill (0,0) circle (2.5pt) node[below left] {\small Projectile $\rho_P(r_1)$}; \fill (8,-0.8) circle (2.5pt) node[below right] {\small Target $\rho_T(r_2)$}; % interaction points \fill[posterRed] (1.4,1.4) circle (2pt); \fill[posterRed] (6.9,0.9) circle (2pt); % vectors \draw[->, thick] (0,0) -- (1.4,1.4) node[midway, left] {$r_1$}; \draw[->, thick] (8,-0.8) -- (6.9,0.9) node[midway, right] {$r_2$}; \draw[->, very thick] (0,0) -- (8,-0.8) node[midway, below] {$R$}; \draw[->, thick, posterRed, dashed] (1.4,1.4) -- (6.9,0.9) node[midway, above] {$s = R + r_2 - r_1$}; \end{tikzpicture} \end{minipage}\hfill \begin{minipage}[t]{0.31\linewidth} {\large\bfseries\color{posterRed} 5.2 Folding Potential}\\[3mm] The nucleus--nucleus potential is written as \begin{equation*} V(R) = V_D(R) + V_E(R) \end{equation*} $V_D$: Direct part \hfill $V_E$: Exchange part\\[3mm] \begin{tcolorbox}[colback=posterGreen!5, colframe=posterGreen, boxrule=1pt, arc=2mm] \begin{equation*} V_D(R) = \iint \rho_P(r_1)\,\rho_T(r_2)\,v_D(s)\, dr_1\, dr_2 \end{equation*} with \quad $s = \left| R + r_2 - r_1 \right|$ \end{tcolorbox} \end{minipage}\hfill \begin{minipage}[t]{0.28\linewidth} {\large\bfseries\color{posterRed} 5.3 M3Y Effective Interaction}\\[3mm] M3Y interaction consists of direct (D) and exchange (E) parts. \begin{align*} v_D(s) &= \sum_{i=1}^{3} G_{Di}\, \frac{e^{-s/r_i}}{s/r_i}\\[2mm] v_E(s) &= \sum_{i=1}^{3} G_{Ei}\, \frac{e^{-s/r_i}}{s/r_i} \end{align*} \vspace{1mm} {\bfseries Two parametrizations:}\\[1mm] \textcolor{posterNavy}{\textbullet}~\textbf{M3Y--Reid}\hspace{8mm} \textcolor{posterNavy}{\textbullet}~\textbf{M3Y--Paris} \end{minipage}} % ============================================================================ % ROW 3 : M3Y PARAMETERS | DENSITY DEPENDENCE | CDCC FRAMEWORK % ============================================================================ \posterbox[title=6.\ \ M3Y PARAMETERS] {name=params, column=1, span=4, row=41, rowspan=17}{% The coefficients of the Reid and Paris M3Y interactions.\\[3mm] \centering \renewcommand{\arraystretch}{1.35} \begin{tabular}{@{}l l r r@{}} \toprule \textbf{Coefficient} & \textbf{Units} & \textbf{Reid} & \textbf{Paris}\\ \midrule $G_{D1}$ & MeV & 7999 & 11062 \\ $G_{D2}$ & MeV & $-2134$ & $-2537.5$ \\ $G_{D3}$ & MeV & 0 & 0 \\ $G_{E1}$ & MeV & 4631.4 & $-1524.25$\\ $G_{E2}$ & MeV & $-1787.1$ & $-518.75$\\ $G_{E3}$ & MeV & $-7.847$ & $-7.847$ \\ $r_1$ & fm & 0.25 & 0.25 \\ $r_2$ & fm & 0.40 & 0.40 \\ $r_3$ & fm & 1.414 & 1.414 \\ $G_{e}$ & MeV\,fm$^3$ & $-276$ & $-592$\\ $k_{v}$ & MeV$^{-1}$ & 0.002 & 0.003 \\ \bottomrule \end{tabular}} \posterbox[title=7.\ DENSITY DEPENDENCE] {name=density, column=5, span=3, row=41, rowspan=17}{% \centering Density-dependent factor:\\[6mm] \begin{tcolorbox}[colback=posterGreen!5, colframe=posterGreen, boxrule=1pt, arc=2mm] \begin{equation*} F(\rho) = C\left[\,1 + \alpha\, e^{-\beta\rho} - \gamma\rho\,\right] \end{equation*} \end{tcolorbox} \vspace{6mm} Accounts for nuclear matter saturation and medium effects.} \posterbox[title=8.\ \ CDCC FRAMEWORK] {name=cdcc, column=8, span=5, row=41, rowspan=17}{% \centering \begin{tikzpicture}[>=Stealth, node distance=8mm, scale=0.95] % weakly bound projectile \node[align=center, font=\small\bfseries] (plab) at (0,3.2) {Weakly Bound\\ Projectile ($a = b + x$)}; \draw[dashed, thick] (0,0.8) circle (1.5); \fill[posterNavy] (-0.5,0.9) circle (10pt) node[left=2mm] {\small $b$}; \fill[posterBlue!70] (0.9,0.5) circle (6pt) node[right=1mm] {\small $x$}; \draw (-0.2,0.8) -- (0.7,0.55) node[midway, above] {\small $x$}; % discretisation \node[align=center, font=\small\bfseries] (dlab) at (5,3.2) {Discretisation of\\ Continuum}; \foreach \y/\l in {2.2/{\varepsilon_1}, 1.7/{\varepsilon_2}, 1.2/{\varepsilon_3}} \draw[thick, posterBlue] (4.2,\y) -- (5.8,\y) node[right] {\small $\l$}; \node at (5,0.6) {$\vdots$}; \draw[thick, posterBlue] (4.2,-0.2) -- (5.8,-0.2) node[right] {\small $\varepsilon_N$}; \draw[decorate, decoration={brace, mirror, amplitude=6pt}] (4.0,-0.5) -- (6.6,-0.5); % coupled channel matrix \node[align=center, font=\small\bfseries] at (9.6,3.2) {Coupled Channels\\ Equations}; \node at (9.6,1.0) {$\begin{bmatrix} U_{11} & \cdots & U_{1N}\\ \vdots & \ddots & \vdots\\ U_{N1} & \cdots & U_{NN} \end{bmatrix}$}; % observables \node[align=center, font=\small\bfseries] at (14,3.2) {Observables}; \node[draw=posterNavy, thick, rounded corners=2mm, align=center, inner sep=3mm, font=\small] (obs) at (14,1.0) {Elastic Scattering\\ Breakup\\ Fusion\\ Transfer}; % arrows \draw[->, very thick] (1.8,0.8) -- (3.6,0.8); \draw[->, very thick] (7.0,0.8) -- (7.9,0.8); \draw[->, very thick] (11.4,0.8) -- (12.4,0.8); % footer \node[font=\small] at (7,-1.6) {Continuum--continuum couplings included}; \end{tikzpicture}} % ============================================================================ % ROW 4 : METHODOLOGY | EXPECTED OUTCOMES % ============================================================================ \posterbox[title=9.\ \ METHODOLOGY] {name=method, column=1, span=8, row=58, rowspan=12}{% \centering \begin{tikzpicture}[>=Stealth, node distance=9mm, mstep/.style={draw=posterNavy, thick, rounded corners=2mm, fill=posterNavy!6, minimum height=2.6cm, minimum width=3.4cm, align=center, font=\small\bfseries, inner sep=2mm}] \node[mstep] (a) {Nuclear\\ Densities\\ (HFB / RMF)}; \node[mstep, right=of a] (b) {Double\\ Folding\\ (DFM)}; \node[mstep, right=of b] (c) {Microscopic\\ Optical\\ Potential}; \node[mstep, right=of c] (d) {FRESCO\\ Code}; \node[mstep, right=of d] (e) {CDCC\\ Calculations}; \node[mstep, right=of e] (f) {Observables\\ (Elastic, Breakup,\\ Fusion)}; \node[mstep, right=of f] (g) {Comparison with\\ Experimental\\ Data}; \foreach \i/\j in {a/b, b/c, c/d, d/e, e/f, f/g} \draw[->, very thick, posterRed] (\i) -- (\j); \end{tikzpicture}} \posterbox[title=10.\ \ EXPECTED OUTCOMES] {name=outcomes, column=9, span=4, row=58, rowspan=12}{% \begin{itemize}[leftmargin=2mm, itemsep=2mm, label={}] \item \greencheck Microscopic optical potentials with reliable physical basis. \item \greencheck Improved description of elastic scattering. \item \greencheck Reliable breakup cross sections and angular distributions. \item \greencheck Better understanding of continuum--continuum effects. \item \greencheck Comparison of M3Y--Reid vs M3Y--Paris interactions. \item \greencheck Improved predictive power for exotic nuclei. \end{itemize}} % ============================================================================ % ROW 5 : SIGNIFICANCE | FUTURE WORK | SOFTWARE & TOOLS % ============================================================================ \posterbox[title=11.\ \ SIGNIFICANCE] {name=signif, column=1, span=4, row=70, rowspan=12}{% \begin{itemize}[leftmargin=8mm, itemsep=2mm, label=\textcolor{posterMaroon}{\textbullet}] \item Improves microscopic reaction modelling. \item Reduces dependence on phenomenological potentials. \item Contributes to drip-line nuclear physics. \item Supports planning of future radioactive ion beam experiments. \item Relevant for nuclear astrophysics (reaction rates). \end{itemize}} \posterbox[title=12.\ \ FUTURE WORK] {name=future, column=5, span=4, row=70, rowspan=12}{% \begin{itemize}[leftmargin=8mm, itemsep=2mm, label=\textcolor{posterNavy}{\textbullet}] \item Include pairing and deformation effects. \item Extend to more halo nuclei and three-body projectiles. \item Investigate continuum--continuum couplings in detail. \item Employ alternative density functionals and interactions. \item Apply to reactions of astrophysical importance. \end{itemize}} \posterbox[title=13.\ \ SOFTWARE \& TOOLS] {name=tools, column=9, span=4, row=70, rowspan=12}{% \centering \newcommand{\tool}[2]{\begin{minipage}[t]{0.23\linewidth}\centering \imgplaceholder{3.6cm}{3.6cm}{}\\[1mm] {\normalsize\bfseries #1}\\[0.5mm]{\small #2}\end{minipage}} % REPLACE the four placeholders with the software icons \tool{FRESCO}{CDCC Code}\hfill \tool{DFM}{Double-Folding Code}\hfill \tool{HFB / RMF}{Nuclear Densities}\hfill \tool{Python / Fortran}{Programming}} % ============================================================================ % ROW 6 : REFERENCES | CONTACT % ============================================================================ \posterbox[title=14.\ \ SELECTED REFERENCES] {name=refs, column=1, span=8, row=82, rowspan=13}{% \small \begin{minipage}[t]{0.49\linewidth} \begin{enumerate}[leftmargin=10mm, itemsep=1.5mm, label={[\arabic*]}] \item N.\ Austern, I.\ J.\ Thompson and M.\ Kamimura, \textit{Phys.\ Rep.}\ \textbf{154}, 125 (1987). \item N.\ Keeley et al., \textit{Prog.\ Part.\ Nucl.\ Phys.}\ \textbf{59}, 579 (2007). \item M.\ Yahiro et al., \textit{Prog.\ Theor.\ Phys.}\ \textbf{120}, 767 (2008). \item G.\ R.\ Satchler and W.\ G.\ Love, \textit{Phys.\ Rep.}\ \textbf{55}, 183 (1979). \item D.\ T.\ Khoa, G.\ R.\ Satchler and W.\ von Oertzen, \textit{Phys.\ Rev.\ C}\ \textbf{56}, 954 (1997). \end{enumerate} \end{minipage}\hfill \begin{minipage}[t]{0.49\linewidth} \begin{enumerate}[leftmargin=10mm, itemsep=1.5mm, label={[\arabic*]}, start=6] \item I.\ J.\ Thompson and F.\ M.\ Nunes, \textit{Nuclear Reactions for Astrophysics}, Cambridge University Press (2009). \item B.\ Mukeru, T.\ Sithole and L.\ Tomio, \textit{J.\ Phys.\ G}\ \textbf{51}, 095103 (2024). \item T.\ Tanihata et al., \textit{Prog.\ Part.\ Nucl.\ Phys.}\ \textbf{68}, 215 (2013). \end{enumerate} \end{minipage}} \posterbox[redblock, title=CONTACT] {name=contact, column=9, span=4, row=82, rowspan=13}{% \begin{itemize}[leftmargin=12mm, itemsep=4mm, label={}] \item \tikz[baseline=-0.5ex]{\node[circle,draw=posterNavy,thick,inner sep=1.5mm] {\scriptsize\bfseries @};}\ \ vilakah@unisa.ac.za \item \tikz[baseline=-0.5ex]{\node[circle,draw=posterNavy,thick,inner sep=1.5mm] {\scriptsize\bfseries T};}\ \ +27 12 429 3111 \item \tikz[baseline=-0.5ex]{\node[circle,draw=posterNavy,thick,inner sep=1.5mm] {\scriptsize\bfseries P};}\ \ Department of Physics, UNISA, Pretoria, South Africa \end{itemize} \vspace{4mm} \hfill{\LARGE\bfseries\color{posterMaroon} Define tomorrow.}} \end{tcbposter} \end{document}

  • Heavy bold \mathsf{} in mtpro2
    by Sebastiano on July 6, 2026 at 2:45 pm

    What is the command to use in mtpro2 (here the v. lite https://ctan.org/pkg/mtp2lite) the heavy bold \mathsf{F}? Actually I not remembering this. I have tried with \boldsymbol, \boldmath but nothing. \documentclass{article} \usepackage{amsmath} \usepackage[lite]{mtpro2} \begin{document} $\mathsf{F}\mathbold{\mathsf{F}} \mbf{\mathsf{F}}$ \end{document} I can't use bm package because there is mtpro2. I have seen the pag. 6/7 of the documentation: https://tug.ctan.org/fonts/mtp2lite/texmf/doc/fonts/mtpro2/mtpro2.pdf.

  • Why itemize move upward in the second frame? [duplicate]
    by vi pa on July 6, 2026 at 9:17 am

    \documentclass{beamer} \usepackage{tikz} \setbeamertemplate{navigation symbols}{} \begin{document} \begin{frame} \begin{itemize} \item why \item itemize \item move \item upwards \item in the second frame? \end{itemize} \end{frame} \begin{frame} \begin{itemize} \item why \item itemize \item move \item upwards \item in the second frame? \end{itemize} \begin{tikzpicture}[remember picture,overlay] \fill (current page.center) circle[radius=.5cm]; \end{tikzpicture} \end{frame} \end{document} tikzpictures with overlay should have no bounding box. Why in the second frame the same itemize of the first frame move upward?

  • Placing two TikZ figures side by side without scaling or affecting page geometry
    by Sebastiano on July 6, 2026 at 8:35 am

    I am trying to place two TikZ figures side-by-side , but I am running into layout issues. In my document structure, I cannot use \resizebox or scale the figures, because there are too many elements that would conflict with my existing layout and typography constraints. For the same reason, I also want to avoid changing the x and y unit scales inside the TikZ pictures. My goal is to keep both figures at their natural size and still arrange them horizontally on the same line, respecting the page geometry. However, despite trying different approaches, the result is not satisfactory: the figures either overlap, break the margins, or force unwanted scaling. Is there a reliable way to force two TikZ pictures to stay side-by-side without resizing them and while respecting the page layout constraints? \documentclass{article} \usepackage[top=2.5cm,bottom=2.2cm, left=3.2cm,right=1.5cm,headsep=10pt,a4paper]{geometry} \usepackage{graphicx} \usepackage{subcaption} \usepackage{tikz} \usetikzlibrary{arrows.meta} \tikzset{ rhtip/.tip={ Triangle[ fill=white, line width=0.8pt, length=8pt, width=8pt ] } } \begin{document} \begin{figure}[htbp] \centering \begin{subfigure}{0.48\textwidth} \centering \begin{tikzpicture}[x=0.6cm,y=0.6cm, font=\large] \draw[->] (0,0)--(6,0) node[right]{$x$}; \draw[->] (0,0)--(0,4) node[above]{$y$}; \node[below left] at (0,0){$O$}; \node[draw,circle] at (-1,3){$\Sigma$}; \begin{scope}[shift={(1.1,1.1)}] \draw[->] (0,0)--(6,0) node[right]{$x'$}; \draw[->] (0,0)--(0,4) node[above]{$y'$}; \node[below right] at (0,0){$O'$}; \node[draw,circle] at (1.5,3){$\Sigma'$}; \end{scope} \draw[-rhtip, line width=2pt, red!80!black] (6.2,3)--(7.5,3); \node[below] at (6.85,2.8){$\mathbf{v}$}; \end{tikzpicture} \caption{$\Sigma'$ in moto rispetto a $\Sigma$} \end{subfigure} \begin{subfigure}{0.48\textwidth} \centering \begin{tikzpicture}[x=0.6cm,y=0.6cm, font=\large] \draw[->] (0,0)--(6,0) node[right]{$x$}; \draw[->] (0,0)--(0,4) node[above]{$y$}; \node[below left] at (0,0){$O$}; \node[draw,circle] at (-1,3){$\Sigma$}; \begin{scope}[shift={(1.1,1.1)}] \draw[->] (0,0)--(6,0) node[right]{$x'$}; \draw[->] (0,0)--(0,4) node[above]{$y'$}; \node[below right] at (0,0){$O'$}; \node[draw,circle] at (1.5,3){$\Sigma'$}; \end{scope} \draw[-rhtip, line width=2pt, orange!80!black] (7.5,3)--(6.2,3); \node[above] at (6.85,3.1){$-\mathbf{v}$}; \end{tikzpicture} \caption{Velocità relativa opposta} \end{subfigure} \caption{Due sistemi di riferimento inerziali in moto relativo rettilineo uniforme.} \end{figure} \end{document}

  • When we tessellate a surface by triangulating a Cartesian grid of points, the result neglects important features in nontrivial illustrations
    by Jasper on July 6, 2026 at 12:36 am

    I want to plot the surface in this image: This "MWE" does not run, though it conveys what I'm trying to do. \documentclass[tikz,border=1cm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture}[ declare function={ f(\x,\y)=sqrt((\x/2)^2+(\y)^2-1); g(\x,\y)=f(\x,\y)/abs(f(\x,\y)); h(\x,\y)=1/(((\x-10)^2+(\y-2)^2)^2+1); i(\x,\y)=g(\x,\y)+h(\x+\y); j(\x,\y)=i(\x,\y)+1/((\x)^2+(\y+10)^2-1); } ] \begin{axis}[ hide axis, view={-30}{30}, scale=3, unit vector ratio=1 1 1 ] \addplot3[ surf, color=black, opacity=0.2, samples=10, samples y=10, domain = 1:15, domain y = 0:\fpeval{2*pi}, z buffer=sort, ] ( {x}, {y}, {j(x,y)} ); \end{axis} \end{tikzpicture} \end{document} When we tessellate a surface domain by taking a Cartesian product of sequences along both dimensions and triangulating the resulting grid, the result will ultimately neglect important features in nontrivial illustrations. In this particular case, there are small regions of exceptionally high detail, and a nonlinear ridge, while most of the surface is undetailed. Why in the world would we waste so many triangles on those regions, slowing down everything, when we could instead strategically sample the domain, and Delaunay triangulate? This questions seeks that. I want, and have been studying for some time, a domain tessellation technique which does this: samples along the boundaries of the domain like sewing along a seam. We would then be able to use a post triangulation filter to remove any simplices which are outsite this seam. samples point singularities explitly, as well as along singularity curves as though they were a seam. ALSO samples a "seam" around asymptotic regions, so that a boolean filter can remove post-triangulation simplices which are within the asymptotic region. This "seam" should be dependent on the strength of the asymptote, in terms of how closely we sample it. AND very importantly, it will strategically sample according to curvature, so that nondetailed regions aren't wastefully samples, allowing us to logistically sample regions of higher curvature. Samples important calculus based points, curves, and regions, such as maxima and minima (including when they are along ridges, as in my example), and inflection ploints (including the same), etc. In my view, this is one of the biggest problems facing modern mathematics illustration as a practise.

  • Custom enumerate items using item options
    by profj on July 5, 2026 at 9:04 pm

    I'm trying to customize item labels within an enumerate list on the fly, using the item options. However, I don't fully understand how it works. The code below produces unexpected results, and different patterns emerge for the first layer of the list and the second layer of the list. I'm trying to do this without using the enumitem package, if possible. I know how to manually edit the items, but want the counter to be more automated in the inner list. Here is a minimum working example: \documentclass{article} \begin{document} \begin{enumerate} \item[\theenumi.] Why is this 0, instead of 1? \begin{enumerate} \item[\theenumii.] Why is this blank? \item[\theenumii.] Why is this blank? \item[\theenumii.] Why is this blank? \end{enumerate} \item And this adds one to the counter \item And this adds one to the counter \end{enumerate} \begin{enumerate} \setcounter{enumi}{1} \item[\theenumi.] Now this is 1, as expected. \begin{enumerate} \setcounter{enumii}{1} \item[\theenumii.] And this is a, as expected. \item[\theenumii.] Why doesn't this add one to the counter? \item[\theenumii.] Why doesn't this add one to the counter? \end{enumerate} \item And why does this still add one to the counter? \item And why does this still add one to the counter? \end{enumerate} \end{document} Here's the output:

  • PDF Type 6 shadings: How to properly build them using TeX?
    by Jasper Habicht on July 5, 2026 at 8:19 pm

    This question might be off-topic, but the reason I ask it here is that I want to eventually create a module for a LaTeX package to enable the use of conic gradients via PDF Type 6 shadings which are also known as Coons Patch Mash Tiling. Also, please do not read this as "fix my issue for me" question. Rather, I appreciate any pointers to where I could be wrong. I understand that this topic is highly specialised, so I don't expect anybody to actually fix it completely or even partially. Now, as far as I understand, such shadings are essentially encoded as object stream in a PDF with the following object structure as basis (of course the object number and the contents of the stream and its length are different in a real document): 1 0 obj << /ShadingType 6 /ColorSpace /DeviceRGB /BitsPerCoordinate 16 /BitsPerComponent 8 /BitsPerFlag 2 /Decode [ 0 100 0 100 0 1 0 1 0 1 ] /Length 0 >> stream 00... endstream The stream defines the patches. Each path can be thought of a (distorted) rectangle of which the four sides are described as cubic Bézier curves. Therefore, each of the four edges of the patch has four control points, which means that there are twelve such points needed to describe a patch. Also, each corner of the patch is assigned a color. Now, in a mesh, the patches are attached to each other so that they share a common edge. To identify the shared edge, a flag is added to each patch which describes which edge is shared. A 0 flag identifies the initial patch, a 1 flag means that the right edge of the previous patch is used as the left edge of the current patch. There are more flags, but we only need these two for this case. If edges are shared, the relevant control points and colors are omitted in the description of the patch in the stream. So, if we take the sizes as described by /BitsPerCoordinate, \BitsPerComponent and /BitsPerFlag (let us assume 16, 8, and 2 respectively, also let us assume RGB), we get the following binary representation of the a patch with flag 0: Flag: 2 bits Points: 12 points, 16 bits for the x coordinate, 16 bits for the y coordinate Colors: 4 colors, 8 bits for the red part, 8 bits for the green part, 8 bits for the blue part For a patch with flag 1, we get: Flag: 2 bits Points: 8 points, 16 bits for the x coordinate, 16 bits for the y coordinate Colors: 2 colors, 8 bits for the red part, 8 bits for the green part, 8 bits for the blue part Maybe I got something wrong here already, which might explain why things don't work. Anyways, my question is why the following does not result in the desired output. My idea for a conic shading was to create patches that look like slices of a pie. Like this: I first tried without the rounded edge and just set the control points to be equal to the relevant corner, hoping that this would result in a triangle-shaped rectangle. So my patches would adhere to the following logic: Patch 1: Flag = 0 Points: (50, 50) (50, 50) (100, 50) (100, 50) (100, 50) (50, 100) (50, 100) (50, 100) (50, 50) (50, 50) (50, 50) (50, 50) Colors: (255,0,0) (191,0,64) (191,0,64) (255,0,0) Patch 2: Flag = 1 Points: (50, 100) (0, 50) (0, 50) (0, 50) (50, 50) (50, 50) (50, 50) (50, 50) Colors: (128,0,128) (128,0,128) Patch 3: Flag = 1 Points: (0, 50) (50, 0) (50, 0) (50, 0) (50, 50) (50, 50) (50, 50) (50, 50) Colors: (64,0,191) (64,0,191) Patch 4: Flag = 1 Points (50, 0) (100, 50) (100, 50) (100, 50) (50, 50) (50, 50) (50, 50) (50, 50) Colors: (0,0,255) (0,0,255) But, the output is totally not what it should look like although I think that the stream is correct. Acrobat also complains about something being wrong. It looks like this: 21 0 obj << /ShadingType 6 /ColorSpace /DeviceRGB /BitsPerCoordinate 16 /BitsPerComponent 8 /BitsPerFlag 2 /Decode [ 0 100 0 100 0 1 0 1 0 1 ] /Length 350 >> stream 20002000200020003FFFE0003FFFE0003FFFE00020003FFFE0003FFFE0003FFFE00020002000200020002000200020003FC0002FC0102FC0103FC00018000FFFF00008000000080000000800080008000800080008000800080008000800080800080400020002000000020000000200000002000200020002000200020002000200010002FD0002FD80000000FFFF8000FFFF8000FFFF8000800080008000800080008000800080000000FF0000FF endstream endobj So, my question is: What am I missing? Where is the probably simple but basic problem? The following is an MWE intended for testing. It contains a few helper funcitons and the relevant functions from the package where the code eventually is supposed to be included. It should work with PDFLaTeX and LuaLaTeX: \DocumentMetadata{uncompress} \documentclass[]{article} \usepackage{l3draw} \ExplSyntaxOn % a few helper functions \cs_new:Npn \__hawkdraw_tuple_use_i:w ( #1 , #2 ) {#1} \cs_new:Npn \hawkdraw_tuple_use_i:n #1 { \fp_to_dim:n { \exp_last_unbraced:Ne \__hawkdraw_tuple_use_i:w { \fp_eval:n {#1} } } } \cs_new:Npn \__hawkdraw_tuple_use_ii:w ( #1 , #2 ) {#2} \cs_new:Npn \hawkdraw_tuple_use_ii:n #1 { \fp_to_dim:n { \exp_last_unbraced:Ne \__hawkdraw_tuple_use_ii:w { \fp_eval:n {#1} } } } \cs_new_protected:Npn \hawkdraw_support_pdfliteral:n #1 { \sys_if_engine_luatex:TF { \tex_pdfextension:D literal {#1} } { \tex_pdfliteral:D {#1} } } \cs_new_protected:Npn \hawkdraw_support_pdfxform:nnN #1#2#3 { \tex_immediate:D \tex_pdfxform:D \tl_if_empty:nF {#1} { attr {#1} } resources {#2} #3 } \cs_new_protected:Npn \hawkdraw_support_pdflastxform: { \tex_pdflastxform:D } \cs_new_protected:Npn \hawkdraw_support_pdfrefxform:N #1 { \tex_pdfrefxform:D \int_use:N #1 \scan_stop: } \cs_generate_variant:Nn \hawkdraw_support_pdfrefxform:N { c } % === % relevant code from the package \box_new:N \l__hawkdraw_shading_object_box \cs_new_protected:Npn \hawkdraw_shading_set:nnn #1#2#3 { \hbox_set_to_wd:Nnn \l__hawkdraw_shading_object_box { 100bp } { \vbox_to_ht:nn { 100bp } { \skip_vertical:n { 0pt plus 1fil } \hawkdraw_support_pdfliteral:n { /Sh ~ sh } } \skip_horizontal:n { 0pt plus 1fil } } \pdf_object_new:n { hawkdraw_shading_ #1 } \tl_if_empty:nTF {#3} { \pdf_object_write:nne { hawkdraw_shading_ #1 } { dict } { #2 } } { \pdf_object_write:nne { hawkdraw_shading_ #1 } { stream } { {#2} {#3} } } \hawkdraw_support_pdfxform:nnN { } { /Shading ~ << ~ /Sh ~ \pdf_object_ref:n { hawkdraw_shading_ #1 } ~ >> } \l__hawkdraw_shading_object_box \int_const:cn { c__hawkdraw_shading_ #1 _int } { \hawkdraw_support_pdflastxform: } } \cs_new_protected:Npn \hawkdraw_shading_use:n #1 { \hawkdraw_support_pdfrefxform:c { c__hawkdraw_shading_ #1 _int } } % === \cs_new:Npn \hawkdraw_convert_bin_to_hex:n #1 { \__hawkdraw_convert_bin_to_hex_aux:w #1 \q_stop } \cs_generate_variant:Nn \hawkdraw_convert_bin_to_hex:n { e } \cs_new:Npn \__hawkdraw_convert_bin_to_hex_aux:w #1 \q_stop { \int_compare:nNnF { \tl_count:n {#1} } < { 4 } { \__hawkdraw_convert_bin_to_hex_aux:NNNNw #1 \q_stop } } \cs_new:Npn \__hawkdraw_convert_bin_to_hex_aux:NNNNw #1#2#3#4#5 \q_stop { \int_format:nn { \int_from_bin:n {#1#2#3#4} } { 1X } \__hawkdraw_convert_bin_to_hex_aux:w #5 \q_stop } % === \cs_generate_variant:Nn \color_export:nnN { e } \cs_generate_variant:Nn \str_set_convert:Nnnn { Ne } \seq_new:N \l__hawkdraw_shading_conic_colors_seq \seq_new:N \l__hawkdraw_shading_conic_colors_bin_seq \cs_new_protected:Npn \hawkdraw_shading_conic_stream:N #1 { \tl_set:Ne #1 { \hawkdraw_convert_bin_to_hex:e { \seq_map_indexed_function:NN \l__hawkdraw_shading_conic_colors_bin_seq \__hawkdraw_shading_conic_stream_aux:nn } } } \cs_new:Npn \__hawkdraw_shading_conic_stream_aux:nn #1#2 { % skip first entry representing color at first edge \int_compare:nNnF {#1} = { 1 } { % flag (2 bit) \int_format:nn { \int_compare:nNnTF {#1} = { 2 } { 0 } { 1 } } { 0>2b } % four patches for each of the n colors % patch is pie segment going from 0 to 360 / ( n * 4 ) % points of first patch (12 points, 2 x 16 bits each \int_compare:nNnT {#1} = { 2 } { \prg_replicate:nn { 2 } { \__hawkdraw_shading_conic_stream_point_polar:nn { 0 } { 360 / ( \seq_count:N \l__hawkdraw_shading_conic_colors_bin_seq - 1 ) * ( #1 - 2 ) } } \prg_replicate:nn { 2 } { \__hawkdraw_shading_conic_stream_point_polar:nn { 1 } { 360 / ( \seq_count:N \l__hawkdraw_shading_conic_colors_bin_seq - 1 ) * ( #1 - 2 ) } } } \__hawkdraw_shading_conic_stream_point_polar:nn { 1 } { 360 / ( \seq_count:N \l__hawkdraw_shading_conic_colors_bin_seq - 1 ) * ( #1 - 2 ) } \prg_replicate:nn { 3 } { \__hawkdraw_shading_conic_stream_point_polar:nn { 1 } { 360 / ( \seq_count:N \l__hawkdraw_shading_conic_colors_bin_seq - 1 ) * ( #1 - 1 ) } } \prg_replicate:nn { 3 } { \__hawkdraw_shading_conic_stream_point_polar:nn { 0 } { 360 / ( \seq_count:N \l__hawkdraw_shading_conic_colors_bin_seq - 1 ) * ( #1 - 1 ) } } \__hawkdraw_shading_conic_stream_point_polar:nn { 0 } { 360 / ( \seq_count:N \l__hawkdraw_shading_conic_colors_bin_seq - 1 ) * ( #1 - 2 ) } % colors (4 colors, 3 x 8 bits each) \int_compare:nNnT {#1} = { 2 } { \seq_item:Nn \l__hawkdraw_shading_conic_colors_bin_seq { #1 - 1 } } #2 #2 \int_compare:nNnT {#1} = { 2 } { \seq_item:Nn \l__hawkdraw_shading_conic_colors_bin_seq { #1 - 1 } } } } \cs_new:Npn \__hawkdraw_shading_conic_stream_point_polar:nn #1#2 { % get from point polar % normalize to 65535 \int_format:nn { \fp_to_int:n { \hawkdraw_tuple_use_i:n { ( 50bp , 50bp ) + ( \draw_point_polar:nn { #1 * 50bp } {#2} ) } / 100bp * 65535 } } { 0>16b } \int_format:nn { \fp_to_int:n { \hawkdraw_tuple_use_ii:n { ( 50bp , 50bp ) + ( \draw_point_polar:nn { #1 * 50bp } {#2} ) } / 100bp * 65535 } } { 0>16b } } \cs_new_protected:Npn \__hawkdraw_shading_color_set_bin_value:n #1 { \seq_put_right:Ne \l__hawkdraw_shading_conic_colors_bin_seq { \int_format:nn { \int_from_hex:n {#1} } { 0>24b } } } \cs_generate_variant:Nn \__hawkdraw_shading_color_set_bin_value:n { V } % start , % start!25!mid , start!50!mid , start!75!mid , mid , % mid!25!end , mid!50!end , mid!75!end , end \cs_new_protected:Npn \hawkdraw_shading_color_set_bin_values:n #1 { \seq_clear:N \l__hawkdraw_shading_conic_colors_bin_seq \seq_set_from_clist:Nn \l__hawkdraw_shading_conic_colors_seq {#1} \seq_map_indexed_inline:Nn \l__hawkdraw_shading_conic_colors_seq { \int_compare:nNnTF {##1} = { 1 } { \color_export:enN { \seq_item:Nn \l__hawkdraw_shading_conic_colors_seq { 1 } } { HTML } \l__hawkdraw_shading_color_value_tmp_tl \__hawkdraw_shading_color_set_bin_value:V \l__hawkdraw_shading_color_value_tmp_tl } { \color_export:enN { \seq_item:Nn \l__hawkdraw_shading_conic_colors_seq { ##1 - 1 } ! 75 ! ##2 } { HTML } \l__hawkdraw_shading_color_value_tmp_tl \__hawkdraw_shading_color_set_bin_value:V \l__hawkdraw_shading_color_value_tmp_tl \color_export:enN { \seq_item:Nn \l__hawkdraw_shading_conic_colors_seq { ##1 - 1 } ! 50 ! ##2 } { HTML } \l__hawkdraw_shading_color_value_tmp_tl \__hawkdraw_shading_color_set_bin_value:V \l__hawkdraw_shading_color_value_tmp_tl \color_export:enN { \seq_item:Nn \l__hawkdraw_shading_conic_colors_seq { ##1 - 1 } ! 25 ! ##2 } { HTML } \l__hawkdraw_shading_color_value_tmp_tl \__hawkdraw_shading_color_set_bin_value:V \l__hawkdraw_shading_color_value_tmp_tl \color_export:enN { ##2 } { HTML } \l__hawkdraw_shading_color_value_tmp_tl \__hawkdraw_shading_color_set_bin_value:V \l__hawkdraw_shading_color_value_tmp_tl } } } \cs_new_protected:Npn \hawkdraw_shading_conic:n #1 { \int_if_exist:cF { c__hawkdraw_shading_ conic . #1 _int } { \hawkdraw_shading_color_set_bin_values:n {#1} \hawkdraw_shading_conic_stream:N \l_tmpa_tl \hawkdraw_shading_set:nnn { conic . #1 } { /ShadingType ~ 6 ~ /ColorSpace ~ /DeviceRGB ~ /BitsPerCoordinate ~ 16 ~ /BitsPerComponent ~ 8 ~ /BitsPerFlag ~ 2 ~ /Decode ~ [ ~ 0 ~ 100 ~ % x 0 ~ 100 ~ % y 0 ~ 1 ~ % R 0 ~ 1 ~ % G 0 ~ 1 ~ % B ] ~ } { \tl_use:N \l_tmpa_tl } } } \ExplSyntaxOff \begin{document} \ExplSyntaxOn \hawkdraw_shading_conic:n { red , blue } \hbox_set:Nn \l_tmpa_box { \hawkdraw_shading_use:n { conic.red,blue } } \box_use:N \l_tmpa_box \ExplSyntaxOff \end{document}

  • French text in superscript
    by Phil8544 on July 5, 2026 at 4:08 pm

    What package I have to use if I want to get French text in superscript? I want to write "57ème croche sur 92" with the term "ème" in superscript.

  • How can I format the total value of a counter (as printed by `total` from totcount)?
    by modallyFragile on July 5, 2026 at 12:36 pm

    I use countwords to count the number of words in some LaTeX documents. The package counts words into a standard LaTeX counter. I then use totcount to display this wordcount at the beginning of the document. The number is generally in the thousands. Totcount provides a single macro \total{<counter>} for printing the eventual value of a counter, but it doesn't do any intelligent formatting, like dividing thousands with a comma/space (and fair enough -- very few situations call for counters in the thousands!). I would like to print the eventual value of the counter at the beginning of the document in a nicely formatted way. How can I do this? Based on other discussions of formatting counters, I have tried using numprint and siunitx, but neither of these work -- MWEs below. TIA! Failure #1 numprint \documentclass{article} \title{Foobar} % For counting words \usepackage{countwords} \newcounter{words} \setcounter{words}{0} % For printing final value \usepackage{totcount} \regtotcounter{words} % For dummy text \usepackage{lipsum} \usepackage{numprint} \begin{document} \maketitle % Prints `1112' (no comma) \total{words} % `Should' print `1,112', but gives an error. \numprint{\total{words}} \countwordsstart{words} \lipsum[1-12] \countwordsstop{words} \end{document} I get an error: ./test.tex:27: Package numprint Error: Invalid characters `\def ' in mandatory argument of (numprint) \numprint. Allowed are (numprint) `0123456789.,eEdD+-\pm '. Failure #2 siunitx \documentclass{article} \title{Foobar} % For counting words \usepackage{countwords} \newcounter{words} \setcounter{words}{0} % For printing final value \usepackage{totcount} \regtotcounter{words} % For dummy text \usepackage{lipsum} \usepackage{siunitx} \begin{document} \maketitle % Prints `1112' (no comma) \total{words} % `Should' print `1,112', but gives an error. \num[group-separator={,}]{\total{words}} \countwordsstart{words} \lipsum[1-12] \countwordsstop{words} \end{document} I get an error: ./test.tex:27: Package siunitx Error: Invalid number '\def \c@words@totc {\c@words@totc (siunitx) }1112'. I also looked at fmtcount but found it doesn't cover thousands separators.

  • To the revtex maintainer (Ulrika) fix for \label warning posted [closed]
    by David Morrissey on July 5, 2026 at 6:50 am

    A fix for the "well worn" warning about the redefinition of \label in revtex 4-1 and 4-2 has been posted. Is is possible to have this implemented in the distribution? Conflict revtex4-2 class and nameref package Yes, it a warning but it is annoying. thank you.

  • Spacing of `\hline`
    by zgrizz on July 4, 2026 at 10:46 pm

    I'm wondering why columns in tabular seem to not add space but \hline does. Is there a way to make it so that everything overlaps? \documentclass{article} \setlength{\parindent}{0pt} \setlength{\parskip}{0pt} \setlength{\tabcolsep}{0pt} \begin{document} Line\\ Line \vspace*{-2\baselineskip} \begin{tabular}{|l|} \hline Line\\ \hline Line\\ \hline \end{tabular}%\par\prevdepth=\dp\strutbox \vspace*{-2\baselineskip} Line\\ Line \end{document} EDIT: Thank you to all who answered. Using David Carlisle's comment, I now have the below: \documentclass{article} \setlength{\parindent}{0pt} \setlength{\parskip}{0pt} \setlength{\tabcolsep}{0pt} \setlength{\lineskip}{0pt} \begin{document} \def\newhline{% \noalign{\kern-.5\arrayrulewidth}\hline\noalign{\kern-.5\arrayrulewidth}% } Line\\ Line \vspace*{-2\baselineskip} \begin{tabular}[t]{|l|} \newhline % <- causing problems Line\\ \newhline Line\\ \newhline \end{tabular}\par\prevdepth=\dp\strutbox % for overlap \vspace*{-2\baselineskip} Line\\ Line \end{document} Seems the top \newhline prevents everything from lining up.

  • Forcing a line break for a long chapter title using a conference booklet template
    by Edward on July 4, 2026 at 6:30 pm

    I am a beginner LaTeX user who's utilizing the conference booklet template (found here) for a document, but I've run into a problem when having a chapter title be too long. Leaving it in a single line messes up its placement (and even makes it go through the end of the page if the title is long enough). I cannot seem to manage to get a line break there. Putting a \\ in the middle of \chapter{Long \\ title} gives me a 'somethin's wrong, perhaps a missing \item' error message, whereas \linebreak and \newline in its place both do nothing at all. Here are some screenshots to showcase what I mean: vs What I'm ideally looking for is to be able to break the chapter title into two lines and having the colored bar be thicker enough to compensate for it, but at this point I'd also be happy if I can just introduce any line break at all and just have the text aligned properly (to the side of the bar). Apologies if the solution is right there in my face or I've not provided sufficient information. Any help is appreciated!

  • Preview knitr and `\Sexpr` output in LyX
    by NicolasBourbaki on July 4, 2026 at 6:05 pm

    Using knitr in LyX provides a very convenient way of dynamic (and reproducible) report generation. It works well for me except for preview of the knitr and \Sexpr{} chunks. I wrapped my \Sexpr{} with a preview box, but it didn't generate or insert a preview. Of course, knitr requires a preceding run (evaluation) with R to resolve R code into text, but I don't see a reason why the preview shouldn't work.

  • Adjusting a tikz picture
    by Joao Paulo Guardieiro on July 4, 2026 at 1:59 pm

    I want to draw the graph of z = x^2 + y^2, and I am using tikz for that. I used the following command: \begin{tikzpicture}[ x={(1cm,0cm)}, y={(-0.6cm,-0.35cm)}, z={(0cm,1cm)}, line join=round, line cap=round, scale=1, ] % Axes \draw[->] (0,0,0) -- (2,0,0); \draw[->] (0,0,0) -- (0,2.5,0); \draw[->] (0,0,0) -- (0,0,4); % Graph \draw[thick,smooth,variable=\t,domain=-1.8:1.8] plot ({\t},{0},{\t*\t}); % Circle that gives a 3d impression \draw[thick,smooth,variable=\t,domain=0:360] plot ({1.8*sin(\t)},{1.8*cos(\t)},{3.24}); \end{tikzpicture} However, the circle does not "fit" the graph: How can I adjust this?

  • Unable to get Hindi text in a mostly English Beamer document using Babel
    by codeandfire on July 4, 2026 at 12:59 pm

    I've gone through several threads on this forum, as well as videos by Javier Bezos, and these samples, but as the title says I'm unable to get Hindi text to work within a mostly English Beamer presentation, using Babel. Polyglossia works for me: \documentclass{beamer} \usepackage{polyglossia} \setdefaultlanguage{english} \setotherlanguage{hindi} \newfontfamily\devanagarifontsf[Script=Devanagari]{Noto Sans Devanagari} \begin{document} \title{\texthindi{नमस्ते}} \author{Lorem Ipsum} \begin{frame} \titlepage \end{frame} \end{document} However, I want to switch from Polyglossia to Babel because compilation is taking too long with Polyglossia for a large presentation. But I'm unable to find a snippet that works. For e.g.: \documentclass{beamer} \usepackage[english]{babel} \babelprovide[import, onchar=ids fonts]{hindi} \babelfont[devanagari]{sf}{Noto Sans Devanagari} \begin{document} \title{नमस्ते} \author{Lorem Ipsum} \begin{frame} \titlepage \end{frame} \end{document} When I compile this snippet with lualatex, I get this error: [1 Missing character: There is no न (U+0928) in font [lmsans12-regular]:+tlig;! {/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} Missing character: There is no म (U+092E) in font [lmsans12-regular]:+tlig;! Missing character: There is no स (U+0938) in font [lmsans12-regular]:+tlig;! Missing character: There is no ् (U+094D) in font [lmsans12-regular]:+tlig;! Missing character: There is no त (U+0924) in font [lmsans12-regular]:+tlig;! Missing character: There is no े (U+0947) in font [lmsans12-regular]:+tlig;! ] (./hindi_reproducible_eg.aux)) I'm also getting two other messages from Babel in this compilation, and I'm not sure what they mean: Package babel Info: The current font is not a babel standard family: (babel) [lmsans10-regular]:+tlig; at 10.95pt (babel) There is nothing intrinsically wrong with this warning, and (babel) you can ignore it altogether if you do not need these (babel) families. But if they are used in the document, you should be (babel) aware 'babel' will not set Script and Language for them, so (babel) you may consider defining a new family with \babelfont. (babel) See the manual for further details about \babelfont. (babel) Reported on input line 7. (./hindi_reproducible_eg.aux Package babel Info: The following font families will use the default (babel) settings for all or some languages: (babel) * \rmfamily = lmr (babel) [lmroman10-regular]:+tlig; at 10.95pt (babel) * \sffamily = lmss (babel) [lmsans10-regular]:+tlig; at 10.95pt (babel) * \ttfamily = lmtt (babel) [lmmono10-regular]: at 10.95pt (babel) There is nothing intrinsically wrong with it, but (babel) 'babel' will no set Script and Language, which could (babel) be relevant in some languages. If your document uses (babel) these families, consider redefining them with \babelfont. (babel) Reported on input line 6. ) I have LuaLaTeX version 1.18.0, Beamer version 3.72, and Babel version 25.4.

  • Is there today 2026 any use case for dvi files other than creating html and that like with tex4ht?
    by user2609605 on July 3, 2026 at 10:33 pm

    I am aware for creating historical documents, the DVI format is still in use. And there is still tex4ht, as far as I know the only way to convert latex to HTML offered in TeXlive, but, apart from this, is there any use case for the DVI format? Maybe another package relying on it. I ask because i maintain a kind of build tool (very roughly comparable with latexmk) and ask myself on the details of supporting the dvi format.

  • Asymptote Light Rendering with a Unit Cube
    by LuckElixir on July 3, 2026 at 9:44 pm

    I'm having trouble understanding Asymptote's (3.11) light rendering. When I run this code below: import three; size(8cm); currentprojection = orthographic((5,4,2), up=Y); currentlight = light(new pen[]{white}, new triple[]{(1,1,1)}); draw(unitcube, surfacepen=material(cyan)); real L = 2; draw(O--L*X, Arrow3); draw(O--L*Y, Arrow3); draw(O--L*Z, Arrow3); label("$x$", L*X, E); label("$y$", L*Y, N); label("$z$", L*Z, Z); I expected it to light up the whole cube (from my viewpoint; I understand the backside might not be lit). However, I instead got this: The left side of the cube is completely dark, which does not make sense considering the unit cube should essentially be lit with the placement of the light. However, changing the perspective to (5, 4, -2) yields this: The side that's pitch black here is the side that was initially lit in the first image. Considering there was no change to the light's position, I did not expect this to happen. I experimented with the emissive argument, however that is not what I wish to do. How does the lighting actually work in asymptote, and how do I fully illuminate all three sides of the cube, using the initial orthographic projection?

  • latexml: how to remove ( ) around \date{\today} in title?
    by Nasser on July 3, 2026 at 8:01 pm

    I've been working with google AI on this for 2 hrs. It can't figure a solution. One time it gave me 100 lines javascript code to fix this. Then it gave 50 lines .css code which made the date vanish. Here is MWE \documentclass[12pt]{article} \usepackage{latexml} \begin{document} \title{my book} \author{me} \date{\today} \maketitle \tableofcontents \section{first section} text \end{document} latexml always adds () around the date for some reason: How to tell it not to do that? commands used >latexml --dest=A.xml A.tex >latexmlpost --format=html5 --dest=A.htm A.xml

  • How to make a complex citation on LateX? [closed]
    by Miguel on July 3, 2026 at 5:33 pm

    I am trying to make the next complex citation with suffixes and prefixes: Shabica, 1970, 1971, Baird et al., 1985a; Baird & Sroka, 1990, their figure 5, p. C12-C13; Baird, 1997a, c, his figure 5A.4, p. 40) I know that in this case, we have to use \cite[prefix={}, suffix={}]{\reference}, but here there is another suffix at the end. I tried a lot of combinations using the previous command, but none of them worked.

  • How to redefine amsmath's implicit-base logarithm operator (\log) according to typesetting conventions whenever it's not followed by a subscript?
    by Nyx on July 3, 2026 at 1:36 pm

    The following is my MWE: \documentclass{article} \usepackage{mathtools} % Loads amsmath and defines \shortintertext % Logarithms \DeclareMathOperator{\lb}{lb} \NewCommandCopy{\oldlog}{\log} \newcommand*{\implicitbaselog}{% Uncomment only one of the following lines \oldlog % Uncomment to set ambiguous logarithm as default % \lb % Uncomment to set binary logarithm as default % \lg % Uncomment to set common logarithm as default % \ln % Uncomment to set natural logarithm as default } \newcommand*{\useambiguouslog}{\renewcommand*{\implicitbaselog}{\oldlog}} \newcommand*{\usebinarylog}{\renewcommand*{\implicitbaselog}{\lb}} \newcommand*{\usecommonlog}{\renewcommand*{\implicitbaselog}{\lg}} \newcommand*{\usenaturallog}{\renewcommand*{\implicitbaselog}{\ln}} \RenewDocumentCommand{\log}{e{_}}{ \IfNoValueTF{#1}{\implicitbaselog}{\oldlog_{#1}} } \begin{document} \begin{alignat*}{4} \shortintertext{With default definition of \texttt{\textbackslash implicitbaselog}: } \log x &= \oldlog x, && && && \\ \shortintertext{after \texttt{\textbackslash usebinarylog}: } \usebinarylog \log x &= \lb x \; &&\text{ and } && \; \log_3 x &&= \oldlog_3 x, \\ \shortintertext{after \texttt{\textbackslash usecommonlog}: } \usecommonlog \log x &= \lg x \; &&\text{ and } && \; \log_4 x &&= \oldlog_4 x, \\ \shortintertext{after \texttt{\textbackslash usenaturallog}: } \usenaturallog \log x &= \ln x \; &&\text{ and } && \; \log_5 x &&= \oldlog_5 x, \\ \shortintertext{after \texttt{\textbackslash useambiguouslog}: } \useambiguouslog \log x &= \oldlog x \; &&\text{ and } && \; \log_6 x &&= \oldlog_6 x. \end{alignat*} \end{document} Essentially, I would like to simply use \useambiguouslog, \usebinarylog, \usecommonlog, and \usenaturallog to change how \log is typeset in the document whenever it is not followed by a subscript indicating a specific base. Is there a way to improve my solution? Thank you in advance.

  • latexml: Error:unexpected:\vtop when using listings inside tabular
    by Nasser on July 3, 2026 at 11:06 am

    Using latexml (LaTeXML version 0.8.8) I am not able to compile an existing latex document which has listings inside tabular. I asked google AI but it does not know why. Here is MWE \documentclass[12pt]{article} \usepackage{latexml} \usepackage{listings} \lstdefinestyle{MMA}{% language=Mathematica,% basicstyle=\ttfamily\normalsize, } \begin{document} \begin{tabular}[c]{|p{3in}|p{3in}|}\hline \begin{lstlisting}[style=MMA] num = (s+1)(s+2); \end{lstlisting}% & \begin{lstlisting}[style=MMA] Clear["Global`*"]; ode=y'[x]==Sin[x] \end{lstlisting} \\\hline \end{tabular} \end{document} compiled with lualatex gives But with latexml >latexml --dest=A.xml A.tex latexml (LaTeXML version 0.8.8) processing A.tex Error:unexpected:\vtop Attempt to end mode text at A.tex; line 16 col 0 Error:unexpected:\vtop Attempt to end mode text at A.tex; line 22 col 0 Error:unexpected:\endgroup Attempt to close non-boxing group at A.tex; line 23 col 0 Warning:unexpected:\end{document} Attempt to end document with open groups, environments or conditionals at A.tex; line 25 col 0 Error:unexpected:<endgroup> Attempt to pop last locked stack frame at String; line 1 col 0 Error:malformed:ltx:listing <ltx:listing> isn't allowed in <ltx:p> at A.tex; line 15 col 0 Error:malformed:ltx:listing <ltx:listing> isn't allowed in <ltx:p> at A.tex; line 21 col 0 Conversion complete: 1 warning; 6 errors Is there a workaround for this? Why does latexml give this error on valid Latex code? Update Thanks to fix below. This is what I get now in HTML I just need now to figure how to remove those annoying little blue arrows

  • Is that always possible to patch the code in complicated form of macros?
    by Explorer on July 3, 2026 at 10:38 am

    The case I was confronted with that, I want to patch the code here, changing the: from ( to 『 from ) to 』 % latexmk -pdfxe needed \documentclass[fontset=fandol]{exam-zh} \AtEndPreamble{\geometry{paperheight=10cm,paperwidth=12cm}} \usepackage{etoolbox} % \AtEndPreamble{ % \patchcmd{\paren}{(}{『}{}{} % \patchcmd{\paren}{)}{』}{}{} % } % https://github.com/xkwxdyy/exam-zh/blob/main/exam-zh-question.sty#L1021-L1066 \ExplSyntaxOn \RenewDocumentCommand \paren { s O { } } { \bool_if:NT \l__examzh_question_show_paren_answer_bool { \bool_set_true:N \l__examzh_question_show_paren_bool } \bool_if:NT \l__examzh_question_show_paren_bool { \bool_if:NT \l__examzh_paren_type_hfill_bool { \nobreak \hfill \allowbreak \null \nobreak \hfill \nobreak } \hbox:n { % ( 『 % \hbox_to_wd:nn { 2em } % { \bool_if:NTF \l__examzh_question_show_paren_answer_bool % { \hfill \__examzh_paren_print_answer:n {#1} \hfill } { \IfBlankTF{#2} { \kern 2em } { \kern0.7em \__examzh_paren_print_answer:n {#2} \kern0.7em } } { \IfBooleanTF{#1}{ \kern 3em }{ \kern 2em } } % } % ) 』 \kern -.4em } } } \ExplSyntaxOff \begin{document} \begin{question} 这是一个题目 \paren[] \end{question} \end{document} It gives the pairs of 『 and 』: However, I tried with \patchcmd: % latexmk -pdfxe needed \documentclass[fontset=fandol]{exam-zh} \AtEndPreamble{\geometry{paperheight=10cm,paperwidth=12cm}} \usepackage{etoolbox} \AtEndPreamble{ \patchcmd{\paren}{(}{『}{}{} \patchcmd{\paren}{)}{』}{}{} } % https://github.com/xkwxdyy/exam-zh/blob/main/exam-zh-question.sty#L1021-L1066 \begin{document} \begin{question} 这是一个题目 \paren[] \end{question} \end{document} It gives two No!s in the terminal: <some logs> (c:/texlive/2026/texmf-dist/tex/latex/ninecolors/ninecolors.sty)) (c:/texlive/2026/texmf-dist/tex/latex/wrapstuff/wrapstuff.sty)) (c:/texlive/2026/texmf-dist/tex/latex/exam-zh/exam-zh-math.sty)) No! No! (c:/texlive/2026/texmf-dist/tex/latex/newcomputermodern/NewCM10-Book.fontspec) (c:/texlive/2026/texmf-dist/tex/latex/newcomputermodern/NewCMSans10-Book.fontsp ec) (c:/texlive/2026/texmf-dist/tex/latex/newcomputermodern/NewCMMono10-Book.fontsp <some other logs> It doesn't work. I was not sure is that \patchcmd could work in such a complicated \paren definition. Any suggestions? If not, the \RenewDocumentCommand would be toooooooo looooooong in the main tex document ;-(

  • Package clash between pdfpages and polyglossia
    by fauve on July 2, 2026 at 5:56 pm

    MWE \documentclass{article} \usepackage{pdfpages} \usepackage{polyglossia} \setdefaultlanguage{french} \setotherlanguages{arabic,english} \begin{document} Voici une page avant le PDF. \includepdf[pages={1}]{mon_document.pdf} Voici une page après le PDF. \end{document} My case is pretty simple, I just try to use two packages polyglossia and pdfpages while \includepdf is used. The problem When I compile with XeLaTeX I get: … (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/pdflscape-xetex-bidi.def) [1] ! Undefined control sequence. <argument> ...\\\ht \@tempbox \else \AM@view@ypos \p@ \fi \hbox to 0pt {\hsk... l.14 \includepdf[pages={1}]{mon_document.pdf} ? The complete log file This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2025/dev/Debian) (preloaded format=xelatex 2026.3.24) 4 JUL 2026 19:08 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **test.tex (./test.tex LaTeX2e <2024-11-01> patch level 2 L3 programming layer <2025-01-18> (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2024/06/29 v1.4n Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2024/06/29 v1.4n Standard LaTeX file (size option) ) \c@part=\count192 \c@section=\count193 \c@subsection=\count194 \c@subsubsection=\count195 \c@paragraph=\count196 \c@subparagraph=\count197 \c@figure=\count198 \c@table=\count199 \abovecaptionskip=\skip49 \belowcaptionskip=\skip50 \bibindent=\dimen141 ) (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/bidi.sty Package: bidi 2025/02/02 v25.2.2 (Release Maryam Mirzakhani) Bidirectional type setting in plain TeX and LaTeX **************************************************** * * bidi package (Bidirectional typesetting in * plain TeX and LaTeX, using XeTeX engine) * * Description: A convenient interface for * typesetting bidirectional texts in plain TeX * and LaTeX. The package includes adaptations * for use with many other commonly-used packages. * * Copyright (c) 2007--2025 Vafa Khalighi * Copyright (c) 2018--2020 bidi-tex GitHub organization * * v25.2.2 (Release Maryam Mirzakhani), 2025/02/02 * * License: LaTeX Project Public License, version * 1.3c or higher (your choice) * * Location on CTAN: /macros/xetex/latex/bidi * * Issue tracker: https://github.com/xepersian/bidi/issues * * Discussions: https://github.com/xepersian/bidi/discussions * * Primary author of bidi package: Vafa Khalighi. * **************************************************** (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/biditools.sty Package: biditools 2025/02/02 v2.7 Programming tools for bidi package \@bidi@envbody=\toks17 \@bidi@emptytoks=\toks18 \bidi@poscount=\count266 \bidi@tempcountb=\count267 \bidi@temptoksa=\toks19 \bidi@temptoksb=\toks20 \bidi@dummies=\count268 \bidi@are@these@correct=\toks21 \bidi@toks@lista=\toks22 \bidi@toks@listb=\toks23 \bidi@stack@length=\count269 \bidi@empty@stack=\toks24 \bidi@looprepeat@depth=\count270 ) (/usr/share/texlive/texmf-dist/tex/latex/zref/zref-abspage.sty Package: zref-abspage 2023-09-14 v2.35 Module abspage for zref (HO) (/usr/share/texlive/texmf-dist/tex/latex/zref/zref-base.sty Package: zref-base 2023-09-14 v2.35 Module base for zref (HO) (/usr/share/texlive/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty Package: ltxcmds 2023-12-04 v1.26 LaTeX kernel commands for general use (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) ) (/usr/share/texlive/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO ) (/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty Package: iftex 2024/12/12 v1.0g TeX engine tests ) Package pdftexcmds Info: \pdf@primitive is available. Package pdftexcmds Info: \pdf@ifprimitive is available. Package pdftexcmds Info: \pdfdraftmode not found. ) (/usr/share/texlive/texmf-dist/tex/generic/etexcmds/etexcmds.sty Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO) ) (/usr/share/texlive/texmf-dist/tex/latex/auxhook/auxhook.sty Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO) ) Package zref Info: New property list: main on input line 767. Package zref Info: New property: default on input line 768. Package zref Info: New property: page on input line 769. ) \c@abspage=\count271 Package zref Info: New property: abspage on input line 67. ) \@bidi@copyins@=\insert252 \bidi@typesethour=\count272 \bidi@typesetminute=\count273 (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def File: latex-xetex-bidi.def 2025/01/03 v1.5.2 bidi adaptations for `latex.ltx' f or XeTeX engine \bidi@n@everypar=\toks25 LaTeX Info: Redefining \centerline on input line 316. LaTeX Info: Redefining \leftline on input line 325. LaTeX Info: Redefining \rightline on input line 326. LaTeX Info: Redefining \underline on input line 334. \bidi@column@check@number=\count274 (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def File: footnote-xetex-bidi.def 2024/12/14 v1.3 bidi footnote macros for XeTeX en gine \c@footdir@label=\count275 \footdir@toks=\toks26 ) (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def File: article-xetex-bidi.def 2025/01/05 v0.9 bidi adaptations for standard arti cle class for XeTeX engine )) \bidi@digits=\count276 \bidi@digits@charclass=\XeTeXcharclass1 \bidi@sepmark@charclass=\XeTeXcharclass2 ) (/usr/share/texlive/texmf-dist/tex/latex/polyglossia/polyglossia.sty Package: polyglossia 2025/01/31 v2.4 Modern multilingual typesetting with XeLaT eX and LuaLaTeX (/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2025/02/11 v2.5l e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count277 ) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty Package: expl3 2025-01-18 L3 programming layer (loader) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-xetex.def File: l3backend-xetex.def 2024-05-08 L3 backend support: XeTeX \g__graphics_track_int=\count278 \l__pdf_internal_box=\box52 \g__pdf_backend_annotation_int=\count279 \g__pdf_backend_link_int=\count280 )) Package: xparse 2024-08-16 L3 Experimental document command parser ) Package: fontspec 2024/05/11 v2.9e Font selection for XeLaTeX and LuaLaTeX (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty Package: fontspec-xetex 2024/05/11 v2.9e Font selection for XeLaTeX and LuaLaTe X \l__fontspec_script_int=\count281 \l__fontspec_language_int=\count282 \l__fontspec_strnum_int=\count283 \l__fontspec_tmp_int=\count284 \l__fontspec_tmpa_int=\count285 \l__fontspec_tmpb_int=\count286 \l__fontspec_tmpc_int=\count287 \l__fontspec_em_int=\count288 \l__fontspec_emdef_int=\count289 \l__fontspec_strong_int=\count290 \l__fontspec_strongdef_int=\count291 \l__fontspec_tmpa_dim=\dimen142 \l__fontspec_tmpb_dim=\dimen143 \l__fontspec_tmpc_dim=\dimen144 (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2021/04/29 v2.0v Standard LaTeX package ) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg))) \l_xpg_alias_keyvals_int=\count292 (/usr/share/texlive/texmf-dist/tex/latex/polyglossia/gloss-latex.ldf File: gloss-latex.ldf polyglossia: module for default language )) (/usr/share/texlive/texmf-dist/tex/latex/pdfpages/pdfpages.sty Package: pdfpages 2025/01/30 v0.6e Insert pages of external PDF documents (AM) (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2024/03/16 v1.1e Standard LaTeX ifthen package (DPC) ) (/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty Package: calc 2023/07/08 v4.3 Infix arithmetic (KKT,FJ) \calc@Acount=\count293 \calc@Bcount=\count294 \calc@Adimen=\dimen145 \calc@Bdimen=\dimen146 \calc@Askip=\skip51 \calc@Bskip=\skip52 LaTeX Info: Redefining \setlength on input line 80. LaTeX Info: Redefining \addtolength on input line 81. \calc@Ccount=\count295 \calc@Cskip=\skip53 ) (/usr/share/texlive/texmf-dist/tex/latex/eso-pic/eso-pic.sty Package: eso-pic 2023/05/03 v3.0c eso-pic (RN) \ESO@tempdima=\dimen147 \ESO@tempdimb=\dimen148 (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty Package: keyval 2022/05/29 v1.15 key=value parser (DPC) \KV@toks@=\toks27 ) (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty Package: xcolor 2024/09/29 v3.02 LaTeX color extensions (UK) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg File: color.cfg 2016/01/02 v1.6 sample color configuration ) Package xcolor Info: Driver file: xetex.def on input line 274. (/usr/share/texlive/texmf-dist/tex/latex/graphics-def/xetex.def File: xetex.def 2022/09/22 v5.0n Graphics/color driver for xetex ) (/usr/share/texlive/texmf-dist/tex/latex/graphics/mathcolor.ltx) Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1349. Package xcolor Info: Model `RGB' extended on input line 1365. Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1367. Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1368. Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1369. Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1370. Package xcolor Info: Model `Gray' substituted by `gray' on input line 1371. Package xcolor Info: Model `wave' substituted by `hsb' on input line 1372. ) (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def File: xcolor-xetex-bidi.def 2022/06/13 v0.3 bidi adaptations for xcolor package for XeTeX engine LaTeX Info: Redefining \color on input line 48. )) (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/eso-pic-xetex-bidi.def File: eso-pic-xetex-bidi.def 2022/02/18 v0.4 bidi adaptations for eso-pic packa ge for XeTeX engine ) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty Package: graphics 2024/08/06 v1.4g Standard LaTeX Graphics (DPC,SPQR) (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty Package: trig 2023/12/02 v1.11 sin cos tan (DPC) ) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration ) Package graphics Info: Driver file: xetex.def on input line 106. ) \Gin@req@height=\dimen149 \Gin@req@width=\dimen150 ) (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def File: graphicx-xetex-bidi.def 2017/06/17 v0.5 bidi adaptations for graphicx pac kage for XeTeX engine ) \AM@pagewidth=\dimen151 \AM@pageheight=\dimen152 \AM@fboxrule=\dimen153 (/usr/share/texlive/texmf-dist/tex/latex/pdfpages/ppxetex.def File: ppxetex.def 2025/01/30 v0.6e Pdfpages driver for XeTeX (AM) ) \pdfpages@includegraphics@status=\count296 \AM@pagebox=\box53 \AM@global@opts=\toks28 \AM@pagecnt=\count297 \AM@toc@title=\toks29 \AM@lof@heading=\toks30 \c@AM@survey=\count298 \AM@templatesizebox=\box54 ) (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def File: pdfpages-xetex-bidi.def 2010/07/25 v0.1 bidi adaptations for pdfpages pac kage for XeTeX engine ) (/usr/share/texlive/texmf-dist/tex/latex/polyglossia/gloss-french.ldf File: gloss-french.ldf polyglossia: module for French \french@openbrackets=\XeTeXcharclass3 \french@closebrackets=\XeTeXcharclass4 \french@questionexclamation=\XeTeXcharclass5 \french@punctthin=\XeTeXcharclass6 \french@punctthick=\XeTeXcharclass7 \french@punctguillstart=\XeTeXcharclass8 \french@punctguillend=\XeTeXcharclass9 ) Package polyglossia Info: Default language is french (/usr/share/texlive/texmf-dist/tex/latex/polyglossia/gloss-arabic.ldf File: gloss-arabic.ldf polyglossia: module for Arabic (/usr/share/texlive/texmf-dist/tex/latex/polyglossia/arabicnumbers.sty Package: arabicnumbers 2010/03/18 v0.2 Formatting of Arabic and Farsi digits an d of Arabic abjad numerals ) (/usr/share/texlive/texmf-dist/tex/latex/polyglossia/hijrical.sty Package: hijrical 2010/07/12 v0.2 Islamic calendar (/usr/share/texlive/texmf-dist/tex/latex/polyglossia/cal-util.def \c@tmpA=\count299 \c@tmpB=\count300 \c@tmpC=\count301 \c@tmpD=\count302 \c@tmpE=\count303 \c@tmpF=\count304 ) \c@Hijriday=\count305 \c@Hijrimonth=\count306 \c@Hijriyear=\count307 )) (/usr/share/texlive/texmf-dist/tex/latex/polyglossia/gloss-english.ldf File: gloss-english.ldf polyglossia: module for English ) (/usr/share/texlive/texmf-dist/tex/latex/xpatch/xpatch.sty Package: xpatch 2020/03/25 v0.3a Extending etoolbox patching commands ) (./test.aux) \openout1 = `test.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 31. LaTeX Font Info: ... okay on input line 31. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 31. LaTeX Font Info: ... okay on input line 31. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 31. LaTeX Font Info: ... okay on input line 31. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 31. LaTeX Font Info: ... okay on input line 31. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 31. LaTeX Font Info: ... okay on input line 31. LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 31. LaTeX Font Info: ... okay on input line 31. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 31. LaTeX Font Info: ... okay on input line 31. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 31. LaTeX Font Info: ... okay on input line 31. Package fontspec Info: (fontspec) Adjusting the maths setup (use [no-math] to avoid (fontspec) this). \symlegacymaths=\mathgroup4 LaTeX Font Info: Overwriting symbol font `legacymaths' in version `bold' (Font) OT1/cmr/m/n --> OT1/cmr/bx/n on input line 31. LaTeX Font Info: Redeclaring math accent \acute on input line 31. LaTeX Font Info: Redeclaring math accent \grave on input line 31. LaTeX Font Info: Redeclaring math accent \ddot on input line 31. LaTeX Font Info: Redeclaring math accent \tilde on input line 31. LaTeX Font Info: Redeclaring math accent \bar on input line 31. LaTeX Font Info: Redeclaring math accent \breve on input line 31. LaTeX Font Info: Redeclaring math accent \check on input line 31. LaTeX Font Info: Redeclaring math accent \hat on input line 31. LaTeX Font Info: Redeclaring math accent \dot on input line 31. LaTeX Font Info: Redeclaring math accent \mathring on input line 31. LaTeX Font Info: Redeclaring math symbol \colon on input line 31. LaTeX Font Info: Redeclaring math symbol \Gamma on input line 31. LaTeX Font Info: Redeclaring math symbol \Delta on input line 31. LaTeX Font Info: Redeclaring math symbol \Theta on input line 31. LaTeX Font Info: Redeclaring math symbol \Lambda on input line 31. LaTeX Font Info: Redeclaring math symbol \Xi on input line 31. LaTeX Font Info: Redeclaring math symbol \Pi on input line 31. LaTeX Font Info: Redeclaring math symbol \Sigma on input line 31. LaTeX Font Info: Redeclaring math symbol \Upsilon on input line 31. LaTeX Font Info: Redeclaring math symbol \Phi on input line 31. LaTeX Font Info: Redeclaring math symbol \Psi on input line 31. LaTeX Font Info: Redeclaring math symbol \Omega on input line 31. LaTeX Font Info: Redeclaring math symbol \mathdollar on input line 31. LaTeX Font Info: Redeclaring symbol font `operators' on input line 31. LaTeX Font Info: Encoding `OT1' has changed to `TU' for symbol font (Font) `operators' in the math version `normal' on input line 31. LaTeX Font Info: Overwriting symbol font `operators' in version `normal' (Font) OT1/cmr/m/n --> TU/lmr/m/n on input line 31. LaTeX Font Info: Encoding `OT1' has changed to `TU' for symbol font (Font) `operators' in the math version `bold' on input line 31. LaTeX Font Info: Overwriting symbol font `operators' in version `bold' (Font) OT1/cmr/bx/n --> TU/lmr/m/n on input line 31. LaTeX Font Info: Overwriting symbol font `operators' in version `normal' (Font) TU/lmr/m/n --> TU/lmr/m/n on input line 31. LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal' (Font) OT1/cmr/m/it --> TU/lmr/m/it on input line 31. LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal' (Font) OT1/cmr/bx/n --> TU/lmr/b/n on input line 31. LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal' (Font) OT1/cmss/m/n --> TU/lmss/m/n on input line 31. LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal' (Font) OT1/cmtt/m/n --> TU/lmtt/m/n on input line 31. LaTeX Font Info: Overwriting symbol font `operators' in version `bold' (Font) TU/lmr/m/n --> TU/lmr/b/n on input line 31. LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold' (Font) OT1/cmr/bx/it --> TU/lmr/b/it on input line 31. LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold' (Font) OT1/cmss/bx/n --> TU/lmss/b/n on input line 31. LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold' (Font) OT1/cmtt/m/n --> TU/lmtt/b/n on input line 31. (/usr/share/texlive/texmf-dist/tex/latex/pdflscape/pdflscape.sty Package: pdflscape 2022-10-27 v0.13 Display of landscape pages in PDF (/usr/share/texlive/texmf-dist/tex/latex/pdflscape/pdflscape-nometadata.sty Package: pdflscape-nometadata 2022-10-28 v0.13 Display of landscape pages in PD F (HO) (/usr/share/texlive/texmf-dist/tex/latex/graphics/lscape.sty Package: lscape 2020/05/28 v3.02 Landscape Pages (DPC) ) (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/lscape-xetex-bidi.def File: lscape-xetex-bidi.def 2025/01/03 v0.3 bidi adaptations for lscape package for XeTeX engine ) Package pdflscape Info: Auto-detected driver: dvipdfm (xetex) on input line 98. )) (/usr/share/texlive/texmf-dist/tex/xelatex/bidi/pdflscape-xetex-bidi.def File: pdflscape-xetex-bidi.def 2022/02/18 v0.1 bidi adaptations for pdflscape p ackage for XeTeX engine ) File: vault.pdf Graphic file (type pdf) <use vault.pdf> File: vault.pdf Graphic file (type pdf) <use vault.pdf, page 1> File: vault.pdf Graphic file (type pdf) <use vault.pdf, page 1> [1 ] File: vault.pdf Graphic file (type pdf) <use vault.pdf, page 1> File: vault.pdf Graphic file (type pdf) <use vault.pdf, page 1> ! Undefined control sequence. <argument> ...x \ht \@tempbox \else \AM@view@ypos \p@ \fi \hbox to 0pt {\hsk... l.35 \includepdf[pages={1}]{vault.pdf} ? ! Undefined control sequence. <argument> ... \hbox to 0pt {\hskip \AM@view@xpos bp\AM@hyper@begin@i }\glob... l.35 \includepdf[pages={1}]{vault.pdf} ? ! Missing number, treated as zero. <to be read again> b l.35 \includepdf[pages={1}]{vault.pdf} ? File: vault.pdf Graphic file (type pdf) <use vault.pdf, page 1> [2 ] [3] (./test.aux) *********** LaTeX2e <2024-11-01> patch level 2 L3 programming layer <2020/03/25> *********** ) Here is how much of TeX's memory you used: 8835 strings out of 473835 227730 string characters out of 5731946 702429 words of memory out of 5000000 31794 multiletter control sequences out of 15000+600000 558853 words of font info for 38 fonts, out of 8000000 for 9000 1348 hyphenation exceptions out of 8191 93i,17n,107p,13615b,424s stack positions out of 10000i,1000n,20000p,200000b,200000s Output written on test.pdf (3 pages). Additionnal observations The problem doesn’t depend of the order of package invocation. The question How to avoid this error message?

  • Reproduce this example with large outline font, in pdflatex without TikZ
    by Arnoldo Bric on July 2, 2026 at 3:30 pm

    Please write LaTeX code using pdflatex to reproduce "MODULO 2" with an approximate outline style similar to the image, sized to 12.4 cm wide and 5.3 cm high, without using TikZ. My best attempt has been: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xcolor} \usepackage{graphicx} \usepackage{contour} \renewcommand{\familydefault}{\sfdefault} \begin{document} \noindent \resizebox{8.5cm}{3cm}{% \contourlength{0.5pt}% \contour{black}{\textcolor{white}{\textbf{MODULO}}}% }\, \resizebox{2.6cm}{5.2cm}{% \contourlength{0.5pt}% {\textcolor{black}{\textbf{2}}}% } \end{document} Using pdfLaTeX: but I would like something as close as possible to this:

  • Solve the problem of the size and angle value of the "⦦" angle symbol
    by mathrm alpha on July 2, 2026 at 4:50 am

    I noticed that when I try to type unicode-math "⦦", the angle symbol is smaller than "∠" and "∟". Is there a way to draw another angle symbol that is outwardly slanted and the same size as "∠" and "∟"? \documentclass{article} \usepackage{unicode-math} \setmathfont{NewCMMath-Regular.otf} \begin{document} $∠∟⦦$ \end{document}

  • Problems with table wrapped with text
    by Daniel Neskorodov on July 1, 2026 at 5:29 pm

    I have the following \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb} \usepackage{geometry} \usepackage{lipsum} \geometry{margin=2cm} \setlength{\parindent}{0pt} \renewcommand{\arraystretch}{1.25} \newsavebox{\leftbox} \begin{document} \begin{lrbox}{\leftbox} \begin{minipage}[t]{0.33\textwidth} \textbf{Given:}\hspace{2.5cm}\textbf{SI:} \vspace{2mm} \begin{tabular}{@{}l|l@{}} $m_1=120$ g & $0.12$ kg\\ $m_2=50$ g & $0.05$ kg\\ $c_1=4200\ \dfrac{\text{J}}{\text{kg}\cdot^\circ\text{C}}$ &\\ $c_2=920\ \dfrac{\text{J}}{\text{kg}\cdot^\circ\text{C}}$ &\\ $R=2\ \Omega$ &\\ $U=5$ V &\\ $\Delta t=12^\circ\text{C}$ &\\ $\eta=20\%$ &\\ \hline \multicolumn{2}{@{}l@{}}{\textbf{Find:}}\\ \multicolumn{2}{@{}l@{}}{$U-?$} \end{tabular} \end{minipage} \end{lrbox} \noindent \usebox{\leftbox} \hfill \begin{minipage}[t][\dimexpr\ht\leftbox+\dp\leftbox\relax][t]{0.64\textwidth} \textbf{Solution:} \vspace{2mm} \lipsum[1] \vfill \end{minipage} \lipsum[1-2] \end{document} which gives me this However I would like to write text in the right minipage as a continuous text without the need to break it (now it is causing problems with overlapping). I also would like to automatically left align the word 'SI' with the letters below it. It obviously comes from the fact that neither 'SI' or 'Given' are in the table, but that's on purpose - I need 'Given', 'SI' and 'Solution' to be on the same level vertically. How do I do that?

  • Get an overbrace over a matrix, with entries aligned with columns and rows of matrix
    by jayant on June 30, 2026 at 7:32 pm

    I am trying to get a matrix with an overbrace and sidebrace which looks like the following; I tried the following code so far, \documentclass[12pt]{article} \usepackage{epsfig} \usepackage{amssymb} %\usepackage[dvips]{color} \usepackage{amsmath} \usepackage{amsthm} \[ \begin{array}{ccc} \overbrace{\text{Col 1}}^{\text{Label A}} & %\overbrace{\text{Col 2 \quad Col 3}}^{\text{Label B}} & %\overbrace{\text{Col 4}}^{\text{Label C}} \\ \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{bmatrix} \end{array} \] \end{document} But it is not giving the desired output. Kindly help.

  • Formatting long division without the longdivision package
    by Matt on June 28, 2026 at 3:59 am

    I'm trying to make a worksheet where students need to fill out parts of a long division statement. I usually use the longdivision package, but realized that I can't cover up parts of it for students to fill out. Any suggestions? I've attached an image for reference.