Week
- How to Create a Chart of Taiwanese Bus Routes Using LaTeX?by mathrm alpha on November 20, 2026 at 4:58 am
For example, I want to use LaTeX to create a route map for Taiwan's intercity buses: Here's the code below: \documentclass[border=0pt]{standalone} \usepackage{fontspec} \usepackage{etoolbox} \usepackage{amssymb} \usepackage{xeCJK} \usepackage{tikz} \usetikzlibrary{arrows.meta,calc,shapes.geometric} \setCJKmainfont{Noto Sans CJK TC} \setmainfont{DejaVu Sans} \definecolor{redbus}{HTML}{B60000} \definecolor{goldbus}{HTML}{A38743} \definecolor{purplebus}{HTML}{B61C73} \definecolor{bluebus}{HTML}{126090} \begin{document} \begin{tikzpicture}[x=0.25mm,y=-0.25mm,inner sep=0pt,outer sep=0pt] \path[use as bounding box] (0,0) rectangle (960,765);\clip (0,0) rectangle (960,765); \fill[white] (0,0) rectangle (960,765); \fill[redbus] (0,0) rectangle (960,34); \node[white,font=\fontsize{9}{11}\selectfont] at (479,18) {大南汽車:0800-089-456 土城站:2274-1827 三重客運:0800-090-607 土城站:2261-4734}; \node[anchor=west,font=\bfseries\fontsize{76}{80}\selectfont,text=redbus] at (12,124) {265}; \draw[redbus,line width=2pt] (260,46)--(260,200); \node[anchor=north west,align=left,font=\fontsize{7}{11}\selectfont] at (269,40) { 一、起迄點:土城-行政院(經明德路)/土城-行政院(經中央路)\\ 二、頭末班車時間:05:30--22:00\\ 三、收費方式:二段票收費\\ 四、分段點/緩衝區:往程:埔墘(三民路)-捷運龍山寺站/返程:龍山寺(西園)-埔墘(三民路)\\ 五、發車間隔:標示紅色時刻為例假日行駛參考\\ \hspace{12pt}經明德路:05:30/06:20/07:00/07:10/07:40/08:40/09:30/10:20/11:10/11:25/11:50\\ \hspace{96pt}12:00/12:50/13:10/13:40/13:50/14:30/14:50/15:35/16:20/16:40/17:20\\ \hspace{96pt}18:15/19:05/19:55/20:45/21:35/22:00\\ \hspace{12pt}經中央路:06:00/06:35/06:50/07:20/07:35/08:15/09:00/09:15/09:50/10:05/10:45/11:40/12:20/12:35\\ \hspace{96pt}13:15/13:30/14:15/14:45/15:15/16:00/16:15/16:50/17:05/17:45/18:40/19:30/20:20/21:10 }; \draw[purplebus,line width=1.6pt,rounded corners=6pt,fill=white] (803,45) rectangle (948,124); \draw[purplebus,line width=1pt] (803,82)--(948,82); \node[align=center,font=\fontsize{8}{10}\selectfont,text=purplebus] at (875,63) {全程車假日\\狗狗公車固定班次}; \node[align=center,font=\fontsize{8}{10}\selectfont] at (875,103) {發車班次(經明德路)\\06:20/09:30/14:30}; \draw[redbus!40,line width=1.6pt] (23,216)--(937,216); % Routes: top row eastward, right descent, lower row westward, left return \draw[goldbus,line width=3pt,rounded corners=15pt] (34,263)--(901,263)--(924,263)--(924,467)--(52,467)--(35,467)--(35,414)--(127,414)--(127,466); \draw[goldbus,line width=3pt,rounded corners=9pt] (238,263)--(238,294)--(102,294); \draw[goldbus,line width=3pt,rounded corners=11pt] (509,263)--(509,357)--(570,357)--(570,263); \draw[goldbus,line width=3pt,rounded corners=10pt] (743,263)--(743,356)--(815,356)--(815,263); \draw[white,line width=5pt] (245,263)--(485,263); \draw[black,line width=1.7pt] (245,263)--(485,263); \node[font=\bfseries\fontsize{17}{18}\selectfont,rotate=0] at (522,287) {\textcolor{goldbus}{\Large$\triangleleft$}}; \node[font=\bfseries\fontsize{17}{18}\selectfont] at (738,287) {\textcolor{goldbus}{\Large$\triangleleft$}}; % pale separator \draw[redbus!30,line width=2pt] (25,660)--(935,660); % Editable stop marker and vertically set station name % #1=x coordinate, #2=y coordinate, #3=ordinary/red, #4=top/bottom, #5=stacked name \newcommand{\Stop}[5]{% \ifstrequal{#3}{red}{ \draw[redbus,line width=1.45pt,fill=white] (#1,#2) circle (7); \fill[redbus] (#1,#2) circle (2.5); }{\draw[black,line width=1.35pt,fill=white] (#1,#2) circle (7);} \ifstrequal{#4}{top}{ \node[anchor=north,align=center,font=\fontsize{9}{10}\selectfont] at (#1,{#2+14}) {#5}; }{\node[anchor=north,align=center,font=\fontsize{9}{10}\selectfont] at (#1,{#2+14}) {#5};} } \Stop{33}{263}{red}{top}{土\\城\\站} \Stop{63}{263}{ordinary}{top}{大\\同\\莊\\園} \Stop{101}{294}{red}{top}{土\\城\\站} \Stop{130}{294}{ordinary}{top}{看\\守\\所} \Stop{159}{294}{ordinary}{top}{捷\\運\\海\\山\\站} \Stop{189}{294}{ordinary}{top}{明\\德\\路\\一\\段} \Stop{218}{294}{ordinary}{top}{明\\德\\路} \Stop{255}{263}{ordinary}{top}{日\\新\\里} \Stop{284}{263}{ordinary}{top}{貨\\饒\\里} \Stop{313}{263}{ordinary}{top}{中\\央\\路} \Stop{342}{263}{red}{top}{中\\央\\一\\站} \Stop{370}{263}{ordinary}{top}{南\\雅\\站} \Stop{399}{263}{ordinary}{top}{亞\\東\\技\\術\\學\\院} \Stop{428}{263}{ordinary}{top}{信\\義\\路} \Stop{456}{263}{ordinary}{top}{郵\\局} \Stop{484}{263}{red}{top}{壽\\德\\新\\村} \Stop{513}{263}{ordinary}{top}{重\\慶\\國\\中} \Stop{543}{263}{red}{top}{重\\慶\\國\\中} \Stop{570}{263}{ordinary}{top}{重\\慶\\國\\中} \Stop{596}{263}{ordinary}{top}{重\\慶\\忠\\孝\\路\\口} \Stop{625}{263}{ordinary}{top}{忠\\孝\\路} \Stop{655}{263}{ordinary}{top}{中\\興\\醫\\院} \Stop{684}{263}{ordinary}{top}{福\\星\\里} \Stop{715}{263}{ordinary}{top}{鄉\\雲\\里} \Stop{757}{263}{ordinary}{top}{後\\站\\商\\圈} \Stop{800}{263}{ordinary}{top}{後\\站\\商\\圈} \Stop{842}{263}{red}{top}{介\\壽\\公\\園} \Stop{872}{263}{ordinary}{top}{板\\橋\\外\\站} \Stop{901}{263}{ordinary}{top}{民\\權\\路\\口} \Stop{52}{467}{red}{bottom}{立\\法\\院} \Stop{80}{467}{red}{bottom}{成\\功\\中\\學} \Stop{110}{467}{red}{bottom}{捷\\運\\善\\導\\寺\\站} \Stop{139}{467}{ordinary}{bottom}{臺\\北\\車\\站} \Stop{168}{467}{ordinary}{bottom}{中\\華\\路\\北\\站} \Stop{197}{467}{red}{bottom}{捷\\運\\西\\門\\站} \Stop{226}{467}{ordinary}{bottom}{小\\南\\門} \Stop{255}{467}{red}{bottom}{桂\\林\\昆\\明\\街\\口} \Stop{285}{467}{red}{bottom}{桂\\林\\路} \Stop{314}{467}{ordinary}{bottom}{龍\\山\\寺} \Stop{345}{467}{ordinary}{bottom}{龍\\山\\國\\寺} \Stop{379}{467}{red}{bottom}{捷\\運\\龍\\山\\寺\\站} \Stop{410}{467}{ordinary}{bottom}{大\\理\\服\\飾} \Stop{440}{467}{ordinary}{bottom}{西\\園\\2\\9\\服\\飾\\基\\地} \Stop{470}{467}{ordinary}{bottom}{華\\江\\高\\中} \Stop{507}{467}{ordinary}{bottom}{西\\園\\路\\二\\段} \Stop{537}{467}{ordinary}{bottom}{光\\復\\橋} \Stop{574}{467}{ordinary}{bottom}{光\\復\\橋} \Stop{603}{467}{ordinary}{bottom}{埔\\墘\\派\\出\\所} \Stop{633}{467}{ordinary}{bottom}{埔\\墘} \Stop{662}{467}{ordinary}{bottom}{埔\\墘\\里} \Stop{691}{467}{ordinary}{bottom}{自\\來\\水\\公\\司} \Stop{720}{467}{ordinary}{bottom}{正\\隆\\廣\\場} \Stop{750}{467}{ordinary}{bottom}{中\\山\\路\\口} \Stop{779}{467}{red}{bottom}{捷\\運\\板\\新\\站} \Stop{808}{467}{red}{bottom}{中\\山\\漢\\生\\路\\口} \Stop{838}{467}{ordinary}{bottom}{新\\北\\市\\政\\府} \Stop{868}{467}{ordinary}{bottom}{新\\北\\板\\橋\\公\\車\\站} \Stop{898}{467}{ordinary}{bottom}{新\\北\\市\\政\\府} % numbered major connection stations \node[font=\bfseries\fontsize{16}{16}\selectfont,text=redbus] at (101,244) {1}; \node[font=\bfseries\fontsize{16}{16}\selectfont,text=redbus] at (159,244) {2}; \node[font=\bfseries\fontsize{16}{16}\selectfont,text=redbus] at (379,441) {3}; \node[font=\bfseries\fontsize{16}{16}\selectfont,text=redbus] at (197,441) {4}; \node[font=\bfseries\fontsize{16}{16}\selectfont,text=redbus] at (139,441) {5}; \node[font=\bfseries\fontsize{16}{16}\selectfont,text=redbus] at (80,441) {6}; % small transfer station pictograms \foreach \x/\y in {160/402,139/590,197/577,379/600,779/584,110/596}{ \fill[bluebus] (\x-7,\y-8) rectangle (\x+7,\y+8); \node[white,font=\bfseries\fontsize{12}{12}\selectfont] at (\x,\y) {\textsf{M}}; } % lower panel, note legends and English data \node[anchor=north west,align=left,font=\fontsize{8}{11}\selectfont] at (18,667) {圖例說明:\\\textcolor{redbus}{\large$\odot$} 起迄點 \textcolor{bluebus}{\bfseries M} 捷運站\\$\circ$ 雙邊設站 \textcolor{redbus}{$\triangleright$} 單邊設站\\$\blacklozenge$ 分段點/緩衝區}; \draw[redbus,line width=1.1pt] (201,667)--(201,757); \node[anchor=north west,align=left,font=\fontsize{7}{9}\selectfont] at (205,667) {\textbullet\ Tucheng-Executive Yuan\\\textbullet\ Hours of Operation : 05:30--22:00\\\textbullet\ Fare Zones : 2X\\\textbullet\ Fare Increase/Buffer Zone :\\Depart : Puqian(Sanmin Rd.)--MRT Longshan Temple Sta.\\Return : Longshan Temple(Xiyuan)--Puqian(Sanmin Rd.)\\\textbullet\ Headway : Fixed Time}; \draw[redbus,line width=1.1pt] (597,667)--(597,756); \node[anchor=north west,align=left,font=\fontsize{8}{10}\selectfont,text=goldbus] at (604,667) {1.Tucheng Stop\\2.MRT Haishan Sta.\\3.MRT Longshan Temple Sta.\\4.MRT Ximen Sta.\\5.Taipei Main Sta. (Zhongxiao)\\6.MRT Shandao Temple Sta.}; % accessible service mark \draw[bluebus,line width=2pt,rounded corners=7pt] (884,671) rectangle (940,728); \node[font=\fontsize{43}{46}\selectfont,text=bluebus] at (912,699) {♿}; \node[font=\fontsize{8}{10}\selectfont,text=bluebus,align=center] at (911,746) {行駛車輛有\\低地板公車}; \node[anchor=south west,font=\fontsize{7}{8}\selectfont] at (16,761) {108.12.31}; \end{tikzpicture} \end{document} In particular, I noticed that the arrow and the text layout didn't quite line up.
- LaTeX on Tabletsby swgeek on November 20, 2026 at 1:50 am
gang, this is less a question than an information post. I use tablets "on the go", and they are somewhat lower end than some better tablets (I use Android phone, and lowest end Kindle Fire 8). Using Latex on these is "stupid", I know, but have limitations that make that desireable. Apple A-Shell includes a Texlive distribution (I hear) but on my devices, I had it installed ONCE - Termux crashed on phone. I discovered TexSlate on the F-droid app repository, on first usage, compiled my most complex LaTeX document seamlessly. As long as I stuck to by chapter documents, I suppose I could write a thesis / paper on the go. I use the Kindle most often, and Google Play store is unavailable - comments and questions appreciated (be nice,eh?)
- TikZ: Tangent to the x-axis with calc library onlyby cis on November 19, 2026 at 9:33 pm
I want to produce something like this: It is no problem to draw that tangent as a plot or an analytic function, but I wonder: Is there a solution using only the calc library to add the tangent (from the point P on the circle to the x-axis)? Here is my (incomplete) MWE: \documentclass[margin=5pt, tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \pgfmathsetmacro\r{3} \pgfmathsetmacro\w{77} \begin{document} \begin{tikzpicture} \coordinate[] (O) at (0,0); \coordinate[label=$P$] (P) at (\w:\r); \draw[help lines, step=0.5] (-5,-5) grid (15,5); %% CoSy \draw[->] (-5,0) -- (15,0) node[below] {$x$}; \draw[->] (0,-5) -- (0,5) node[left] {$y$}; %% Circle \draw[blue, thick] (0,0) circle[radius=\r]; \draw[] (0,0) -- (P); %% Tangent (part) \draw[red, thick] ($(P)!6cm!90:(O)$) -- ($(P)!2cm!-90:(O)$); %% Points \foreach \P in {P} \draw[fill=black!1] (\P) circle[radius=1.5pt]; \end{tikzpicture} \end{document}
- Use of @ defining commands [duplicate]by Miguel Forteza on November 19, 2026 at 9:19 pm
I'm reading a cls file that was created some years ago and I have to understand it. I've seen that it implements @ in the name of some commands and I can't find why. For example: \newcommand*\Pepe@classversion{2014/03/04 Matgazine Class v0.5} \newcommand*\Pepe@footer{\textcolor{red!70!black}{\footnotesize\ttfamily{\today},~\currenttime,\quad con ``\Pepe@classversion''}} or \long\def\csq@quote@i#1#2#3{% \csq@bqgroup#1\csq@oqopen@i\textit{#3}\csq@qclose@i{#2}} \long\def\csq@quote@ii#1#2#3{% \csq@bqgroup#1\csq@iqopen@i\textit{#3}\csq@qclose@i{#2}} Can someone explain why is it used?
- When I use this font(Eadui.otf), no OpenType features are working, despite absolutely having OT featuresby Rusty Burroughs on November 19, 2026 at 7:54 pm
This is the current test, trying any stylistic sets. ss07 adds underdots, 05 colours the text red, and cv07[7] colours specifically majuscule D red. \documentclass[no-math]{memoir} \usepackage{fontspec} \newfontfamily\ta{Eadui.otf}[Path=./, Renderer=Harfbuzz, RawFeature={+ss07}] \newfontfamily\tb{Eadui.otf}[Renderer=Harfbuzz, RawFeature={+ss05}] \newfontface\tc{Eadui.otf}[Renderer=Harfbuzz, RawFeature={+cv07=6}] \begin{document} \ta dominus regit me\par \tb dominus regit me\par \tc dominus regit me\par \directlua{print(luaotfload.version)} {\font\x="[Eadui.otf]:mode=harf;+ss07;+ss05" at 12pt \x dominus regit me} \end{document} Where Eadui.otf is a file in the same directory as my main.tex, and it's a CPAL font.(renamed from Eadui-CPAL.otf for simplicity). Found here, in the fonts subdirectory. Edit: Here's the output I get:. As I said, OT features don't appear to be working for me. I'm using Overleaf (for current lack of access to my computer). Version and renderer: This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) (format=lualatex 2026.6.26) 19 NOV 2026 22:32 Lua module: luaotfload 2024-12-03 v3.29 Lua based OpenType font support
- Best openai account type for "transcribing" a scanned image of handwritten notes with math into a LaTeX documentby John Forkosh on November 19, 2026 at 7:34 pm
I have lots (some 40+ notebooks with 152 pages each) of handwritten physics/math/computer_science notes that I'd like to transcribe into LaTeX. I used a free chatgpt.com account to test a single page, and it indeed worked scary good, way better than I'd imagined, but not quite perfect. I've reproduced the scanned handwritten pdf and free chatgpt's resulting pdf (after I ran pdflatex on its .tex file) below. And my question is: can a not-free account do better, and, if so, what's likely to produce the best result? Below are the two pdfs: my original scan, and chatgpt's latex version. If anyone wants, I can edit this to include chatgpt's .tex file, too. First, here are my handwritten notes... And here's what free chatgpt did with that (note: I had to convert the pdfs to jpg to upload them here, which is lighter than the original)...
- Cyrtographic Signatures using package eforms package - warning from Acrobatby JasonC on November 19, 2026 at 3:41 pm
I am currently using the eforms package (I believe this is part of the acrotex bundle) to interactively create PDF documents with a signature box. This has worked well in the past, but recently Adobe Acrobat has started presenting users with the following errors. The first popup window reads: This document contains embedded actions (e.g., OpenAction or Additional Actions). These actions are supported in this version of Acrobat, but may be disabled in future versions. For long-term compatibility, consider requesting a version without embedded actions from the document author. As you click through the user is asked to review the document and is presented with a window that reads: This document contains some constructs such as form fields, multimedia, or JavaScript which could affect its appearance. 1000 Document contains hidden behavior 1000 Document contains hidden behavior 1014 Document has deprecating Actions 1012 Fields are associated with hidden behavior Does anyone know if this package is currently being maintained? If not, I am happy to try and tackle this myself but am requesting any suggestions on how to move forward or any pointers on what I should be looking for (other than the actual errors themselves)? I am reasonably skilled with LaTeX, but not an expert by any means, and don't know a lot about how PDFs work. I can share screenshots of the popups if that is helpful. Thanks in advance for your support. #----------EDIT - Example -------# % XeLaTeX can use any Mac OS X font. See the setromanfont command below. % Input to XeLaTeX is full Unicode, so Unicode characters can be typed directly into the source. % The next lines tell TeXShop to typeset with xelatex, and to open and save the source with Unicode encoding. %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode \documentclass[12pt]{article} \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots. \geometry{letterpaper} % ... or a4paper or a5paper or ... \usepackage{graphicx} \usepackage{amssymb} \usepackage{eforms} \usepackage{fontspec,xltxtra,xunicode} \defaultfontfeatures{Mapping=tex-text} \title{Test for StackExchange} \author{An Author} \begin{document} \maketitle \sigField{Signature}{2in}{0.5in} \end{document}
- Formatting Latex before use in verbatim environmentby k4l1 on November 19, 2026 at 5:37 am
I'm typesetting a large document that has code examples with included Latex symbols. I don't actually write the text, so I can't edit the syntax, but I do control the definition of the environment it's rendered in (env in the example below): \begin{env} let main () = let a = int{\char95}of{\char95}string Sys.argv.(1) in let b = int{\char95}of{\char95}string Sys.argv.(2) in Printf.printf "\%d{\char92}n" (gcd a b); exit 0;; main ();; \end{env} I'd ideally like to highlight the code with minted, but since that's a verbatim environment it prints the \char95 as text instead of the requisite character. I've looked through minted/tcblistings docs with no real luck as far as I'm aware. What's my best option here? Of note: I do highlight using a custom Pygments lexer, so if adding something to that definition is easiest that would be possible on my end 🙂
- Could the wavy underline be tweaked better alignment with `lua-ul`?by Explorer on November 19, 2026 at 4:42 am
The code was taken from this post: \documentclass{article} \usepackage[paperheight=5cm,paperwidth=10cm]{geometry} \usepackage{lipsum} \usepackage{luacolor} \usepackage[soul]{lua-ul} \newunderlinetype\beginUnderWavy[\number\dimexpr1ex]{\cleaders\hbox{% \setlength\unitlength{.5ex}% \begin{picture}(4,0)(0,1.5) \thicklines% \color{magenta}% \qbezier(0,0)(1,1)(2,0) \qbezier(2,0)(3,-1)(4,0) \end{picture}% }} \NewDocumentCommand\underWavy{+m}{{\beginUnderWavy#1}} \usepackage{pict2e} \begin{document} \lipsum[2][1-2]\underWavy{\lipsum[2][1-3]}\lipsum[2][1-2] \end{document} But that was quite strange that the length of this line was too short. Is this expected behavior? Any suggestion on this? Edited The code corrosponding with Jeiver Bezo's recommendation, to work with soulpos package: \documentclass{article} \usepackage[paperheight=12cm,paperwidth=10cm]{geometry} \usepackage{lipsum} \usepackage{soul,soulpos,tikz} \usetikzlibrary{decorations.pathmorphing} \ulposdef{\underWavy}{\smash{\begin{tikzpicture}[baseline=.75ex] \clip (0,-.5ex) rectangle (\ulwidth,.5ex); \draw[line width=.8pt, decorate, decoration={snake, amplitude=.25ex, segment length=2ex}] (0,0) -- (\ulwidth+2ex,0); \end{tikzpicture}}} \begin{document} \lipsum[2][1-2] \lipsum[2][1-3]\lipsum[2][1-2] \bigskip \lipsum[2][1-2]\underWavy{Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus.}\lipsum[2][1-2] \end{document} However, the linebreak is not the same as the default case, and the text is more compact...
- babel package, font selection's malfunctioningby glenncounty on November 19, 2026 at 2:41 am
After any \textit (or \textsc), the italic (or small capital) shape is applied to all Latin text in the paragraph, including text before the \textit (or \textsc). It also continues into later paragraphs until a new font shape selection occurs. Korean standard does not use italic and does not distinguish between capital and small letters. How can I solve this problem? FYI, I use windows 10 pro x64, texlive 2026, lualatex. Here is the working example: \documentclass{article} \usepackage[english, provide*=*, main=korean]{babel} \babelprovide[onchar=ids fonts]{english} \babelfont{rm}{TeX Gyre Termes} \babelfont[english]{rm}{TeX Gyre Termes} \babelfont[korean]{rm}{Un Batang} % no italic shape % Workaround: give the Korean font fake italic and small caps shape of its own %\babelfont[korean]{rm}[Scale=0.875, AutoFakeSlant=0.15, SmallCapsFont={Un Batang}, SmallCapsFeatures={Scale=0.875}]{Un Batang} \begin{document} Main language: \languagename 0. 한글 normal text, before any italic. 1. 한글 this should be normal. \textit{This is in italic.} this should be normal. 2. 한글 this should be normal in a new paragraph. 3. 한글 finally normal with a new font shape selection: \textnormal{normal}. 4. 한글 this should be normal. \textsc{This is in small caps.} This should be normal. 5. 한글 this should be normal in a new paragraph. 6. 한글 finally normal with a new font shape selection: \textnormal{normal} \end{document}
- Why the range of the upper index string extends if embedded in a macro?by katang on November 18, 2026 at 6:19 pm
The range of the upper index string extends to the argument following the macro. If it's not embedded, it works fine. Am I doing something wrong or illegal? \documentclass{book} \begin{document} \def\ConcentrationFormula#1#2#3 {C_{#2}^{#3}} %%% Test concentration \def\ConcentrationNaInName{\ConcentrationFormula{150}{Na}{In}} \[ \ConcentrationNaInName != \ConcentrationFormula{150}{Na}{In} = \ConcentrationFormula{150}{Na}{In} \] \end{document} Is there an OOP approach? I mean, to group the instructions dealing with the same macro parameters (to reduce making mistakes) The story continued: Now (as egreg suggested) I have the definitions \newcommand{\DiffusionalField}[4]{% ((#3*1e-3)/(#2*1e-9)*ln(#4/#3))} \newcommand{\DiffusionalFieldFormula}[4]{% \frac{C_i}{w_m}*ln\frac{C_o}{C_i}} \newcommand{\DiffusionalFieldSI}[4]{% \num[scientific-notation=true]{\fpeval{\DiffusionalField{#1}{#2}{#3}{#4}}}} Everything OK, until I attempt to pass the arguments as a shared [named] block. As soon as I have the main program $\DiffusionalFieldFormula{310}{3}{400}{50}$ = \def\NAInnerSideA{{310}{3}{15}{145}} \NAInnerSideA $\DiffusionalFieldFormula\NAInnerSideA$ the compiler misses a '$' in the last line. Maybe another beauty of macro handling?
- tblr inside tblr, vertical alignmentby rsa-krypto on November 18, 2026 at 4:20 pm
I just can't figure out what I'm doing wrong. I want to vertical align the content of a cell at the top. This cell contains a tblr ans its height is set to a specific length. \documentclass{article} \usepackage{tabularray} \begin{document} \begin{tblr}[baseline=T]{% colspec = {lc}, row{2}={ht=5cm, h}, % <- This should top align the content of row 2. hlines, vlines } A & B\\ C\par % <- This cell should be top aligned but is vertically centered. \begin{tblr}[baseline=T]{ colspec={ll}, hlines, vlines } D & E \end{tblr} & F \end{tblr} \end{document} I tried the link (Tabularray nested tables aren't vertically aligned), but it didn't work when I preset the height of a row.
- How do I assign more memory to PGFPlots to graph a function with more points?by Rain on November 18, 2026 at 3:24 pm
I want to graph a (pretty ugly) function in 3D using PGFPlots: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[ axis equal, zmin=0, zmax=1.2, axis lines=center, x={(-0.257*\textwidth,-0.257*\textwidth)}, y={(\textwidth,0)}, z={(0,\textwidth)} ] \addplot3[smooth,surf,opacity=0.2,domain=-5:5,y domain=-5:5,samples=81]{ 1.5*(exp(-(4*(x+4))^2-(4*(y+4))^2)+exp(-(4*(x+4))^2-(4*(y+2))^2)+exp(-(4*(x+4))^2-(4*y)^2)+exp(-(4*(x+4))^2-(4*(y-2))^2)+exp(-(4*(x+4))^2-(4*(y-4))^2)+exp(-(4*(x+2))^2-(4*(y+4))^2)+exp(-(4*(x+2))^2-(4*(y+2))^2)+exp(-(4*(x+2))^2-(4*y)^2)+exp(-(4*(x+2))^2-(4*(y-2))^2)+exp(-(4*(x+2))^2-(4*(y-4))^2)+exp(-(4*x)^2-(4*(y+4))^2)+exp(-(4*x)^2-(4*(y+2))^2)+exp(-(4*x)^2-(4*(y-2))^2)+exp(-(4*x)^2-(4*(y-4))^2)+exp(-(4*(x-2))^2-(4*(y+4))^2)+exp(-(4*(x-2))^2-(4*(y+2))^2)+exp(-(4*(x-2))^2-(4*y)^2)+exp(-(4*(x-2))^2-(4*(y-2))^2)+exp(-(4*(x-2))^2-(4*(y-4))^2)+exp(-(4*(x-4))^2-(4*(y+4))^2)+exp(-(4*(x-4))^2-(4*(y+2))^2)+exp(-(4*(x-4))^2-(4*y)^2)+exp(-(4*(x-4))^2-(4*(y-2))^2)+exp(-(4*(x-4))^2-(4*(y-4))^2)) }; \end{axis} \end{tikzpicture} \end{document} This takes maybe a minute or two to compile and results in something like this: However, these are supposed to be gaussian curves and therefore smoother, not spiky like in the picture. I'd therefore like to increase the number of points. However, going above 71 points causes my editor (TeXShop) to throw the following error: TeX capacity exceeded, sorry [main memory size=5000000]. How do I assign more memory to TeX? I've seen a few posts asking similar things, but the answers I've seen involve typing things into the command line (which I don't know how to do with TeXShop; I only know how to open Terminal on my Mac and type commands to control the computer's file system, such as cd and rm and ls and so on) or setting up LuaLaTeX (and I use XeLaTeX for font reasons). (Can an arbitrarily large amount of memory be assigned to LaTeX? My computer has 32 GB of RAM; I wouldn't mind giving it 5 GB to play with if it means it'll produce the graphs I want it to.) Thanks in advance.
- Customize cross-references depending on destination typeby Dimitris K on November 18, 2026 at 12:55 pm
I'd like to customize the text of cross-references throughout a document using \ref{label}, with the following rules depending on what they link to: To a numbered part/chapter/section/appendix: "[part|chapter|section|appendix] [number] [title] on page [page number]" To an unnumbered part/chapter/section/appendix: "[part|chapter|section|appendix] [title] on page [page number]" (no number) To anything else: "[destination type] [number] on page [page number]" (no title) In all cases, I'm not interested in hyperlinks with individually customized text. That's why I'm not using \hyperref, but I'm open to it if it helps. Ideally I'd like to define these rules in the preamble so \ref{label} follows them throughout the content. Is there some place to start for this kind of customization? I've come across the cleveref package, but its documentation goes a bit over my head so I'm not even sure if it's a good place to start for this.
- newenvironment: how to mange first words in it in boldfaceby Zarko on November 18, 2026 at 12:46 pm
I try to define new environment for short explanation of text which should have few first words in bold text. In definition I use tabularray package. I wonder what is wrong with my definition that first words in text doesn't appear in bold text, however inside text works as expected. Please consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage{xcolor} \usepackage{tabularray} \newenvironment{NoteExpl}[1] {\par\vspace{1ex} \hfill\begin{tblr}{width=0.77\linewidth, colsep =4pt, colspec={X[j]}, cells ={bg=yellow!10, font=\sffamily\upshape\linespread{0.84}\selectfont}} }{\end{tblr}\par\vspace{1ex}} \begin{document} \itshape \lipsum[1][1-3] % this doesn't work \begin{NoteExpl} \textbf{Kaj se zgodi:} suženj \#3 prejme \textbf{datagram} z \dots \end{NoteExpl} % this works \hfill\begin{tblr}{width=0.77\linewidth, colsep =4pt, colspec={X[j]}, cells ={bg=yellow!10, font=\sffamily\upshape\linespread{0.84}\selectfont}} \textbf{Kaj se zgodi:} suženj \#3 prejme datagram z \dots \end{tblr} \lipsum[1][4-5] \end{document}
- lualatex fails to read the math table parameter for rootsby Antonis on November 17, 2026 at 10:14 am
When switching Math fonts lualatex fails to read the current RadicalRootThickness parameter. But xelatex does it correctly. MWE follows: \documentclass{article} \usepackage{unicode-math} \setmathfont{NewCMMath-Bold.otf} \setmathfont[range={\mathscr,\mathbfscr}]{NewCMMath-Book.otf} \setmathfont{NewCMMath-Bold.otf} \begin{document} \[ \sqrt{\frac{\displaystyle\sum_{n=1}^\infty a_n}{\displaystyle\sum_{n=1}^\infty a_n}}% \] \end{document} The output is as follows:
- How to have a `\cup` symbol different from the other symbols?by Rup_Cantor on November 17, 2026 at 4:15 am
I am writing a report and for the document I am using \usepackage{newtxmath,newtxtext}, which is quite a standard and nice font. However I am not liking the summation and the union symbol in it. I do like the default summation and union symbols that uses computermodern font I guess. So I want to use the default summation and union symbols while still using newtxmath for others. I searched for it, and found how to do it for summation symbol from the answers to the post Having one math symbol be in a different font from the others. But I'm having trouble how to do the same for the union symbol. Following the kind suggestion of @egreg given in the comments I am asking a new question about the symbol \cup. Since I'll be using the default \cup symbol so it is necessary that the \bigcup,\cap,\bigcap symbols all are in default of $\LaTeX$. Here's a code to start with: \documentclass[a4paper,12pt]{report} \usepackage{amsmath, amssymb, amsthm} \usepackage{newtxmath,newtxtext} \begin{document} I want the $\cup$ and $\bigcup$ symbols in default font. \end{document}
- XeTeX Color Stack Overflow Bug?by Explorer on November 16, 2026 at 8:11 am
Let's consider the following code: \documentclass{article} \usepackage{color} \begin{document} \ExplSyntaxOn \prg_replicate:nn {126} {\color{red}} \ExplSyntaxOff {\color{black}\textcolor{black}{XXX} SHOULD BE BLACK} \end{document} With pdflatex or lualatex, it behaves as expected: However, with xelatex, the color stack overflows(?): Any suggestions or paraphase? It looks like a bug with xdvipdfmx? Edited The more original example: \documentclass{article} \usepackage{tcolorbox,adjustbox} \tcbuselibrary{listings} \tcbset{listing engine=listings} \DeclareTCBListing{DocExample}{!s!O{//}}{} \begin{filecontents*}[overwrite]{\jobname-empty.tex} \begin{DocExample} \end{DocExample} \end{filecontents*} \ExplSyntaxOn \sys_if_engine_luatex:F { \cs_new_eq:NN \__ztex_doc_physical_newwrite:N \newwrite \RequirePackage{morewrites}[2024/02/02] \cs_set_eq:NN \__iow_new:N \__ztex_doc_physical_newwrite:N } \newcommand{\adjustBox}[1]{ \adjustbox{set~height=0pt, set~depth=0pt}{#1} } \newcommand{\EmptyExamples}{ \prg_replicate:nn {118} {\input{\jobname-empty.tex}} } \ExplSyntaxOff \AddToHook{env/DocExample/after}[ztex-doc-example-color]{\color{.}} \begin{document} \EmptyExamples \makeatletter \begin{DocExample}* \begin{tcolorbox}[]\adjustBox{XXX} THE BUGGY WHITE TEXT \tcblower THE NORMAL TEXT \end{tcolorbox} \end{DocExample} \end{document} The last page:
- lxfonts package and amsrefs conflictby Ethan Duckworth on November 15, 2026 at 7:26 pm
I'm trying to use both the lxfonts and amsrefs packages using pdflatex. This gives an error "Command \cir already defined." Sure enough, lxfonts tries to define \cir though I can't find that a similar command in amsrefs. Here's a minimal document \documentclass{article} \usepackage{lxfonts} \usepackage{amsrefs} \begin{document} test \end{document} I'm using TeXLive 2026. Is there a workaround?
- Why is package `cacography` mandatory in `collection-lualatex`?by rallg on November 15, 2026 at 6:54 pm
This might be a question for CTAN, but before I go there, I ask here: Using Linux, TeXlive 2026. Today's update force-installed package cacography. Never heard of it, but I went to CTAN and obtained its documentation. This package is ultra-specialized, and furthermore requires Python support (and possibly NVIDIA support) with limited licensing. I tried to remove the package, but tlmgr informed me that I could not, because it is now part of collection-lualatex. My question: Why is such a specialized package now an integral part of collection-lualatex? I cannot imagine that the prospective user base is large. EDIT: My original question was poorly phrased. As noted in comments, this package was not supposed to be in TeXlive, because it needs extra (not entirely free) software to make it work. So it was removed from TeXlive. But it is a nice package, if your purpose will conform to the licensing for the extra software, so it is still available via CTAN.
- How to reduce line spacing inside a mathematical proof?by Rup_Cantor on November 15, 2026 at 2:49 pm
I am writing a proof of a theorem using matrices but the spacings are not looking good. So I want to reduce the spacing to make it look beautiful. I am showing a part of my proof as an example. So basically I want the last line to be a little up and the matrix is on the right side of line so it disturb the upper line. I have tried \vspace{-2em} but it is not working but it worked in my other proofs having unions (that did not have matrices though). Any help/suggestion is highly appreciated. Thanks! MWE: \documentclass[a4paper,12pt]{report} \usepackage{amsmath,amssymb,graphicx,amsthm} \begin{document} \begin{proof} Consider the positive eigenvectors $Z_1$ and $Z_2$ of $L_1$ and $L_2$. \\ Let $k=\frac{\displaystyle \sum_{v\in G_1}Z_1(v)}{\displaystyle\sum_{v\in G_2}Z_2(v)}$.\\ With the permutation similarity operation, we can write $ \hat{L} =\begin{bmatrix} L_1 & 0 &\cdots & 0\\ 0 & L_2 & \cdots &0\\ \vdots & \vdots & \ddots &\vdots\\ 0& \cdots & 0 & L_t \end{bmatrix}.$ \end{proof} \end{document}
- mtpro2 curly brace inside redefined cases not working in LuaLaTeX [duplicate]by Sebastiano on November 14, 2026 at 11:06 pm
Related with my recent question MTPro2 Lite: curly brace changes appearance when using \dfrac inside cases in LuaLaTeX still not working. \documentclass[12pt]{article} \usepackage[no-math]{fontspec} \setmainfont{Times New Roman}[ Ligatures=TeX ] \usepackage{mathtools} \usepackage[lite]{mtpro2} \makeatletter \newcases{casesaux}{\quad}{$\m@th##$\hfil}{$\m@th##$\hfil}{.}{.} \newcases{dcasesaux}{\quad}{$\m@th\displaystyle##$\hfil}{$\m@th\displaystyle##$\hfil}{.}{.} \makeatother \RenewDocumentEnvironment{cases}{b}{{% \LEFTRIGHT\lbrace.{\begin{casesaux}#1\end{casesaux}}% }}{} \RenewDocumentEnvironment{dcases}{b}{{% \LEFTRIGHT\lbrace.{\openup1\jot\begin{dcasesaux}#1\end{dcasesaux}}% }}{} \begin{document} \[ f(x)= \begin{cases} \frac{1}{x}, & x>0,\\ \frac{x^2+1}{x-1}, & x<0\\ \frac{d}{s}, & f \end{cases} \qquad f(x)= \begin{dcases} \frac{1}{x}, & x>0,\\ \frac{x^2+1}{x-1}, & x<0 \end{dcases} \] \end{document} With XeLaTeX all works:
- Inner block vspace depending on whether first or last child of outer blockby David Purton on November 14, 2026 at 12:13 pm
The new block implementation is much more flexible than the old \list option. So, I'm hunting for a neat way of controlling the vspace around an inner block depending on whether the inner block is a first or last thing inside an outer block. Implementation should work with and without tagging enabled. The rule set for the inner block environment should be: Set begin-vspace and end-vspace to some value (could be different). If inner block is first thing inside outer block, set begin-vspace to 0pt. If inner block is last thing inside outer block, set end-vspace to 0pt. MWE %! TeX Program = lualatex \DocumentMetadata{} \documentclass{article} \begin{document} Text above outer block environment. \begin{displayblock}[ , begin-vspace = 0pt , begin-extra-vspace = 0pt , end-vspace = 0pt , end-extra-vspace = 0pt ] \begin{displayblock}[ , begin-vspace = 1ex , begin-extra-vspace = 0pt , end-vspace = 1ex , end-extra-vspace = 0pt ] Only put space above if not first thing in outer block. Only put space if not last thing in outer block. \end{displayblock} \end{displayblock} Text below outer block environment. \end{document}
- Significant differences between 'pdflatex' and 'lualatex' PDFsby Denis Bitouzé on November 14, 2026 at 9:14 am
If I'm not mistaken, the outputs from pdflatex and lualatex is supposed to be virtually identical. However, I've noticed significant differences between the PDF files generated by pdflatex, on the one hand, and by lualatex, on the other—to the point that the number of pages isn't the same. I don’t have time right now to reduce this to a minimal example, but this phenomenon can be observed with the these.tex file located in .../texlive/2026/texmf-dist/doc/latex/yathesis/french/exemples/specimen/a-plat/, run with: latexmk these for pdflatex (thanks to the line $pdf_mode = 1; in the latexmkrc file in the a-plat/ directory), latexmk -c these && latexmk -pdflua these for lualatex. Are such differences now accepted?
- combine multiple functions of author in authortypeby Alexander Wittmann on November 14, 2026 at 1:10 am
May there be a book which I bibliographize not by its author, but by its editor. The editor has not only edited the book, but also translated it and commented it upon. If the "author" was only the editor, I can write author = {Some Body} and authortype = {editor}. That's the cool way. BUT if I want to combine several functions of the "author", how can I put them into one authortype? Neither authortype = {editor AND translator AND commentator} nor authortype = {editor, translator, commentator} nor authortype = {editor translator commentator} do work, the same with commentary... instead of commentator... Regardless of any biblatex-styles, is there an easy way to combine the different functions in one field authortype = {function1 function2 function3}? MNWE @Book{Flores:Naevius, editor = {Enrico Flores}, introduction = {Enrico Flores}, translation = {Enrico Flores}, % author = {Enrico Flores}, % authortype = {editor}, % still works % authortype = {editor AND introduction AND translator}, % authortype = {editor, introduction, translator}, % authortype = {editor introduction translator}, title = {Naeuius \mkbibemph{Some Title}}, date = 2011, publisher = {Editore}, location = {Localita}, }
- How to Significantly Increase the Number of Circularly Arranged Tikz Stars?by DDS on November 13, 2026 at 11:00 pm
Consider the code: \documentclass{article} \usepackage{tikz,xcolor} \usetikzlibrary{decorations.text} \usetikzlibrary{shapes.geometric} \pgfkeyssetvalue{cacamailg/picture-scale}{1.5} % To produce the stars \definecolor{red_color}{RGB}{111,6,2} \begin{document} \pagecolor{red_color} {\begin{tikzpicture} \foreach \k in {0,1,...,39}{ \node[ xscale=0.10,yscale=0.10, shape=star, star points=5, star point ratio=3.0, minimum size=0.8cm, fill=white, draw=white, rotate=360*\k/100, ] at (360*\k/40+90:5.7cm) {}; } \end{tikzpicture}} \end{document} which produces: There are 40 five-point stars circularly arranged in this display. I would like to be able to increase this to, say, 120 such circularly arranged stars; however, when I try to do this, I get an error message stating "dimension too large." QUESTION: How may I (if possible) increase the number of stars in the display in excess of 100? Thank you.
- ! LaTeX Error: Encoding scheme 'TS1' unknown triggered by \copyright [closed]by Sebastiano on November 13, 2026 at 9:38 pm
I am getting the following compilation error when using \copyright in my document: ! LaTeX Error: Encoding scheme `TS1' unknown. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.7 \DeclareFontFamily{TS1}{ntxtlf}{} The strange thing is that \copyright used to compile without any issues until a few days ago, and I haven't intentionally changed my preamble. If I remove \copyright from the text, the document compiles fine. Here is a minimal not working example of my setup: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{newtxtext} \begin{document} Some text \copyright\ 2026. \end{document} With \usepackage[TS1,T1]{fontenc} all works correctly. PS Few mounths ago all works without TS1. Here is the log file This is pdfTeX, Version 3.141592653-2.6-1.40.29 (MiKTeX 26.5) (preloaded format=pdflatex 2026.11.9) 14 NOV 2026 08:30 entering extended mode \write18 enabled. %&-line parsing enabled. **"C:/Users/sebys/OneDrive/Desktop/new question/Test2.tex" (C:/Users/sebys/OneDrive/Desktop/new question/Test2.tex LaTeX2e <2026-06-01> L3 programming layer <2026-09-09> (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls Document Class: article 2026-06-04 v1.4n Standard LaTeX document class (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo File: size10.clo 2026-06-04 v1.4n Standard LaTeX file (size option) ) \c@part=\count276 \c@section=\count277 \c@subsection=\count278 \c@subsubsection=\count279 \c@paragraph=\count280 \c@subparagraph=\count281 \c@figure=\count282 \c@table=\count283 \abovecaptionskip=\skip49 \belowcaptionskip=\skip50 \bibindent=\dimen150 ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\fontenc.sty Package: fontenc 2026-07-31 v2.2a Standard LaTeX package ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/newtx\newtxtext.sty Package: newtxtext 2024/04/01 v1.744(Michael Sharpe) latex and unicode latex su pport for TeXGyreTermesX `newtxtext' v1.744, 2024/04/01 Text macros taking advantage of TeXGyre Termes a nd its extensions (msharpe) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/xpatch\xpatch.sty (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/l3kernel\expl3.sty Package: expl3 2026-09-09 L3 programming layer (loader) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/l3kernel\l3backend-pdft ex.def File: l3backend-pdftex.def 2026-09-09 L3 backend support: PDF output (pdfTeX) \l__color_backend_stack_int=\count284 )) Package: xpatch 2020/03/25 v0.3a Extending etoolbox patching commands (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/l3packages/xparse\xpars e.sty Package: xparse 2025-10-09 L3 Experimental document command parser ) (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=\count285 )) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/xcolor\xcolor.sty Package: xcolor 2024/09/29 v3.02 LaTeX color extensions (UK) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\color.cfg File: color.cfg 2016/01/02 v1.6 sample color configuration ) Package xcolor Info: Driver file: pdftex.def on input line 274. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\pdftex.def File: pdftex.def 2025/09/29 v1.2d Graphics/color driver for pdftex ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/graphics\mathcolor.ltx) Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1349. Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1353. Package xcolor Info: Model `RGB' extended on input line 1365. Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1367. Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1368. Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1369. Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1370. Package xcolor Info: Model `Gray' substituted by `gray' on input line 1371. Package xcolor Info: Model `wave' substituted by `hsb' on input line 1372. ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/iftex\iftex.sty Package: iftex 2024/12/12 v1.0g TeX engine tests ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/xkeyval\xkeyval.sty Package: xkeyval 2022/06/16 v2.9 package option processing (HA) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkeyval.tex (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkvutils.tex \XKV@toks=\toks17 \XKV@tempa@toks=\toks18 (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\keyval.tex)) \XKV@depth=\count286 File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA) )) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\textcomp.sty Package: textcomp 2024/04/24 v2.1b Standard LaTeX package ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/xstring\xstring.sty (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/xstring\xstring.tex \xs_counta=\count287 \xs_countb=\count288 ) Package: xstring 2023/08/22 v1.86 String manipulations (CT) ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/base\ifthen.sty Package: ifthen 2026-06-01 v1.1e Standard LaTeX ifthen package (DPC) ) (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/carlisle\scalefnt.sty) LaTeX Font Info: Setting ntxLF sub-encoding to TS1/0 on input line 24. LaTeX Font Info: Setting ntxTLF sub-encoding to TS1/0 on input line 24. LaTeX Font Info: Setting ntxOsF sub-encoding to TS1/0 on input line 24. LaTeX Font Info: Setting ntxTOsF sub-encoding to TS1/0 on input line 24. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/generic/binhex\binhex.tex) \ntx@tmpcnta=\count289 \ntx@cnt=\count290 (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/fontaxes\fontaxes.sty Package: fontaxes 2026-01-02 v2.0.2 Font selection axes (deprecated) Applying: [2024-11-01] Use figureversions if present on input line 74. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/figureversions\figureve rsions.sty Package: figureversions 2025-04-29 v1.0.1 Figure versions ) Already applied: [0000-00-00] Fall back to v1 on input line 76. ) \tx@sixem=\dimen151 \tx@y=\dimen152 \tx@x=\dimen153 \tx@tmpdima=\dimen154 \tx@tmpdimb=\dimen155 \tx@tmpdimc=\dimen156 \tx@tmpdimd=\dimen157 \tx@tmpdime=\dimen158 \tx@tmpdimf=\dimen159 \tx@dimA=\dimen160 \tx@dimAA=\dimen161 \tx@dimB=\dimen162 \tx@dimBB=\dimen163 \tx@dimC=\dimen164 LaTeX Info: Redefining \oldstylenums on input line 902. ) LaTeX Font Info: Trying to load font information for T1+ntxtlf on input line 4. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/newtx\t1ntxtlf.fd File: t1ntxtlf.fd 2021/05/24 v1.1 font definition file for T1/ntx/tlf ) LaTeX Font Info: Font shape `T1/ntxtlf/m/n' will be (Font) scaled to size 10.0pt on input line 4. (C:/Users/sebys/OneDrive/Desktop/new question\Test2.aux) \openout1 = `Test2.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for IL2/cmr/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4. LaTeX Font Info: ... okay on input line 4. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/context/base/mkii\supp-pdf.mk ii [Loading MPS to PDF converter (version 2006.09.02).] \scratchcounter=\count291 \scratchdimen=\dimen165 \scratchbox=\box53 \nofMPsegments=\count292 \nofMParguments=\count293 \everyMPshowfont=\toks19 \MPscratchCnt=\count294 \MPscratchDim=\dimen166 \MPnumerator=\count295 \makeMPintoPDFobject=\count296 \everyMPtoPDFconversion=\toks20 ) \c@mv@tabular=\count297 \c@mv@boldtabular=\count298 LaTeX Font Info: Trying to load font information for TS1+ntxtlf on input lin e 5. (C:\Users\sebys\AppData\Local\Programs\MiKTeX\tex/latex/newtx\ts1ntxtlf.fd File: ts1ntxtlf.fd 2015/01/18 v1.0 fd file for TS1/ntxtlf ! LaTeX Error: Encoding scheme `TS1' unknown. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.7 \DeclareFontFamily{TS1}{ntxtlf}{} ? ! Emergency stop. ... l.7 \DeclareFontFamily{TS1}{ntxtlf}{} Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it. Here is how much of TeX's memory you used: 3425 strings out of 467518 55508 string characters out of 5407995 465567 words of memory out of 5000000 32638 multiletter control sequences out of 15000+600000 632123 words of font info for 42 fonts, out of 8000000 for 9000 1141 hyphenation exceptions out of 8191 74i,0n,77p,344b,106s stack positions out of 10000i,1000n,20000p,200000b,200000s ! ==> Fatal error occurred, no output PDF file produced!
- Florilegium both margins at same pageby CrocoDuck on November 13, 2026 at 5:20 pm
I tried placing flowers on both sides of the text using "florilegium," but without success. \documentclass[11pt,a4paper]{article} \usepackage{fontspec} \usepackage[a4paper, left=55.1mm, right=55mm, top=10mm, bottom=30mm]{geometry} \usepackage[grown, density=.6]{florilegium} \begin{document} \vline \end{document} There is also Tikzflora, but it produces much larger files; the file for the image below -- even when empty and set to a density of 0.1 -- is 2.7 MB, whereas a file using "florilegium" is 350 KB.
- ltx-talk and \partby EconGuy on November 13, 2026 at 12:19 pm
I am confused, in the ltx-talk documentation it says "\part exists to structure your presentation"(and resets the ToC, which I want),see this link, but when I use \part, then it comes up as an 'undefined control sequence'. Am I missing the obvious? MWE: \DocumentMetadata{tagging = on, pdfstandard = ua-2} \documentclass{ltx-talk} \begin{document} \part{Main Presentation} \begin{frame} \frametitle{Part 1 Overview} \tableofcontents % Shows only sections in Part 1 \end{frame} \section{Introduction} \begin{frame}\frametitle{Intro} Content... \end{frame} \section{Methodology} \begin{frame}\frametitle{Methods} Content... \end{frame} % --- Start a later part with a new ToC --- \part{Advanced Topics} \begin{frame} \frametitle{Part 2 Overview} \tableofcontents % Shows only sections in Part 2 \end{frame} \section{Deep Dive} \begin{frame}\frametitle{Details} Content... \end{frame} \section{Future Work} \begin{frame}\frametitle{Next Steps} Content... \end{frame} \end{document}
- why i get this error [duplicate]by Tldi You on November 13, 2026 at 10:53 am
Why I get this error when I run this code \documentclass[border=5pt,tikz]{standalone} \usepackage[T1]{fontenc} \usepackage{newtxtext} \usepackage{newtxmath} \usepackage{tikz} \usetikzlibrary{arrows.meta,patterns} \begin{document} \begin{tikzpicture}[ x=1cm, y=0.38cm, font=\normalsize, line cap=round, line join=round, >=Stealth ] % ------------------------------------------------------------ % Ground surface % ------------------------------------------------------------ \draw[thin] (0,0) -- (10.6,0); % Small irregular strokes representing the ground texture \foreach \x in {0.12,0.30,...,1.55}{ \draw[very thin] (\x,-0.08) -- ++(0.08,-0.28) (\x,-0.10) -- ++(-0.06,-0.24) (\x+0.05,-0.19) -- ++(-0.10,-0.20); } % ------------------------------------------------------------ % Table and vertical depth axis % ------------------------------------------------------------ \draw[thin,-{Stealth[length=2.5mm,width=1.8mm]}] (1.65,0) -- (1.65,-17.25); \draw[thin] (2.85,0) -- (2.85,-16.25); \draw[thin] (4.18,0) -- (4.18,-16.25); \node[above=3pt] at (2.25,0) {$P_1$}; \node[above=3pt] at (3.51,0) {$E$}; \node[above=3pt,anchor=south west] at (4.28,-0.15) {$(\mathrm{kPa})$}; % Depth ticks \foreach \z in {1,...,16}{ \draw[thin] (1.57,-\z) -- (1.65,-\z); } \node[below=3pt] at (1.65,-17.25) {$z\;(\mathrm{m})$}; % Depth annotations \node[left=6pt] at (1.57,-5) {$5$}; \node[left=6pt] at (1.57,-6.5) {$6{,}5$}; \node[left=6pt] at (1.57,-9.3) {$9{,}3$}; \node[left=6pt] at (1.57,-10) {$10$}; \node[left=6pt] at (1.57,-15) {$15$}; % Soil names \node[anchor=west] at (0.22,-1.4) {Argile}; \node[anchor=west] at (0.10,-7.7) {Limon}; % ------------------------------------------------------------ % Numerical data % ------------------------------------------------------------ \foreach \z/\p/\e in { 1/1500/11000, 2/1200/13000, 3/1700/20000, 4/1700/16000, 5/1700/27000, 6/1800/40000, 7/1800/35000, 8/1400/24000, 9/1900/35000, 10/1800/37000, 11/2100/70000, 12/1700/55000, 13/2200/60000, 14/2300/70000, 15/2300/75000, 16/3000/80000 }{ \node at (2.25,-\z) {$\p$}; \node at (3.51,-\z) {$\e$}; } % ------------------------------------------------------------ % E profile % ------------------------------------------------------------ \draw[thin] plot coordinates { (4.455,-1) (4.485,-2) (4.590,-3) (4.530,-4) (4.695,-5) (4.890,-6) (4.815,-7) (4.650,-8) (4.815,-9) (4.845,-10) (5.340,-11) (5.115,-12) (5.190,-13) (5.340,-14) (5.415,-15) (5.490,-16) }; \foreach \x/\z in { 4.455/1,4.485/2,4.590/3,4.530/4, 4.695/5,4.890/6,4.815/7,4.650/8, 4.815/9,4.845/10,5.340/11,5.115/12, 5.190/13,5.340/14,5.415/15,5.490/16 }{ \fill (\x,-\z) circle[radius=1.05pt]; } % ------------------------------------------------------------ % Footing and vertical column % ------------------------------------------------------------ \path[ draw=black, thin, pattern=dots, pattern color=gray ] (8.95,-1.70) -- (10.45,-1.70) -- (10.45,-0.92) -- (9.84,-0.92) -- (9.84,0.68) -- (9.55,0.68) -- (9.55,-0.92) -- (8.95,-0.92) -- cycle; % Applied load \draw[ line width=1.8pt, -{Stealth[length=3.7mm,width=2.5mm]} ] (9.695,1.25) -- (9.695,-1.62); \node[anchor=east] at (9.48,1.10) {$P=66000\ \mathrm{kN}$}; \end{tikzpicture} \end{document} error message expl3.sty: erreur: 78: Mismatched LaTeX support files detected. \ExplLoaderFileDate{expl3.sty}} essai_pressio.tex: avertissement: : No file essai_pressio.aux.