• Standard practices in label decluttering: overcoming overlapping label lines
    by Jasper on February 8, 2026 at 11:59 pm

    I have a situation where I want to lable the sample points of a line segment, and also label the smaller line segments connecting those sample points. My labels are really cluttered right now. How can I make this more proper? \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \draw[thick,->] (-1,0) -- (5,0) node[below left] {\(x\)}; \fill (0.5,0) circle[radius = 3pt] node[above] {point}; \fill[gray] (0.5,0) circle[radius = 1.5pt]; \draw[] (0.5,0) -- (0.5,-2) -- (5,-2) node[right] {individual sample point}; \draw[line width = 6pt] (2,0) -- (3.5,0) node[above,pos=0.5]{line segment}; \foreach[count = \c from 1] \x in {2,2.5,...,3.5} { \fill[gray] (\x,0) circle[radius = 1.5pt]; \draw[] (\x,0) -- (4,-1); \ifnum\c=4\else\draw[thick,gray] (\x,0) -- ++(0.5,0);\fi } \draw[](4,-1) -- (5,-1) node[right] {multiple sample points}; \foreach[count = \c from 1] \x in {2.25,2.75,...,3.25} { \draw[] (\x,0) -- (4,-1.5); } \draw[](4,-1.5) -- (5,-1.5) node[right] {one or more line segments}; \end{tikzpicture} \end{document}

  • Twisted Equality
    by Entropy on February 8, 2026 at 8:14 pm

    I am trying to create a new math symbol. Could someone please help me with it? My current code: \documentclass[12pt]{report} \RequirePackage{tikz} \newcommand{\eq}{\begin{tikzpicture}% [scale=.175, line width=0.5pt] \draw (-1,1) -- (0,0); \draw (0,1) -- (-0.5,0.5); \draw (0,-1) -- (-1,0); \draw (-0.5,-0.5) -- (-1,-1); \end{tikzpicture}} \begin{document} \[ u - \eq - u \] \end{document} However, the symbol I am actually going for is this: I was using it for something like this:

  • How to add line numbers to not all lines?
    by rensemil on February 8, 2026 at 6:28 pm

    I am typesetting a play in LaTeX. I would like all the lines to be numbered but of course the stage directions etc. should be excluded from the line numbers. In MS Word, this is easily by telling word to exclude some lines from the numbering, it then looks like this: Is there a way to acheive this in LaTeX too? My preferred way would be to tell the document to have line numbers everywhere except: in lines where there are stage directions (maybe this can be done by some command?) in lines that consist only of headings (i.e. scene numbering etc.). The numbers should only start after the actual play starts, not yet in the Dramatis Personae. Thanks in advance for any help!

  • ConTeXt. Noncomposite black output for .mp figure
    by filokalos on February 8, 2026 at 6:12 pm

    I use the code generated by pstoedit from an .eps image. The code below gives me a composite black in 4 colors. What settings should I add to the .mp image for the CMYK model to ensure it is printed only in black (without CMY)? I also tried \MPcolor{black} but it gives me an error. MyTest.tex \definecolor[black][c=0,m=0,y=0,k=1] \starttext \startMPrun input TestPart ; \stopMPrun \midaligned{\externalfigure[mprun.1][height=6cm]} \stoptext TestPart.mp % Converted from PostScript(TM) to MetaPost by pstoedit % MetaPost backend contributed by Scott Pakin <scott+ps2ed_AT_pakin.org> % pstoedit is Copyright (C) 1993 - 2024 Wolfgang Glunz <wglunz35_AT_pstoedit.net> % Generate structured PostScript prologues := 1; % Display a given string with its *baseline* at a given location % and with a given rotation angle vardef showtext(expr origin)(expr angle)(expr string) = draw string infont defaultfont scaled defaultscale rotated angle shifted origin; enddef; beginfig(1); linecap := butt; linejoin := mitered; fill ((1493.849976,1264.729980)..controls (1493.910034,1262.829956) and (1494.329956,1260.010010)..(1494.810059,1258.329956) ..controls (1495.359985,1256.380005) and (1495.459961,1257.430054)..(1495.089966,1261.329956) ..controls (1494.469971,1267.930054) and (1493.670044,1270.109985)..(1493.849976,1264.729980) --cycle) withcolor cmyk (0,0,0,1) ; endfig; end

  • Table with Numbered Equations and Hyperref Anchors
    by palloc on February 8, 2026 at 4:39 pm

    I have the following code, where there are equations inside the table, formatted as inline with numbering: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \usepackage{tabularx} \usepackage{cleveref} \usepackage{float} \begin{document} \begin{equation} P = P_0 + \rho g h \label{eq:pp0rhogh} \end{equation} \begin{table}[H] \centering \begin{tabularx}{\textwidth}{@{}l>{\centering\arraybackslash}Xr@{}} \toprule \textbf{Name} & \textbf{Equation} & \textbf{} \\ \midrule First & \(E = mc^2 \) & \refstepcounter{equation}(\theequation)\label{eq:emc} \\ Second & \(c = h\nu \) & \refstepcounter{equation}(\theequation)\label{eq:chnu} \\ \bottomrule \end{tabularx} \caption{Equations} \label{tab:equations} \end{table} \begin{equation} F = ma \label{eq:fma} \end{equation} \eqref{eq:pp0rhogh}, \eqref{eq:emc}, \eqref{eq:chnu}, \eqref{eq:fma}, \cref{tab:equations} \end{document} Output: What I want is proper hyperref anchoring. I tried the following: First & \(E = mc^2 \) & \refstepcounter{equation}\phantomsection(\theequation)\label{eq:emc} \\ Clicking on \eqref{eq:emc} results in the following output, which is not as expected, the anchor is not in the correct position. Output: I also tried: Second & \(\displaystyle c = h\nu \refstepcounter{equation}\phantomsection{\theequation}\label{eq:chnu}\) & (\ref{eq:chnu}) \\ Clicking on \eqref{eq:chnu} works correctly results in the following output with the hyperlink, but the output shows c = h \nu 3, I do not want to have the extra number 3, and the equation number (3) at the end of the line should not be clickable. Output: Whole code: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \usepackage{tabularx} \usepackage{float} \usepackage{caption} \usepackage[colorlinks]{hyperref} \usepackage{cleveref} \begin{document} \begin{equation} P = P_0 + \rho g h \label{eq:pp0rhogh} \end{equation} \begin{table}[H] \centering \begin{tabularx}{\textwidth}{@{}l>{\centering\arraybackslash}Xr@{}} \toprule \textbf{Name} & \textbf{Equation} & \textbf{} \\ \midrule First & \(E = mc^2 \) & \refstepcounter{equation}\phantomsection(\theequation)\label{eq:emc} \\ Second & \(\displaystyle c = h\nu \refstepcounter{equation}\phantomsection{\theequation}\label{eq:chnu}\) & (\ref{eq:chnu}) \\ \bottomrule \end{tabularx} \caption{Equations} \label{tab:equations} \end{table} \begin{equation} F = ma \label{eq:fma} \end{equation} \eqref{eq:pp0rhogh}, \eqref{eq:emc}, \eqref{eq:chnu}, \eqref{eq:fma} \end{document} Output:

  • pgfplots: axis-enlargement and visualizing of very small y-values at binomial distribution
    by cis on February 8, 2026 at 4:34 pm

    I wanted to adapt this nice solution for my purposes. • I want to extend the x- and y-axes a bit. But, when I set enlarge y limits={upper, abs=0.125} it creates a strange gap (ymin=0 is no longer respected, and restrict y to domain=0:1 seems to have no effect). • Secondly, what's the best way to configure it so that bars with very small y-values ​​are also visible here? • Unfortunately, I saw this too late: I would also like to eliminate this x-gap between the first bar and the y-axis! \documentclass[margin=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture}[font=\footnotesize, declare function={ binom(\n,\p,\k)=\n!/(\k!*(\n-\k)!)*\p^\k*(1-\p)^(\n-\k); } ] \begin{axis}[%y=8mm, no effect ymin=0, xmin=0, axis lines=left, axis line style={-latex}, xlabel={$k$}, ylabel={$P(X=k)$}, x label style={at={(axis description cs:1,0)}, anchor=south east, inner xsep=0pt }, y label style={at={(axis description cs:0,1)}, rotate = -90, anchor=north west, inner ysep=0pt, }, yticklabel style={ /pgf/number format/fixed, /pgf/number format/fixed zerofill, /pgf/number format/precision=2 }, ybar=0pt, bar width=1, bar shift=0pt, samples at={0,...,13}, variable=\k, enlarge x limits={upper, abs=0.785}, enlarge y limits={upper, abs=0.125}, %restrict y to domain=0:1,% no effect.... y= ] \addplot [fill=gray!25] {binom(13, 0.4, k)}; %\addplot [fill=orange, samples at={0,...,4}] {binom(12,0.4,k)}; %\addplot [fill=cyan, samples at={7}] {binom(12,0.4,k)}; \end{axis} \end{tikzpicture} \end{document}

  • Typsetting alternatives
    by Dhairya Kumar on February 8, 2026 at 4:20 pm

    I was eager to write this question, namely, in a better way. I myself wrote it down as: $\text{Let } E(n)=\displaystyle\int\limits_{0}^{\pi} \sin^{2n+1}(x)\cos^{28}{x}dx$ $\text{Let } J(n)=\displaystyle\int\limits_{0}^{1} x^n(1-x)^n (1-2x)^{2n}dx$ then determine the ratio $\dfrac{E(a)}{J(14)}$ in decimal form. Where $a=e^{\pi-1} \displaystyle\int\limits_{-\pi/2}^{\pi/2} \dfrac{\tan^3{x} \sec^2{x}}{\tan^5{x}+\tan{x}}dx$ Round $a$ to the nearest integer. Find closed form using repeated reduction formulae. (Avoid using Beta or Gamma functions.) Help me in doing so.

  • How can I replicate this image using TikZ?
    by Bayaraa Surenjav on February 8, 2026 at 4:11 pm

    My code is: \documentclass[tikz,border=10pt]{standalone} \usepackage[utf8]{inputenc} \usepackage[mongolian]{babel} \usepackage{amsmath} \usetikzlibrary{calc, positioning, arrows.meta, backgrounds, shapes.geometric} \begin{document} \begin{tikzpicture}[ num node/.style={ font=\Large\bfseries\rmfamily, % Serif font, Bold anchor=east, inner sep=3pt, minimum height=0.65cm }, div node/.style={ font=\Large\rmfamily, anchor=east, inner sep=3pt }, arrow style/.style={ ->, >=latex, draw=cyan!80!blue, line width=0.8pt }, label text/.style={ text=cyan!80!blue, font=\itshape, align=right }, % Үйлдлийн тэмдэг (div 2) op label/.style={ text=cyan!80!blue, font=\large, anchor=west, xshift=2pt } ] \def\rowh{0.9} \node[div node] (d1) at (0,0) {2)}; \node[num node] (n1) at (1.8,0) {120}; \draw[thick] (d1.south east) -- (n1.south east); \node[div node] (d2) at (0,-\rowh) {2)}; \node[num node] (n2) at (1.8,-\rowh) {60}; \draw[thick] (d2.south east) -- (n2.south east); \node[div node] (d3) at (0,-2*\rowh) {2)}; \node[fill=cyan!25, inner sep=2pt, minimum height=0.6cm, minimum width=0.8cm, anchor=east] at (1.85,-2*\rowh) {}; \node[num node, text=magenta] (n3) at (1.8,-2*\rowh) {30}; \draw[thick] (d3.south east) -- (n3.south east); \node[div node] (d4) at (0,-3*\rowh) {3)}; \node[num node] (n4) at (1.8,-3*\rowh) {15}; \draw[thick] (d4.south east) -- (n4.south east); \node[num node] (n5) at (1.8,-4*\rowh) {5}; \begin{scope}[on background layer] % Зүүн талын босоо багана (Хуваагчдыг хамарсан) \fill[cyan!15] (-0.8, 0.4) rectangle (0.2, -4.5*\rowh); \fill[cyan!15] (-0.8, -3.65*\rowh) rectangle (2.2, -4.5*\rowh); \end{scope} \def\arm{0.5} \draw[arrow style] (n1.east) -- ++(\arm,0) |- node[pos=0.25, op label] {$\div 2$} (n2.east); \draw[arrow style] (n2.east) -- ++(\arm,0) |- node[pos=0.25, op label] {$\div 2$} (n3.east); \draw[arrow style] (n3.east) -- ++(\arm,0) |- node[pos=0.25, op label] {$\div 2$} (n4.east); \draw[arrow style] (n4.east) -- ++(\arm,0) |- node[pos=0.25, op label] {$\div 3$} (n5.east); \node[label text] (txt1) at (-3.5, 0) {анхны тоогоор хуваах}; \draw[arrow style] (txt1) -- (d1.west); \node[label text] (txt2) at (-4, -4*\rowh) {анхны тоо гартал үргэлжлүүлнэ}; \draw[arrow style] (txt2) -- (n5.west); \end{tikzpicture} \end{document} Current: Intended:

  • tikz euclides draw circle hung
    by Vuvi Numa on February 8, 2026 at 1:49 pm

    The MWE below freezes on the commented out line, until it is killed with Ctrl-C. This is a part of an old manuscript that was published, several years in the past, so at some point it did work. \documentclass{standalone} \usepackage{tikz} \usepackage{tkz-euclide} \begin{document} \begin{tikzpicture} \draw(-1,-1) rectangle(1,1); \tkzDefPoint(3,-1){A}; \tkzDefPoint(6,-1){B}; \tkzDefPoint(3,1){C}; %\tkzDrawCircle[in](A,B,C); \end{tikzpicture} \end{document} The last few lines of pdflatex output are: (/usr/share/texlive/texmf-dist/tex/latex/tkz-euclide/tkz-draw-eu-protractor.tex 2023/02/03 5.02c tkz-obj-eu-protractor.tex )) No file test.aux. (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) Missing character: There is no ; in font nullfont! Missing character: There is no ; in font nullfont! Missing character: There is no ; in font nullfont! ^C! Interruption. \pgfkeys@parse ...uturelet \pgfkeys@possiblerelax \pgfkeys@parse@main l.12 \tkzDrawCircle[in](A,B,C) ; How can I fix the freeze and allow the arch to be drawn?

  • Best way to set pgf-grouplots and others inside a table
    by cis on February 8, 2026 at 1:21 pm

    I have a table, it looks like this: But I'm having a few problems. What's the best way to set the keys? The table contains a 2×2 groupplot and a formula next to another plot (this plot can be larger than the others). I want to use the entire width of the yellow box! What's the best way to set this up? (In the MWE, I only set it visually.) The formula should be vertically centered or top-centered, whichever is easier to set or looks better. The number of columns with the numbers (1111, 2222,...) is variable, but I don't think that matters because: The entire table should have the page width. Note: The reason I put everything in newcommands is that the original table is actually a pgfplotstable - I'm simulating it here. \documentclass[paper=a5]{scrartcl} \usepackage[margin=14mm, showframe=true]{geometry} \usepackage{amsmath} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepgfplotslibrary{groupplots} \usepackage{colortbl}% \rowcolor, \cellcolor \usepackage{diagbox}% \diagbox \usepackage{hhline}% \hhline{~|-------|} and so on \newcommand\Mydiagrams{ \begin{tikzpicture}[] \begin{groupplot}[group style={group size=2 by 2}, height=30mm,width=49mm, no marks, title style={inner sep=0pt} ] \nextgroupplot[title=plot 1] \addplot{x}; \nextgroupplot[title=plot 2] \addplot{x^2}; \nextgroupplot[title=plot 3] \addplot{x^3}; \nextgroupplot[title=plot 4] \addplot{x^4}; \end{groupplot} \end{tikzpicture}} \newcommand\Myheaddiagram{% \begin{tikzpicture}[] \begin{axis}[ height=30mm,width=49mm, no marks, title style={inner sep=0pt}, title=plot 0, ] \addplot{sin(deg(x))+2}; \end{axis} \end{tikzpicture}} \newcommand\Headformula{% $F(a,b,c) =\displaystyle\sum\limits_{v=0}^k \binom{a}{b} a^v (b+c)^{n-v}$ }% \newcommand\Myhead{% \begin{tabular}[t]{| @{}l@{} | @{}c@{} |}% tabular for linebreaks \arrayrulecolor{blue} \Headformula & \Myheaddiagram \\ \multicolumn{2}{|c|}{\Mydiagrams} \end{tabular} }% \begin{document} \section{Diagramms} \setlength\arrayrulewidth{2pt}% test: correctness of the rules \footnotesize\sffamily% wanted \noindent\begin{tabular}{c | c | *{7}{c} |c|} \hhline{~| *{8}{-} |} & \multicolumn{8}{l|}{\cellcolor{yellow}\Myhead} & \multicolumn{1}{c}{c'} \\ \hhline{-| *{8}{-} -|} \rowcolor{pink} aaa & bbb & 0.1111 & .2222 & .3333 & .4444 & .5555 & .6666 & .7777 & ccc \\ aaa & bbb & 0.1111 & .2222 & .3333 & .4444 & .5555 & .6666 & .7777 & ccc \\ aaa & bbb & 0.1111 & .2222 & .3333 & .4444 & .5555 & .6666 & .7777 & ccc \\ \hline aaa & \diagbox{p}{k} & 0.1111 & .2222 & .3333 & .4444 & .5555 & .6666 & .7777 & \diagbox{p}{k} \\ \end{tabular} \end{document}

  • Equations with numbering inside the table [duplicate]
    by palloc on February 8, 2026 at 1:19 pm

    I would like to have multiple equations with numbering inside the table, which should look something like this: I do not need borders, only \toprule, \midrule, and \bottomrule

  • Equation with caption
    by palloc on February 8, 2026 at 12:01 pm

    I would like to add caption to my equation, how could I do that: \documentclass{article} \begin{document} \begin{equation} E = mc^2 \label{eq:emc} \end{equation} \ref{eq:emc} \end{document}

  • I would like to number subcases as well with 1a, 1b
    by palloc on February 8, 2026 at 11:12 am

    I have the following code, I would like to number the subcases with 1a, 1b, so not just one big case with (1). \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} f(x) = \begin{cases} x^2& x \ge 0,\\ -x & x < 0. \end{cases} \end{equation} \end{document}

  • Configure `keytheorems` so that it produces the same output as `ntheorem`
    by Denis Bitouzé on February 8, 2026 at 9:48 am

    For a class of mine, I'm in the process to switch from ntheorem to keytheorems but, for compatibility reason, I would like to make the output of “theorems” as identical as possible. Unfortunately, it is not the case, as shown in the following M( non realistic )CE: \RequirePackage{comment} \includecomment{kt}\excludecomment{nt} % \includecomment{nt}\excludecomment{kt} \documentclass{article} \usepackage[ textwidth=12.75cm, paperwidth=14cm, paperheight=2cm, showframe ]{geometry} \begin{kt} \usepackage{keytheorems} \newkeytheoremstyle{rmk-style}{ inherit-style=definition, notefont=\bfseries, headpunct={~--} } \newkeytheorem{rmk}[style=rmk-style,name=Remark] \end{kt} \begin{nt} \usepackage{ntheorem} \theoremstyle{plain} \theoremheaderfont{\normalfont\bfseries} \theorembodyfont{\normalfont} \theoremseparator{~--} \theoremsymbol{} \newtheorem{rmk}{Remark} \end{nt} \begin{document} \begin{rmk}[Euler's identity] One of the most beautiful mathematical equation: \[ e^{i\pi}+1=0 \] \end{rmk} \end{document} As it is (keytheorems in force), the output is the following: whereas, if the second line is commented and the third one is uncommented (ntheorem in force), the output is the following: How could I configure keytheorems in order it produces the same output as ntheorem?

  • Frame title {beamer} on only one slide while used with allowframebreaks [duplicate]
    by Poudel89 on February 8, 2026 at 9:20 am

    This code is used to display a long code which takes multiple slides. \begin{frame}[allowframebreaks] \frametitle<1>{Code} \lstinputlisting[language=Java]{code/SingleQueueSimulation.java} \end{frame} Also, \setbeamertemplate{frametitle continuation}{} Removes I, II, III... and there are options to make it white but how to make it so that it is not there and text from listings can be displayed there ? Output:

  • Why do I keep getting "database doesn't exist" error when I try to read a csv with datatool \DTLread[name=gradesDB,format=csv]{data.csv}?
    by nt54 on February 8, 2026 at 5:33 am

    I'm trying to read a simple csv into a datatool database and then populate a table with this data. The persistent error is reported as "Package datatool error: Database 'gradesDB doesn't exist' in the TeXworks console output. I'm using the current TeXworks 2025 full/complete installation. The csv was encoded as uft-8. This csv file is named data.csv (NOTE: In the preview of this post this file appears in a single row format. It is actually written as a 4 row x 3 column form with the first three rows terminated by CRLF) Name,Surname,Grade Albert,Einstein,147 Marie,Curie,159 Thomas,Edison,179 I've consulted online AI and version 3.4.3 2025-12-04 of The Datatool Bundle: Databases and Data Manipulation from Dickimaw Books for documentation. This package is new to me and I have a feeling is there is a simple error I'm not catching. I greatly appreciate any help you might offer. Thanks in advance. \documentclass{article} \usepackage{datatool} \usepackage{booktabs} % Optional: provides better horizontal lines (\\toprule, \\midrule, \\bottomrule) \usepackage[utf8]{inputenc} \DTLloaddb{gradesDB}{data.csv} \begin{document} \section{Student Grades} % Load the CSV file into a database named 'gradesDB' %% Note the following command is now deprecated according to docs %% \DTLloaddb[autonum=false]{gradesDB}{data.csv} \DTLnewdb{gradesDB} \DTLread[name=gradesDB,format=csv]{data.csv} % Begin the table environment \begin{table}[h] \centering \caption{Grades of Students} \label{tab:grades} % Begin the tabular environment with column specifications \begin{tabular}{c c c } \toprule \textbf{Name} & \textbf{Surname} & \textbf{Grade} \\ \midrule % Iterate through each row in the 'gradesDB' database \DTLforeach*{gradesDB}{% \Name=Name,% \Surname=Surname,% \Grade=Grade% }{% % Format each row \Name & \Surname & \Grade \\ } \bottomrule \end{tabular} \end{table} \end{document} The log file: This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025) (preloaded format=pdflatex 2026.2.7) 8 FEB 2026 00:19 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **test_read.tex (./test_read.tex LaTeX2e <2025-11-01> L3 programming layer <2026-01-19> (c:/texlive/2025/texmf-dist/tex/latex/base/article.cls Document Class: article 2025/01/22 v1.4n Standard LaTeX document class (c:/texlive/2025/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2025/01/22 v1.4n Standard LaTeX file (size option) ) \c@part=\count275 \c@section=\count276 \c@subsection=\count277 \c@subsubsection=\count278 \c@paragraph=\count279 \c@subparagraph=\count280 \c@figure=\count281 \c@table=\count282 \abovecaptionskip=\skip49 \belowcaptionskip=\skip50 \bibindent=\dimen148 ) (c:/texlive/2025/texmf-dist/tex/latex/datatool/datatool.sty Package: datatool 2025/12/04 v3.4.3 (NLCT) (c:/texlive/2025/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2024/03/16 v1.1e Standard LaTeX ifthen package (DPC) ) (c:/texlive/2025/texmf-dist/tex/latex/xfor/xfor.sty Package: xfor 2009/02/05 v1.05 (NLCT) ) (c:/texlive/2025/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2025/10/02 v2.5m e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count283 ) (c:/texlive/2025/texmf-dist/tex/latex/tracklang/tracklang.sty Package: tracklang 2025/03/11 v1.6.6 (NLCT) Track Languages (c:/texlive/2025/texmf-dist/tex/generic/tracklang/tracklang.tex)) (c:/texlive/2025/texmf-dist/tex/latex/datatool/datatool-base.sty Package: datatool-base 2025/12/04 v3.4.3 (NLCT) (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsmath.sty Package: amsmath 2025/07/09 v2.17z AMS math features \@mathmargin=\skip51 For additional information on amsmath, use the `?' option. (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amstext.sty Package: amstext 2024/11/17 v2.01 AMS text (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsgen.sty File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks17 \ex@=\dimen149 )) (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsbsy.sty Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen150 ) (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsopn.sty Package: amsopn 2022/04/08 v2.04 operator names ) \inf@bad=\count284 LaTeX Info: Redefining \frac on input line 233. \uproot@=\count285 \leftroot@=\count286 LaTeX Info: Redefining \overline on input line 398. LaTeX Info: Redefining \colon on input line 409. \classnum@=\count287 \DOTSCASE@=\count288 LaTeX Info: Redefining \ldots on input line 495. LaTeX Info: Redefining \dots on input line 498. LaTeX Info: Redefining \cdots on input line 619. \Mathstrutbox@=\box53 \strutbox@=\box54 LaTeX Info: Redefining \big on input line 721. LaTeX Info: Redefining \Big on input line 722. LaTeX Info: Redefining \bigg on input line 723. LaTeX Info: Redefining \Bigg on input line 724. \big@size=\dimen151 LaTeX Font Info: Redeclaring font encoding OML on input line 742. LaTeX Font Info: Redeclaring font encoding OMS on input line 743. \macc@depth=\count289 LaTeX Info: Redefining \bmod on input line 904. LaTeX Info: Redefining \pmod on input line 909. LaTeX Info: Redefining \smash on input line 939. LaTeX Info: Redefining \relbar on input line 969. LaTeX Info: Redefining \Relbar on input line 970. \c@MaxMatrixCols=\count290 \dotsspace@=\muskip17 \c@parentequation=\count291 \dspbrk@lvl=\count292 \tag@help=\toks18 \row@=\count293 \column@=\count294 \maxfields@=\count295 \andhelp@=\toks19 \eqnshift@=\dimen152 \alignsep@=\dimen153 \tagshift@=\dimen154 \tagwidth@=\dimen155 \totwidth@=\dimen156 \lineht@=\dimen157 \@envbody=\toks20 \multlinegap=\skip52 \multlinetaggap=\skip53 \mathdisplay@stack=\toks21 LaTeX Info: Redefining \[ on input line 2950. LaTeX Info: Redefining \] on input line 2951. ) \l__datatool_tmpa_int=\count296 \l__datatool_tmpb_int=\count297 \l__datatool_tmpc_int=\count298 \l__datatool_tmpd_int=\count299 \l__datatool_count_int=\count300 \l__datatool_tmp_datatype_int=\count301 \l__datatool_tmpa_dim=\dimen158 \l__datatool_tmpb_dim=\dimen159 (c:/texlive/2025/texmf-dist/tex/latex/datatool/datatool-l3fp.def File: datatool-l3fp.def 2025/12/04 v3.4.3 (NLCT) ) \@dtl@toks=\toks22 \@dtl@tmpcount=\count302 \dtl@tmplength=\skip54 \l__datatool_measure_box=\box55 \dtl@sortresult=\count303 (c:/texlive/2025/texmf-dist/tex/latex/datatool/datatool-utf8.ldf File: datatool-utf8.ldf 2025/12/04 v3.4.3 (NLCT) ) \@dtl@datatype=\count304 \c_datatool_unknown_int=\count305 \l__datatool_year_int=\count306 \l__datatool_month_int=\count307 \l__datatool_day_int=\count308 \l__datatool_hour_int=\count309 \l__datatool_minute_int=\count310 \l__datatool_second_int=\count311 \l__datatool_tzhour_int=\count312 \l__datatool_tzminute_int=\count313 \l__datatool_julian_int=\count314 \l__datatool_local_julian_int=\count315 \l__datatool_prefix_int=\count316 \l__datatool_suffix_int=\count317 \@dtl@foreach@level=\count318 \dtl@codeA=\count319 \dtl@codeB=\count320 ) \l__datatool_max_cols_int=\count321 \l__datatool_col_idx_int=\count322 \l__datatool_row_idx_int=\count323 \l__datatool_item_type_int=\count324 \l__datatool_action_column_int=\count325 \l__datatool_action_column_ii_int=\count326 \l__datatool_action_row_int=\count327 \l__datatool_action_row_ii_int=\count328 \l__datatool_action_type_int=\count329 \l__datatool_action_datum_round_int=\count330 \dtlcolumnnum=\count331 \dtlrownum=\count332 \@dtl@before=\toks23 \@dtl@after=\toks24 \@dtl@colhead=\toks25 \dtlcurrentrow=\toks26 \dtlbeforerow=\toks27 \dtlafterrow=\toks28 \l__datatool_map_data_max_cols_int=\count333 \l__datatool_map_data_edit_column_int=\count334 \dtlforeachlevel=\count335 \c@DTLrow=\count336 \c@DTLrowi=\count337 \c@DTLrowii=\count338 \c@DTLrowiii=\count339 \dtl@rowi=\count340 \dtl@rowii=\count341 \dtl@rowiii=\count342 \g__filtered_row_i_int=\count343 \g__filtered_row_ii_int=\count344 \g__filtered_row_iii_int=\count345 \@dtl@curi=\toks29 \@dtl@previ=\toks30 \@dtl@nexti=\toks31 \@dtl@curii=\toks32 \@dtl@previi=\toks33 \@dtl@nextii=\toks34 \@dtl@curiii=\toks35 \@dtl@previii=\toks36 \@dtl@nextiii=\toks37 \l_datatool_display_per_row_int=\count346 \l_datatool_display_tab_rows_int=\count347 \@dtl@toksA=\toks38 \@dtl@toksB=\toks39 \@dtl@elements=\count348 \__datatool_sort_data_sortcol_int=\count349 \__datatool_sort_data_grpcol_int=\count350 \dtl@omitlines=\count351 \l__datatool_line_int=\count352 ) (c:/texlive/2025/texmf-dist/tex/latex/booktabs/booktabs.sty Package: booktabs 2020/01/12 v1.61803398 Publication quality tables \heavyrulewidth=\dimen160 \lightrulewidth=\dimen161 \cmidrulewidth=\dimen162 \belowrulesep=\dimen163 \belowbottomsep=\dimen164 \aboverulesep=\dimen165 \abovetopsep=\dimen166 \cmidrulesep=\dimen167 \cmidrulekern=\dimen168 \defaultaddspace=\dimen169 \@cmidla=\count353 \@cmidlb=\count354 \@aboverulesep=\dimen170 \@belowrulesep=\dimen171 \@thisruleclass=\count355 \@lastruleclass=\count356 \@thisrulewidth=\dimen172 ) (c:/texlive/2025/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def File: l3backend-pdftex.def 2025-10-09 L3 backend support: PDF output (pdfTeX) \l__color_backend_stack_int=\count357 ) (./test_read.aux) \openout1 = `test_read.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. \dtldb@grades=\toks40 \dtlkeys@grades=\toks41 \dtlrows@grades=\count358 \dtlcols@grades=\count359 ! Package datatool Error: Database `gradesDB' doesn't exist. See the datatool package documentation for explanation.

  • Passing key-value pairs to setuphead and doif... expansion of \structureuservariable
    by Gary on February 8, 2026 at 4:49 am

    I'm trying to pass values to the command declared in setuphead and evaluate them in the command. Following the example at https://wiki.contextgarden.net/Command/_startsection under the heading of "Settings (instance variant)", it appears that the key-value pairs are being passed to the command. However, I do not understand either how if/then/else works in ConTeXt and/or when commands are expanded to their values. In the example below, the MySection command works because the test is for whether or not a user variable of pw has any value or something like that. But the MySectionBroken command fails because the attempted test on the value of user-variable ct is always false and there is not pw for the scenario when ct is equal to character l. It appears that \structureuservariable{pw} is converted to its value in \starttabulate but \structureuservariable{ct} is not in the if test. I see the many, many doifelse... commands in the big book of ConTeXt commands but did not see anything on the wiki that describes how they function. Would please point me to where this is explained? Thank you. P.S. I should've explained that I'd like to pass a column type and, when it is paragraph, a column width. I need the section number to remain more left than the text when it wraps. And, even though I'd be glad to learn of other ways to accomplish this, I'd really like to understand how the conditionals work in ConTeXt. Thanks. \setuplayout[ height=4in, width=4in ] \define[2]\MySection{% \placetable[middle,none][]{}{ \doifelsesomething{\structureuservariable{pw}}{% \starttabulate[|l|p(\structureuservariable{pw})|][frame=on] }{% \starttabulate[|l|l|][frame=on] }% \NC #1 \NC #2 \NC \NR \stoptabulate} } \define[2]\MySectionBroken{% \placetable[middle,none][]{}{ \doifelsevalue{\structureuservariable{ct}}{l}{% \starttabulate[|l|l|][frame=on] }{% \starttabulate[|l|p(\structureuservariable{pw})|][frame=on] }% \NC #1 \NC #2 \NC \NR \stoptabulate} } \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, command=\MySection, ] \starttext \startsection[title={Title One}][ct={l}] A paragraph \ldots \stopsection \startsection[title={Title Two}][ct={p},pw={30mm}] A paragraph \ldots \stopsection \startsection[title={Title Three is\\a Multi-liner}][ct={p},pw={50mm}] A paragraph \ldots \stopsection \stoptext

  • Failed to position cell with makecell in tabularx
    by user2609605 on February 7, 2026 at 9:29 pm

    Following MnWE: \documentclass[a4paper]{article} \usepackage{tabularx} \usepackage{tabu} \usepackage{makecell} \begin{document} \begin{tabularx}{\textwidth}{|@{}>{\raggedright}p{4.5cm}X|} \makecell[cl]{NAME} & \rule[-\dp\strutbox]{3pt}{\headheight}On geometry in KOMA scripts \end{tabularx}% \end{document} I saw the solution but in fact, we cannot see that this is vertically centered because the row is as high as the column. Due to the \rule in my situation it is different and so one can see, that there is no vertical centering. I suspect that the first column is as high as the text, so not as high als the 2nd column. How to get the 1st column vertically centered??? To be honest, there is another requirement: want to use in a header. So I search for solutions which can be fit precisely into given height and width.

  • Adding whitespace in both the "before" and "beforesection" options of setuphead
    by Gary on February 7, 2026 at 8:40 pm

    This question comes out of the comments from this question and I didn't want to add more to it. (If the former should be deleted, I will; please let me know.) The issues were that 1) I didn't want the whitespace before a section title to start at the end of the previous page when there was some space left after the preceding paragraph; 2) I wanted some whitespace before the title but, when the title starts a new page, not as as much whitespace because the headerdistance adds the appearence of additional whitespace. The use of framedtext provided by @MaxChernoff in this answer worked as shown below. The whitespace between the header rule and the title is about the same as for a title surrounded by text; and Section III is moved to the next page and spaced properly. The space before a title is split into two values, one in the framedtext option of toffset which is like forced and fixed; and another in the setuphead option beforesection using \blank which is suppressed at the top of a new page. \setuplayout[ height=4in, width=4in, topspace=0.33in, top=0.33in, topdistance=0in, headerdistance=3mm, footerdistance=0.150in, header=\lineheight, footer=\lineheight, bottom=0.255in, bottomdistance=0in, bottomspace=0in] \settextcontent[header][text] [middletext][section][section] \setupheader[text][ style=\sc, after={\hrule height 0.8pt} ] \define[2]\MySection{% \framedtext [frame=off, width=\textwidth, offset=none, toffset=3mm, align=center]{#1 #2} } \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, command=\MySection, beforesection={\blank[2mm]}, before=, after={\blank[5mm]}, aftersection=\blank[back], style={\tfa\it}, ] \starttext % \showframe \startsection[title={Title One},marking={Header One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two},marking={Header Two}] \input{ward} A few more word to extend the paragrahp down two lines in order to push the head forward one line. \stopsection \startsection[title={Title Three},,marking={Header Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext Next, I tried to render the same result using \testpage as suggested by @mickep, figuring that \framedtext is performing about the same test to determine if the framed title can all fit on the page. I think that part works but I haven't been able to get the spacing to be correct. My reasoning/expectation was that, in the example below, the beforesection={\testpage[4]\blank[2mm]}, will test for four lines left on the page. If there are four lines, it will write 2mm of whitespace; if not, it will insert a pagebreak and the 2mm of whitespace will be suppressed at the top of the page. Then the before={\blank[force,fixed,3mm]}, will write 3mm of whitespace whether at the top of a page or not since it is forced. But that is not what is occurring; and, instead, there is extra whitespace when the title is at the top of a page and less when it is surrounded by text. I apologize for being so dense and slow to understand this, but would you please tell me what I'm failing to observe hereto make the two methods render the same results? Thank you. \setuplayout[ height=4in, width=4in, topspace=0.33in, top=0.33in, topdistance=0in, headerdistance=3mm, footerdistance=0.150in, header=\lineheight, footer=\lineheight, bottom=0.255in, bottomdistance=0in, bottomspace=0in] \settextcontent[header][text] [middletext][section][section] \setupheader[text][ style=\sc, after={\hrule height 0.8pt} ] \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, beforesection={\testpage[4]\blank[2mm]}, before={\blank[force,fixed,3mm]}, after={\blank[5mm]}, aftersection=\blank[back], style={\tfa\it}, ] \starttext % \showframe \startsection[title={Title One},marking={Header One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two},marking={Header Two}] \input{ward} A few more word to extend the paragrahp down two lines in order to push the head forward one line. \stopsection \startsection[title={Title Three},,marking={Header Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext

  • Helvetica (phv) inconsistency: how to do it correctly?
    by karlh on February 7, 2026 at 7:00 pm

    I am trying to use text in a particular font (in this case, a Helvetica clone) without bringing on an entire package and/or forcing the user to use a particular package. A minimal example is below: \documentclass{article} \usepackage{tikz} \begin{document}\noindent This is document text. \begin{center} \begin{tikzpicture} \begin{scope}[every node/.style={transform shape}] \renewcommand*{\sfdefault}{phv} \node {\resizebox{!}{0.5cm}{\sffamily WOOHOO!}}; \end{scope} \end{tikzpicture} \end{center} This is more document text. \end{document} However, I get different results with different engines, as shown: My questions: (1) why doesn't LuaLaTeX show the same result as PDFLaTeX? (2) What is the "right" (read: most portable) way to include a single piece of Helvetica (or some other font) in this manner without dragging in an entire package or forcing the use of a particular TeX engine?

  • PicTeX and \begin{picture} compatibility
    by jarnowicz on February 7, 2026 at 6:57 pm

    Perhaps silly question, but how compatible are the macros of the older PiCTeX package, Plain compatible, with the newer picture environment, accesible through the autopict package from the graphics-pln package through either Plain or eplain ?

  • xypic loop error
    by underwhelmer on February 7, 2026 at 6:51 pm

    Here are two different bits of code that difer by exactly one letter: Number 1: \documentclass{amsart} \usepackage[all]{xy} \begin{document} \begin{displaymath} \xymatrix{ { \begin{tabular}{c|c} \hline $x_2$ & 7 \\ \hline $x_3$ & 4 \\ \hline \end{tabular} } \ar@(ul,dl)[]_{\pi^0} } \end{displaymath} \end{document} Number 2: \documentclass{amsart} \usepackage[all]{xy} \begin{document} \begin{displaymath} \xymatrix{ { \begin{tabular}{c|c} \hline $x_2$ & 7 \\ \hline $x_3$ & 4 \\ \hline \end{tabular} } \ar@(l,dl)[]_{\pi^0} } \end{displaymath} \end{document} The difference is that in number 2, the arrow is modified with @(l,dl) while in number 1 it is modified with @(ul,dl) Number 1 doesn't compile. Number 2 does but looks ugly. I'd like Number 1 to compile and look better than Number 2 in the way it should. Since I know it will come up: no, I'm not willing to switch to tikz. Yes, I know tikz is better. But I know the syntax for xypic and have been using it for sneaking up on twenty years and I just turned 40 and am thus officially allowed to be a stick in the mud about things.

  • How obtain Cyrillic with Lucida Bright and unicode engine?
    by murray on February 7, 2026 at 4:37 pm

    With pdfLaTeX, the following code works as expected, including rendering the Cyrillic portion of the text: \documentclass{article} \usepackage[russian,english]{babel} % Optional: for hyphenation \babeltags{russian=russian} \usepackage[T2A,T1]{fontenc} \usepackage{newtx} \DeclareFontFamilySubstitution{T2A}{\rmdefault}{Tempora-TLF} % for Cyrillic \begin{document} `\textrussian{Тихонов}' is often transliterated as `Tychonoff'. \end{document} How can I similarly produce the Cyrillic characters if, instead, I use the LuaLaTeX engine and Lucida Bright font, as in the following? % !TEX program = lualatex \documentclass{article} \usepackage{fontspec} \usepackage[russian,english]{babel} % Optional: for hyphenation \babeltags{russian=russian} \babelfont{rm}[Scale=0.92,DefaultFeatures={Ligatures=TeX}]{LucidaBrightOT.otf} \begin{document} `\textrussian{Тихонов}' is often transliterated as `Tychonoff'. \end{document}

  • Label equation terms with aligned labels
    by ecoer on February 7, 2026 at 1:01 pm

    I'd like to label each term of an equation like this: I tried with \underset, \mathop, \underbrace... but, since some terms take more vertical space than others, all the labels are on different heights. This is the closest I got to what I want, using alignat, but still the numerals are not centered: \begin{alignat*}{7} &\frac{\partial u_i}{\partial t} + &&u_j \frac{\partial u_i}{\partial x_j} &&= &&-g\delta_{i3} + &&f\varepsilon_{ij3}u_j - &&\frac{1}{\rho}\frac{\partial p}{\partial x_i} + &&\nu\frac{\partial ^2u_i}{\partial x^2_j} \\ & \text{I} && \text{II} && && \text{III} && \text{IV} && \text{V} && \text{VI} \end{alignat*} How can I label in a clear, aligned way? PS: this is just the equation: $\frac{\partial u_i}{\partial t} + u_j \frac{\partial u_i}{\partial x_j} = -g\delta_{i3} + f\varepsilon_{ij3}u_j - \frac{1}{\rho}\frac{\partial p}{\partial x_i} + \nu\frac{\partial ^2u_i}{\partial x^2_j}$

  • MakeLowercase not working with lipsum
    by Jonathan Webley on February 7, 2026 at 9:34 am

    This MWE: \documentclass{article} \usepackage{lipsum} \begin{document} \MakeLowercase{\lipsum[1][1]} \end{document} generates: Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

  • Where is the l3benchmark.sty file located?
    by Alain Matthes on February 7, 2026 at 8:24 am

    I wanted to test an old file, but I got an error. ! LaTeX Error: File `l3benchmark.sty' not found. My distribution is up to date, so I assume this file has been removed. What can I replace it with? \RequirePackage{l3benchmark} \ExplSyntaxOn \AtEndDocument { \benchmark_toc: } \benchmark_tic: \ExplSyntaxOff \documentclass{article} \usepackage{tikz} \begin{document} \directlua{ function f(t0, t1, n) local filename = tex.jobname .. ".table" local out = assert(io.open(filename, "w")) for t = t0, t1, (t1 - t0) / n do local x = math.sin(5*t) local y = math.cos(3*t) out:write(x, " ", y, " i", string.char(10)) % or out:write(x, " ", y, " i\string\n") end out:close() end } \begin{tikzpicture}[scale=4] \directlua{f(0, 2*math.pi, 256)}% \draw[red] plot[smooth] file {\jobname.table}; \end{tikzpicture} \end{document}

  • Test if item to be written is at the top of the page?
    by Gary on February 7, 2026 at 4:38 am

    Is it possible to test within a before option command whether or not the item to be written is at the top of the page? For example, I tried in \setuphead before={\doiftopofpageelse{...true...}{...false...}} and it is always true even when the head item is not being written at the top of the page. Thank you. For example, every section below shows "top of the page". Why? \setuplayout[height=4.7in,width=4in] \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, before={\blank[0mm]}, beforesection={\doiftopofpageelse{\hrule{top of page}}{\hrule{not top of page}}}, after={\blank[5mm,]}, style={\tfa\it}, ] \starttext \showframe \startsection[title={Title One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two}] \input{ward} \stopsection \startsection[title={Title Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext Added There are two parts to the item I can't get to work as needed. It occurs when a section's before area is at the bottom of a page and the head title is at the top of the next page. For example, I need to get the whitespace of the before to move to the top of the next page. The second part of it is to know when this occurs such that I can reduce that whitespace by the size of the distance between the header and the text block so the overall space above and below the section header is about even rather than more on the top. Thanks. \setuplayout[height=5.85in,width=4in] \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, beforesection={{\darkred(beforesection)}}, before={{\darkblue(before)}\blank[force,line]}, after={{\darkblue(after)}}, aftersection={{\darkred(aftersection)}}, style={\tfa\it}, ] \starttext \showframe \startsection[title={Title One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two}] \input{ward} \stopsection \startsection[title={Title Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext Yet another addition I need to read about \testpage[] but the context wiki site responds with forbidden, here. In the meantime, the framedtext approach as @MaxChernoff provided here appears to be working for a "real" section also. I think I can adjust the toffset by the header distance and add it in \setuphead with a \blank that will be suppressed at the top of a new page only. \setuplayout[height=4.5in,width=4in,] \define[2]\MySection{% \framedtext [frame=on, width=\textwidth, offset=none, toffset=5mm, align=center]{#1 #2} } \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, command=\MySection, before=, after={\blank[5mm]}, aftersection=\blank[back], style={\tfa\it}, ] \starttext \showframe \startsection[title={Title One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two}] \input{ward} \stopsection \startsection[title={Title Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext

  • Siunitx and font and/or alignments
    by LeO on February 6, 2026 at 7:52 pm

    I want to use siunitx for alignments within a currency table. Perhaps euros are not a scientific unit - but I haven't seen why this might be a problem. I want to use a different font. Anyway there seems to be a strange mixture which leads to a weird result. \documentclass[12pt]{article} \usepackage[margin=2.5cm]{geometry} \usepackage{fontspec} \setmainfont{Bitter}[Ligatures=TeX,Scale=MatchLowercase] \usepackage{tabularx, multirow} \usepackage[locale = DE]{siunitx} \begin{document} \begin{tabular}{S} \textbf{Betrag} \\ 120,00 €\\ -12,00 €\\ \large\textbf{108,00 €}\\ \end{tabular} \end{document} Only the header and the last line are in "Bitter" font. Addtionally I don't understand why the euro sign has an extra space in the 3rd line. The result of the given MWE has two weird aspects: The ammount 120€ and -12€ are NOT in the main font. Is there a way to keep it? the euro sign after -12 has a strange additional space. Is there a way to correct it? (to have only ONE extra space)?

  • Unequal parens sizes in numerator and denominator of a fraction
    by Knudsen on February 6, 2026 at 2:22 pm

    Why are the parens on the numerator of this construction much bigger than the ones in the denominator? \documentclass{report} \usepackage{amsmath} \begin{document} \[ \frac{\left(q^k\right)} {\left(q^k\right)} \] \end{document}

  • Make perfect circular diagrams
    by Fran on February 5, 2026 at 12:23 pm

    I know that I can make circular diagrams with the nice smartdiagram package, but arrows do not fit perfectly in a imaginary circle. In fact, the diagram is far from a circle when there are only two or three nodes: \documentclass{standalone} \usepackage{smartdiagram} \begin{document} \smartdiagramset{ connection color=red, module shape= circle, circular distance=2cm, uniform color list=white for 6 items, uniform arrow color=true, arrow color=black} \smartdiagram[circular diagram:clockwise]{foo, bar} \end{document} I know also that there are several examples in this site about making circular diagrams without this package, but translating these examples to diagrams with a different numbers of nodes is complex, so I tried an automated solution with tikz (without really knowing what I was doing, I have to admit) so that I only have to modify a list of nodes in \mylist and little more to obtain the result: \documentclass[border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[ > = Stealth, every node/.style = {circle, draw, thick, minimum width=1cm, align=center} ] \def\mylist{foo, bar, baz} % play with this \foreach \x [count=\i from 1] in \mylist {\xdef\n{\i}} \def\radio{2cm} % and this if needed \foreach \texto [count=\i from 0] in \mylist{ \pgfmathsetmacro\ang{-\i*360/\n} \node (n\i) at (\ang:\radio) {\texto}; } \foreach \dummy [count=\i from 0] in \mylist{ \pgfmathsetmacro\j{int(mod(\i+1,\n))} \pgfmathsetmacro\angini{-\i*360/\n} \pgfmathsetmacro\angfin{-\j*360/\n} \pgfmathsetmacro\outang{mod(\angini - 90 + 720, 360)} \pgfmathsetmacro\inang {mod(\angfin + 90 + 720, 360)} \draw[->, thick, line width=1.4pt] (n\i) to[out=\outang, in=\inang, looseness=.9] (n\j); % and with the looseness } \end{tikzpicture} \end{document} Mainly it works. The problem is that like in smartdiagram, the arrows don't perfectly follow an imaginary circle, that was the idea behind getting involved in this business. Playing with looseness is possible to correct a bit the curvature of the arrows, but it's tedious and the result is never perfect. So, the result should be ideally near to the image below (that I modified manually in Inkscape) and still require minimal settings to adapt the code to diagrams of n nodes. Fixes of the MWE as well as alternative approaches are welcome. Edit Thank you all for the excellent suggestions. This time, I am truly sorry I can only accept one.