• Creating an example like environment in beamer
    by Sourav on November 29, 2026 at 12:20 pm

    Consider the following MWE : \documentclass[aspect ratio=169]{beamer} \usetheme{moloch} \setbeamertemplate{theorems}[numbered] \begin{frame}{Some Examples} \begin{example} Foo. \end{example} \end{frame} \begin{frame}{Non examples} % want to have a non example environment \end{frame} \end{document} I want to have a "non example" environment with the same shade of green with which the text "Example 1" is printed. Moreover, I want it to be numbered from beginning as 1,2,... and not be continued from the counter where examples end. How can I do so?

  • The glossary isn't printing
    by Suhrud Ekbote on November 29, 2026 at 12:04 pm

    I have scoured practically every other question on here about this and none of them have helped. I'm using TeXShop on a Mac, and I'm not using a separate document for the glossary since I don't need that many terms. I'm following the Overleaf tutorial and I'm pretty sure it's to the letter. This is my code: \documentclass[10pt, a4paper, twoside]{book} \usepackage{glossaries} \makeglossaries %\newglossaryentry{ } {name= , description={ }} \newglossaryentry{Pupuli Wekili Maro} { name=Pupuli Wekili Malo, description={Publius Vergilius Maro, author of the Aeneid} } \begin{document} \printglossary[title=List of Tokiponisations] \end{document} and this is the output:

  • Concentration/flux map sequence for diffusion (Fick's laws)
    by Sebastiano on November 29, 2026 at 11:26 am

    I would like to create an educational illustration of diffusion (concentration and flux) and Fick’s laws under steady-state conditions from a transdermal patch across a layer $x \in [0, L]$, where the following conditions hold: The concentration decreases linearly: $c(x,t) = C_0(1 - x/L)$, with boundary conditions $c(0,t) = C_0$ and $c(L,t) = 0$, where $L$ is the thickness of the dermis; The diffusive flux is constant: $\q(x,t) = \left(\frac{D C_0}{L}, 0\right)$. Since I do not know how to use Mathematica 14, I would like to create an animation or a sequence of panels in TikZ/PGFPlots similar to the attached image (which I found online, among many similar examples). https://www.researchgate.net/publication/361375376/figure/fig2/AS:1178999434805256@1658106778894/Heatmap-generation-a-10-min-trajectory-is-generated-by-video-b-The-processing-of.png I am not sure how to set up the code so that it can also be easily adapted to model non-stationary (time-dependent) problems. I have done this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[>=Stealth,font=\small] \fill[orange!30,draw=orange!60!black] (0,2.7) rectangle (7,3.4); \node[font=\bfseries] at (3.5,3.05) {CEROTTO: $c(0,t)=C_0$}; \fill[red!18,draw=red!50!black] (0,0.7) rectangle (7,2.55); \node[font=\bfseries] at (1.5,1.65) {PELLE}; \draw[red!70!black,line width=2pt] (0,0.45) -- (7,0.45); \node at (3.5,0.1) {SANGUE: $c(L,t)=0$}; \draw[->,very thick,blue!70!black] (3.5,2.65) -- (3.5,0.8); \node[blue!70!black,right] at (3.6,1.65) {farmaco}; \end{tikzpicture} \end{document}

  • hyperref without zref-clever: ref type in black and numbering in blue
    by Akira on November 29, 2026 at 10:45 am

    I have a tex file taken from this answer: \documentclass{article} % In LaTeX 2026-06-01, alias counters for theorem-like % environments are created automatically. \IfFormatAtLeastTF{2026/06/01} {} {\usepackage{aliascnt}} \usepackage{amsthm} \usepackage{mathtools} % before hyperref \mathtoolsset{showonlyrefs} \usepackage[notcite,notref]{showkeys} \usepackage[hypertexnames=false]{hyperref} \hypersetup{ colorlinks=true, linkcolor=blue, filecolor=blue, urlcolor=red, citecolor=magenta } \numberwithin{equation}{section} \newtheorem{theorem}{Theorem}[section] \IfFormatAtLeastTF{2026/06/01} {% % Current LaTeX: the alias counter is created automatically. \newcommand{\addtheorem}[2]{% \newtheorem{#1}[theorem]{#2}% \ExpandArgs{c}\newcommand{#1autorefname}{#2}% }% } {% % Older LaTeX: create the alias counter using aliascnt. \newcommand{\addtheorem}[2]{% \newaliascnt{#1}{theorem}% \newtheorem{#1}[#1]{#2}% \aliascntresetthe{#1}% \ExpandArgs{c}\newcommand{#1autorefname}{#2}% }% } \addtheorem{corollary}{Corollary} \addtheorem{lemma}{Lemma} \addtheorem{proposition}{Proposition} \theoremstyle{definition} \addtheorem{definition}{Definition} \addtheorem{assumption}{Assumption} \addtheorem{remark}{Remark} \addtheorem{example}{Example} \renewcommand{\sectionautorefname}{Section} % Make \autoref compatible with mathtools' showonlyrefs. \NewCommandCopy{\originalautoref}{\autoref} \RenewDocumentCommand{\autoref}{s m}{% \noeqref{#2}% \IfBooleanTF{#1} {\originalautoref*{#2}}% {\originalautoref{#2}}% } \begin{document} \section{Introduction} \label{chap} \begin{lemma} \label{lem:1} If $U$, then $V$. \end{lemma} \begin{theorem} \label{thm} If A then \begin{align} B & = C, \label{thm:eq1} \\ X & = Y, \label{thm:eq4} \\ U & = V. \label{thm:eq5} \end{align} \end{theorem} From \autoref{thm} and \autoref{lem:1} in \autoref{chap}, we have \autoref{thm:eq1} and \autoref{thm:eq5}. \end{document} In above screenshot, Theorem 1.2 is blue. I would like to keep the numbering 1.2 blue, but Theorem black. Also, the whole Theorem 1.1 remains clickable. Could you explain how to do so? With zref-clever, the answers are available in here and here. Unfortunately, zref-clever seems to not be maintained anymore.

  • OpTeX: a usable template for starters
    by Akira on November 29, 2026 at 10:30 am

    Recently, I have come to know OpTeX https://petr.olsak.net/optex. With the help of AI, I am able to create a usable template, which mimics what I already have with LaTeX: Section numbering Theorem environments Cross-reference numbering AI tends to produce unnecessarily complicated code. OpTeX is niche and I am unable to evaluate the correctness of below macro. I hope to have a robust template. Could you have a check on it below? % ------------------------------------------------------------------ % 1) "Smart" cross-reference label % -- sections/chapters: store "Chapter 3" / "Section 2.4" / "Subsection 2.4.1" \_def\_printrefnum [#1@#2]{\_leavevmode % we must be in horizontal mode \_ifnonum \_else #1\_numprint\_therefnum #2\_fi \_edef\_zcrefword{\_ifcase\_sectionlevel\_relax \_or Chapter\_or Section\_or Subsection\_fi}% \_wlabel {\_zcrefword~\_therefnum}% \_ifnotoc \_else \_incr \_tocrefnum \_dest[toc:\_the\_tocrefnum]% \_ewref\_Xtoc{{\_the\_sectionlevel}{\_secinfo}% {\_therefnum}{\_theoutline}\_detokenize\_ea{\_savedtitle}}% \_fi \_gdef\_theoutline{}% } % -- theorem/lemma (\numberedpar): store "Theorem 2.3" / "Lemma 2.4" \_def \_printnumberedpar #1#2{\_par \_noindent\_wlabel {#2~\_numprint{#1}}% {\_bf #2 \_numprint{#1}\_istoksempty\_opt\_iffalse \_space \_the\_opt \_fi.}\_space \_ignorespaces } \_def\zcref{\ref} \_def\eqref{\ref} % equations already store "(2.3)" % ------------------------------------------------------------------ % 2) Suppress numbering of non-referenced equations \refdecl{% \_def\_Xusedref#1{\_expandafter\_gdef\_csname zuse:#1\_endcsname{}}% } \openref % make sure the .ref file exists so \_wref below is not a no-op \_let\_OrigOpTeXref=\ref \_def\ref[#1]{\_wref\_Xusedref{{#1}}\_OrigOpTeXref[#1]} \_def\_ineqmark{\_incr\_dnum \_ifx\_lastlabel\_undefined \_ifinner\_else\_eqno\_fi \_wlabel\_thednum \_hbox{\_numprint\_thednum}% \_else \_ifcsname zuse:\_lastlabel\_endcsname \_ifinner\_else\_eqno\_fi \_wlabel\_thednum \_hbox{\_numprint\_thednum}% \_else \_decr\_dnum % give the number back \_wlabel{}% % \wlabel still creates the \dest[ref:...] destination itself \_fi \_fi } \_def\_thednum {(\_othe\_chapnum.\_othe\_secnum.\_the\_dnum)} % ------------------------------------------------------------------ % 3) General styling \hyperlinks \Blue \Blue % internal links blue \everytocline={\Blue} \_parskip=4pt plus2pt minus1pt \fontfam[LMfonts] \typosize[10/12] \fontfam[Heros] \fontfam[LMfonts] % register \Heros as a family switch, then \def\theorem {\numberedpar A{Theorem}} \def\endtheorem {\par} \def\lemma {\numberedpar A{Lemma}} \def\endlemma {\par} \_def\_titfont{\_scalemain\_typoscale[\_magstep4/\_magstep5]\_boldify\Heros} \_def\_printsec#1{\_par \_abovetitle{\_penalty-151}\_bigskip {\_secfont \_noindent \_raggedright \_printrefnum[@.\_quad]#1\_nbpar}\_insertmark{#1}% \_nobreak \_belowtitle{\_medskip} \_firstnoindent } \tit OpTeX \maketoc \label[sec:math] \sec Math With OpTeX we could write maths. Equations can be referenced. For example, see \eqref[eqn:def-m] in \zcref[sec:math]. \label[eqn:famous-emc] $$ E = mc^2 \eqmark $$ with \label[eqn:def-m] $$ m = {m_0 \over \sqrt{1 - {v^2\over c^2}}} \eqmark $$ \label[lem:testlemma] \lemma Not all abc \endlemma As we see in \zcref[lem:testlemma], the situation is fine. \outlines{1} \bye

  • \ifnum throwing error despite using \pgfmathtruncatemacro
    by Stephanie on November 28, 2026 at 9:58 pm

    I'm trying to use the result of a calculation to control flow within a tikzpicture. After consulting this answer and this reddit post, I switched to using the \pgfmathtruncatemacro command and added \relax to the \ifnum statement. However, the \ifnum statement flagged below still gives me the errors Missing number, treated as zero. and Missing = inserted for \ifnum. I also tried several solutions from here and here related to the fpu library, but everything I tried either gave me additional errors, or had no apparent effect. The calculations themselves appear to be correct, so I don't think it's the over/underflow errors referenced in that last link. The code below does run, but the \ifnum statement always executes the True condition whether or not that's actually the case. Is there something else I can do to force \testrefrtheta to be an integer? \documentclass[border=5pt]{standalone} \usepackage{ifthen,tikz,pgfplots} \begin{document} \begin{tikzpicture} % Indices of refraction \def\nnone{1.0} \def\nntwo{2.4} % reference scales \def\H{1.25} \def\normx{-2} % x-component of the incident ray \def\vecx{0.7875} %n_1 sin(theta_1) = n_2 sin(theta_2) % Calculate incident sin(theta) = 0.63 \pgfmathsetmacro{\incidentsin}{\vecx/\H} %sintheta_i=x/y % Calculate refracted sin(theta) = n_1 sin(theta_1) / n_2 = 0.2625 \pgfmathsetmacro{\refrsin}{\nnone*\incidentsin/\nntwo} % Use inverse sin to calculate refracted angle, and print in red as a test -> 15.22 degrees \pgfmathsetmacro{\refrtheta}{asin(\refrsin)} % Use truncatemacro to get the integer (rounded down) of the refracted angle, and print in dark green as a test \pgfmathtruncatemacro{\testrefrtheta}{floor(\refrtheta)} \node[red] at (\normx,0) {\refrtheta}; \node[green!50!black] at (\normx*2,\H/2) {\large \testrefrtheta}; % Print refracted angle in different colors depending on its value %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This is where the error comes in - it always runs the first command even if that command is false \ifnum {\testrefrtheta} > {90}\relax% \node[blue] at (1.75,\H) {\Large \testrefrtheta}; \else \node[red] at (1.75,\H) {\Large \testrefrtheta}; \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{tikzpicture} \end{document}

  • Generate {4,5} hyperbolic tiling with LuaDraw. I cannot figure out a simple way to generate them, and would appreciate an explanation as to how I can
    by Jasper on November 28, 2026 at 3:29 pm

    Note: As I am still a beginner in luadraw, I had substantial help from AI to write the MWE of this question. I've mapped a Cartesian grid onto the hyperboloid and then projected it onto the Poincaré disk. \documentclass[border=3.14mm]{standalone} \usepackage[3d]{luadraw} \colorlet{tileblue}{blue!30} \colorlet{tileorange}{orange!80} \begin{document} \begin{luadraw}{name=grid} local ld = luadraw local M = ld.pt3d.M local sqrt, sin, cos, pi = math.sqrt, math.sin, math.cos, math.pi local O, I, K = M(0,0,0), M(1,0,0), M(0,0,1) local n, h = 4, .5 local g = ld.graph3d:new{ window3d={-8,8,-4,4,-4,4}, viewdir="xOy", window={-8,8,-3.2,4.2}, size={17,7.86,1} } local function H(p) return M(p.x,p.y,sqrt(1+p.x^2+p.y^2)) end local function P(p) return M(p.x,p.y,0)/(1+p.z) end local function disk(p) return P(H(p)) end local function view(p) p = ld.rotate3d(p,15,{O,K}) return ld.rotate3d(p,-43,{O,I}) end local L, R = M(-5.4,.8,0), M(5.5,.8,0) local function source(p) return L+view(p) end local function target(p) return R+2.1*p end local function surface(p) return view(H(p)) end local function boundary(f,i,j) local A = {M(i*h,j*h,0), M((i+1)*h,j*h,0), M((i+1)*h,(j+1)*h,0), M(i*h,(j+1)*h,0)} local B = {} for k=1,4 do local a,b = A[k],A[k%4+1] for l=0,23 do B[#B+1] = f(a+(l/24)*(b-a)) end end return B end local function circle(f) local A = {} for k=0,179 do local t=2*pi*k/180 A[#A+1]=f(M(cos(t),sin(t),0)) end return A end local facets, edges = {},{} local function onDisk(p) return target(disk(p)) end g:Dpolyline3d(circle(view),true,"gray,fill=gray!8") g:Dpolyline3d(circle(target),true,"black,fill=gray!8") for i=-n,n-1 do for j=-n,n-1 do local color = (i+j)%2==0 and "tileblue" or "white" if i==0 and j==-3 then color="tileorange" end g:Dpolyline3d(boundary(source,i,j),true,"black,thin,fill="..color) g:Dpolyline3d(boundary(onDisk,i,j),true,"black,thin,fill="..color) g:Dpolyline3d(boundary(function(p) return view(disk(p)) end,i,j), true,"gray,very thin,fill="..color) facets[#facets+1] = ld.surface(function(u,v) return surface(M(u,v,0)) end,i*h,(i+1)*h,j*h,(j+1)*h,{8,8}) facets[#facets+1] = {mode=5,color=color,contrast=.3} edges[#edges+1] = boundary(surface,i,j) end end local C = M(0,0,-1) local A = {M(0,-1.5,0),M(.5,-1.5,0),M(.5,-1,0),M(0,-1,0)} for _,p in ipairs(A) do g:Dpolyline3d({view(C),view(H(p))},false,"orange!90!black,thin") end g:Dmixfacet(table.unpack(facets)) for _,B in ipairs(edges) do g:Dpolyline3d(B,true,"black,very thin") end for _,p in ipairs(A) do g:Dpolyline3d({view(disk(p)),view(H(p))},false,"orange!90!black,thin,dashed") end g:Dlabel3d("$C=(0,0,-1)$",view(C)+M(0,-.27,0),{}) g:Dlabel3d("Cartesian grid",L+M(0,-2.25,0),{}) g:Dlabel3d("Hyperboloid",M(0,3.75,0),{}) g:Dlabel3d("Poincar\\'e disk",R+M(0,-2.5,0),{}) g:Dpolyline3d({M(-3,.8,0),M(-2.55,.8,0)},false,"->,thick") g:Dpolyline3d({M(2.75,.8,0),M(3.15,.8,0)},false,"->,thick") g:Dlabel3d("$H$",M(-2.77,1.05,0),{}) g:Dlabel3d("$P$",M(2.95,1.05,0),{}) g:Show() \end{luadraw} \end{document} What I'd like to do is generate a tiling in the Cartesian plane such that its image under these maps is a regular hyperbolic tiling, say {4,5} (https://en.wikipedia.org/wiki/4-5_kisrhombille). How would one go about generating such tiles? I cannot figure out a simple way to generate them, and would appreciate an explanation as to how I can. My goal is to make a Poincaré animation, similar to this one of the Klein disk that I made with AI, and do not understand the tiling process of. Though, I do understand how to set up the map once tiled.

  • Shifting endpoint of an arrow
    by Jo Jo on November 28, 2026 at 1:10 pm

    I'm trying to shift at custom the point where the left arrow ends by using xshift and yshift without success. Any hint? Below, find my code (compiled via LuaLaTeX). Many thanks. \documentclass{beamer} \usepackage{nicematrix} \usepackage{tikz} \usetikzlibrary{tikzmark,calc,positioning,fit,arrows,shapes,backgrounds,shapes.geometric,arrows.meta,patterns.meta,decorations.pathreplacing} \begin{document} \begin{frame} \begin{equation*} \begin{bNiceArray}{cccc}[margin] \CodeBefore \begin{tikzpicture} \fill [green!50!black,opacity=0.7] ([xshift=3pt,yshift=-2pt]1-|1) rectangle ([xshift=-3pt,yshift=-1pt]5-|2); \end{tikzpicture} \Body \tikzmarknode[outer sep=3pt]{x}{v_{11}} & v_{12} & \ldots & v_{1n} \\[5pt] v_{21} & v_{22} & \ldots & v_{2n} \\[5pt] \vdots & \vdots & \ddots & \vdots \\[5pt] v_{n1} & v_{n2} & \ldots & v_{nn} \end{bNiceArray} \begin{bNiceArray}{cccc}[margin] \tikzmarknode[outer sep=4pt]{a}{\lambda_{1}} & 0 & \ldots & 0 \\[5pt] 0 & \lambda_{2} & \ddots & \vdots \\[5pt] \vdots & \ddots & \ddots & 0 \\[5pt] 0 & \ldots & 0 & \lambda_{n} \CodeAfter \tikz \draw[color=green!50!black,very thick,opacity=0.7] (1-1) circle (3mm); \end{bNiceArray} \end{equation*} \begin{tikzpicture}[remember picture,overlay] \draw[green!50!black,<->,opacity=0.7] ([xshift=-8pt, yshift=10pt]x) edge [out=25, in=130] (a); \end{tikzpicture} \end{frame} \end{document} Current result:

  • Excessing compile time when loading multiple bibliographies
    by Miguel Forteza on November 28, 2026 at 12:20 pm

    I have to manage a "big" project with several sections, each with its own bibliography. I've organized the file with multiple subfiles. Example: Articulos Articulo Bib Bibliografia.bib Img Tex Biblioteca Bib Libro1.bib Libro2.bib Libro3.bib Libro4.bib Libro5.bib Img Tex Biografias Bib Bibliografia.bib Img Tex Biografia.tex Then I go to the main and write: \begin{refsection}[Revista/Biografias/Bib/Bibliografia] \input{Revista/Biografias/Tex/Biografia} \printbibliography \end{refsection} And I'm using \RequirePackage[ backend = biber, style = numeric, sorting = none ]{biblatex} And it will just exceed compile time. I've tried loading the package without the options and things like that but it does not work. What am I doing wrong? Do I have to change the platform (overleaf) where I work? Is it that there are a lot of .bib files? I won't compile either if I don't write the first chunk of code, just loading the packages makes it not compile.

  • Forest: box around tree with attached nodes
    by Guido Vanden Wyngaerd on November 28, 2026 at 9:33 am

    I'm trying to get a box around a (sub)tree, which should look like this: This is the MWE: \documentclass{article} \usepackage{forest} \useforestlibrary{linguistics} \forestapplylibrarydefaults{linguistics} \begin{document} \begin{forest} [,no edge, tikz={ \node[draw=gray!50,line width=2pt,rounded corners,fit to=tree] (wksp) {}; } [JP,tikz={\node[left] (bell) at (.west) {\emph{bell}$\quad\leftrightarrow\quad$};} [J] [EvalP,name=EvalNP [Eval] [AP [\phantom{text},roof]]]] [PlP,tikz={\node[right] (e) at (.east) {$\quad\leftrightarrow\quad$\emph{e}};} [Pl] [MP [M,name=M]]]] \end{forest} \end{document} But it produces this, with the bell outside of the box, and I want it inside: I've tried various solutions (eg with fit=(bell)(M)), but this produces an error. The hack that I currently use is to attach an invisible (phantom) node to the top (unlabelled) node, which works but needs a lot of tinkering to come out right, so I am wondering if there is a better way.

  • Filling stereographically projected spherical tiles in LuaDraw
    by Jasper on November 28, 2026 at 6:47 am

    Note: I had substantial help from AI to write the MWE of this question. I am stereographically projecting a tiled sphere onto its equatorial plane. Each projected tile is clipped against a rectangular prism before being filled. Due to the singularity of stereographic projection at the north pole, the tile containing that point maps to an unbounded region and is filled incorrectly. How can the projected tiles be filled correctly within the clipping region using luadraw? As I am still learning, I had substantial help from AI to write this script: \documentclass[ tikz, border=3.14mm ]{standalone} \usepackage[3d]{luadraw} \colorlet{tileblue}{blue!55} \colorlet{tileorange}{orange!65} \begin{document} \begin{luadraw*}{name=spherical-tiling} local ld = luadraw local M = ld.pt3d.M local sin, cos, pi = math.sin, math.cos, math.pi local r = 4.5 local frames = 48 local correct = false local axis = {M(0,0,0), M(1,1,0)} local equator = {M(0,0,0), M(0,0,1)} local prism = ld.parallelep( M(-r,-r,-1), M(2*r,0,0), M(0,2*r,0), M(0,0,2) ) local frame = { M(-r,-r,0), M(r,-r,0), M(r,r,0), M(-r,r,0) } local function stereo(p) return M(p.x,p.y,0)/(1-p.z) end local function boundary(f,a,b,c,d) local P = {} local function edge(u1,v1,u2,v2) for k = 0,59 do local t = k/60 local p = f(u1+t*(u2-u1),v1+t*(v2-v1)) if #P == 0 or ld.pt3d.abs(p-P[#P]) > 1e-10 then table.insert(P,p) end end end edge(a,c,b,c) edge(b,c,b,d) edge(b,d,a,d) edge(a,d,a,c) if ld.pt3d.abs(P[1]-P[#P]) < 1e-10 then table.remove(P) end return P end local function addtile(scene,facets,color) if #facets > 0 then table.insert(scene,facets) table.insert(scene,{ mode=5, color=color, contrast=.3, twoside=false }) end end for k = 0,frames-1 do local angle = 12-9*k/(frames-1) local g = ld.graph3d:new{ window3d={-r,r,-r,r,-1,1}, viewdir={35,55}, adjust2d=true, size={14,14} } local function sphere(u,v) return ld.rotate3d( M(sin(v),cos(v)*cos(u),cos(v)*sin(u)), angle,axis ) end local function projection(u,v) return stereo(sphere(u,v)) end local north = ld.rotate3d(M(0,0,1),-angle,axis) local uN = math.atan(north.z,north.y) if uN < 0 then uN = uN+2*pi end local vN = math.asin(north.x) local upper, lower, plane = {}, {}, {} local pole = nil for i = 0,11 do for j = 0,11 do local a,b = i*pi/6, (i+1)*pi/6 local c,d = -pi/2+j*pi/12, -pi/2+(j+1)*pi/12 local containsPole = a < uN and uN < b and c < vN and vN < d local color = (i+j)%2 == 0 and "tileblue" or "tileorange" if containsPole then color = "red" end -- Spherical tile, split at the equatorial plane. local F = ld.surface(sphere,a,b,c,d,{8,8}) local A,B = ld.cutfacet(F,equator) addtile(upper,A,color) addtile(lower,B,color) -- Project and clip the closed tile boundary. local P = boundary(projection,a,b,c,d) P = ld.clip3d({P},prism,false) if #P > 0 then if containsPole then pole = P else table.insert(plane,{polygon=P, color=color}) end end end end -- Draw in depth order: lower hemisphere, plane, upper hemisphere. g:Dmixfacet(table.unpack(lower)) g:Dpolyline3d(frame,true, "draw=black,thin,fill="..(correct and "red" or "white") ) for _,tile in ipairs(plane) do g:Dpolyline3d(tile.polygon,true,"draw=none,fill="..tile.color) end if pole and not correct then g:Dpolyline3d(pole,true,"draw=red,fill=red,fill opacity=.45") end g:Dpolyline3d(frame,true,"black,thin") g:Dmixfacet(table.unpack(upper)) g:Sendtotex() end \end{luadraw*} \end{document}

  • How to acquire the `.cls`/`.sty` directly from CTAN on the url without manually compiling the `.dtx`?
    by Explorer on November 28, 2026 at 1:54 am

    For the test and debug reason, I need a .cls/.sty quickly, but with the package which use literal programming, on CTAN, it only provides the original .dtx form. I know that by compiling the .dtx, the .cls/.sty form would be release, together with the manual. But if the package was quite large and complicated, or if some fonts issues, I don't think compile .dtx always works on my local machine, and that was time-consuming, I only need .cls for a quick test. So, I want to download the .cls/.sty directly from the website of CTAN. Let's take the example of westlakethesis package. No matter whether I click the "Sources" or "Download", I could only see the .dtx file: As you could see, there are only .dtx, for the quick test purpose, I need the westlakethesis.cls from the website. I could find that in my local directory: \texlive\2026\texmf-dist\tex\latex\westlakethesis\westlakethesis.cls But I can't find it anywhere on CTAN... Since there exist .cls in my local texmf-dist, I think CTAN or somewhere might probably have pre-compiled the .dtx, and transformed them to .cls, how could I get the .cls directly from the website? I have found similar links, but imho, none of them answer "How to download the .cls/.sty directly from the website": Where can I find which packages are available as tds.zip? Generate .sty file from CTAN zip Where to find the .sty file? Edit1 Since Gerd Neugebauer pointed out here: Since a few days we have added the respective link to the CTAN web site. Whenever a tds.zip file is present then a download link is provided on the package page and the tex-archive browse page. But not too many packages do so? The breqn does: But the colortbl not: I didn't conduct any statistics, but based on my personal experience, it's quite rare to see the "TDS archive" section in any package... Edit2 Since Paul Gessler has pointed out here: However, since this package was distributed to CTAN as a .dtx rather than a .sty, the simplest option is to download the .sty file from the TeX Live sources for the package How could I get the link of: http://www.tug.org/texlive//devsrc/Master/texmf-dist/tex/latex/aligned-overset/ for every packages on CTAN? Where should I click? And is that all the package with .dtx has similar links? Edit3 —— A (real) example case why I want to acquire .cls/.sty directly Let's consider the following case, it could be a preceeding to my previous one, we could see the listings example. Now let's see the version and release: listings-v1.11b 2025-11-14 listings-v1.11 2025-11-07 listings-v1.10c 2024-09-24 listings-v1.10a 2024-03-23 listings-v1.10(the frozen version on TL2024) Assuming that a user reported that a code behaves wrong with v1.10, but as my local test, the latest version v1.11b works fine. To find out which version exactly cause the difference, the most straightforward approach is to directly obtain all the .sty files and test them in the current temporary test folder. (Or, maybe svn could do something like git bisect, but that was not quite in-topic here) In the example of listings, I need to unpacked five .inss to get five .sty files. And in this case, a single listings.sty was enough for the debug use here. I want to disregard this example which spans across major TL25 and TL26 versions, here. In some cases where the releases are sufficiently frequent, it's quite possible that multiple versions of a year's release will occur. Therefore, the approach of using platforms like Overleaf to switch versions to narrow down the investigation scope is certainly feasible, but it has gone beyond the scope of this discussion. This example is merely intended to illustrate "why I want to quickly download multiple cls/sty files", and I find the existence of dtx/ins quite troublesome...

  • Recent error with zref-vario (which isn't the culprit)
    by Denis Bitouzé on November 27, 2026 at 7:57 pm

    The following MCE: \documentclass{article} \usepackage{zref-clever,zref-vario} \begin{document} \section{Section 1} \label{sec:section-1} \newpage A reference to \zcref{sec:section-1}. A reference to \zvref{sec:section-1}. \end{document} used to work nicely, e.g. with the TeX Live 2025 but, with an up to date TeX Live 2026, that's not the case anymore, \zvref being involved: ! LaTeX Error: The key 'zref-clever/reference/noabbrevfirst' is unknown and is (LaTeX) being ignored. For immediate help type H <return>. ... l.9 A reference to \zvref{sec:section-1} . ? Note that, if the compilation is forced, the resulting document is as expected. Also, note that zref-vario isn't the culprit since the diff of the list files between a working and a non working versions is: $ diff list-files-2025.txt list-files-2026.txt 2,3c2,3 < LaTeX2e <2025-06-01> patch level 1 < L3 programming layer <2025-10-24> --- > LaTeX2e <2026-11-01> > L3 programming layer <2026-11-16> 5a6 > 7,8c8,9 < article.cls 2025/01/22 v1.4n Standard LaTeX document class < size10.clo 2025/01/22 v1.4n Standard LaTeX file (size option) --- > article.cls 2026-06-04 v1.4n Standard LaTeX document class > size10.clo 2026-06-04 v1.4n Standard LaTeX file (size option) 11c12 < zref-base.sty 2025-06-08 v2.36 Module base for zref (HO) --- > zref-base.sty 2026-09-16 v2.38 Module base for zref (HO) 16,17c17,18 < pdftexcmds.sty 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO) < iftex.sty 2024/12/12 v1.0g TeX engine tests --- > pdftexcmds.sty 2026-10-28 v0.34 Utility functions of pdfTeX for LuaTeX (HO) > iftex.sty 2026/11/17 v1.0h TeX engine tests 20,21c21,22 < zref-user.sty 2025-06-08 v2.36 Module user for zref (HO) < zref-abspage.sty 2025-06-08 v2.36 Module abspage for zref (HO) --- > zref-user.sty 2026-09-16 v2.38 Module user for zref (HO) > zref-abspage.sty 2026-09-16 v2.38 Module abspage for zref (HO) 22a24 > latex-firstaid-pkg-zref-clever.ltx 25,26c27,28 < varioref.sty 2025/01/14 v1.6g package for extended references (FMi) < l3backend-pdftex.def 2025-10-09 L3 backend support: PDF output (pdfTeX) --- > varioref.sty 2026/06/06 v1.6j package for extended references (FMi) > l3backend-pdftex.def 2026-11-16 L3 backend support: PDF output (pdfTeX) Do you see what's going on and how to fix this problem?

  • Coordinates in pgfplots
    by Patricio on November 27, 2026 at 2:04 pm

    I'm trying to label a figure created with pgfplots in a beamer document, but my labels do not appear where I expect them. I am guessing that the problem is that coordinates for labels are not the same than those of the figure itself, but I do not know how to address this. For example, in my MWE, I expected the label to be placed somewhere near the top right end of the ray, but I get this instead: My code is \documentclass{beamer} \usepackage{pgfplots} \begin{document} \begin{frame} \begin{figure} \begin{tikzpicture} \begin{axis}[ ticks=none, axis x line=bottom, axis y line=left, xmin=0,xmax=10, ymin=0,ymax=10] \addplot[samples=2,thin,black,dotted,domain=0:10] {x*(3/2)}; \path (7,9) node {$\mathit{MP}_x=\text{Undefined}$}; \end{axis} \end{tikzpicture} \end{figure} \end{frame} \end{document}

  • Listings "Couldn't load requested language"
    by Frisket on November 26, 2026 at 3:22 pm

    [NOT a duplicate of the old https://tex.stackexchange.com/questions/212069/listings-cannot-load-requested-language] I need to use many language variants with listings but I cannot find the syntax needed to load them. Here is an MWE of two of them (one adding new commands the LaTeX, the other to represent Word XML; in the live document there will be a dozen or more following the same pattern): \documentclass{article} \usepackage{listings} \lstdefinelanguage{[LaTeX]TeX}{morekeywords={% PassOptionsToPackage,RequirePackage}} \lstdefinelanguage{[OOXML]XML}{morekeywords={% w:p,w:pPr,w:pStyle,w:rPr,w:rFonts,w:r,w:t,w:lang}} \lstloadlanguages{LaTeX,OOXML} %\lstloadlanguages{[LaTeX]TeX,[OOXML]XML} %\lstloadlanguages{{[LaTeX]TeX},{[OOXML]XML}} \begin{document} test document \begin{lstlisting}[language={[OOXML]XML}] <w:p w:rsidR="08A306C6" w:rsidP="3E2C60CC" w:rsidRDefault="08A306C6" w14:paraId="0B6FAFDD" w14:textId="2DE30FBD"> ... </w:p> \end{lstlisting} \end{document} I have tried the three variants of the language naming syntax as shown commented out above, but all of them result in the same error: (/usr/share/texlive/texmf-dist/tex/latex/listings/lstlang3.sty) ! Package Listings Error: Couldn't load requested language. See the Listings package documentation for explanation. Type H <return> for immediate help. ... l.7 \lstloadlanguages{LaTeX,OOXML} I can see from the old discussion in Listings "cannot load requested language" that there have been bugs in the specification of supported languages, but in this case I am invoking new variants on them, building on the existing ones. What have I missed here?

  • Equation compiles in one file but not another [closed]
    by user167131 on November 25, 2026 at 6:44 pm

    The following code will simply not compile in a file I am trying to prepare for journal submission. Using TexShop 5.57 on a Macbook Pro (Tahoe 26.6.2). Here's the preamble: \documentclass[referee,sn-chicago,pdflatex]{sn-jnl}% Math and Physical Sciences Reference Style %\usepackage{sectsty} %\usepackage{titling} \usepackage{secdot} \usepackage{amssymb,latexsym, amsmath, amscd, calc} \DeclareMathOperator{\interior}{int} \usepackage[mathscr]{euscript} \usepackage{array} \usepackage{amsthm} \usepackage{tabstackengine} \usepackage{mathtools} \usepackage{natbib} \usepackage{manyfoot} \usepackage{xcolor} %\usepackage{biblatex-chicago} \usepackage{bm} \usepackage{setspace} \doublespacing \usepackage[bottom]{footmisc} \usepackage{arydshln} Here's the equation: \begin{equation*} B_\epsilon(f) \equiv \left\{ g \in C^\infty(P^{k+1},R) \mathrel{\big\vert} (g(x) - f(x) )^2 + \sum \limits_{i=1}^{k+1} \left | \dfrac{\partial g(x)-\partial f(x)}{\partial x_i} \right |^2 < \epsilon, \; x \in P^{k+1} \right\} \end{equation*} Here's the error: I don't like to dump questions on the Community unless I've gotten bloody banging my head against the wall trying to figure out the answer. Again, the equation block looks fine to me. I have no idea what's going on. Any and all efforts appreciated. using the class from https://raw.githubusercontent.com/godkingjay/springer-nature-latex-template/refs/heads/master/sn-jnl.cls Test document: \documentclass[referee,sn-chicago,pdflatex]{sn-jnl}% Math and Physical Sciences Reference Style %\usepackage{sectsty} %\usepackage{titling} \usepackage{secdot} \usepackage{amssymb,latexsym, amsmath, amscd, calc} \DeclareMathOperator{\interior}{int} \usepackage[mathscr]{euscript} \usepackage{array} \usepackage{amsthm} \usepackage{tabstackengine} \usepackage{mathtools} \usepackage{natbib} \usepackage{manyfoot} \usepackage{xcolor} %\usepackage{biblatex-chicago} \usepackage{bm} \usepackage{setspace} \doublespacing \usepackage[bottom]{footmisc} \usepackage{arydshln} \begin{document} Here's the equation: \begin{equation*} B_\epsilon(f) \equiv \left\{ g \in C^\infty(P^{k+1},R) \mathrel{\big\vert} (g(x) - f(x) )^2 + \sum \limits_{i=1}^{k+1} \left | \dfrac{\partial g(x)-\partial f(x)}{\partial x_i} \right |^2 < \epsilon, \; x \in P^{k+1} \right\} \end{equation*} \end{document}

  • How to avoid extra vertical space added by \AddToHook{env/⟨env⟩/end}
    by Denis Bitouzé on November 25, 2026 at 6:00 pm

    The following MCE (derived by drastically simplifying a rather complex real-world use case): \documentclass{article} \usepackage{tcolorbox} \ExplSyntaxOn \NewDocumentEnvironment{myfloat}{ +b }{ \hbox_set:Nn \l_tmpa_box { #1 } \begin{tcolorbox}[size=minimal] \box_use:N \l_tmpa_box % #1 % \end{tcolorbox} }{ \end{tcolorbox} } \ExplSyntaxOff \begin{document} \begin{myfloat} - % Some content needed, otherwise the rule below doesn't appear \rule{1cm}{1cm}% % \AddToHook{env/myfloat/end}{% \tikz \coordinate (A) at (0,0);% % } \end{myfloat} \end{document} produces the desired result, namely that the rule extends to the edge of the tcolorbox: But if \AddToHook{env/myfloat/end}{…} is uncommented, the bottom of the rule does not touch the bottom border of the tcolorbox: Why is it the case and how to avoid this extra vertical space? Note that the trouble doesn't arise if: instead of \hbox_set:Nn \l_tmpa_box { #1 } and \box_use:N \l_tmpa_box, the argument #1 is directly used, or \end{tcolorbox} is in the “before” instead of the “after” part in the definition of the myfloat environment, but, in my real use case, I can't rely on these workarounds.

  • Command \c@lem already defined [duplicate]
    by Gauss on November 25, 2026 at 4:41 pm

    To avoid this being flagged as a duplicate, I should say that, on my computer, in a texstudio file, there is absolutely no issue - no warning, no error. The file compiles perfectly. The relevant part of the preamble is as follows: \usepackage{amsmath,amsthm,amsfonts,amssymb,latexsym} \usepackage{mathrsfs, thmtools} \newtheorem{thm}{Theorem}[section] \newtheorem{lem}[thm]{Lemma} However, when the exact same preamble is put on an Overleaf file, it throws the error "Command \c@lem already defined." (and similar errors for other theorem environments defined below). My question is: what exactly is happening? There is a unique .tex file in the project and I don't see how this is already defined on Overleaf if it is not on texstudio... Thanks in advance!

  • Beamer - No way to specify the font encoding for a single font?
    by Thibault de Villèle on November 25, 2026 at 12:22 pm

    I have a presentation coming up, in which I'll attempt to follow the graphical chart of my university. It calls for the Oswald font to be used for all titles and title-like content, while the OpenSans font should be used for the rest of the document. I will be using Beamer for this presentation (I know ltx-talk exists, but I'm accustomed to beamer and at this point, I don't have time to change my habits). Beamer allows one to change things presentation-wide with the following command: \setbeamerfont{<beamer element name>}{<attributes>} There is a package for both fonts: the oswald and opensans packages. However, the oswald package uses the LaTeX font maps instead of the newer fontspec mechanism, and does not define a simple \oswald command I could use for switching to it when I want; it only redefines (unconditionally) the \sfdefault command at the end of its .sty file. Furthermore, since I have accents the only encoding of the Oswald fonts suitable for this presentation will be T1. However, I cannot seem to get the Oswald font to appear if I don't prepend all uses of the Beamer fonts {title} and {frametitle} with a manual font encoding switch, is this intended behaviour? Is there not a way to select a font encoding with \setbeamerfont? Here is a MWE, which shows what I've tried: \documentclass[10pt]{beamer} \usetheme{moloch}% \usefonttheme{professionalfonts}% \usepackage[T1]{fontenc} \usepackage{Oswald} \let\oswaldfamilyname=\sfdefault% Get the Oswald font name before it's overridden \usepackage[defaultsans]{opensans} \DeclareFixedFont{\oswald}{T1}{\oswaldfamilyname}{b}{n}{12}% Guessed \Large size: 12pt \DeclareFixedFont{\oswaldsmall}{T1}{\oswaldfamilyname}{b}{n}{11}% Guessed \large size: 11pt % Those don't work: % \setbeamerfont{title}{family*=\oswald,shape=\upshape,series=\bfseries} % \setbeamerfont{frametitle}{family*=\oswaldsmall,shape=\upshape,series=\bfseries} % Those don't work standalone, only with \fontencoding. Uses the "old" shape and series font selectors: \setbeamerfont{title}{family*={\oswaldfamilyname},shape*=n,series*=b} \setbeamerfont{frametitle}{family*={\oswaldfamilyname},shape=\upshape,series*=b} \begin{document} \begin{frame}{This is a title} \begin{itemize} \item Inline text: titles should look like {\oswald this} and frame titles like {\oswaldsmall this}. \item Beamer fonts: instead they look like {\usebeamerfont{title}this} and like {\usebeamerfont{frametitle}this}. \item Forced encodings: they could look like {\fontencoding{T1}\usebeamerfont{title}this} and like {\fontencoding{T1}\usebeamerfont{frametitle}this}. \end{itemize} \end{frame} \end{document} And here is the result of that MWE (lualatex version 1.24.0, dev. id 7724 TeXLive 2026):

  • Navigation issue with beamer slides displayed in full screen mode in Adobe Acrobat Reader [closed]
    by Sierra Bravo on November 25, 2026 at 9:40 am

    I have various sets of LaTeX beamer slides that I periodically use for lectures. I've always used Adobe Acrobat Reader to display the slides, using full-screen mode. Around August this year (August 2026), I noticed a strange issue with navigation in these slide decks when in full-screen mode. Essentially, I can use the down arrow (or mouse roller) to step forward, but if I try to step back by using the up arrow (or mouse roller in the back direction), then the navigation commands seem to get out-of-sync by one place. So the slides continue forward, but then the next time I press a button (doesn't matter what button I push), my "back" instruction is carried out. Another symptom is that when I open full-screen mode in the first place, a black screen is shown, rather than the title slide. I also have a few links and animations in the slides, and I don't get the usual behaviour, where these are recognised as "clickable" buttons - in other words, the cursor doesn't change to indicate that I can click on these, and when I try to click on them, I just get the slide advancing forward. Another symptom: other PDF documents prepared using LaTeX seem fine. The problem seems specific to beamer. I'd also say that these particular slides were fine before around August; although I can't completely eliminate the possibility that recent changes to the content (at my end) caused the problem, I suspect this is unlikely. (Changes would have been limited to content/wording within the slides.) All in all, this makes full-screen mode unusable for my beamer slides; I'd really like to sort this out. However, I appreciate it's a really confusing problem to describe, so any questions for clarification are absolutely welcome so that I can get to the bottom of this. TL;DR - Adobe Acrobat Reader's execution of navigation commands on my beamer slides appears to be one step behind the instructions I give it.

  • How to compile ltx-talk document? [closed]
    by Ivan on November 25, 2026 at 9:09 am

    I am trying to compile the most basic ltx document given in ltx-talk documentation, which is: \DocumentMetadata{tagging=on} \documentclass{ltx-talk} \begin{document} \begin{frame} Some content here \end{frame} \end{document} and I get a lot of errors: 1045: LaTeX template Error: Incorrect variable description(template) 'name{l__block_separator-a_tl}'. } 1045: LaTeX template Error: Incorrect variable description(template) 'name{l__block_separator-b_tl}'. } 1685: LaTeX template Error: The template attribute 'separator-a' is unknown. } 1685: LaTeX template Error: The template attribute 'separator-b' is unknown. } 1691: LaTeX template Error: The template attribute 'separator-a' is unknown. } 1691: LaTeX template Error: The template attribute 'separator-b' is unknown. } 1695: LaTeX template Error: The template attribute 'separator-a' is unknown. } 1695: LaTeX template Error: The template attribute 'separator-b' is unknown. } 1697: LaTeX template Error: The template attribute 'separator-a' is unknown. ...tInstance{thmstyle}{legacy2e}{ punct = } 1697: LaTeX template Error: The template attribute 'separator-b' is unknown. ...tInstance{thmstyle}{legacy2e}{ punct = } 92: Undefined control sequence. \DeclareTemplateInterfaceEquivalents 92: Missing \begin{document}. \DeclareTemplateInterfaceEquivalents {i 94: Undefined control sequence. \DeclareTemplateInterfaceEquivalents 98: Undefined control sequence. \DeclareTemplateInterfaceEquivalents 100: You can't use `macro parameter character #' in horizontal mode. ,topsep : meta = { begin-vspace={# 100: You can't use `macro parameter character #' in horizontal mode. ...eta = { begin-vspace={#1}, end-vspace={# 101: You can't use `macro parameter character #' in horizontal mode. ...artopsep : meta = { begin-extra-vspace={# 101: You can't use `macro parameter character #' in horizontal mode. ...in-extra-vspace={#1}, end-extra-vspace={# 320: Undefined control sequence. \DeclareTemplateInterfaceEquivalents 320: Missing \begin{document}. \DeclareTemplateInterfaceEquivalents{h 324: Undefined control sequence. \DeclareTemplateInterfaceEquivalents 365: Undefined control sequence. \DeclareTemplateInterfaceEquivalents 369: Undefined control sequence. \DeclareTemplateInterfaceEquivalents 793: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-a_tl}'. } 793: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-b_tl}'. } 793: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-c_tl}'. } 793: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-d_tl}'. } 886: LaTeX template Error: Incorrect variable description(template) 'name{l__head_order-hang_clist}'. } 886: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-a_tl}'. } 886: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-b_tl}'. } 886: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-c_tl}'. } 886: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-d_tl}'. } 938: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-a_tl}'. } 938: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-b_tl}'. } 938: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-c_tl}'. } 938: LaTeX template Error: Incorrect variable description(template) 'name{l__head_separator-d_tl}'. } 1131: LaTeX template Error: The template attribute 'separator-a' is unknown. } 1131: LaTeX template Error: The template attribute 'separator-b' is unknown. } 1131: LaTeX template Error: The template attribute 'separator-c' is unknown. } 1131: LaTeX template Error: The template attribute 'separator-d' is unknown. } 1136: LaTeX template Error: The template attribute 'order-hang' is unknown. } 1136: LaTeX template Error: The template attribute 'separator-a' is unknown. } 1136: LaTeX template Error: The template attribute 'separator-b' is unknown. } 1136: LaTeX template Error: The template attribute 'separator-c' is unknown. } 1136: LaTeX template Error: The template attribute 'separator-d' is unknown. } 1143: LaTeX template Error: The template attribute 'separator-a' is unknown. } 1143: LaTeX template Error: The template attribute 'separator-b' is unknown. } 1143: LaTeX template Error: The template attribute 'separator-c' is unknown. } 1143: LaTeX template Error: The template attribute 'separator-d' is unknown. } 1147: LaTeX template Error: The template attribute 'separator-a' is unknown. } 1147: LaTeX template Error: The template attribute 'separator-b' is unknown. } 1147: LaTeX template Error: The template attribute 'separator-c' is unknown. } 1147: LaTeX template Error: The template attribute 'separator-d' is unknown. } 1152: LaTeX template Error: The template attribute 'order-hang' is unknown. } 1152: LaTeX template Error: The template attribute 'separator-a' is unknown. } 1152: LaTeX template Error: The template attribute 'separator-b' is unknown. } 1152: LaTeX template Error: The template attribute 'separator-c' is unknown. } 1152: LaTeX template Error: The template attribute 'separator-d' is unknown. } 92: Overfull \hbox (20.0pt too wide) in paragraph 40: Overfull \hbox (20.0pt too wide) in paragraph : Overfull \vbox (10.0pt too high) has occurred while \output is active [] Here is an extract from the big log: This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) (format=lualatex 2026.11.11) 25 NOV 2026 09:55 restricted system commands enabled. **basic_example.tex (./basic_example.tex LaTeX2e <2026-06-01> L3 programming layer <2026-08-10> Lua module: luaotfload 2024-12-03 v3.29 Lua based OpenType font support Lua module: lualibs 2023-07-13 v2.76 ConTeXt Lua standard libraries. Lua module: lualibs-extended 2023-07-13 v2.76 ConTeXt Lua libraries -- extended collection. luaotfload | conf : Root cache directory is "/home/user/.texlive2026/texmf-var/l uatex-cache/generic/names". luaotfload | init : Loading fontloader "fontloader-2023-12-28.lua" from kpse-res olved path "/usr/local/texlive/2026/texmf-dist/tex/luatex/luaotfload/fontloader- 2023-12-28.lua". Lua-only attribute luaotfload@noligature = 1 luaotfload | init : Context OpenType loader version 3.134 Inserting `luaotfload.node_processor' in `pre_linebreak_filter'. Inserting `luaotfload.node_processor' in `hpack_filter'. Inserting `luaotfload.glyph_stream' in `glyph_stream_provider'. Inserting `luaotfload.define_font' in `define_font'. Lua-only attribute luaotfload_color_attribute = 2 luaotfload | conf : Root cache directory is "/home/user/.texlive2026/texmf-var/l uatex-cache/generic/names". [...] *********** LaTeX2e <2026-06-01> L3 programming layer <2026-08-10> *********** MathML statistic ================ ==> 0 MathML fragments read ==> 0 different MathML fragments ==> 0 math fragments found ==> 0 fitting MathML AF found ==> 0 MathML AF attached Package tagpdf Info: Finalizing the tagging structure: (tagpdf) Writing out ~8 structure objects (tagpdf) with ~3 'MC' leaf nodes. (tagpdf) Be patient if there are lots of objects! Package tagpdf Info: writing ParentTree Package tagpdf Info: writing IDTree Package tagpdf Info: writing RoleMap Package tagpdf Info: writing ClassMap Package tagpdf Info: writing NameSpaces Package tagpdf Info: writing StructElems Package tagpdf Info: writing Root ) Here is how much of LuaTeX's memory you used: 24835 strings out of 475632 125049,1648299 words of node,token memory allocated 540 words of node memory still in use: 6 hlist, 2 vlist, 2 rule, 2 glue, 4 kern, 2 glyph, 12 attribute, 58 glue_spec , 8 attribute_list, 2 write nodes avail lists: 2:249,3:69,4:24,5:42,6:15,7:2531,8:2,9:113,10:20,11:105 47285 multiletter control sequences out of 65536+600000 40 fonts using 20760399 bytes 86i,9n,108p,426b,468s stack positions out of 10000i,1000n,20000p,200000b,200000s </usr/local/texlive/2026/texmf-dist/fonts/opentype/public/newcomputermodern/NewC MSans10-Regular.otf> Output written on basic_example.pdf (1 page, 18088 bytes). PDF statistics: 57 PDF objects out of 1000 (max. 8388607) 45 compressed objects within 1 object stream 2 named destinations out of 1000 (max. 1048576) 171 words of extra memory for PDF output out of 10000 (max. 100000000) Following @DavidCarlisle request, here is the results of fmtutil-sys --all without sudo first: fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order): fmtutil: /usr/local/texlive/2026/texmf-dist/web2c/fmtutil.cnf fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes: fmtutil: /usr/local/texlive/2026/texmf-config/web2c/fmtutil.cnf fmtutil [ERROR]: format directory not writable: /usr/local/texlive/2026/texmf-var/web2c The output of sudo fmtutil-sys --all is massive (18581 lines, 863 Kio). Here are the firsts and lasts lines: fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order): fmtutil: /usr/local/texlive/2026/texmf-dist/web2c/fmtutil.cnf fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes: fmtutil: /usr/local/texlive/2026/texmf-config/web2c/fmtutil.cnf fmtutil [INFO]: writing formats under /usr/local/texlive/2026/texmf-var/web2c fmtutil [INFO]: building up to 8 formats in parallel fmtutil [INFO]: --- remaking tex with tex fmtutil: running `tex -ini -jobname=tex -progname=tex tex.ini' ... fmtutil [INFO]: --- remaking luajittex with luajittex fmtutil: running `luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini' ... fmtutil [INFO]: --- remaking luahbtex with luahbtex fmtutil: running `luahbtex -ini -jobname=luahbtex -progname=luahbtex luatex.ini' ... fmtutil [INFO]: --- remaking pdftex with pdftex fmtutil: running `pdftex -ini -jobname=pdftex -progname=pdftex -translate-file=cp227.tcx *pdfetex.ini' ... fmtutil [INFO]: --- remaking euptex with euptex fmtutil: running `euptex -ini -jobname=euptex -progname=euptex *euptex.ini' ... fmtutil [INFO]: --- remaking aleph with aleph fmtutil: running `aleph -ini -jobname=aleph -progname=aleph *aleph.ini' ... fmtutil [INFO]: --- remaking luajithbtex with luajithbtex fmtutil: running `luajithbtex -ini -jobname=luajithbtex -progname=luajithbtex luatex.ini' ... fmtutil [INFO]: --- remaking xetex with xetex fmtutil: running `xetex -ini -jobname=xetex -progname=xetex -etex xetex.ini' ... fmtutil [INFO]: --- output of tex with tex This is TeX, Version 3.141592653 (TeX Live 2026) (INITEX) (/usr/local/texlive/2026/texmf-dist/tex/plain/config/tex.ini (/usr/local/texlive/2026/texmf-dist/tex/plain/base/plain.tex Preloading the plain format: codes, registers, parameters, fonts, more fonts, macros, math definitions, output routines, hyphenation (/usr/local/texlive/2026/texmf-dist/tex/generic/hyphen/hyphen.tex)) ) Beginning to dump on file tex.fmt (preloaded format=tex 2026.11.25) 2030 strings of total length 29441 4991 memory locations dumped; current usage is 110&4878 926 multiletter control sequences \font\nullfont=nullfont \font\tenrm=cmr10 \font\preloaded=cmr9 \font\preloaded=cmr8 \font\sevenrm=cmr7 \font\preloaded=cmr6 \font\fiverm=cmr5 \font\teni=cmmi10 \font\preloaded=cmmi9 \font\preloaded=cmmi8 \font\seveni=cmmi7 \font\preloaded=cmmi6 \font\fivei=cmmi5 \font\tensy=cmsy10 \font\preloaded=cmsy9 \font\preloaded=cmsy8 \font\sevensy=cmsy7 \font\preloaded=cmsy6 \font\fivesy=cmsy5 \font\tenex=cmex10 \font\preloaded=cmss10 \font\preloaded=cmssq8 \font\preloaded=cmssi10 \font\preloaded=cmssqi8 \font\tenbf=cmbx10 \font\preloaded=cmbx9 \font\preloaded=cmbx8 \font\sevenbf=cmbx7 \font\preloaded=cmbx6 \font\fivebf=cmbx5 \font\tentt=cmtt10 \font\preloaded=cmtt9 \font\preloaded=cmtt8 \font\preloaded=cmsltt10 \font\tensl=cmsl10 \font\preloaded=cmsl9 \font\preloaded=cmsl8 \font\tenit=cmti10 \font\preloaded=cmti9 \font\preloaded=cmti8 \font\preloaded=cmti7 \font\preloaded=cmu10 \font\preloaded=cmmib10 \font\preloaded=cmbsy10 \font\preloaded=cmcsc10 \font\preloaded=cmssbx10 \font\preloaded=cmdunh10 \font\preloaded=cmr7 at 14.51799pt \font\preloaded=cmtt10 at 14.4pt \font\preloaded=cmssbx10 at 14.4pt \font\preloaded=manfnt 14787 words of font info for 50 preloaded fonts 14 hyphenation exceptions Hyphenation trie of length 6075 has 181 ops out of 35111 181 for language 0 No pages of output. Transcript written on tex.log. fmtutil [INFO]: log file copied to: /usr/local/texlive/2026/texmf-var/web2c/tex/tex.log fmtutil [INFO]: /usr/local/texlive/2026/texmf-var/web2c/tex/tex.fmt installed. fmtutil [INFO]: --- remaking hitex with hitex fmtutil: running `hitex -ini -jobname=hitex -progname=hitex -etex -ltx hitex.ini' ... fmtutil [INFO]: --- output of luajittex with luajittex This is LuajitTeX, Version 1.24.0 (TeX Live 2026) (INITEX) restricted system commands enabled. (/usr/local/texlive/2026/texmf-dist/tex/generic/tex-ini-files/luatex.ini (/usr/local/texlive/2026/texmf-dist/tex/generic/tex-ini-files/luatexconfig.tex (/usr/local/texlive/2026/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex) ) (/usr/local/texlive/2026/texmf-dist/tex/generic/tex-ini-files/luatexiniconfig.t ex) (/usr/local/texlive/2026/texmf-dist/tex/generic/unicode-data/load-unicode-data. tex load-unicode-data.tex v1.21 (2026-09-25) Reading Unicode data # UnicodeData-18.0.0.txt # Modified 2026-09-25 07:00 GMT [JAW] ) (/usr/local/texlive/2026/texmf-dist/tex/luatex/hyph-utf8/etex.src (/usr/local/texlive/2026/texmf-dist/tex/plain/base/plain.tex Preloading the plain format: codes, registers, parameters, fonts, more fonts, macros, math definitions, output routines, hyphenation (/usr/local/texlive/2026/texmf-dist/tex/generic/hyphen/hyphen.tex [skipping from \patterns to end-of-file...])) (/usr/local/texlive/2026/texmf-dist/tex/plain/etex/etexdefs.lib Skipping module "grouptypes"; Loading module "interactionmodes"; Skipping module "nodetypes"; Skipping module "iftypes";) (/usr/local/texlive/2026/texmf-var/tex/generic/config/language.def (/usr/local/texlive/2026/texmf-dist/tex/generic/hyphen/hyphen.tex)) Augmenting the Plain TeX definitions: \tracingall; Adding new e-TeX definitions: \eTeX, \loggingall, \tracingnone, register allocation; extended register allocation; Recycling: \addlanguage, \@nswer (not defined), \@sk, \b@dresponsetrue, \b@dresponsefalse, \ch@ckforyn, \mayber@cycle, \et@xabort, \et@xbuf, \et@xfmtsrc, \et@xfilehdr, \et@xinf, \et@xpatterns, \l@ngdefnfile, \n@xt, \p@rse (not defined), \pr@mpt (not defined), \pr@mptloop (not defined), \forcer@cycle, \usef@llback, \usef@llbacktrue, \usef@llbackfalse, Retaining: \et@xerr, \et@xinput, \et@xlibhdr, \et@xmsg, \et@xtoks, \et@xwarn, \et@xl@@d, \et@xl@ad, \et@xload, \et@xlang, \et@xhash, \eTeX, \etexhdrchk, \etexstatus, \module, \uselanguage, \r@tain, \r@cycle,)) Beginning to dump on file luajittex.fmt (format=luajittex 2026.11.25) 3706 strings using 14162 bytes 69659 memory locations dumped; current usage is 149&8950 2195 multiletter control sequences [...] No pages of output. Transcript written on xelatex.log. fmtutil [INFO]: log file copied to: /usr/local/texlive/2026/texmf-var/web2c/xetex/xelatex.log fmtutil [INFO]: /usr/local/texlive/2026/texmf-var/web2c/xetex/xelatex.fmt installed. fmtutil [INFO]: disabled formats: 3 fmtutil [INFO]: successfully rebuilt formats: 53 fmtutil [INFO]: total formats: 56 fmtutil [INFO]: executable location: /usr/local/texlive/2026/bin/x86_64-linux/fmtutil fmtutil [INFO]: exiting with status 0 I must be missing something very basic here but I have no clue after doing researchs. Could someone help me please?

  • Error in TeXbook on page 43?
    by Igor Liferenko on November 25, 2026 at 2:29 am

    This is the quote from TeXbook p.43: ...the plain format of Appendix B, which defines % to be a special kind of symbol so that you can use it for comments... In fact, the category code of 14 is assigned to % in TeX source. But this phrase suggests that \catcode`\%=14 is done in plain.tex Doesn't it?

  • Why in append_to_name() is `#' not used directly?
    by Igor Liferenko on November 24, 2026 at 5:37 am

    In tex.web (and mf.web) there is the following macro: @d append_to_name(#)==begin c:=#; incr(k); if k<=file_name_size then name_of_file[k]:=xchr[c]; end Why xchr[#] is not used? Is it some feature of Pascal/WEB that causes the intermediate assignment to c?