• Availability of Scotch Modern font in MiKTeX
    by Sebastiano on June 25, 2026 at 6:58 pm

    I am trying to use the Scotch Modern font with XeLaTeX and mathspec: \usepackage{mathspec} \defaultfontfeatures{Mapping=tex-text, Numbers=OldStyle} \setmainfont{Scotch Modern} \setmathsfont(Greek)[Uppercase=Regular,Lowercase=Italic]{Scotch Modern} \setmathsfont(Digits)[Numbers=OldStyle]{Scotch Modern} \setmathsfont(Latin)[Uppercase=Italic,Lowercase=Italic]{Scotch Modern} Before investigating further, I would like to clarify a basic point: is Scotch Modern included in either TeX Live or MiKTeX, or is it a font that must be obtained and installed separately? If it is not distributed with TeX Live/MiKTeX, where can it be obtained, and what is the correct procedure for making it available to XeLaTeX? In particular, should it be installed at the operating-system level, or can it be added directly to a local/user TeX tree? Any information about the availability and installation of this font would be appreciated. LuaLaTeX doesn't compile: This is LuaHBTeX, Version 1.25.7 (MiKTeX 26.5) (format=luahblatex 2026.6.9) 25 JUN 2026 21:06 restricted system commands enabled. **"C:/Users/sebys/OneDrive/Desktop/new question/oldstandard-mathtest.tex" ("C:/Users/sebys/OneDrive/Desktop/new question/oldstandard-mathtest.tex" LaTeX2e <2026-06-01> L3 programming layer <2026-05-26> 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 "C:/Users/sebys/AppData/Local/MiKTeX /luatex-cache/generic/names". luaotfload | init : Loading fontloader "fontloader-2023-12-28.lua" from kpse-res olved path "C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/luatex/luaotfload/f ontloader-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 "C:/Users/sebys/AppData/Local/MiKTeX /luatex-cache/generic/names". Inserting `luaotfload.harf.strip_prefix' in `find_opentype_file'. Inserting `luaotfload.harf.strip_prefix' in `find_truetype_file'. Removing `luaotfload.glyph_stream' from `glyph_stream_provider'. Inserting `luaotfload.harf.glyphstream' in `glyph_stream_provider'. Inserting `luaotfload.harf.finalize_vlist' in `post_linebreak_filter'. Inserting `luaotfload.harf.finalize_hlist' in `hpack_filter'. Inserting `luaotfload.cleanup_files' in `wrapup_run'. Inserting `luaotfload.harf.finalize_unicode' in `finish_pdffile'. Inserting `luaotfload.glyphinfo' in `glyph_info'. Lua-only attribute luaotfload.letterspace_done = 3 Inserting `luaotfload.aux.set_sscale_dimens' in `luaotfload.patch_font'. Inserting `luaotfload.aux.set_font_index' in `luaotfload.patch_font'. Inserting `luaotfload.aux.patch_cambria_domh' in `luaotfload.patch_font'. Inserting `luaotfload.aux.fixup_fontdata' in `luaotfload.patch_font_unsafe'. Inserting `luaotfload.aux.set_capheight' in `luaotfload.patch_font'. Inserting `luaotfload.aux.set_xheight' in `luaotfload.patch_font'. Inserting `luaotfload.rewrite_fontname' in `luaotfload.patch_font'. Inserting `tracingstacklevels' in `input_level_string'. (C:/Users/sebys/AppData /Local/Programs/MiKTeX/tex/latex/base/article.cls Document Class: article 2025/01/22 v1.4n Standard LaTeX document class (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/base/size12.clo File: size12.clo 2025/01/22 v1.4n Standard LaTeX file (size option) luaotfload | db : Font names database loaded from C:/Users/sebys/AppData/Local/M iKTeX/luatex-cache/generic/names/luaotfload-names.luc.gz) \c@part=\count274 \c@section=\count275 \c@subsection=\count276 \c@subsubsection=\count277 \c@paragraph=\count278 \c@subparagraph=\count279 \c@figure=\count280 \c@table=\count281 \abovecaptionskip=\skip49 \belowcaptionskip=\skip50 \bibindent=\dimen149 ) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/geometry/geometry.sty Package: geometry 2026/03/07 v6.0 Page Geometry (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/graphics/keyval.sty Package: keyval 2026-05-17 v1.15 key=value parser (DPC) \KV@toks@=\toks17 ) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/generic/iftex/ifvtex.sty Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead. (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/generic/iftex/iftex.sty Package: iftex 2024/12/12 v1.0g TeX engine tests )) \Gm@cnth=\count282 \Gm@cntv=\count283 \c@Gm@tempcnt=\count284 \Gm@bindingoffset=\dimen150 \Gm@wd@mp=\dimen151 \Gm@odd@mp=\dimen152 \Gm@even@mp=\dimen153 \Gm@layoutwidth=\dimen154 \Gm@layoutheight=\dimen155 \Gm@layouthoffset=\dimen156 \Gm@layoutvoffset=\dimen157 \Gm@dimlist=\toks18 (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/geometry/geometry.cfg)) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/graphics/graphicx.sty Package: graphicx 2026-05-17 v1.2e Enhanced LaTeX Graphics (DPC,SPQR) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/graphics/graphics.sty Package: graphics 2026-05-17 v1.4h Standard LaTeX Graphics (DPC,SPQR) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/graphics/trig.sty Package: trig 2023/12/02 v1.11 sin cos tan (DPC) ) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/graphics-cfg/graphics.c fg File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration ) Package graphics Info: Driver file: luatex.def on input line 106. (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/graphics-def/luatex.def File: luatex.def 2025/09/29 v1.2f Graphics/color driver for luatex )) \Gin@req@height=\dimen158 \Gin@req@width=\dimen159 ) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/amsfonts/amssymb.sty Package: amssymb 2013/01/14 v3.01 AMS font symbols (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/amsfonts/amsfonts.sty Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support \@emptytoks=\toks19 \symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info: Redeclaring math symbol \hbar on input line 98. LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold' (Font) U/euf/m/n --> U/euf/b/n on input line 106. )) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/amsmath/amsmath.sty Package: amsmath 2026/05/19 v2.18d AMS math features \@mathmargin=\skip51 For additional information on amsmath, use the `?' option. (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/amsmath/amstext.sty Package: amstext 2024/11/17 v2.01 AMS text (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/amsmath/amsgen.sty File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks20 \ex@=\dimen160 )) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/amsmath/amsbsy.sty Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen161 ) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/amsmath/amsopn.sty Package: amsopn 2022/04/08 v2.04 operator names ) \inf@bad=\count285 LaTeX Info: Redefining \frac on input line 235. \uproot@=\count286 \leftroot@=\count287 LaTeX Info: Redefining \overline on input line 398. LaTeX Info: Redefining \colon on input line 409. \classnum@=\count288 \DOTSCASE@=\count289 LaTeX Info: Redefining \ldots on input line 495. LaTeX Info: Redefining \dots on input line 498. LaTeX Info: Redefining \cdots on input line 619. \Mathstrutbox@=\box53 \strutbox@=\box54 LaTeX Info: Redefining \big on input line 721. LaTeX Info: Redefining \Big on input line 722. LaTeX Info: Redefining \bigg on input line 723. LaTeX Info: Redefining \Bigg on input line 724. \big@size=\dimen162 LaTeX Font Info: Redeclaring font encoding OML on input line 742. LaTeX Font Info: Redeclaring font encoding OMS on input line 743. \macc@depth=\count290 LaTeX Info: Redefining \bmod on input line 904. LaTeX Info: Redefining \pmod on input line 909. LaTeX Info: Redefining \smash on input line 939. LaTeX Info: Redefining \relbar on input line 969. LaTeX Info: Redefining \Relbar on input line 970. \c@MaxMatrixCols=\count291 \dotsspace@=\muskip17 \c@parentequation=\count292 \dspbrk@lvl=\count293 \tag@help=\toks21 \row@=\count294 \column@=\count295 \maxfields@=\count296 \andhelp@=\toks22 \eqnshift@=\dimen163 \alignsep@=\dimen164 \tagshift@=\dimen165 \tagwidth@=\dimen166 \totwidth@=\dimen167 \lineht@=\dimen168 \@envbody=\toks23 \multlinegap=\skip52 \multlinetaggap=\skip53 \mathdisplay@stack=\toks24 LaTeX Info: Redefining \[ on input line 2965. LaTeX Info: Redefining \] on input line 2966. ) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/scalerel/scalerel.sty Package: scalerel 2016/12/29 v1.8 Routines for constrained scaling and stretchi ng of objects, relative to a reference object or in absolute terms (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/tools/calc.sty Package: calc 2025/03/01 v4.3b Infix arithmetic (KKT,FJ) \calc@Acount=\count297 \calc@Bcount=\count298 \calc@Adimen=\dimen169 \calc@Bdimen=\dimen170 \calc@Askip=\skip54 \calc@Bskip=\skip55 LaTeX Info: Redefining \setlength on input line 86. LaTeX Info: Redefining \addtolength on input line 87. \calc@Ccount=\count299 \calc@Cskip=\skip56 ) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2025/10/02 v2.5m e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count300 ) \thesrwidth=\skip57 \thesrheight=\skip58 \srblobheight=\skip59 \srblobdepth=\skip60 \mnxsrwidth=\skip61 \LMex=\skip62 \LMpt=\skip63 ) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/xelatex/mathspec/mathspec.sty Package: mathspec 2016/12/22 v0.2b LaTeX Package (Mathematics font selection fo r XeLaTeX) (C:/Users/sebys/AppData/Local/Programs/MiKTeX/tex/generic/iftex/ifxetex.sty Package: ifxetex 2019/10/25 v0.7 ifxetex legacy package. Use iftex instead. ) ******************************************** * XeTeX is required to compile this document. * Sorry! ******************************************** ! Emergency stop. <read *> l.10 \RequireXeTeX *** (cannot \read from terminal in nonstop modes) Here is how much of LuaTeX's memory you used: 2997 strings out of 475703 100000,662416 words of node,token memory allocated 407 words of node memory still in use: 3 hlist, 1 rule, 1 dir, 3 kern, 1 glyph, 4 attribute, 51 glue_spec, 4 attribu te_list, 2 if_stack, 1 write nodes avail lists: 2:9,3:2,4:1,7:2,9:2 25798 multiletter control sequences out of 65536+600000 15 fonts using 723367 bytes 57i,0n,62p,272b,40s stack positions out of 10000i,1000n,20000p,200000b,200000s ! ==> Fatal error occurred, no output PDF file produced! Related: An Exquisite Mathematical Font

  • 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. I also feel like this is a recent issue with babel as I don't think I've had it before. Have I missed something in new babel versions? Is there a way around this?

  • How to reference parent label in custom enumitem list
    by Felix Benning on June 25, 2026 at 2:07 pm

    I am trying to implement a custom enumitem list, but the counter for the nested list does not work, that is \begin{steps} \item Test \begin{steps} \item \end{steps} \end{steps} results in Here is my implementation of steps: \documentclass[a4paper]{article} \usepackage{enumitem} \newlist{steps}{enumerate}{2} \setlist[steps,1]{ label=\textbf{Step \arabic*:}, ref={Step \arabic*}, wide=0pt, } \setlist[steps,2]{ label=\textbf{Step \theenumi.\arabic*:}, ref={Step \arabic*}, wide=0pt, } \title{Test} \author{test} \begin{document} \maketitle \begin{steps} \item Test \begin{steps} \item Test 2 \end{steps} \end{steps} \end{document} How do you get the \theenumi macro to do what it does for default lists? I was stuck on this for quite some time and already reduced this to a minimum working example until I finally realized what the problem was. See below for my answer.

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

  • \autoref is referencing appendices as chapters and I can't tell why [closed]
    by jw5801 on June 25, 2026 at 1:03 pm

    I updated all my packages earlier this week and I've just noticed that something has broken with \autoref. The following minimal example no longer works as expected: \documentclass{report} \usepackage{hyperref} \begin{document} \chapter{Chapter}\label{1} \section{1.1}\label{1.1} This is a reference to the chapter: \autoref{1} This is a reference to the section: \autoref{1.1} This is a reference to the appendix: \autoref{A} This is a reference to the appendix section: \autoref{A.1} \appendix \chapter{Appendix}\label{A} \section{A.1}\label{A.1} This is the appendix. \end{document} The reference to A comes out as "chapter A": I've also tried cleveref and I'm seeing the same behaviour there, even after setting \crefname{appendix}{annex}{annexes}. For some reason it looks like \autoref and \cref are not respecting the appendix tags. The appendix correctly calls itself Appendix: Help? I don't know what has broken or where to start looking.

  • tikz stops working when using a style in \tikzset
    by Harry on June 25, 2026 at 12:02 pm

    I have gotten a code (given below the question) which produces this: It is fine, but I want to modify the refracted ray by changing \draw[very thick, ray] (C) -- (b); to \draw[very thick, ray2] (C) -- (b); (to plot the red dots less in refracted ray). However, once I do this, my Texwoks throws out Runaway argument? ! Paragraph ended before \pgfkeys@addpath was complete. <to be read again> \par l.76 \draw[very thick, ray2] (C) -- (b); ? I checked my ray2/.style and it seems everything is fine. How can I solve this? The whole code is here \documentclass{beamer} % 4:3 \usetheme{Madrid} \usecolortheme{seahorse} \usepackage{amsmath} \usepackage{amssymb} \usepackage{physics} \usepackage{tikz} \usepackage{tikz-3dplot} \usetikzlibrary{calc, decorations.markings, arrows.meta, angles, quotes, decorations.pathreplacing, shapes.geometric, bending} \usetikzlibrary{patterns,decorations.pathmorphing, shapes.symbols, shadings, positioning} \usepackage{amsfonts} \usepackage[utf8]{inputenc} \usepackage{fontenc} \usepackage[safe]{tipa} \usepackage{xcolor} \usepackage{booktabs} % 用于绘制专业的表格线 \usepackage{setspace} %\setmainfont{Times New Roman} % 或者任意支持音标的字体 \usepackage{array} %% Rays \begin{document} \begin{frame}[fragile] \frametitle{Polarization in Reflection and Refraction} \begin{tikzpicture}[line cap=round, line join=round] % ====================== 所有定义都在这里 ====================== % TikZ Styles (integrated) \tikzset{ ray/.style = { postaction=decorate, decoration={ markings, mark=at position .52 with \arrow{stealth}, mark=between positions 0.1 and 1.2 step 0.5cm with { \draw[fill=red, draw=red] circle[radius=1pt]; \draw[red, {Latex[length=1.3mm, width=1.5mm]}-{Latex[length=1.3mm, width=1.5mm]}] (0,-7pt) -- (0,7pt); } } }, ray2/.style={ postaction=decorate, decoration={ markings, % 所有位置画箭头 draw arrow mark=between positions 0.1 and 1.4 step 0.5cm with { \draw[red, {Latex[length=1.3mm,width=1.5mm]}- {Latex[length=1.3mm,width=1.5mm]}] (0,-7pt)--(0,7pt); }, % 每隔一个位置画点 draw point mark=between positions 0.1 and 1.4 step 1.0cm with { \fill[red] (0,0) circle[radius=1pt]; } } }, polray/.style = { postaction=decorate, decoration={ markings, mark=at position .52 with \arrow{stealth}, mark=between positions 0.1 and 0.4 step 0.5cm with { \draw[fill=red, draw=red] circle[radius=1pt]; }, mark=between positions 0.6 and 0.9 step 0.5cm with { \draw[fill=red, draw=red] circle[radius=1pt]; } } } } % Right Angle Mark (local definition) \def\MarkRightAngle[size=#1](#2,#3,#4){ \draw[thick] ($(#3)!#1!(#2)$) -- ($($(#3)!#1!(#2)$)!#1!90:(#2)$) -- ($(#3)!#1!(#4)$) } % Coordinates \coordinate (A) at (4,5); \coordinate (B) at (4,0); \coordinate (a) at (1,4.6); \coordinate (C) at (4,3); \coordinate (a') at (7,4.6); \coordinate (b) at (5.5,0); % Second Material (interface) \node[rectangle, top color=black!30, bottom color=white, minimum width=7cm, minimum height=3cm] at (4,1.5) {}; % Incident ray \draw[dashed] (A) -- (B); \draw[very thick, ray] (a) -- (C); % Reflected ray (polarized) \draw[very thick, polray] (C) -- (a'); % Refracted ray \draw[very thick, ray] (C) -- (b); % Right angle mark \MarkRightAngle[size=6pt](b,C,a'); % Angle labels \pic[draw, thick, "\small$\theta_\text{b}$", angle radius=0.5cm, angle eccentricity=1.7] {angle = A--C--a}; \pic[draw, thick, "\small$\theta_\text{r}$", angle radius=0.7cm, angle eccentricity=1.5] {angle = a'--C--A}; \pic[draw, thick, "\small$\theta_\text{t}$", angle radius=0.7cm, angle eccentricity=1.6] {angle = B--C--b}; % Labels \node at (1,3.3) {$n_1$}; \node at (1,2.7) {$n_2$}; % Explanatory text \end{tikzpicture} \end{frame} \end{document}

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

  • TexLive and user-defined package [duplicate]
    by Jean-Louis Brabant on June 25, 2026 at 8:17 am

    I use the 2026 TeXLive distribution. How can I "insert" a custom package for local use? In fact, for the purposes of a test, I have created a package named mypackage.sty whose (very minimal) code is : \NeedsTeXFormat{LaTeX2e}{2026/06/23} \ProvidesExplPackage {mypackage} {2026/06/25} {1.0} {test-package} I have located mypackage.sty in a folder named mypackage I have located this folder in C:\texlive\2026\texmf-dist\tex\latex In TeXLive Shell, I have regenerated the filename database (via menu 'Actions'). I then have created a minimal document whose code is : \documentclass{article} \usepackage{mypackage} \begin{document} abcdef \end{document} After compiled, the output is : 2026/06/25 abcdef % ! and I'he got the error message : 'Missing \begin{document}' Actually, mypackage is not recognised as being in the namefile database. I have tried to put the mypackage folder in C:\texlive\texmf-local\tex\latex\local and regenerated the filename database but that doesn't help either... Have I made a mistake somewhere ?

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

  • Page numbers and serial letters using datatool
    by user1 on June 23, 2026 at 11:25 am

    I am generating a serial letter, but I want the page numbers in the header to ignore the fact that multiple letters are generated. Bonus question: I am getting LaTeX Warning: Label 'my_label' multiply defined.. How do I solve this? \begin{filecontents*}[overwrite]{my_db.csv} FieldA,FieldB ValueA1,ValueB1 ValueA2,ValueB2 ValueA3,ValueB3 ValueA4,ValueB4 ValueA5,ValueB5 \end{filecontents*} \documentclass{scrartcl} \usepackage[headsepline=true]{scrlayer-scrpage} \clearpairofpagestyles \ihead{Page\space\pagemark/\PreviousTotalPages} \usepackage{datatool} \DTLsetseparator{,} \DTLloaddb{entry}{my_db.csv} \begin{document} \DTLforeach*{entry}{% \FieldA=FieldA,\FieldB=FieldB}{% This header should show \textit{Page 1/2}. \FieldA{} \FieldB: This is the first page for each entry.\label{my_label} \clearpage This header should show \textit{Page 2/2}. \FieldA{} \FieldB: This is the second page for each entry. See \ref{my_label}. \clearpage } \end{document}

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

  • Beamer `columns` environment cause a wider total width [duplicate]
    by myhsia on June 23, 2026 at 9:59 am

    The columns environment contains two column environment is wider than two minipage environments. How to solve the problem? The following is the MWE. \documentclass{beamer} \usepackage{lipsum} \usecolortheme[named = teal]{structure} \setbeamercolor{block title} {use = structure, fg = structure.fg, bg = structure.fg!20!bg} \setbeamercolor{block title alerted} {use = alerted text, fg = alerted text.fg, bg = alerted text.fg!20!bg} \setbeamercolor{block title example} {use = example text,fg = example text.fg, bg = example text.fg!20!bg} \setbeamercolor{block body}{% use = block title, parent = normal text, bg = block title.bg!50!bg } \setbeamercolor{block body alerted}{% use = block title alerted, parent = normal text, bg = block title alerted.bg!50!bg } \setbeamercolor{block body example}{% use = block title example, parent = normal text, bg = block title example.bg!50!bg } \begin{document} \begin{frame} \begin{columns}% \begin{column}{.45\linewidth}% \begin{block}{foo}% foo \end{block}% \end{column}\hfill \begin{column}{.45\linewidth}% \begin{block}{bar}% bar \end{block}% \end{column}% \end{columns}% \noindent \begin{minipage}{.45\linewidth}% \begin{block}{foo}% foo \end{block}% \end{minipage}\hfill \begin{minipage}{.45\linewidth}% \begin{block}{bar}% bar \end{block}% \end{minipage}% \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?

  • Structuring text in multiple lines / How does TeX interpret newline?
    by user1 on June 22, 2026 at 7:49 pm

    I want to be able to easily comment out selected parts of my document, e.g., „Sentence two“ in the following example. It seems that, TeX interprets a newline as a space (except if the previous line ended with a comment) ignores double spaces (ex. 6) and thus also newlines preceded by a space (ex. 2) Does this hold for every scenario? Is there anything I should be aware of? Or can I replace all of my spaces by newlines? So example 3 is the best way to go? \documentclass{article} \begin{document} % 1. Normal written Sentence one. Sentence two. Sentence three. % 2. Space at end of every row Sentence one. Sentence two. Sentence three. % 3. No spaces at end of row Sentence one. Sentence two. Sentence three. % 4. Comment at end of every row Sentence one.% Sentence two.% Sentence three. % 5. Space and comment at end of every row Sentence one. % Sentence two. % Sentence three. % 6. Double spaces (bonus) Sentence one. Sentence two. Sentence three. \end{document}

  • tables wrapped by "\tagstructbegin{tag=Part}" and "\tagstructend" can't pass veraPDF test error content"caption should be first or last child"
    by amelia jia on June 22, 2026 at 7:42 pm

    Me and my friends are currently following a LuaLaTeX/PDF-UA accessibility workflow that recommends wrapping floating elements such as figures and tables using \tagstructbegin and \tagstructend. However, we have encountered an issue with tables. When we wrap a table with “\tagstructbegin{tag=Part}” and “\tagstructend”, veraPDF reports structure-tree errors and the document fails PDF/UA validation. However, if we remove the tag structure entirely, the table passes veraPDF validation and is read correctly by screen readers (VoiceOver in our testing). Because of this, we are unsure which approach is correct. Should we remove the manual tag structure for tables, or is there a recommended way to use tagpdf with tables that avoids these validation errors? Below is a simplified example of the table structure we are using: \tagstructbegin{tag=Part} \begin{table}[H] \caption{Sample data for Cu powder pattern} \makebox[\textwidth][c]{ \begin{tabular}{|c|c|c|c|c|} \hline $sin^2\theta$ & $sin^2\theta/0.1369$ & $(sin^2\theta/0.1369)*3$, rounded & hkl \\ \hline 0.1369 & 1 & 3 & (111)\\ 0.1809 & 1.32 & 4 & (200)\\ 0.3642 & 2.66 & 8 & (220)\\ 0.5012 & 3.66 & 11 & (311)\\ 0.5455 & 3.98 & 12 & (222)\\ \hline \end{tabular} } \label{XRD:table2} \end{table} \tagstructend The VeraPDF error report is: "When present, the Caption element shall be the first or the last child of the structure element". Thanks for your help!

  • 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> *********** )

  • 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: Why this math fail in context but work OK in lualatex?
    by Nasser on June 21, 2026 at 10:32 pm

    I use latex generated by computer algebra systems. So I can't change it as each time the program run, it will be overwritten. Also Scientific word generates such latex. All math tex work OK with lulatex. My understanding so far, is that same tex code works as is in context as with lualatex because context uses same tex engine also as lualatex. And I only need to change the surrounding latex commands to context commands. i.e. change \begin{align*} to \startformula and so on. But the tex generated will still work. Here is example where it does not work. First lualatex \documentclass[12pt,oneside]{book} \usepackage{amsmath} \begin{document} \[ x^{\prime \prime } =50 \sin \left (5 t \right )%autogenerated \] \end{document} compiled gives Here is context file \starttext \startformula x^{\prime \prime } =50 \sin \left (5 t \right ) \stopformula \stoptext Compiled using context gives If some tex code do not work same way as in Lualatex, then using context will not work for me, as 90% of the tex code I use is generated by other programs. Would someone clarify this aspect of context?

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

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

  • LaTeX old math symbols
    by Dmelv on June 17, 2026 at 4:50 pm

    Does anyone know if there are LaTeX codes for the old 17th- and 18th-century symbols for involution (powers) (kind of like an @ sign) and evolution (roots) (a sort of extended w)? Thanks. Thanks for all your assistance. According to Cajori's A History of Mathematical Notations (1928), p. 353 and pp. 213-214, the notation for involution and evolution go back to Johann Heinrich Rahn in his Teutsche Algebra (1659). However, Rahn used an Archimedean spiral to signify involution (he called it "involviren") (see https://old.maa.org/press/periodicals/convergence/math-origins-the-logical-ideas). Rahn's work was translated into English in 1668 by Thomas Brancker as *Added * and the Archimedean spiral was indeed replaced by the omicron-sigma ligature (with no explanation given; perhaps the typesetter had the ligature on hand). Ward, along with other English writers followed Brancker's notation. According to Cajori (p. 211), the sign for evolution is apparently a ligature of two epsilons.