• tcolorbox: Using tikz pattern for drop shadow
    by Craig on June 26, 2026 at 6:21 pm

    MWE: \documentclass{standalone} \usepackage{tcolorbox,tikz} \usetikzlibrary{patterns,patterns.meta} \begin{document} \begin{tcolorbox}[ sharp corners, rounded corners=downhill, ] Hello world \end{tcolorbox} \end{document} I have a tcolorbox. I would like the drop shadow to be made of the tikz pattern north east lines. I know tikz patterns can be used to fill parts of the tcolorbox itself (such as with title style={preaction={fill=white},pattern=crosshatch dots,pattern color=black}), but can this same trick also be used for drop shadows?

  • Ordinal Date Suffixes not appearing using \datetime2 package
    by TheBeeTee on June 26, 2026 at 2:42 pm

    My document must display the date in US "long" format for all instances except the notary line where they want the fancy legalese "Sworn before me this Nth day of month, YYYY. I'm trying to define a new date format that does this and does not impact the day number as displayed in other instances. The global command \DTMlangsetup[en-US]{ord=raise} changes all instances, so not a solution. \documentclass[12pt, english]{article} \usepackage{babel} \usepackage[en-US]{datetime2} %\DTMlangsetup[en-US]{ord=raise}% This does not solve my problem. \DTMnewdatestyle{myFancyStyle}{% \renewcommand{\DTMdisplaydate}[4]{% \DTMenglishordinal{##3} day of % \DTMenglishmonthname{##2},~% \number##1% }% } \begin{document} Today's date in US long format: \textbf{\today} Today's date in pretentious legal format: \textbf{{\DTMsetdatestyle{myFancyStyle}\today}} It's supposed to be: \textbf{26\textsuperscript{th} day of June, 2026} \end{document}

  • Interaction between drawing something in the background and a page of floats
    by Werner on June 26, 2026 at 3:59 am

    In the following setup, I have a couple of images that forms part of a very large figure. The float ends up on a page of floats (on its own), because of the size. I plan on drawing some elements in the background, simulated by the background fill being the example images via \AddToHookNext{shipout/background}{<background drawing>}: \documentclass{article} \usepackage{lipsum,tikz} \begin{document} \lipsum[1-2] \begin{figure} \centering \tikz [remember picture] \node [inner sep = 10pt] (image-a) {\includegraphics[width = 0.5\linewidth]{example-image-a}}; \bigskip \tikz [remember picture] \node [inner sep = 10pt] (image-b) {\includegraphics[width = 0.5\linewidth]{example-image-b}}; \bigskip \tikz [remember picture] \node [inner sep = 10pt] (image-c) {\includegraphics[width = 0.5\linewidth]{example-image-c}}; \caption{A large figure} \AddToHookNext{shipout/background}{% \begin{tikzpicture}[remember picture, overlay] \filldraw [draw = red, fill = red!10!white, thick] (image-a.south west) rectangle (image-a.north east); \filldraw [draw = blue, fill = blue!10!white, thick] (image-b.south west) rectangle (image-b.north east); \filldraw [draw = green, fill = green!10!white, thick] (image-c.south west) rectangle (image-c.north east); \end{tikzpicture}} \end{figure} \lipsum[3-10] \end{document} Using this approach, however, puts the background drawing on the page where the original figure is processed, rather than where the actual figure is placed. How can I adjust the code so that the background content is placed correctly on the page where the float ends up? Ideally I'd like to keep the code as part of the figure as it semantically belongs with the figure, rather than placing it at some other bizarre place in the document just to make sure it fits there.

  • Remove default minipage padding
    by iacchi on June 26, 2026 at 1:08 am

    Minipages are so common that I can't believe this hasn't been answered before, however I googled for about an hour and I came up with nothing, so here I am. I noticed that the minipage environment has some sort of default inner padding (about 2.5 mm or 1/10 in), which I would like to remove. How can I do it, using options or another elegant way, without using some odd negative \hspace or something similar? To explain what I'm talking about, I made the MWE below comparing a minipage to a tcolorbox. Se how the tcolorbox of the same declared length of the minipage is shorter due to the absence of padding, and see how a tcolorbox of the same visual length of the minipage is actually 5 mm wider in its declaration. Notice also how the pink minipage with the envelope is narrower than the envelope itself, so the envelope doesn't get properly centred by \centering and it stays within the pink area only thanks to the margin. The left margin can be clearly seen also in the yellow minipage. \documentclass[a4paper,11pt]{article} \usepackage{fontawesome7} \usepackage{xcolor} \usepackage{tcolorbox} \setlength{\parindent}{0pt} \begin{document} \colorbox{lightgray}{ \begin{minipage}{8.6cm} \colorbox{pink}{ \begin{minipage}{2mm}\centering \faEnvelope{} \end{minipage} } \colorbox{yellow}{ \begin{minipage}{7.35cm} lperson@email.org \end{minipage} } \end{minipage} } \vskip 2mm \begin{tcolorbox}[boxsep=0pt,top=4pt,left=0pt,right=0pt,bottom=4pt,arc=0pt,colback=lightgray,frame empty,width=9.1cm] actual minipage width \end{tcolorbox} \vskip 2mm \begin{tcolorbox}[boxsep=0pt,top=0pt,left=0pt,right=0pt,bottom=0pt,arc=0pt,colback=lightgray,frame empty,width=8.6cm] \begin{tcolorbox}[boxsep=0pt,top=0pt,left=0pt,right=0pt,bottom=0pt,arc=0pt,colback=pink,frame empty,width=6mm,,after=\hspace{0mm}]\centering \faEnvelope{} \end{tcolorbox} \begin{tcolorbox}[boxsep=0pt,top=0pt,left=0pt,right=0pt,bottom=0pt,arc=0pt,colback=yellow,frame empty,width=7cm,before=\hspace{0mm}] lperson@email.org \end{tcolorbox} \end{tcolorbox} \end{document} This is the visual result of the code above:

  • How can I generate random numbers that are unique using pgftikz?
    by Matt on June 25, 2026 at 7:50 pm

    I am trying to generate worksheets where each time \A is called for in the document, a random number is generated. I use \NewNumbers to make sure each \A within a section is identical. How can I make it so that each \A after the \NewNumbers command is different? \documentclass[addpoints, 12pt, answers]{exam} \usepackage[margin=1in]{geometry} \usepackage{amsmath, amssymb, lmodern, pgfmath, tikz, tcolorbox, multicol} \renewcommand{\familydefault}{\sfdefault} \pointformat{} \renewcommand{\TheSolution}[1]{ \pgfmathparse{#1 <= 1 ? "Neither" : (isprime(#1) ? "Prime" : "Composite")} \pgfmathresult } \pgfmathsetseed{1} \newcommand{\NewNumbers}{ \pgfmathsetmacro{\A}{random(0,100)} } \begin{document} \printanswers \begin{questions} \begin{multicols}{3} \NewNumbers \question[1] $\A$ \fillin[\TheSolution{\A}] \NewNumbers \question[1] $\A$ \fillin[\TheSolution{\A}] \NewNumbers \question[1] $\A$ \fillin[\TheSolution{\A}] \end{multicols} \end{questions} \end{document}

  • Using TikZ-CD's "shift left" outside TikZ-CD (in a "\draw")
    by Eduardo Ochs on June 25, 2026 at 7:11 pm

    The manual for TikZ-CD has a section called "3.3 Drawing diagrams directly with TikZ" that shows how to use the TikZ-CD styles "outside Tikz-CD". For example, "shift left" and "shift right" are styles defined in tikzlibrarycd.code.tex, and by default they only work inside a \begin{tikzcd}...\end{tikzcd} block; the tricks from section 3.3 should make "shift left" and "shift right" work inside a \begin{tikzpicture}...\end{tikzpicture} block, but the last example below shows that that doesn't work, or at least don't work inside a \draw, with the syntaxes that I've tried... What am I missing? Any hints? \documentclass{article} \usepackage{tikz} \usepackage{tikz-cd} \begin{document} Tikz-CD: % \begin{tikzcd}[baseline=(A4.base)] |[alias=A4]| B & |[alias=A5]| A \arrow [from=A4, to=A5, <-, "L", shift left=1] \arrow [from=A4, to=A5, ->, "R"', shift right=1] \end{tikzcd} Tikzpicture, 1: % \begin{tikzpicture}[baseline=(A4.base)] \node [anchor=center] (A4) at (0,0) {$\textstyle B$}; \node [anchor=center] (A5) at (1.25,0) {$\textstyle A$}; \draw [<-] (A4) -- (A5) node[midway,above] {$\scriptstyle L$}; \draw [->] (A4) -- (A5) node[midway,below] {$\scriptstyle R$}; \end{tikzpicture} Tikzpicture, 2: % \begin{tikzpicture}[baseline=(A4.base), commutative diagrams/.cd,every arrow,every label] \node [anchor=center] (A4) at (0,0) {$\textstyle B$}; \node [anchor=center] (A5) at (1.25,0) {$\textstyle A$}; \draw [<-, commutative diagrams/shift left=1] (A4) -- (A5) node[midway,above] {$\scriptstyle L$}; \draw [->, commutative diagrams/shift right=1] (A4) -- (A5) node[midway,below] {$\scriptstyle R$}; \end{tikzpicture} \end{document} Update after egreg's answer... My question was a pgfkeys question in disguise! I am adding a TikZ backend to Dednat6/Dednat7 (big example), and I'm looking for a solution that at some point will have a readable syntax, like this one... \draw [<-,shift left=1] (A4) -- (A5) node[midway,above] {$\scriptstyle L$}; \draw [->,shift right=1] (A4) -- (A5) node[midway,below] {$\scriptstyle R$}; ...and to get there I will probably need several steps, like starting by copying some definitions around and then calling shift left and shift right with explicit pgfkeys paths, discovering the pgfkeys paths used by \draw, and defining a shift left and a shift right in the pgfkeys path for \draw that will call that shift left and the shift right in pgfk@/tikz/commutative diagrams/... By the way, if we run this: \documentclass{article} \usepackage{tikz} \usepackage{tikz-cd} \begin{document} \directlua{ for i,name in pairs(tex.hashtokens()) do local pat = "shift left" if name:match(pat) then print(name, token.get_macro(name)) end end } \end{document} The output in stdout is this (abbreviated): pgfk@/tikz/commutative diagrams/shift left/.@def +0.56ex pgfk@/tikz/commutative diagrams/shift left/.@cmd \pgfkeysalso (...)

  • Marking the intersection of two wires in a circuit
    by Jarvis on June 25, 2026 at 6:02 pm

    I am drawing a circuit using relative coordinates in which it contains a part like this. I used the following sample code to generate the above: \begin{circuitikz} \draw (0,0) node[op amp](OA){}; \draw (OA.-) to[R] ++(-4,0); \draw (OA.+) to[R] ++(-4,0); \draw (-2,-4) to[R] ++(0,2) |- (OA.-); \end{circuitikz} How do I place a dot where the vertical wire intersects inverting terminal input wire? Although I can find the coordinates in this example, the actual circuit I am drawing does not directly give away the coordinates. For reference, the actual circuit goes like below. (M1.D) to [R, l=$R8$, a=\SI{47}{k\ohm}] ++(0,2) |- (U2.-);

  • babel giving font warnings if I want to use a different series as default
    by David Purton on June 25, 2026 at 4:21 pm

    I want to use a lighter series of a font by default with babel, but I get annoying warnings: LaTeX Font Warning: Font shape `TU/lmr/ul/n' undefined (Font) using `TU/lmr/m/n' instead on input line 7. LaTeX Font Warning: Font shape `TU/lmss/ul/n' undefined (Font) using `TU/lmss/m/n' instead on input line 7. LaTeX Font Warning: Font shape `TU/lmtt/ul/n' undefined (Font) using `TU/lmtt/m/n' instead on input line 7. This code without babel is ok: \documentclass{article} \usepackage{fontspec} \newfontfamily{\notosans}{Noto Sans}[ NFSSFamily = notosans , FontFace = {ul}{n}{Font=Noto Sans Thin} ] \renewcommand*{\familydefault}{notosans} \renewcommand*{\seriesdefault}{ul} \begin{document} zzz \end{document} But this code with babel gives warnings: \documentclass{article} \usepackage{babel} \babelprovide[import, main]{english} \babelfont{notosans}[FontFace = {ul}{n}{Font=Noto Sans Thin}]{Noto Sans} \renewcommand*{\familydefault}{\notosansdefault} \renewcommand*{\seriesdefault}{ul} \begin{document} zzz \end{document} Having to define dummy series for every font seems like it should not be necessary. Is there a way around this?

  • align environment and rcasess doesn't work with make4ht
    by MadyYuvi on June 25, 2026 at 1:20 pm

    Have tried with: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} T &=\begin{rcases} a\\ b \end{rcases} \end{align} \end{document} And run with: make4ht -f jats test.tex "mathml" Then got the error message as: > [ERROR] htlatex: Compilation errors in the htlatex run [ERROR] > htlatex: Filename Line Message [ERROR] htlatex: ? 38 > Only one # is allowed per tab. [STATUS] htlatex: > ...ne}[1]{\color{white}\contour{black}{\Huge# <- 1}}% There should be > exactly one # between &'s, when an \halign or \valign is being set up. > In this case you had more than one, so I'm ignoring all but the first. > [ERROR] htlatex: ? 51 Only one # is allowed per tab. But the same was working fine with \[...\], not sure whether this was bug in make4ht or with my code, please advise.

  • Expanding token list
    by sgmoye on June 25, 2026 at 9:40 am

    Clearly I'm missing something basic. I have a token list (expanded, I think) to \foo, that I want to use as an argument to the \SplitList macro, but apparently it is not expanded enough... \documentclass{article} \usepackage[papersize={5.5in,8.5in},margin=0.6in]{geometry} \usepackage{pgffor} \newcounter{expnum} \newtoks\revsett \NewDocumentCommand{\tohsett}{ >{\SplitList{,}}m }{\ProcessList{#1}{\tohsettaux}} \NewDocumentCommand{\tohsettaux}{m}{\stepcounter{expnum}\preit{#1}} \def\preit#1{\edef\bar{\global\revsett={#1,\the\revsett}}\bar}% reverses order \parindent0pt \begin{document} \toks0={1,2,3} \edef\foo{\the\toks0} This does not work, picks up only one argument:\\ \tohsett{\foo}\theexpnum, \the\revsett \revsett={} \setcounter{expnum}{0} This works, finds all three arguments...\\ \tohsett{1,2,3}\theexpnum, \the\revsett \revsett={} ...as does this\\ \foreach \n in \foo {\preit{\n}}\the\revsett \thispagestyle{empty} \end{document} I feel dumb, overlooking something embarrassingly basic...

  • Vertically Center Text in Figure Environment
    by nebulisx on June 25, 2026 at 2:54 am

    I am trying to vertically center text in an figure in relation to the graphic inserted in the environment Here is the figure environment code I am using \begin{document} ... \begin{figure}[h] \includegraphics[scale=0.15]{test.jpg} \begin{minipage}[c][\columnsep][c]{1.0\linewidth} \hspace{2em} {\Large \today} \end{minipage} \end{figure} \newpage \includepdf[pages=-]{pdf.pdf} \newpage \end{document} This is the result: I can't entirely tell, but from playing with the position options the height of the figure environment may be different from the height of the images. Also this is a problem I am less worried about but for some reason if the figure goes off the page, it goes to the page after the inserted pdf from \includepdf rather than to the next page.

  • Font used in physical review 1939 [closed]
    by Tim on June 25, 2026 at 12:33 am

    Does anyone know the exact font, and latex style used in this paper?

  • command within TikZ does not work
    by Sven on June 24, 2026 at 8:05 pm

    I need to set multiple rows in TikZ matrices that are different ranges from the alphabet. \documentclass[tikz]{standalone} \usepackage{etoolbox} \usepackage{tikz} \usetikzlibrary{matrix} \newcommand{\setrowA}[1]{% \let\myrowA\empty \foreach \j in {#1}{ \begingroup\edef\x{\endgroup \noexpand\gappto\noexpand\myrowA{ \j \&}}\x }% \gappto\myrowA{\\}% } \begin{document} \begin{tikzpicture} \setrowA{A,...,Q,Z,...,R} % here it works \matrix (a) [ampersand replacement=\&,matrix of nodes ]{ % \setrowA{A,...,Q,Z,...,R} % here it does not work \myrowA }; \end{tikzpicture} \end{document} I would like to insert multiple rows into the matrix. But even if I move a single \setrowA{A,...,Q,Z,...,R} into the matrix, latex hangs.

  • LaTeX index formatting: left alignment of multi-line entries [duplicate]
    by test on June 24, 2026 at 7:48 pm

    I want the index entry to remain left-aligned even when it breaks onto a second line. How can I achieve that? \documentclass{scrbook} \usepackage{imakeidx} \usepackage{hyperref} \makeindex \begin{document} \section{First section} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam rutrum aliquet elit in pellentesque. Proin nulla eros, consequat nec convallis vel, vulputate vitae purus\index{purusu rusuru surus Schönheitswahnsinn}. Pellentesque consequat euismod sapien, ac porttitor diam laoreet id. Pellentesque habitant morbi tristique senectus\index{senectus} et netus et malesuada fames ac turpis egestas. Sed vehicula magna orci, nec congue sem congue ac. Sed fringilla aliquam interdum. Nullam quis commodo massa. \printindex \end{document}

  • checkhyphens environment causes compiler to hang
    by Psychonaut on June 23, 2026 at 9:10 pm

    I can't seem to get the testhyphens package to work on my TeX Live 2026 installation. The following minimal example causes whatever compiler I use (pdflatex, xelatex, lualatex) to hang while using 100% of the CPU: \documentclass{article} \usepackage{testhyphens} \begin{document} \begin{checkhyphens} malfunction \end{checkhyphens} \end{document} Below is the terminal output with pdflatex. The part before the ^C is where the hang occurs; everything after is what is printed after I use Ctrl+C to kill the process. $ pdflatex check_hyphenation.tex This is pdfTeX, Version 3.141592653-2.6-1.40.29 (TeX Live 2026) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./check_hyphenation.tex LaTeX2e <2026-06-01> L3 programming layer <2026-06-18> (/opt/texlive/2026/texmf-dist/tex/latex/base/article.cls Document Class: article 2025/01/22 v1.4n Standard LaTeX document class (/opt/texlive/2026/texmf-dist/tex/latex/base/size10.clo)) (/opt/texlive/2026/texmf-dist/tex/latex/testhyphens/testhyphens.sty) (/opt/texlive/2026/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def) No file check_hyphenation.aux. ^C! Interruption. \hook_use:n #1->\if_cs_exist:w __hook #1 \cs_end: \cs:w __hook #1\use_i:nn \f... l.4 \begin{checkhyphens} malfunction \end{checkhyphens} ? Before I report the problem to the package maintainer, I wanted to ask here if it's possible that there's something wrong with my minimal example or TeX environment. And if not, does anyone have a quick workaround I can use until the package is fixed? (I need to check hyphenation points of several long word lists in various languages, which is why I wanted to use the convenient testhyphens package rather than the standard \showhyphens approach.)

  • Coloring a region of a sphere in 3D using TikZ
    by John on June 23, 2026 at 11:15 am

    I have just started using the 3d library in TikZ (and I'm quite new to the tikz package itself). I am modelling a physics problem; I want to draw a sphere that represents my system. The particularity of that sphere is to have regions delimited by parallel circles around the North and South poles; I would like to color these regions in a different shade than the rest of the sphere. I have been looking everywhere and I can't find how to do this (if it is possible); using \path and \fill doesn't seem to work. Sorry if it's a stupid question, thanks for your help! Here is my code (I'm also showing the θ,φ parametrization in my sketch; in commentary, my failed attempts for coloring the North Pole): \documentclass{article} \usepackage{tikz} \usepackage{tikz-3dplot} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[scale=3,tdplot_main_coords] \def\rvec{1.2} \def\thetavec{55} \def\phivec{35} \def\thetaRC{10} \shadedraw[tdplot_screen_coords,ball color = white] (0,0) circle (\rvec); \coordinate (O) at (0,0,0); \tdplotsetcoord{C}{\rvec}{\thetavec}{\phivec} \tdplotsetcoord{UD}{\rvec}{\thetaRC}{90} \tdplotsetcoord{UG}{\rvec}{\thetaRC}{-90} \draw[thick,->] (0,0,0) -- (1.7,0,0) node[anchor=north east]{$x$}; \draw[thick,->] (0,0,0) -- (0,1.7,0) node[anchor=north west]{$y$}; \draw[thick,->] (0,0,0) -- (0,0,1.7) node[anchor=south]{$z$}; \draw[-stealth,very thick,color=green!60!black] (O) -- (C) node[above right=-2] {P}; \draw[dashed, color=green!60!black] (O) -- (Cxy); \draw[dashed, color=green!60!black] (C) -- (Cxy); \tdplotdrawarc[color=green!40!black]{(O)}{0.4}{0}{\phivec}{anchor=north}{\(\varphi\)} \tdplotsetthetaplanecoords{\phivec} \tdplotdrawarc[color=green!40!black,tdplot_rotated_coords]{(0,0,0)}{0.7}{0}{\thetavec}{anchor=south west}{\(\theta\)} \draw[dashed] (\rvec,0,0) arc (0:360:\rvec); \draw[thick] (\rvec,0,0) arc (0:110:\rvec); \draw[thick] (\rvec,0,0) arc (0:-70:\rvec); %\tdplotdrawarc[fill=green!40!black]{(0,0,.995*\rvec)}{.0998}{0}{360}{anchor=south west}{\(\theta\)}; %\path[fill=red,fill opacity=0.5] (0,0,\rvec) -- plot[variable=\t,domain=0:360] (xyz spherical cs:radius=\rvec,longitude=\t,latitude=90-\thetaRC); \end{tikzpicture} \end{document}

  • Beamer: The innertheme `rounded` makes the blocks' title bar very narrow under the `beamerposter` pkg
    by myhsia on June 23, 2026 at 10:41 am

    When I load the rounded inner theme, the title bar of the blocks will become very narrow After I comment the line, everything went well. IMHO: The radius of the corenes should also be scaled under the beamerposter pkg. \documentclass{beamer} \usepackage[width = 45, size = custom, height = 90, orientation = portrait]{beamerposter} % \useinnertheme{rounded} \usecolortheme[named = teal]{structure} \setbeamercolor{block title} {use = structure, fg = structure.fg, bg = structure.fg!20!bg} \setbeamercolor{block body}{% use = block title, parent = normal text, bg = block title.bg!50!bg } \begin{document} \begin{frame} \begin{block}{bar} bar \end{block} \end{frame} \end{document}

  • Fraction bar crashes into superscript exponent in manually-drawn TikZ fraction
    by Oregon Math Tutor on June 22, 2026 at 9:38 pm

    I'm reproducing this educational graphic for my Algebra 1 students: I'm drawing fractions manually (separate nodes for numerator, bar, denominator) rather than \frac{}{} so I can control individual font sizes and colors. Two spacing problems I can't fix: 1. The fraction bar crashes into the 2 superscript on the denominator 5² 2. (where a ≠ 0) has no breathing room below the denominator aⁿ Both stem from the bar and note being placed at hardcoded absolute y-coordinates with no structural relationship to the surrounding nodes. MWE (problem area marked): % ── PROBLEM 1: bar hardcoded at y=1.88, unrelated to midfive.north ── \node[font=\bfseries\fontsize{38}{38}\selectfont] (midfive) at (11.70,1.03) {5}; \node[font=\bfseries\fontsize{22}{22}\selectfont] at ($(midfive.north east)+(0.08,0.10)$) {2}; \draw[line width=1.8mm] (11.18,1.88) -- (12.22,1.88); % bar too close to "2" % ── PROBLEM 2: note hardcoded at y=0.78, unrelated to aden.south ── \node[font=\bfseries\fontsize{41}{41}\selectfont] (aden) at (5.76,1.52) {a}; \node[font=\bfseries\fontsize{24}{24}\selectfont] at ($(aden.north east)+(0.10,0.12)$) {n}; \node[font=\bfseries\fontsize{15}{15}\selectfont] at (4.22,0.78) {(where a $\neq$ 0)}; Full MWE: \documentclass[tikz,border=0pt]{standalone} \usepackage{fix-cm} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[scaled=0.98]{helvet} \renewcommand{\familydefault}{\sfdefault} \usepackage{xcolor} \usetikzlibrary{calc} \definecolor{bggray}{HTML}{ECECEC} \definecolor{purpleA}{HTML}{6B2FEA} \definecolor{purpleB}{HTML}{8B43F5} \definecolor{purpleText}{HTML}{7A34F0} \definecolor{greenText}{HTML}{43D400} \definecolor{redExample}{HTML}{FF2946} \definecolor{textMain}{HTML}{202020} \newcommand{\Avar}{\textcolor{purpleText}{\textbf{a}}} \newcommand{\Nvar}{\textcolor{greenText}{\textbf{n}}} \newcommand{\NegNvar}{\textcolor{greenText}{\textbf{-n}}} \begin{document} \begin{tikzpicture}[x=1cm,y=1cm] \path[use as bounding box] (0,0) rectangle (16,9); \fill[bggray] (0,0) rectangle (16,9); \shade[left color=purpleA,right color=purpleB] (0,6.82) rectangle (16,9); \node[text=white, font=\bfseries\fontsize{28}{30}\selectfont] at (8,8.18) {Negative Exponent Rule}; \node[anchor=north west, text=textMain, align=left, text width=15.0cm] at (0.56,6.47) {% {\bfseries\fontsize{12.6}{18}\selectfont Any nonzero number, \Avar, raised to a negative exponent, \NegNvar,\\[5pt] equals one over that number raised to the positive exponent, \Nvar.} }; \draw[black, line width=1.1mm, rounded corners=1.2mm] (1.02,0.35) rectangle (7.42,4.34); \node[text=purpleText, font=\bfseries\fontsize{53}{53}\selectfont] (abase) at (2.08,2.56) {a}; \node[text=greenText, font=\bfseries\fontsize{26}{26}\selectfont] at ($(abase.north east)+(0.18,0.16)$) {-n}; \node[text=textMain, font=\bfseries\fontsize{34}{34}\selectfont] at (4.18,2.62) {=}; \node[text=textMain, font=\bfseries\fontsize{36}{36}\selectfont] at (5.78,3.42) {1}; \draw[line width=2.0mm] (5.12,2.63) -- (6.44,2.63); \node[text=purpleText, font=\bfseries\fontsize{41}{41}\selectfont] (aden) at (5.76,1.52) {a}; \node[text=greenText, font=\bfseries\fontsize{24}{24}\selectfont] at ($(aden.north east)+(0.10,0.12)$) {n}; \node[text=textMain, font=\bfseries\fontsize{15}{15}\selectfont] at (4.22,0.78) {(where \Avar\ $\neq$ 0)}; % PROBLEM 2 \fill[redExample] (8.86,3.10) rectangle (14.78,4.20); \node[text=white, font=\bfseries\fontsize{21}{21}\selectfont] at (11.82,3.65) {Example}; \node[text=textMain, font=\bfseries\fontsize{44}{44}\selectfont] (fivebase) at (9.62,1.70) {5}; \node[text=textMain, font=\bfseries\fontsize{24}{24}\selectfont] at ($(fivebase.north east)+(0.08,0.12)$) {-2}; \node[text=textMain, font=\bfseries\fontsize{34}{34}\selectfont] at (10.58,1.85) {=}; \node[text=textMain, font=\bfseries\fontsize{34}{34}\selectfont] at (11.70,2.53) {1}; \draw[line width=1.8mm] (11.18,1.88) -- (12.22,1.88); % PROBLEM 1 \node[text=textMain, font=\bfseries\fontsize{38}{38}\selectfont] (midfive) at (11.70,1.03) {5}; \node[text=textMain, font=\bfseries\fontsize{22}{22}\selectfont] at ($(midfive.north east)+(0.08,0.10)$) {2}; \node[text=textMain, font=\bfseries\fontsize{34}{34}\selectfont] at (13.18,1.85) {=}; \node[text=textMain, font=\bfseries\fontsize{34}{34}\selectfont] at (14.35,2.53) {1}; \draw[line width=1.8mm] (13.86,1.88) -- (14.84,1.88); \node[text=textMain, font=\bfseries\fontsize{36}{36}\selectfont] at (14.35,1.00) {25}; \end{tikzpicture} \end{document} What is the canonical way to: Position a manually-drawn fraction bar so it reliably clears a denominator's superscript, using node anchors rather than hardcoded y-coordinates? Add vertical space above a text node relative to the node above it?

  • Does LaTeX Offer Any Fonts Similar to These Two Pinocchio Fonts? [duplicate]
    by Jethro on June 22, 2026 at 8:35 pm

    Does anyone know if either of these two Pinocchio fonts (or a reasonable facsimile thereof) is available in LaTeX (font cataglogue)? Does anyone know the name of these two fonts by which the word "Pinocchio" is typeset in white?

  • inline enumerate broken with \DocumentMetadata
    by user20478285 on June 22, 2026 at 12:48 pm

    Without the \DocumentMetadata, everything works fine. I also tried tagging=off but that makes no difference. Similarly, using the paralist package with inparaenum instead of enumitem with enumerate* yields pretty much the same errors. MWE: \DocumentMetadata{ lang=en-GB, pdfversion=2.0 } \documentclass{article} \usepackage[inline]{enumitem} \begin{document} \begin{enumerate*} \item foo \item bar \end{enumerate*} \end{document} Compiling with a recent enough lualatex: This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) (format=lualatex 2026.6.1) 22 JUN 2026 12:42 system commands enabled. Yields the following errors: ! LaTeX Error: Lonely \item--perhaps a missing list environment. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.12 \item f oo Try typing <return> to proceed. If that doesn't work, type X <return> to quit. ! LaTeX Error: Lonely \item--perhaps a missing list environment. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.13 \item b ar Try typing <return> to proceed. If that doesn't work, type X <return> to quit. ! Too many }'s. \enit@endinlist ...x \fi }\color@endgroup \egroup \ifdim \wd \enit@inbox =\z... l.14 \end{enumerate*} You've closed more groups than you opened. Such booboos are generally harmless, so keep going. ! Package enumitem Error: Misplaced \item. See the enumitem package documentation for explanation. Type H <return> for immediate help. ... l.14 \end{enumerate*} Either there is some text before the first item or the last item has no text ! Undefined control sequence. \enit@endinlist ...@itemerror \fi \fi \enit@after \global \advance \@listdep... l.14 \end{enumerate*} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! LaTeX Error: Something's wrong--perhaps a missing \item. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.14 \end{enumerate*} Try typing <return> to proceed. If that doesn't work, type X <return> to quit. ! Undefined control sequence. \enit@endinlist ...ax \else \ifnum \enit@resuming =\@ne \enit@setresumekeys ... l.14 \end{enumerate*} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. <to be read again> = l.14 \end{enumerate*} A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) ! Undefined control sequence. \enit@setresumekeys ...xpandafter {\enit@savekeys }\xdef \enit@afterlist {#2... l.14 \end{enumerate*} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Undefined control sequence. \enit@setresumekeys ...it@toks }\ifnum \enit@type =\z@ #3\def \enit@noexcs {... l.14 \end{enumerate*} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. <to be read again> = l.14 \end{enumerate*} A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) ! Undefined control sequence. <argument> enit@resume@series@\enit@series l.14 \end{enumerate*} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! You can't use `\relax' after \the. <recently read> \c@ l.14 \end{enumerate*} I'm forgetting what you said and using zero instead. ! Undefined control sequence. \enit@endinlist ...list \fi \ifnum \enit@resuming =\thr@@ \enit@setresumekey... l.14 \end{enumerate*} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. <to be read again> = l.14 \end{enumerate*} A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) ! Undefined control sequence. \enit@setresumekeys ...xpandafter {\enit@savekeys }\xdef \enit@afterlist {#2... l.14 \end{enumerate*} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Undefined control sequence. \enit@setresumekeys ...it@toks }\ifnum \enit@type =\z@ #3\def \enit@noexcs {... l.14 \end{enumerate*} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. <to be read again> = l.14 \end{enumerate*} A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) ! You can't use `\relax' after \the. <recently read> \c@ l.14 \end{enumerate*} I'm forgetting what you said and using zero instead. ! LaTeX Error: \begin{document} ended by \end{enumerate*}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.14 \end{enumerate*} Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it. ! Extra \endgroup. \end ...end#1\endcsname \@checkend {#1}\endgroup \UseHook {env/#1/after}\if... l.14 \end{enumerate*} Things are pretty mixed up, but I think the worst is over. [1 {/usr/local/texlive/2026/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./output.aux) *********** LaTeX2e <2025-11-01> L3 programming layer <2026-05-26> *********** )

  • \xypolynode/\xypolygon without holes
    by Sebastiano on June 22, 2026 at 10:46 am

    In relation to this answer of mine, I would like to understand, considering the cryptic code of xy, how the bullets can be joined together without leaving any gaps, with the tip and tail of the vectors. How to automatically label through the dodecagon with TikZ elegantly? \documentclass{article} \usepackage{amsmath} \usepackage[all]{xy} \xyoption{poly} \begin{document} \def\alphanum{\ifcase\xypolynode\or A\or B\or \overset{a_{10}}{\bullet}\or \overset{a_{11}}{\bullet}\or E\or F\or G\or H\or I\or J\or K\or L\fi} \def\alphalati{\ifcase\xypolynode\or \alpha\or \beta\or \alpha_{10}\or \alpha_{1,11}\or \epsilon\or \zeta\or \eta\or \theta\or \iota\or \kappa\or \lambda\or \mu\fi} \[ \xy/r6pc/: {\xypolygon12{ ~><{} ~*{\alphanum} ~>>{_{\alphalati}} }} \endxy \] \end{document} With the option \xymatrix with \xymatrix{ *=0 I can have the vertices/arrows without holes.

  • How to offset two bezier paths with specific ratio elegantly?
    by Explorer on June 22, 2026 at 8:44 am

    Description: I want to plot the following result: Now I have the following code with visual TikZ editor: \documentclass[tikz,border=2pt]{standalone} \begin{document} \begin{tikzpicture}[ line cap=round,line join=round, scale=3,line width=2pt, ] \clip circle[radius=1cm]; \draw[green] (-0.988,-0.155) .. controls (-0.689,0.093) and (-0.531,0.081) .. (-0.454,0.114) .. controls (-0.099,0.175) and (0.111,0.132) .. (0.402,0.132) .. controls (0.617,0.127) and (0.819,0.132) .. (0.98,0.252) ; \draw[teal] (-0.15,-0.349) .. controls (0.072,-0.109) and (0.231,-0.119) .. (0.274,-0.119) .. controls (0.607,-0.167) and (0.729,-0.431) .. (0.832,-0.53) ; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \draw[blue] (0.41,0.129) -- (0.343,-0.126); \draw[magenta] (-0.988,-0.174) .. controls (-0.732,0.048) and (-0.542,0.071) .. (-0.428,0.096) .. controls (-0.189,0.148) and (0.123,0.124) .. (0.385,0.11) .. controls (0.361,0.027) and (0.338,-0.056) .. (0.314,-0.139) .. controls (0.483,-0.182) and (0.563,-0.256) .. (0.61,-0.303) .. controls (0.666,-0.359) and (0.742,-0.454) .. (0.811,-0.54); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \draw[line width=4pt] circle [radius=1cm]; \end{tikzpicture} \end{document} However, the magenta line was not so perfect, in other word: \draw[magenta] (-0.988,-0.174) .. controls (-0.732,0.048) and (-0.542,0.071) .. (-0.428,0.096) .. controls (-0.189,0.148) and (0.123,0.124) .. (0.385,0.11) .. controls (0.361,0.027) and (0.338,-0.056) .. (0.314,-0.139) .. controls (0.483,-0.182) and (0.563,-0.256) .. (0.61,-0.303) .. controls (0.666,-0.359) and (0.742,-0.454) .. (0.811,-0.54); is no the best practice in my opinion(for example, green one and magenta one was partly overlepped). My question is, if I want the pos=0.7 of green one, and the pos=0.35 of teal one, how to offset(or yshift) the subpath in this case? See the below for pos details: References: https://tex.stackexchange.com/search?q=user%3A16595%20offset%20nfold How to thicken the subpath's segment with specific position? What is a better approach to plot the double path style as a subpath?

  • context: How to use stix2 font and set integral sign upright?
    by Nasser on June 21, 2026 at 9:37 pm

    in lualatex this MWE (thanks to answer Why making integral sign upright works for some fonts but not others?) \documentclass[12pt,oneside]{book} %\usepackage{amsmath} %loaded by unicode below \usepackage{unicode-math} \setmainfont{STIX Two Text} \setmathfont{STIX Two Math}[StylisticSet=8] %sets integral sign up \begin{document} Regular text automatically uses STIX Two Text. \[ \int_a^b f(x) \, dx = F(b) - F(a) \] \end{document} Gives How to get same result in context? This is one trial that google AI gave me % file A.tex \setupbodyfont[stixtwo, 12pt] % 2. Remap the math operator classes for integrals to use the upright stylistic set (ss08) \setupmathrendering[default][alternates={integral=ss08}] \starttext Regular text automatically uses STIX Two Text. Your integral sign is now completely upright: \startformula \int_a^b f(x) \, dx = F(b) - F(a) \stopformula \stoptext Compiled using context A.tex gives I've been talking with google AI on this for last 30 minutes and it gave me about 20 different codes to try, none of them worked. So I told it I will go and ask on tex stackexchange instead. TL 2026

  • How can I use the result of a lua call in defining a macro?
    by modallyFragile on June 21, 2026 at 9:32 pm

    I want to use some lua code, which gives me a string, and then be able to define macros (the latex way) using the result. I would have thought something like this would work: \documentclass{article} \newcommand\foo\directlua{ tex.print("foobar") } \begin{document} % Expected 'foobar', got an error. \foo \end{document} But instead I get an error saying 'missing begin document'. What's going on? Context For context: I have a general macro, defined with Lua, which fetches and prints external information. I want to use this macro to parametise some documents, with the option to override the parameter using a user macro. Something like this: \documentclass{article} % This would go in the .cls file \makeatletter % Default value \let\@email\externaldata{email} % Command for overring \newcommand{\email}[1]{\xdef\@email{#1}}% \makeatother \begin{document} % \@email can still be printed here without the user having to use % \email, because of the externally-sourced fallback. \end{document} Where \externaldata is my (custom, local) macro for getting the externally-defined data. This is why I don't just define the macros inside the Lua code. TIA!

  • Expanding string conditional with expl3
    by wehro on June 21, 2026 at 8:07 pm

    I need a \str_if_eq_p:xn command, a variant of \str_if_eq_p:nn defined by expl3. But I get the following error message: ! Missing number, treated as zero. <to be read again> \cs_set_nopar:Npx l.23 \MyCommand{abcdefg} What is wrong with the following code? \documentclass{article} \ExplSyntaxOn \cs_generate_variant:Nn \str_if_eq_p:nn {xn} \NewDocumentCommand \MyCommand {m} { \bool_lazy_or:nnTF { \str_if_eq_p:xn { \str_range:nnn {#1} {1} {4} } {abcd} } { \str_if_eq_p:xn { \str_range:nnn {#1} {1} {4} } {pqrs} } { The~result~is~true. } { The~result~is~false. } } \ExplSyntaxOff \begin{document} \MyCommand{abcdefg} \MyCommand{pqrstu} \MyCommand{acefg} \end{document}

  • Consistent vertical alignment for open access icons with biblatex-ext
    by user20478285 on June 21, 2026 at 7:55 pm

    How can I have the same alignment for the open access icon from the biblatex-ext package even when used in a quote or itemize environment? The open access icon is aligned properly when using a plain fullcite or in the bibliography and sits on the baseline of the first line. When used in a quote or itemize environment however, the alignment is off. MWE below: \documentclass{article} \usepackage[style=ext-alphabetic]{biblatex} \usepackage[enable=true, symbolpackage=tikz]{biblatex-ext-oa} \addbibresource{biblatex-examples.bib} \begin{document} \fullcite{baez/article} \begin{quote} \fullcite{baez/article} \end{quote} \begin{itemize} \item \fullcite{baez/article} \end{itemize} \printbibliography \end{document}

  • Spaces between steps in xcookybooky and wrapfig
    by Martin on June 21, 2026 at 10:45 am

    Following up this question: I am using Sam Carter's answer to get the spacing right. I modified the "ingredients part" of the xcookybooky package to fit my needs - now there are two tables (using tabular resp. tblr) and an image in this part. If I do this, the wrapfig of the ingredients does not work as intended. Either all steps are "short" or all are "long" but the first ones should be short, the ones after the ingredients long. How can that be changed? Since I modified the package, I tried to add the lines for this part manually in the following MWE - this does not give the same problem but a (maybe) related: No matter which number ist insert after \wraptable, the line of step 4 are too long. MWE: \documentclass{report} \usepackage{xcookybooky} \usepackage[most]{tcolorbox} \usepackage{tabularray} \renewcommand{\step}[1]{% \stepcounter{step}% \begin{tcolorbox}[ height=0.7cm, height plus=10\textheight, size=minimal, blankest ] \lettrine [% lines=2, lhang=0, % space into margin, value between 0 and 1 loversize=0.15, % enlarges the height of the capital slope=0em, findent=1em, % gap between capital and intended text nindent=0em % shifts all intended lines, begining with the second line ]{\thestep}{}% #1 \end{tcolorbox}% \vspace{\baselineskip} } \begin{document} \begin{recipe}{test} \begin{wraptable}[5]{r}{0.34\textwidth} \vspace{\fboxsep-1.75em} \hspace{-0.81em}\colorbox{yellow!20}{\parbox{\dimexpr \linewidth-2\fboxsep+0.81em}{% \begin{tabular}{rl} C & D \\ C & D \\ C & D \\ \end{tabular} \vspace{-1.2em} }} \includegraphics[width=\dimexpr \linewidth+0.8em]{example-image-a} \vspace{0.45em} % same height of ingredients and preparation \hspace{-1.07em} \colorbox{yellow!20}{\hspace{-1\fboxsep}{% \parbox{\dimexpr 0.34\textwidth-3\fboxsep+1.07em}{% \centering \vspace{0.5em} \begin{tblr}{colspec={X[r]X[2,l]}, hlines} A & B \\ A & B \\ A & B \\ A & B \\ A & B \\ A & B \\ A & B \\ A & B \\ A & B \\ A & B \\ A & B \\ A & B \\ A & B \end{tblr} }}} \end{wraptable} \preparation{ \step{First step.} \step{Second step. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin quis lectus sodales velit tempor interdum adipiscing eu tellus. Maecenas ornare enim eget euismod suscipit. Nam luctus aliquam consequat. Donec placerat molestie ullamcorper. Quisque aliquet vehicula feugiat. Phasellus mollis bibendum justo a pulvinar. Fusce at vehicula nulla.} \step{Third step.} \step{Second step. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin quis lectus sodales velit tempor interdum adipiscing eu tellus.} \step{Second step.} \step{Second step.} \step{Second step. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin quis lectus sodales velit tempor interdum adipiscing eu tellus. Second step. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin quis lectus sodales velit tempor interdum adipiscing eu tellus.} \step{Second step. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin quis lectus sodales velit tempor interdum adipiscing eu tellus. Second step. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin quis lectus sodales velit tempor interdum adipiscing eu tellus.} \step{Second step. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin quis lectus sodales velit tempor interdum adipiscing eu tellus. Second step. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin quis lectus sodales velit tempor interdum adipiscing eu tellus.} \step{Sa} \step{Second step. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin quis lectus sodales velit tempor interdum adipiscing eu tellus.} } \end{recipe} \end{document} EDIT: First picture shows the output, second picture indicates the "bounds" the wraptable should have:

  • Converting Display Equtions into image (EPS) format with the existing font using make4ht
    by MadyYuvi on June 21, 2026 at 7:11 am

    My code are: \documentclass{article} \usepackage{mathtools} \RequirePackage[no-math]{fontspec}% \setmainfont[Mapping=tex-text,Ligatures=TeX,Path = ./Fonts/TimesNewRoman/ , UprightFont= TimesNewerRoman-Regular.otf, BoldFont= TimesNewerRoman-Bold.otf, ItalicFont=TimesNewerRoman-Italic.otf, BoldItalicFont=TimesNewerRoman-BoldItalic.otf, ]{TimesNewRoman}% \usepackage[italic,nolessnomore,noplusnominus,noequal,noparenthesis]{mathastext} \input macros.tex \begin{document} \[ CAPE{X_{ict}} \equals {\alpha _0} \plus {\alpha _1}CC{E_{ict}} \plus {\alpha _2}Control{s_{ict}} \plus {\alpha _3}Control{s_{it}} \plus {\psi _i} \plus {\tau _t} \plus {\varepsilon _{ict}} \] \[ E\left\lpar {\left. {CAPE{X_{it}}} \right|Control{s_{it}}} \right\rpar \equals {\alpha _1}E\left\lpar {\left. {CC{E_{it}}} \right|Control{s_{it}}} \right\rpar \plus {\alpha _2}Control{s_{it}} \] \[ CAPE{X_{it}} \minus E\left\lpar {\left. {CAPE{X_{it}}} \right|Control{s_{it}}} \right\rpar \equals {\alpha _1}\left[ {CC{E_{it}} \minus E\left\lpar {\left. {CC{E_{it}}} \right|Control{s_{it}}} \right\rpar} \right] \plus {\varepsilon _{it}} \] \[\widetilde {CAPE{X_{it}}} \equals CAPE{X_{it}} \minus \widehat {CAPE{X_{Controls {\comma} it}}} \] \[\widetilde {CC{E_{it}}} \equals CC{E_{it}} \minus \widehat {CC{E_{Controls {\comma} it}}} \] \[\widetilde {CAPE{X_{it}}} \equals {\alpha _1}\widetilde {CC{E_{it}}} \plus {\varepsilon _{it}} \] \end{document} I'm using XeLaTeX to get the output, and I'm using make4ht to convert the display Math in to EPS format by using the below format: Content for macros.tex \def\equals{=} \def\plus{+} \def\lpar{(} \def\rpar{)} \def\minus{-} \def\comma{,} Definition for config file: \Preamble{xhtml} \Configure{Picture}{.eps} \begin{document} \EndPreamble Definition for .lua file: Make:image("eps$", "dvips -E -o ${output} -pp ${page} ${source}") Conversion done by using: make4ht -x -c config.cfg -e build.lua filename.tex "pic-m,pic-align It produced the error as: [STATUS] make4ht: Conversion started [STATUS] make4ht: Input file: toteqn.tex This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode --- error --- Improper op while scanning font defs in postamble [FATAL] make4ht-lib: Fatal error. Command tex4ht returned exit code 1 C:\texlive\2024\bin\windows\runscript.tlu:922: command failed with exit code 1: texlua c:\texlive\2024\texmf-dist\scripts\make4ht\make4ht -x -c config.cfg -e build.lua toteqn.tex "pic-m,pic-align" But the same was working fine without font definitions in PDFLaTeX and also without the option -x in conversion. How can I convert the equations into EPS format with the same font what I'm using, please advise.

  • Why might this Math.SE reference be presented this way? How do I correct it? [closed]
    by Shaun on June 20, 2026 at 2:23 pm

    Following the "cite" feature of this Math.SE question using bibtex, I get: @MISC {5023954, TITLE = {A reference request for quasisimple groups being one-headed.}, AUTHOR = {Nicky Hekster (https://math.stackexchange.com/users/9605/nicky-hekster)}, HOWPUBLISHED = {Mathematics Stack Exchange}, NOTE = {URL:https://math.stackexchange.com/q/5023954 (version: 2025-01-17)}, EPRINT = {https://math.stackexchange.com/q/5023954}, URL = {https://math.stackexchange.com/q/5023954} } This seems incorrect, and I don't know how to correct it. Please would you recommend how I can get it to be like MSE sample citation?

  • Can "cell nodes" be activated for a single nicematrix?
    by Brian Fitzpatrick on June 20, 2026 at 6:10 am

    I'm writing a document with lots and lots of nicematrices. I'm setting this option at the beginning of the document: \NiceMatrixOptions{no-cell-nodes} This speeds up compilation considerably (as stated in the nicematrix documentation). The problem is that a few of my matrices need cell-nodes to render correctly. Is it possible to activate cell-nodes for just one nicematrix? One of this looks like this: \documentclass{standalone} \usepackage{nicematrix} \NiceMatrixOptions{no-cell-nodes} \begin{document} $ \begin{bNiceMatrix} a_{11} & a_{12} & \Cdots & a_{1n} \\ a_{21} & a_{22} & \Cdots & a_{2n} \\ \Vdots & \Vdots & \Ddots & \Vdots \\ a_{m1} & a_{m2} & \Cdots & a_{mn} \\ \end{bNiceMatrix} $ \end{document}