• Format enumitem inline list
    by user1 on February 9, 2026 at 2:18 pm

    Outgoing from the question Dropping separator at line break in an inline list I want to achieve two/three more things. Line breaks should (if possible) only be placed between items The list should have a left and right margin (maybe it is easier to not use an inline list?) The list should be centered The list should be startet at a new line and end with a line break (Done, but I guess (2.) solves this automatically. MWE: \documentclass[a4paper]{article} \usepackage{showframe} \newcommand{\middot}{~\textperiodcentered~} \usepackage{enumitem} \newlist{skills}{itemize*}{1} \setlist[skills]{label={}, afterlabel={}, leftmargin=2cm, rightmargin=2cm, before={\newline}, after={\newline}, itemjoin=\discretionary{}{}{\hbox{\middot}}} %TODO leftmargin and rightmargin have no effect \setlength{\parindent}{0pt} \begin{document} Text before \begin{skills} \item This \item list \item should \item only \item break \item between \item items \item and not inside a longer item \item Also \item this \item list \item should \item be \item centered \item and \item indented \end{skills} text after \vspace{2cm} The desired output is: Text before \vspace{-3mm} \begin{center} This \hbox{\middot}list \hbox{\middot}should \hbox{\middot}only \hbox{\middot}break \hbox{\middot}between \hbox{\middot}items and not inside a longer item \hbox{\middot}Also \hbox{\middot}this \hbox{\middot}list \hbox{\middot}should \hbox{\middot}be centered \hbox{\middot}and \hbox{\middot}indented \end{center} \vspace{-3mm} text after \end{document}

  • \raisebox does not seem to work in this math mode command
    by Jinwen on February 9, 2026 at 12:42 pm

    Consider the following example, in which I wish to define a command that draws a bold dot over a symbol (ideally, the first optional argument adjusts horizontal position, and the second adjusts vertical position). However, I cannot seem to get \raisebox work: no matter what length value I put in, the dot always remains at the current position. May I ask where have I done wrong, and how to fix it? \documentclass{article} \usepackage{mathtools} \begin{document} \NewDocumentCommand \dotted { O{0mu} O{-.1em} m } { \smash{\overset{\raisebox{#2}{\scalebox{.5}{$\mspace{#1}\bullet$}}}{#3}} } \( \dotted[5mu]{M} \) \end{document}

  • Suppress warning from xassoccnt.sty about calc.sty
    by Jabot on February 9, 2026 at 10:56 am

    I am using xassoccnt.sty for coupling counters for equations and exe environment from gb4e.sty. However, it emits a warning (no error) because of using calc earlier. This screws up the submission system process when I have to submit a raw LaTeX file. Is it possible to hack xassoccnt and suppress this warning? silence didn't help here. MWE (note: I need to have xifthen): \documentclass[a4paper,oneside,12pt,leqno]{article} \usepackage{amsmath,amssymb,amsthm} \usepackage{xifthen} \usepackage{etoolbox} \usepackage[svgnames]{xcolor} \usepackage{xpatch} \usepackage{gb4e} \usepackage{xassoccnt} \DeclareCoupledCountersGroup{figuretablelistings} \DeclareCoupledCounters[name=figuretablelistings]{equation,xnumi,exx} \begin{document} \begin{exe} \ex test \end{exe} \begin{equation} \label{eq:1} 99 \end{equation} \begin{exe} \ex test \end{exe} \end{document}

  • No hyphens used by babel's IAST to Devanāgarī transform?
    by muk.li on February 9, 2026 at 10:45 am

    The following MWE makes use of a babel transform from IAST to Devanāgarī script for Sanskrit text. \documentclass{article} \usepackage[english]{babel} \babelprovide[transforms=transliteration.iast]{sanskrit} \babelfont{rm}{Noto Serif} \babelfont[*devanagari]{rm}[Renderer=Harfbuzz]{Noto Serif Devanagari} \newcommand\sa[1]{\foreignlanguage{sanskrit}{#1}} \begin{document} \begin{otherlanguage}{sanskrit} athety ayam adhikārārthaḥ. yogānuśāsanaṃ śāstram adhikṛtaṃ veditavyam. yogaḥ samādhiḥ. sa ca sārvabhaumaś cittasya dharmaḥ. kṣiptaṃ mūḍhaṃ vikṣiptam ekāgraṃ niruddham iti cittabhūmayaḥ. tatra vikṣipte cetasi vikṣepopasarjanībhūtaḥ samādhir na yogapakṣe vartate. yas tv ekāgre cetasi sadbhūtam arthaṃ pradyotayati kṣiṇoti ca kleśān karmabandhanāni ślathayati nirodham abhimukhaṃ karoti sa saṃprajñāto yoga ity ākhyāyate. sa ca vitarkānugato vicārānugata ānandānugato 'smitānugata ity upariṣṭān nivedayiṣyāmaḥ. sarvavṛttinirodhe tv asaṃprajñātaḥ samādhiḥ. 1.1 \end{otherlanguage} \end{document} In the output, however, it seems that while automatic hyphenation is applied, the actual hyphens are missing. In this sample, one would have expected a hyphen at the end of the third line, निरोधम-भिमुखं. Of course, this is a question of conventions, and perhaps the current transformation was made with a convention in mind that hyphenates without actually using hyphens, such as was done in most manuscripts. In modern typesetting however I would expect hyphens to be used. Perhaps it is just a bug?

  • Using witharrows package
    by Dhairya Kumar on February 9, 2026 at 10:24 am

    I intended to write the arrowhead made by myself during a problem, namely on the right-hand side named 'King's rule' in any way. My typesetting skills aren't too brilliant to write it. Help me.(I was writing these in Overleaf within math mode)

  • Using xint in pgfplots (example: binomial distribution)
    by cis on February 9, 2026 at 9:26 am

    If I have a function with xint, say % \bdceval{<n>}{<p>}{<k>} \xintNewFloatExpr{\bdeval}[3]{% %B(n,p,k) = binomial(n,k)*p^k*(1-p)^(n-k) % formula binomial(#1,#3)*#2^#3*(1-#2)^(#1-#3)} this works well in text (e.g. \bdeval{13}{0.4}{5}); but how can I use that in pgfplots? In the following MWE I have drawn an example using pgfplots; the same curve should result with xint. \documentclass[margin=5pt, varwidth]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{xintexpr} %\usepackage{xinttools}% needed? % \bdceval{<n>}{<p>}{<k>} \xintNewFloatExpr{\bdeval}[3]{% %B(n,p,k) = binomial(n,k)*p^k*(1-p)^(n-k) % formula binomial(#1,#3)*#2^#3*(1-#2)^(#1-#3)} % \bd[<digits, default: 4>]{<n>}{<p>}{<k>} \NewExpandableDocumentCommand{\bd}{O{4} mmm}{% %\xinteval{round(#2+#3+#4,2)}% for tests \xintRound{#1}{\bdeval{#2}{#3}{#4}}% rounded bd-values } \begin{document} \section{xint in Text (works)} $B(13,0.4,5) =\bdeval{13}{0.4}{5} \approx \bd{13}{0.4}{5}$ \par $B(1000,0.4,50) =\bdeval{1000}{0.4}{50} \approx \bd{1000}{0.4}{50}$ \section{xint in pgfplots (works not)} \begin{tikzpicture}[font=\footnotesize, declare function={ binom(\n,\p,\k)=\n!/(\k!*(\n-\k)!)*\p^\k*(1-\p)^(\n-\k);% works %xbinom(\n,\p,\k)=\bdeval{\n}{\p}{\k};% works not } ] \begin{axis}[ title={\texttt{xint} in pgfplots?}, title style={fill=blue!25}, xlabel={$k$}, ylabel={$P(X=k)$}, yticklabel style={ /pgf/number format/fixed, /pgf/number format/fixed zerofill, /pgf/number format/precision=2 }, xtick=data, variable=\k, only marks, ] \addplot+[samples at={0,...,13}] {binom(13, 0.4, k)}; % DOES NOT WORK %\addplot [samples at={0,...,13}] {\bd{13}{0.4}{\k} }; \end{axis} \end{tikzpicture} \end{document}

  • Value of half a normal space *at given location*
    by Rpy on February 9, 2026 at 7:53 am

    I am trying to reproduce a manuscript as “photographically” as possible. Sometimes words have been added after a first draft, above a line, centered in between two words. To get this, I used a \makebox with the width of \space and centered content, and within that box, I placed a \raisebox to place the added content vertically. It seemed to do the job just fine until I noticed that the length \space (or " ") which I wanted the box to have gives that box a fixed length (and after all you would indeed expect that in a box), whereas I would like the interword spacing to have the flexibility it has elsewhere, and just obtain a box in the middle of that flexible space. I first thought of a fix that would simply involve putting a half normal space on both sides of a box without width, but I find no such command seems to exist! (\, does not do that). Any ideas?

  • How To Remove Line Between 2 Indices (LaTEX imakeidx)
    by Dao Minh Duc on February 9, 2026 at 6:16 am

    I am trying to make an index of players like this: But after using imakeidx packages and style like below My preamble.tex: \usepackage{imakeidx} \makeindex[name=players, columns=1, options= -s style.ist] \makeindex[name=openings, columns=1, options= -s style.ist] My style.ist: preamble "" postamble "" heading_prefix "" heading_suffix "\n" item_0 "\n" item_1 "\n" item_2 "\n" delim_0 ", " delim_1 ", " delim_2 ", " My list are having a line gap between 2 indices. Please kindly help me to fix that issue and thank you very much!

  • How to create a rectangle without tikzpicture
    by PureVessel on February 9, 2026 at 5:44 am

    I'm translating Kazakh problems for the Art of Problem Solving forum, and I faced an obstacle with this problem: It translates like: Aigerim and Batyrkhan play the following game. There is a board of size $2\times2024$ (2 rows and 2024 columns). They take turns, with Aigerim moving first. On her move, Aigerim places a horizontal domino on the board $\boxed{\phantom{a}}\boxed{\phantom{a}}$, covering exactly two squares. On his move, Batyrkhan places a vertical domino on the board $\begin{aligned} \fbox{\rule{0pt}{1.2em}\hspace{1.2em}}[0em] \fbox{\rule{0pt}{1.2em}\hspace{1.2em}} \end{aligned}$, also covering exactly two squares. A player who cannot make a move loses. (Dominoes may be placed only on empty squares.) Who wins if both players play optimally? and I don't know how to do the vertical domino without separation between the squares. AoPS doesn't support features like tikzpicture, so I need to come up with a different method.

  • How do I fix unwanted blank spaces and stretched paragraph spacing when using tcolorbox inside a 9-column multicols environment?
    by hjmonbld on February 9, 2026 at 4:41 am

    When using tcolorbox within multicols, it prematurely breaks columns, resulting in unexpected large blank spaces (as shown in the image), and the paragraph spacing between body text becomes excessively stretched. Corresponding code: \documentclass{article} \usepackage[a4paper,left=0.7cm,right=0.7cm,top=0.5cm,bottom=0.9cm,footskip=6.9pt]{geometry} \usepackage{multicol} \usepackage{tcolorbox} \usepackage{lipsum} \usepackage{fontspec} \setmainfont{Noto Sans} \def\@textbottom{\vskip \z@ \@plus \textheight} \setlength{\parskip}{0pt plus 0.00001pt} \usepackage{tcolorbox} \tcbuselibrary{skins,breakable} \renewtcolorbox{quote}[1][]{ breakable, enhanced, frame hidden, colback=white, left=0.5em, right=0pt, top=0pt, bottom=0pt, sharp corners, before skip=0.5\baselineskip, after skip=0.5\baselineskip, overlay={ \draw[line width=0.3pt, black]([shift={(0.5em, -0.5em)}]frame.north west) -- ([shift={(0.5em, 0.5em)}]frame.south west); }, parbox=false, #1 } \begin{document} \fontsize{4pt}{0.1}\selectfont \begin{multicols}{9} \lipsum[1] \begin{quote} QUOTE: \lipsum[2-7] ENDQUOTE \end{quote} \lipsum[3] \begin{quote} QUOTE: \lipsum[4-9] ENDQUOTE \end{quote} \begin{quote} QUOTE: \lipsum[5-15] ENDQUOTE \end{quote} \lipsum[6] \begin{quote} QUOTE: \lipsum[5-15] ENDQUOTE \end{quote} \lipsum[6] \begin{quote} QUOTE: \lipsum[5-15] ENDQUOTE \end{quote} \lipsum[6] \begin{quote} QUOTE: \lipsum[5-15] ENDQUOTE \end{quote} \lipsum[1-7] \end{multicols} \end{document}

  • How can I horizontally align two math labels by their baseline in TikZ?
    by Jasper on February 9, 2026 at 2:27 am

    How can I horizontally align two math labels by their baseline in TikZ? \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \node[below] at (0,0) {\(\frac{1}{1}\)}; \node[below] at (1,0) {\(1\)}; \end{tikzpicture} \end{document}

  • Tagging & tcolorbox - wrapping with minimal width
    by LeO on February 9, 2026 at 1:54 am

    I try to generate some colored box with predefined text which contain line breaks. I want to have the box width at a minimum width, meaning the longest line should be taken and wrapped. I've tried different approaches (e.g varwidth) but I didn't find a solution which is compatible with PDF-tagging. My MWE \DocumentMetadata{ tagging=on, lang=en } \documentclass{article} \usepackage{varwidth} \usepackage[most]{tcolorbox} \newtcolorbox{infobox}{ colback=gray!10,hbox } \begin{document} \begin{infobox} \begin{varwidth}{\textwidth} \textbf{Text which should be wrapped} \\ some location \\ anywhere \end{varwidth} \end{infobox} \begin{infobox} \begin{tabular}{@{}l@{}} Alternate to varwidth ? \\ some location \\ anywhere \end{tabular} \end{infobox} \end{document} Can I add some code which would make the result a valid tagged PDF? (Or perhaps there is a different approach?)

  • 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}

  • How can I highlight arguments of \textcolor command in WinEdt?
    by Igor Kotelnikov on February 8, 2026 at 10:54 pm

    I've set up the highlighting scheme in WinEdt via the Options | Interface Options... | Highlighting: Colors, Keywords... | Switches menu so that any text in the argument of \footnote{...} command will be highlighted, as shown in the attached screenshot: This effect is caused by the following fragment of the switches.ini file: SWITCH="\footnote{?}" ENABLED=1 MODE_FILTER="TeX|INS;STY;AUX" START="{" STOP="}" HIGHLIGHT_START=0 STEP_OVER_STOP=1 HIGHLIGHT_STOP=0 SCOPE=3 DOMINANT_PRIORITY=0 STRICT_PRIORITY=0 PRIORITY=5 INDENTED=0 BOLN_ONLY=0 CASE_SENSITIVE=1 START1_TRIGGER="\footnote" START2_TRIGGER="" STOP1_TRIGGER="" STOP2_TRIGGER="" TEXT_COLOR="swcFootnote" DEFAULT_FONT=1 BACKGROUND_COLOR="#FFFFC1" RELATIVE_RIGHT_MARGIN=1 RIGHT_MARGIN=1//0 INDENTED_LEFT_MARGIN=1 LEFT_MARGIN=0 I would like to achieve a similar effect for the \textcolor and \mathcolor commands, which, unlike \footnote, might have 2 or 3 arguments instead of one, for example: \textcolor[rgb]{0.86,0.20,0.18}{To Be Done} I added the following fragment to the switches.ini file: SWITCH="\textcolor{?}" ENABLED=1 MODE_FILTER="TeX|INS;STY;AUX" START="[..]{...}{" STOP="}" HIGHLIGHT_START=0 STEP_OVER_STOP=1 HIGHLIGHT_STOP=0 SCOPE=3 DOMINANT_PRIORITY=0 STRICT_PRIORITY=0 PRIORITY=5 INDENTED=0 BOLN_ONLY=0 CASE_SENSITIVE=1 START1_TRIGGER="\textcolor" START2_TRIGGER="" STOP1_TRIGGER="" STOP2_TRIGGER="" TEXT_COLOR="swcFootnote" DEFAULT_FONT=1 BACKGROUND_COLOR="#FFFFC1" RELATIVE_RIGHT_MARGIN=1 RIGHT_MARGIN=1//0 INDENTED_LEFT_MARGIN=1 LEFT_MARGIN=0 However, this is not working properly. What do I need to change to be successful?

  • 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 at a ybar plot (example: 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.... ] \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?

  • 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?

  • 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.

  • 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.

  • 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.

  • 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.