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

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

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

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

  • Redefining \ref while using hyperlinks
    by Tomasz23 on June 20, 2026 at 11:23 pm

    Edit: essentially duplicate of redefining \label and \ref when using hyperref, noting that one more redefinition is needed with amsmath (Using custom \locallabels command with custom \eqref command). I'm trying to redefine \label and \ref to automatically append label by \themycounter: (where mycounter is a counter I use to avoid overlapping labels in a larger project made from multiple pieces). The approach in MWE below works well when hyperlinks is not loaded. As soon as I uncomment \usepackage{hyperlinks} the setup breaks, as if Latex was ignoring my attempt at redefining \ref (in the example below, with hyperlinks loaded \ref{0:e1} works). How should I fix it (and why is it broken in the first place)? MWE: \documentclass{article} %\usepackage{hyperref} \newcounter{mycounter} \let\oldlabel\label \renewcommand{\label}[1]{\oldlabel{\themycounter:#1}} \let\oldref\ref \def\ref#1{\oldref{\themycounter:#1}} \begin{document} \begin{equation}\label{foo} 1=1 \end{equation} \ref{foo} %\ref{0:foo} <-this creates a correct reference with hyperlinks loaded \end{document}

  • How to get dagger and double-dagger only as footnote symbols?
    by Cham on June 20, 2026 at 9:26 pm

    I'm writing a novel which has a few footnotes. In some special cases, I only have two or maybe three (max !) footnotes on the same page. I would like to get the same dagger symbol for all footnotes on each page, if there's only a single footnote, and the dagger and double-dagger on the pages that get two footnotes at bottom. How can I achieve this? Usually, for technical documents, I use the default numbers. But I need to change that to daggers and double-daggers only, with a recount on each page. In the very rare case where I would need a third footnote on the same page, I would prefer the old style paragraph symbol, or another better one. If possible, I would prefer to not load any new package, since my full document preamble is already pretty heavy... Here's a MWE to play with, which currently isn't doing what I'm looking for: \RequirePackage[l2tabu,orthodox]{nag} \documentclass[11pt,twoside]{book} \usepackage[T1]{fontenc} \usepackage[tt=false]{libertinus} \usepackage[french]{babel} \usepackage[stretch=50]{microtype} % Option : stretch=50 \usepackage[letterpaper,left=1.25in,right=1in,top=0.5in,bottom=0.5in,includeheadfoot,headheight=15pt]{geometry} % Option showframe pour montrer les bordures. \raggedbottom \setlength{\parindent}{1.5em} \linespread{1.1} \usepackage[bottom]{footmisc} \usepackage{titlesec} \usepackage{graphicx} \usepackage[dvipsnames]{xcolor} \usepackage{float} \usepackage{fancyhdr} \usepackage[titles]{tocloft} \usepackage[unicode,colorlinks,linkcolor=Blue,urlcolor=Red,citecolor=blue,pdftitle={title},pdfauthor={Author},pdfsubject={Subject},pdfkeywords={Words},pdfproducer={pdfLaTeX},plainpages=false,hyperindex=true,pdfpagelabels,linktocpage=true]{hyperref} % Footnote symbol: \renewcommand{\thefootnote}{\fnsymbol{footnote}} \begin{document} Blablabla\footnote{Bla bla.}. Bla bla\footnote{Blablabla.} \newpage Blabla\footnote{Blabla bla.}. Blabla bla bla\footnote{Footnote.} Bla blabla bla\footnote{Blablabla.} \end{document}

  • How to swap OpenType mathematics font glyphs of symbols defined by unicode-math?
    by Nyx on June 20, 2026 at 4:06 pm

    Here is my MWE: % !TEX program = lualatex \documentclass{article} \usepackage[no-math,otfmath]{newpx} % Loads unicode-math \setmathfont{Asana Math} \setmathfont{STIX Two Math}[version=stix-two-math] % \setmathfont{STIX Two Math}[ % range={ % \assert, % \Dashv, % \dashv, % \models, % \vDash, % \vdash, % } % ] \begin{document} \section{Asana Math} {\Huge\[\assert\vdash\dashv\]} {\Huge\[\models\vDash\Dashv\]} \section{STIX Two Math} \mathversion{stix-two-math} {\Huge\[\assert\vdash\dashv\]} {\Huge\[\models\vDash\Dashv\]} \end{document} In my personal documents, I often use Asana Math as the primary OpenType math font and STIX Two Math as the secondary OpenType math font (for glyphs which the former lacks or which I simply prefer). Judging from the glyphs in other fonts seen in List of symbols defined by the package [unicode-math], it seems that Asana Math's glyphs for \models (U+022A7 ⊧) and \vDash (U+022A8 ⊨) may have been, perhaps unintentionally, swapped. I am aware I can simply uncomment lines 6–15 in my MWE in order to use STIX Two Math's glyphs. I wanted to ask if there was a way to unswap the corresponding Asana Math glyphs, or swap the corresponding symbol definitions if the math font currently used for those symbols is Asana Math so as not to affect their original definitions when other math fonts are used instead in the document.

  • Why might this Math.SE reference be presented this way? How do I correct it?
    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?

  • Catalogue-style document, one variable-sized image per page
    by user40960 on June 20, 2026 at 9:53 am

    I wish to use LaTeX to output a pdf document where each page has the same format header+included image+footer (and has A4 size). The header and footer have fixed size (the footer is always a one-liner with varying content, and the footer always has three lines), but the included images vary in size and should be vertically centered in the region between the header and the footer. Also the "bound" margin (i.e. the left margin on odd-number pages, and the right margin on even-number pages) needs to always exceed a certain minimum, 3 cm, to prevent text to be "eaten up" by the binding. I would like to use the geometry package for this. Here is my failed attempt (which most probably because TeX's internals introduce some extra vertical space somewhere, causing the footers to be put on the following page) : \documentclass[a4paper]{article} \usepackage[ margin=20mm ]{geometry} \usepackage{mwe} \usepackage{graphicx} \usepackage{calc} \usepackage{lipsum} % only for dummy text \pagestyle{empty} %-------------------------------------------------- % Storage used to measure header and footer heights %-------------------------------------------------- \newsavebox{\headerbox} \newsavebox{\footerbox} \newlength{\availableheight} %-------------------------------------------------- % One page consisting of: % header % centered image % footer %-------------------------------------------------- \newcommand{\imagepage}[3]{% \clearpage % Measure header \sbox{\headerbox}{% \parbox{\textwidth}{\centering #1}% } % Measure footer \sbox{\footerbox}{% \parbox{\textwidth}{\centering #3}% } % Compute available height \setlength{\availableheight}{\textheight} \addtolength{\availableheight} {-\ht\headerbox-\dp\headerbox} \addtolength{\availableheight} {-\ht\footerbox-\dp\footerbox} % Header \noindent\usebox{\headerbox}\par % Image region \noindent \parbox[c][\availableheight][c]{\textwidth}{% \centering \includegraphics[ width=\textwidth, height=\availableheight, keepaspectratio ]{#2}% } % Footer \par \noindent\usebox{\footerbox} } \begin{document} \imagepage {Experiment A --- Sample 001} {example-image-a} {% Acquisition date: 2026-06-20\\ Instrument: Microscope X\\ Operator: Alice } \imagepage {Experiment A --- Sample 002} {example-image-b} {% Acquisition date: 2026-06-21\\ Instrument: Microscope X\\ Operator: Bob } \imagepage {Experiment B --- Sample 017} {example-image-c} {% Acquisition date: 2026-06-22\\ Instrument: Microscope Y\\ Operator: Carol } \end{document}

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

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

  • fontspec stanza when font is available in multiple sizes
    by Karl Berry on June 19, 2026 at 5:40 pm

    New Computer Modern has 8pt and 10pt fonts, e.g., NewCM08-Regular.otf and NewCM10-Regular.otf. How best to express, in the .fontspec file, the desire to use the 8pt font for 8pt or smaller, and the 10pt font everything else? Since "-8" means <8 and "8-" means >=8 (fontspec manual p.25), it seems it's necessary to specify 8 itself explicitly, as in: UprightFont={NewCM10-Regular.otf},% UprightFeatures={% SizeFeatures={% {% Size={-8},% Font={NewCM08-Regular.otf}% },% {% Size={8},% Font={NewCM08-Regular.otf}% },% {% Size={8-},% Font={NewCM10-Regular.otf}% },% }% },% It works but it's irritating. (I also couldn't find any actual statement in the fontspec doc that "first match wins". I hope that doesn't change.) So, my question: is there any shorthand for <=? Every font with multiple sizes (admittedly few) would want this, since it's better to scale down than to scale up. I know fontspec has an OpticalSize concept, but Antonis chose to implement the 8pt as a separate otf file, which seems reasonable. Neither lm nor drm nor the other "sized" otf files I could find have fontspec files for comparison (I guess since they have many more sizes, not so important). Not unlikely I missed something. Finally, here's a trivial LaTeX file to use the 8pt font. Without that middle "exactly 8" stanza above (or if it's after the 8-), the result is a scaled 10pt instead of the 8pt font. \documentclass{article} \usepackage{fontspec} \usepackage[olddefault]{fontsetup} \thispagestyle{empty} \begin{document} {\footnotesize A\par} \end{document}

  • Coloring links in moderncv document class
    by SCTU on June 19, 2026 at 1:40 pm

    I wrote the following code : \documentclass[11pt,a4paper,sans]{moderncv} \moderncvcolor{purple} \moderncvstyle{classic} \name{Abc}{Xyz} \email{\link[xyz@gmail.com]{xyz@gmail.com}} \begin{document} \makecvtitle \section{M.Sc Project} \cvitem{Subject}{Episode 111} \cvitem{Supervisor}{\link[Prof. CID]{https://youtu.be/lq-uW8NrlUU?si=ZK5JictkCnpC6Owt}} \end{document} Clicking on the email and clicking on the name of the supervisor takes me to the required links. But, my problem is neither the email nor the name of the supervisor is colored to distinguish it from the normal text. How can this be achieved ?

  • Efficiency and Size trade-off when customize symbols?
    by Explorer on June 19, 2026 at 12:28 pm

    This post originated wipet's comment here and here: The solution has one disadvantage and should not be used commonly with massive usage of these symbols. Each occurrence of this symbol saves to the PDF file a new code with all coordinates of all curves. This is not the same as if the font is used. Then the font is loaded only once to the PDF file (with curves of used characters) and then each occurence of the symbol in the document is realized as a reference to the font and its slot-code. The PDF is smaller. You can use \pdfxform or you can save the symbols to an external pdf and use \pdfximage primitives. I point out that saving a tikz picture into a box and usage of this box saves computation time needed by tikz which converts svg format to pdf format of curves specification, but it doesn't solve the problems mentioned in my comments above. Ad saving Tikz computation: we need not to use TikZ at all: Load svg image to inkscape and export it to eps format. Then cut the curves specification in the eps output and copy it to the \pdfliteral parameter. TikZ is not needed, the curves have native pdf format. In summary, I see four possible approaches to add custom symbol support: modify the LatinModernMath-Regular-Private.otf, add glyph slots to private area apply svg.path solution to define the symbol put svg.path symbol in a box to use for multiple times use primitive for example \pdfliteral to declare the symbols ... My question was: what is the trade-off here? Is there exists the best-practice? Feature Method1: patch font .otf file Method2: svg.path directly Method3: svg.path with box Method4: \pdfliteral primitive Depends on External Files Yes No No No Supports All Engines only unicode engines all engines all engines all engines(?) Runtime Efficiency High Low High Generated PDF File Size Small Big Big Supports Native Character Operations, e.g. \bm Yes (if coorresponding glyph was added) No (see for example) The same as left Edit Thr rows and columns of the table above could be extended freely, for example: "using a vector image (e.g. pdf)" or "use the xsavebox package or the pdfxform-commands in l3pdfxform to store the box, then it is an xobject and only stored once in the pdf" References: How to tweak the svg-symbol baseline and size to act exactly the same as `\ell`? Is that possible to get symbol-family like \ell for "k" and "h" with computer/latin modern math style? https://tex.stackexchange.com/a/763942/322482 https://tex.stackexchange.com/a/763984/322482 https://github.com/user-attachments/files/29108768/LatinModernMath-Regular-Private.zip

  • Alternative to Computer Modern that is equally well-crafted and visually appealing? [closed]
    by Ferrous1 on June 19, 2026 at 12:07 pm

    I am currently formatting my thesis. The first draft is written in Computer Modern, and after another project that used non-LaTeX fonts through XeLaTeX, I was impressed by just how well-rounded the CM font system and especially the serif font is: Expressions written in math mode don't stand out at all, even when containing a mixture of roman and greek letters, numbers, and mathematical operators. To me, it is remarkable how every CM character perfectly harmonizes with its neighbors; its single lines are thin, which doesn't make a body of text seem fragile, but elegant and precise. However, no matter how much I re-discovered my appreciation for Computer Modern, it has one major disadvantage: I don't want to say that it's overused, but its choice in modern documents may seem rather bland or uninspired, since it is THE LaTeX default font (I have the same problem with Calibri, Aptos, and Times New Roman in Microsoft Word, but a huge difference to Word's default fonts is that CM is actually a very pretty font; it would be blasphemous to associate it with Calibri). I tried many different fonts in the LaTeX font catalogue (many seem too "bold" or not "uniform" enough to me), as well as possible approaches regarding XeLaTeX/LuaLaTeX. In many cases, math mode uses alternative fonts, which leads to very little harmony between math mode and text mode; in the rare case that the very same font is actually used for text mode and math mode and concludes a broad set of characters, pure text is quickly appealing to me, but mathematical expressions aren't. I just fail to find a font that approaches math mode and its harmony with text mode with the same perfection as CM does. Do you have any suggestions for fonts that have the same elegant, perfectionist feel as Computer Modern, but don't scream "I am a [very, very beautiful] default font!"?

  • tcolorbox package destroys cross-references in tufte-layout with LyX
    by NicolasBourbaki on June 19, 2026 at 11:02 am

    When using tufte-handout as a documentclass and \usepackage[most]{tcolorbox} in the preamble, cross-references in my LyX document no longer work. Minimal working example (MWE): #LyX 2.5 created this file. For more info see https://www.lyx.org/ \lyxformat 643 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass tufte-handout \begin_preamble \usepackage[most]{tcolorbox} \end_preamble \use_default_options true \maintain_unincluded_children no \language ngerman \language_package default \inputencoding utf8 \fontencoding auto \font_roman "default" "default" \font_sans "default" "default" \font_typewriter "default" "default" \font_math "auto" "auto" \font_default_family default \use_non_tex_fonts false \font_sc false \font_roman_osf false \font_sans_osf false \font_typewriter_osf false \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false \use_dash_ligatures true \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \float_placement class \float_alignment class \paperfontsize default \spacing single \use_hyperref false \papersize default \use_geometry true \use_package amsmath 1 \use_package amssymb 1 \use_package cancel 1 \use_package esint 1 \use_package mathdots 1 \use_package mathtools 1 \use_package mhchem 1 \use_package stackrel 1 \use_package stmaryrd 1 \use_package undertilde 1 \cite_engine natbib \cite_engine_type authoryear \biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \justification default \crossref_package refstyle \use_formatted_ref 0 \use_minted 0 \use_lineno 0 \backgroundcolor none \fontcolor none \notefontcolor lightgray \boxbgcolor red \table_border_color default \table_odd_row_color default \table_even_row_color default \table_alt_row_colors_start 1 \index Index \shortcut idx \color #008000 \end_index \secnumdepth 2 \tocdepth 2 \paragraph_separation indent \paragraph_indentation default \is_math_indent 0 \math_numbering_side default \quotes_style english \dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle default \tablestyle default \tracking_changes false \output_changes false \change_bars false \postpone_fragile_content true \html_math_output 0 \html_css_as_file 0 \html_be_strict false \docbook_table_output 0 \docbook_mathml_prefix 1 \docbook_mathml_version 0 \end_header \begin_body \begin_layout Standard This sentence refers to \begin_inset CommandInset ref LatexCommand formatted reference "fig:example" plural "false" caps "false" noprefix "false" nolink "false" tuple "list" \end_inset \end_layout \begin_layout Standard \begin_inset Float figure placement document alignment document wide false sideways false status open \begin_layout Plain Layout \begin_inset Caption Standard \begin_layout Plain Layout Example \begin_inset CommandInset label LatexCommand label name "fig:example" \end_inset \end_layout \end_inset \end_layout \begin_layout Plain Layout \end_layout \end_inset \end_layout \end_body \end_document Everything works without using the option [most] of the tcolorbox package. Does anyone know the reason why \usepackage[most]{tcolorbox} destroys cross-references and how I could anticipate or more quickly identify packages breaking functionalities in LyX? I'm not used to so many issues when using pure LaTeX (i.e. without LyX). On the other hand, LyX's visual formatting makes working on large documents quite a bit easier.

  • `Too deeply nested. \item` despite `\setlistdepth{100}`
    by Signor Pizza on June 19, 2026 at 9:06 am

    git clone https://github.com/jupyter/jupyter cd docs uv venv -p 3.11 . .venv/bin/activate uv pip install -r doc-requirements.txt sphinx-build -M latex source build cd build/latex lualatex Jupyter.tex This is where I get stuck: I tried adding \usepackage{enumitem} \setlistdepth{100} from line 33, but it didn't have any effect on the error messages. Any ideas why? It would be nice to compile this without errors if possible.

  • Is that possible to add `\bm` support for custom symbols with `tikz-svg` form?
    by Explorer on June 19, 2026 at 3:58 am

    Since mathrmalpha was limited to post new question, and want to add \bm support version for \hell and \kell similar to \bm{\ell}: \documentclass{article} \usepackage{amsmath,bm} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{svg.path} \makeatletter \NewDocumentCommand{\privatesvgmathord}{m}{% \mathord{\mathpalette\privatesvgmathord@{#1}}% } \newcommand{\privatesvgmathord@}[2]{% \begingroup \sbox\z@{$#1\ell$}% \resizebox{!}{1.025\ht\z@}{% \begin{tikzpicture}[x=1pt,y=1pt] \fill svg {#2}; \end{tikzpicture}% }% \endgroup } \makeatother \NewDocumentCommand{\hell}{}{% \privatesvgmathord{% M59 39C51 7 66 -9 84 -11C102 -13 118 -1 126 32L176 237C212 385 294 420 354 420C397 420 408 386 408 350C408 320 384 254 364 192C307 17 368 -11 415 -11C494 -11 535 97 545 136C547 144 545 151 537 153C531 154 527 150 524 142C503 83 472 11 417 11C400 11 394 21 393 44C391 99 472 277 472 335C472 400 432 442 357 442C334 442 312 438 293 430C369 520 455 648 455 769C455 786 455 847 396 847C345 847 302 786 268 735C245 699 208 606 186 520L127 292L-49 123C-56 116 -54 109 -50 105C-45 100 -40 100 -33 106C-20 117 14 150 115 248ZM256 557C271 618 292 684 317 731C343 780 372 825 397 825C431 825 431 789 431 773C431 669 366 562 306 484C269 437 228 396 210 377Z% }% } \NewDocumentCommand{\kell}{}{% \privatesvgmathord{% M465 789C465 806 465 867 406 867C323 867 223 646 142 316L-37 145C-45 137 -45 130 -41 125C-37 120 -30 119 -22 126C-9 138 26 171 129 272L59 39C52 15 56 -5 78 -10C102 -15 116 -1 122 24L174 229C208 226 295 208 285 108C277 21 323 -11 375 -11C444 -11 465 63 488 134C491 144 488 150 481 152C474 154 468 150 465 141C443 71 421 11 377 11C345 11 347 48 353 114C362 207 294 239 209 250C240 268 272 300 295 324C343 377 389 420 438 420C453 420 465 414 472 407C424 404 414 376 415 353C416 331 434 318 453 318C479 318 508 340 508 379C508 409 485 442 440 442C412 442 366 434 294 354C260 316 221 276 183 261L204 345C362 497 465 648 465 789ZM343 782C363 820 382 845 407 845C441 845 441 809 441 793C441 637 310 483 213 386C257 572 308 715 343 782Z% }% } \begin{document} $\ell \quad \hell \quad \kell$ $\bm{\ell} \quad \bm{\hell} \quad \bm{\kell}$ $\mathbf{\ell} \quad \mathbf{\hell} \quad \mathbf{\kell}$ \end{document} By adding glyths in .otf is not quite plantable, and my original purpose to modify the .otf is to get the svg-data... I would prefer a TeX based technique in this post.

  • How to use Archivo as the sans serif font with tgpagella as the serif font?
    by henry on June 18, 2026 at 11:27 pm

    I do not manage to use Archivo as the sans font while using ... practically any other serif font. In the MWEs below, I simply used tgpagella. What should one do? Or did I overlook/misunderstand something? MWE 1 \documentclass{scrartcl} \usepackage[ scale=0.925, ]{Archivo} \usepackage{tgpagella} \usepackage[scale=1.02]{zi4} \usepackage[T1]{fontenc} \begin{document} \begin{itemize} \item wordstuff \begin{itemize} \item \sffamily A sentence to showcase the problem. \item \textrm{asdf} \end{itemize} \end{itemize} \end{document} Output 1 MWE 2 \documentclass{scrartcl} \usepackage{tgpagella} \usepackage[ scale=0.925, ]{Archivo} \usepackage[scale=1.02]{zi4} \usepackage[T1]{fontenc} \begin{document} \begin{itemize} \item wordstuff \begin{itemize} \item \sffamily A sentence to showcase the problem. \item \textrm{asdf} \end{itemize} \end{itemize} \end{document} Output 2

  • TexWorks failing to generate PDF (forking after trying to create pdflatex.fmt) [closed]
    by kodlu on June 18, 2026 at 8:18 pm

    I am working on an Apple MacBook with MacOS Tahoe 26.5.1 A file that compiles fine on overleaf fails with this installation which I did for a single user (my account) Part of the output pdflatex.log is below (I tried to use pdfLaTex). The same file compiles with no problems on overleaf, but I will be travelling and want to work on it without internet access. 2026-06-17 14:40:38,219+0300 INFO pdflatex - this process (5163) started by TeXworks in directory /Users/kelektas/Desktop/TR 2026 with command line: /Users/kelektas/bin/pdflatex -synctex=1 ITU-talk.tex 2026-06-17 14:40:38,219+0300 INFO pdflatex - this is MiKTeX-PDFTEX 4.10.0 (1.40.24) (MiKTeX 22.1) 2026-06-17 14:40:38,219+0300 INFO pdflatex - allowing known shell commands 2026-06-17 14:40:38,223+0300 INFO pdflatex - going to create file: pdflatex.fmt 2026-06-17 14:40:38,235+0300 INFO pdflatex.core - forking... 2026-06-17 14:40:38,495+0300 ERROR pdflatex - /Users/kelektas/bin/miktex did not succeed; exitCode: 1 2026-06-17 14:40:38,495+0300 ERROR pdflatex - output: 2026-06-17 14:40:38,495+0300 ERROR pdflatex - Sorry, but: The executed process did not succeed. 2026-06-17 14:40:38,495+0300 FATAL pdflatex.core - The memory dump file could not be found. 2026-06-17 14:40:38,495+0300 FATAL pdflatex.core - Data: fileName="pdflatex.fmt" 2026-06-17 14:40:38,495+0300 FATAL pdflatex.core - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp:717 2026-06-17 14:40:38,496+0300 FATAL pdflatex - The memory dump file could not be found. 2026-06-17 14:40:38,496+0300 FATAL pdflatex - Info: fileName="pdflatex.fmt" 2026-06-17 14:40:38,496+0300 FATAL pdflatex - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp 2026-06-17 14:40:38,496+0300 FATAL pdflatex - Line: 717 2026-06-17 14:40:38,496+0300 INFO pdflatex - this process (5163) finishes with exit code 1 Any help appreciated

  • NiceTabular - Default value for empty cells
    by projetmbc on June 18, 2026 at 7:16 pm

    In the code below, I want to only input the 1s and leave the zero cells blank. Is there an easy way to achieve this? \documentclass[border = 3pt]{standalone} \usepackage{nicematrix} \begin{document} \begin{NiceTabular}{>{\bfseries}*{6}{c}}[ hvlines, corners = NW ] \RowStyle{\bfseries} & A & B & C & D & E \\ A & 0 & 0 & 1 & 1 & 0 \\ B & 0 & 0 & 0 & 1 & 1 \\ C & 1 & 0 & 0 & 0 & 1 \\ D & 1 & 1 & 0 & 0 & 0 \\ E & 0 & 1 & 1 & 0 & 0 \end{NiceTabular} \end{document}

  • How to tweak the svg-symbol baseline and size to act exactly the same as `\ell`?
    by Explorer on June 18, 2026 at 7:08 pm

    I want to self-answer my previous question —— to derive the latin-modern-math-stlye \ell for symbol h and k, learning from kabenyuk's solution: \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{svg.path} \newcommand{\privatesvgmathord}[1]{% \mathord{\vcenter{\hbox{% \resizebox{!}{1.75ex}{% \begin{tikzpicture}[x=1pt,y=1pt] \fill svg {#1}; \end{tikzpicture}% }% }}}% } \newcommand{\hell}{% \privatesvgmathord{% M59 39C51 7 66 -9 84 -11C102 -13 118 -1 126 32L176 237C212 385 294 420 354 420C397 420 408 386 408 350C408 320 384 254 364 192C307 17 368 -11 415 -11C494 -11 535 97 545 136C547 144 545 151 537 153C531 154 527 150 524 142C503 83 472 11 417 11C400 11 394 21 393 44C391 99 472 277 472 335C472 400 432 442 357 442C334 442 312 438 293 430C369 520 455 648 455 769C455 786 455 847 396 847C345 847 302 786 268 735C245 699 208 606 186 520L127 292L-49 123C-56 116 -54 109 -50 105C-45 100 -40 100 -33 106C-20 117 14 150 115 248ZM256 557C271 618 292 684 317 731C343 780 372 825 397 825C431 825 431 789 431 773C431 669 366 562 306 484C269 437 228 396 210 377Z% }% } \newcommand{\kell}{% \privatesvgmathord{% M465 789C465 806 465 867 406 867C323 867 223 646 142 316L-37 145C-45 137 -45 130 -41 125C-37 120 -30 119 -22 126C-9 138 26 171 129 272L59 39C52 15 56 -5 78 -10C102 -15 116 -1 122 24L174 229C208 226 295 208 285 108C277 21 323 -11 375 -11C444 -11 465 63 488 134C491 144 488 150 481 152C474 154 468 150 465 141C443 71 421 11 377 11C345 11 347 48 353 114C362 207 294 239 209 250C240 268 272 300 295 324C343 377 389 420 438 420C453 420 465 414 472 407C424 404 414 376 415 353C416 331 434 318 453 318C479 318 508 340 508 379C508 409 485 442 440 442C412 442 366 434 294 354C260 316 221 276 183 261L204 345C362 497 465 648 465 789ZM343 782C363 820 382 845 407 845C441 845 441 809 441 793C441 637 310 483 213 386C257 572 308 715 343 782Z% }% } \begin{document} abcdel$\ell$hh$\hell$kkkk$\kell$kkk {\Large abcdel$\ell$hh$\hell$kkkk$\kell$kkk} \[ l h k \ell \quad \hell \quad \kell \] \[ \ell_{\hell} \quad \hell^{\ell} \quad \kell(t)=\hell_{\ell}^{\kell} \] \end{document} Quite strange, I extracted the svg.path data from the .otf file(modified with Fonts Creators by myself). But the baseline and the scale is not quite excellet... Any suggestions? How to tweak the svg-symbol baseline and size to act exactly the same as \ell? Edit Claim: I was not professional in fonts, actually, newbees here below is the LatinModernMath-Regular-Private.otf file here, with the following: \documentclass{article} \usepackage{unicode-math} \setmathfont{LatinModernMath-Regular-Private.otf} \newcommand{\hell}{\mathord{\symbol{"E0000}}} \newcommand{\kell}{\mathord{\symbol{"E0010}}} \begin{document} abcdel$\ell$hh$\hell$kkkk$\kell$kkk \[ l \quad h \quad k \] \[ \ell \quad \hell \quad \kell \] \end{document} The .otf might be probably not in good format, but what I want, is to provide a svg solution to my previous question of \ell. If needed, the .otf above could be tested.

  • Using hyperref also changes title color
    by X3nius on June 18, 2026 at 6:38 pm

    I'm using the code below. I only want urlcolor=blue and citecolor=violet (and maybe some reference colors to equations blue). With hypersetup active, the table of contents becomes red (despite of having written linktoc=none), and also the title, section and subsections in the black-blue field turn red. What can I do to make everything like in the version without Hypersetup? \documentclass{beamer} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{beamerthemeshadow} \usepackage[dvipsnames]{xcolor} \hypersetup{ colorlinks=true, urlcolor=blue, citecolor=violet, linktoc=none } \title{A title} \author{Name} \usepackage{beamerthemeshadow} \begin{document} \begin{frame} \frametitle{Table of contents} \tableofcontents \end{frame} \section{Section 1} \subsection{Subsection 1} \begin{frame} This is Subsection 1. \end{frame} \subsection{Subsection 2} \begin{frame} This is Subsection 2. \end{frame} \end{document}

  • How to replace a titletoc mini ToC with memoir builtin features?
    by Maniel SOTOMAYOR on June 18, 2026 at 4:18 pm

    Currently I'm using the titletoc package to generate a chapter-based mini ToC in a memoir class document. All I'm using from titletoc are the following commands: \startcontents[chapters] \printcontents[chapters]{}{1}{} \stopcontents[chapters] Here's a MWE: \documentclass[b6paper, 10pt, twoside, openright, final]{memoir} \setlrmarginsandblock{1.5cm}{.5cm}{*} \setulmarginsandblock{1.5cm}{*}{1} \checkandfixthelayout{} \usepackage{titletoc} % ------------------------------------------------------------------------------ \pagestyle{plain} \pagenumbering{roman} % ------------------------------------------------------------------------------ \title{ My Memoir } \author{M} \date{June 18, 2026} % ------------------------------------------------------------------------------ \begin{document} \cleartooddpage[\thispagestyle{empty}] \cleartoevenpage[\thispagestyle{empty}] \thispagestyle{empty} \frontmatter % ------------------------------------------------------------------------------ \begingroup \setlength{\beforechapskip}{0pt} \setlength{\afterchapskip}{1em} \tableofcontents* \endgroup \newpage % ------------------------------------------------------------------------------ \mainmatter \pagenumbering{arabic} % ------------------------------------------------------------------------------ \chapter{Guide} \startcontents[chapters] \titlerule\vspace{5pt} \printcontents[chapters]{}{1}{} \newpage \section{Diagram} \clearpage \section{Sequence} \stopcontents[chapters] % ------------------------------------------------------------------------------ \end{document} % ============================================================================== I want to replace the titletoc package dependencies and use the memoir class builtin features. Is there a way to do it?

  • Subitem arrowstyle
    by X3nius on June 18, 2026 at 3:27 pm

    Is there an elegant way to define subitems as arrows? I've tried the following code, however, it is quite a circumstance to have to add [$\Rightarrow] for every subitem \documentclass[hyperref={pdfpagelabels=false}]{beamer} \usepackage{lmodern} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath, amsfonts, amssymb} \usepackage{amsthm} \usepackage{beamerthemeshadow} \begin{document} \section{Section 1} \begin{frame} \begin{itemize} \item Item 1 \begin{itemize} \item[$\Rightarrow$] Subitem 1 \end{itemize} \end{itemize} \end{frame} \end{document}

  • Print bibliography in subsections [duplicate]
    by X3nius on June 18, 2026 at 3:11 pm

    Is there a way to force the printing of the bibliography in subsections using beamer class? When I try the code below, the the bibliography sections appear as sections, however, the first Subsection 1 is correct and appears in the blue field on the right hand side. What am I missing? Sample code: \documentclass{beamer} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{beamerthemeshadow} \usepackage[backend=biber]{biblatex} \addbibresource{sources.bib} \begin{document} \begin{frame} \frametitle{Table of contents} \tableofcontents \end{frame} \section{Section 1} \begin{frame} \frametitle{Table of Contents} \tableofcontents[currentsection] \end{frame} \subsection{Subsection 1} \begin{frame} \end{frame} \section{Bibliography} \subsection{Books} \begin{frame} \nocite{*} \printbibliography[type=book,title={Books}] \end{frame} \subsection{Misc} \begin{frame} \nocite{*} \printbibliography[type=misc,title={Misc}] \end{frame} \end{document} sources.bib: @book{book, title = {Title}, author = {Author}, isbn = {1-23456-789}, publisher = {The Pubisher}, edition = {1. Edition} } @misc{wikipedia, title={Wikipedia}, author={Wikipedia}, year={2026}, url={https://en.wikipedia.org/wiki/Main_Page}, addendum={Accessed: 18 June 2026} }

  • How to plot mark together with label with TikZ instead of pgfplots?
    by Explorer on June 18, 2026 at 1:45 pm

    Claim: I don't want to use pgfplots in this post. For the sake of I have already have a bunch of non-pgfplots code as below, I don't want to switch to pgfplots solution. The code is as below: \documentclass[tikz]{standalone} \usepackage{fourier-otf} \begin{document} \begin{tikzpicture} \draw[-latex] (0,0) -- (12,0) node[right] {Team}; \draw[-latex] (0,0) -- (0,26/4) node[above] {Number}; \foreach \y in {0,5,10,15,20,25} \draw (0,{\y/4}) -- (-0.1,{\y/4}) node[left] {\y}; \foreach \y in {5,10,15,20,25} \draw[gray!30] (0,{\y/4}) -- (11.5,{\y/4}); \foreach \name[count=\n] in {A,...,K} { \draw (\n,0) -- (\n,-0.1) node[below] {\name}; } %%%%%%%%%%%%%%%%%%% % \draw[thick] plot[mark=*, mark size=2pt, mark options={fill=black}] coordinates { % (1,16/4) (2,4/4) (3,12/4) (4,6/4) (5,5/4) (6,16/4) (7,17/4) (8,8/4) (9,8/4) (10,15/4) (11,11/4) % }; % \foreach \i[count=\n] in {16,4,12,6,5,16,17,8,8,15,11} { % \node[above=3pt] at (\n,\i/4) {$\i$}; % } %%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%% \foreach \i[count=\n] in {16,4,12,6,5,16,17,8,8,15,11} { \node[fill=black,circle,inner sep=2pt,label={above:$\i$}] (tmp-\n) at (\n,{\i/4}) {}; } \draw foreach \i[count=\last] in{2,...,11} {(tmp-\last) -- (tmp-\i)}; % %%%%%%%%%%%%%%%%%%%% \end{tikzpicture} \end{document} I would prefer the syntax of plot only in tikz: \draw[thick] plot[mark=*, mark size=2pt, mark options={fill=black}] coordinates { (1,16/4) (2,4/4) (3,12/4) (4,6/4) (5,5/4) (6,16/4) (7,17/4) (8,8/4) (9,8/4) (10,15/4) (11,11/4)}; \foreach \i[count=\n] in {16,4,12,6,5,16,17,8,8,15,11} { \node[above=3pt] at (\n,\i/4) {$\i$}; } However, I didn't find some way to label when plot. Thus I have to repeat the data \foreach \i[count=\n] in {16,4,12,6,5,16,17,8,8,15,11}{...} for the second time, which is not considered as a good practice. Any suggestions on how to do this similar without pgfplots? I don't want two forloop/plots as possible.

  • Templates in ltx-talk
    by Matthias on June 18, 2026 at 1:07 pm

    I'm trying to make a ltx-talk theme in the CI of our university. E.g., the CI request a line over the footer and a logo in the head, beside a two line header text. However, I'm afraid I haven't fully grasp the concept of templates. What exactly I have to declare or to overwrite? Do I need a new template type (but this would contradict the concept of templates, since the "idea" of a footer is still there), or a new interface, or template, or instance, and if so, how I can ensure that it is used? EDIT I'm not sure whether it will help, because my question is rather conceptional, but I was asked to provide my current code. This is my theme so far: \ProvidesExplPackage{talkthemetuc}{2026-06-16}{0.3.2}{TUC ltx-talk theme} \definecolor{tuccolor_tuc}{HTML}{005F50} \definecolor{tuccolor_inf}{HTML}{4A8246} % ... lots of other color definitions ... \definecolor{tuccolor_info}{HTML}{555555} \definecolor{tuccolor_warning}{HTML}{FF9900} \definecolor{tuccolor_danger}{HTML}{FF0000} \keys_define:nn {talkthemetuc}{ fakcolor .code = { \colorlet{tuccolor}{tuccolor_#1} \colorlet{structure}{tuccolor_#1} } } \ProcessKeyOptions[talkthemetuc]\relax \geometry{ tmargin = 1.8cm, headsep = 0.8cm, } \NewDocumentCommand \tucurl { = { short-tucurl } O { {#2} } m } { \keys_set:nn { talk / metadata } {#1} \tl_gset:Nn \@tucurl {#2} } \keys_define:nn { talk / metadata } { tucurl .tl_gset:c = @tucurl , short-tucurl .tl_gset:c = @shorttucurl } % header settings \EditInstance{header}{std}{ background-color = tuccolor, color = white, height = 1.8cm } % footer \DeclareInstance{footer-element}{tucurl}{talk}{} \EditInstance{footer-element}{framenumber}{ font = \small, left-hspace = 5pt \hfill, % this is a hack } \EditInstance{footer-element}{tucurl}{ font = \small, left-hspace = 5pt \hfill, % again } \EditInstance{footer-element}{author}{ font = \small, left-hspace = 1pt ·, % ... and again } \EditInstance{footer-element}{date}{ font = \small, } \EditInstance{footer}{std}{ color = black, separator = {\hspace{1pt}}, element-order = {date,author,framenumber,tucurl}, right-hspace = 3mm, left-hspace = 3mm, } And here is a one page presentation: \DocumentMetadata{tagging=on} \documentclass{ltx-talk} \usepackage[fakcolor=inf]{talkthemetuc} \title[Example]{Example Presentation} \subtitle{Shift from beamer to ltx-talk} \author[Joe Doe]{Prof. Joe Doe} \institute[TUC]{My University} \date{\today} \tucurl{www.a-nice.url} \begin{document} %\tuctitleframe % not yet implemented \begin{frame*} \frametitle{Motivation} \begin{itemize} \item The faculty color is a theme option. \item For multiple language version, we use the langselect package \item To set URL, use \verb!\tucurl{}! \end{itemize} \end{frame*} \end{document} The image shows the elements I've asked for:

  • Use of unicode-math range with direct Unicode input
    by Socob on June 18, 2026 at 8:16 am

    Using the range option in unicode-math to override specific symbol ranges, I would have expected that both the script selection commands (\mathbb etc.) and direct input via Unicode characters (e. g. ℝ) would produce the same result from the overriding font. However, this does not seem to be the case: \documentclass{article} \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math} \setmathfont{Latin Modern Math}[range={bb}] \begin{document} \noindent Unicode input: $ℝ$ \noindent mathbb input: $\mathbb{R}$ \end{document} Output: I saw the question “Tell unicode-math how to translate unicode symbols (script vs calligraphic)”, but initially thought that the behavior there was due to complications of \mathcal and \mathscr representing the same Unicode codepoints. Am I correct in assuming that range will actually never affect the output for Unicode characters appearing literally in the TeX source, and that these will always try to use the main math font that was defined without range?

  • correct way to reduce space above displayed equation which shows right below section header?
    by Nasser on June 18, 2026 at 2:25 am

    When there is a displayed equation (say \begin{align*} first thing below section or subsection, the space between the section header and the equation is much larger than if the displayed equation was in middle with some text above it. Is there a way to make the space the same above the displayed equation, even if the equation is right below a section header? I tried adding this to preamble \setlength{\abovedisplayskip}{6pt} \setlength{\belowdisplayskip}{6pt} \setlength{\abovedisplayshortskip}{0pt} \setlength{\belowdisplayshortskip}{6pt} But the above had no effect. I can ofcourse add \vspace command with negative value above the displayed equation if it is first thing below section title, but this looks like a hack to me. Here is MWE. Compiled with lualatex using TL 2026 \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \section{Existence and uniqueness analysis} \begin{align*} y^{\prime}&=\left(x -2\right)^{2}\\ y \left(2\right) &= 1 \end{align*} This is a line here This is a line here This is a line here This is a line here \begin{align*} y^{\prime}&=\left(x -2\right)^{2}\\ y \left(2\right) &= 1 \end{align*} This is a line here This is a line here This is a line here This is a line here \begin{align*} y^{\prime}&=\left(x -2\right)^{2}\\ y \left(2\right) &= 1 \end{align*} \end{document} I also tried adding this to preamble but it had no effect \setlength{\abovedisplayskip}{3pt plus 1pt minus 2pt} \setlength{\abovedisplayshortskip}{0pt plus 1pt} \setlength{\belowdisplayskip}{3pt plus 1pt minus 2pt} \setlength{\belowdisplayshortskip}{3pt plus 1pt minus 2pt} Is there a global solution, I can add to preamble with having to manually use \vspace and such? Screen shot from actual latex pdf file I have: I do not like that extra vertical space above the first equation. I can rewrite things so first thing below section title is not an equation. But Latex should have solution not to add this extra space I thought.

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

  • How to include section template defined heading prefix in TOC?
    by David Purton on June 17, 2026 at 7:17 am

    The new template based section heading definitions which support tagging include a prefix option which is added before the section number. What is the correct way to include this in the TOC? So in the below MWE, the contents ought to show: An Unnumbered Chapter Chapter Prefix 1 A Numbered Chapter MWE %! TeX Program = lualatex \DocumentMetadata { , lang = en , pdfstandard = ua-2 , tagging = on , tagging-setup = { math/mathml/luamml/load = false } } \documentclass{report} \EditInstance{heading}{chapter} { prefix = Chapter Prefix } \begin{document} \tableofcontents \addcontentsline{toc}{chapter}{An Unnumbered Chapter} \chapter{A Numbered Chapter} \end{document}

  • How to design station signs for Taiwan Railway in TeX?
    by mathrm alpha on June 16, 2026 at 4:08 am

    Although I wrote a LaTeX-like design for Taiwanese train station signs, the resemblance is still somewhat lacking. https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/ROC_Taiwan_Railways_Administration_Logo.svg/960px-ROC_Taiwan_Railways_Administration_Logo.svg.png \documentclass{article} \usepackage{xeCJK,amssymb} \usepackage[ paperwidth=5in, paperheight=3in, margin=0.2in ]{geometry} \usepackage{graphicx} \usepackage{tikz} \pagestyle{empty} \begin{document} \begin{tikzpicture}[remember picture,overlay] \node[anchor=north west, xshift=0in, yshift=0in] at (current page.north west) { \includegraphics[width=0.5in,height=0.5in]{960px-ROC_Taiwan_Railways_Administration_Logo.svg.png} }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[align=center, text=black, yshift=0.25in] at (current page.center) { {\fontsize{28pt}{34pt}\selectfont Miaoli} \\[0.2em] {\fontsize{32pt}{38pt}\selectfont 苗栗} }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[ draw, line width=0.8pt, minimum size=0.9in, inner sep=0pt, align=center, font=\fontsize{12pt}{12pt}\selectfont ] at ([xshift=1.25in, yshift=0.25in]current page.center) { 苗栗縣\\ 苗栗市 }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[anchor=south west, xshift=0.2in, yshift=0.2in] at (current page.south west) { {\Large 豐富 Fengfu} }; \node[anchor=south east, xshift=-0.2in, yshift=0.2in] at (current page.south east) { {\Large 南勢 Nanshi} }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \draw[green!60!black, line width=1.2pt] ([yshift=0.65in]current page.south west) -- ([yshift=0.65in]current page.south east); \node[anchor=west, text=green!60!black] at ([yshift=0.78in]current page.south west) {\large $\blacktriangleleft$ 3.9 公里 (km)}; \node[anchor=east, text=green!60!black] at ([yshift=0.78in]current page.south east) {\large 6.6 公里 (km) $\blacktriangleright$}; \end{tikzpicture} \end{document} A better version should be: Source: http://trstour.com/miao-li.htm