Week
- Inline stackrel-like behaviorby John on July 18, 2025 at 3:48 pm
Following advice gleaned here, I managed to make a nice version of an equals-sign with a letter on top and a \wedge underneath, as in this little clip from a book on projective geometry: This works beautifully in displayed equations, but not in inline equation, as you can see here: \documentclass{book} \usepackage{graphicx} % Required for inserting images \usepackage{amsmath} \newcommand{\persp}[1]{\mathrel{\operatorname*{=}_{\wedge}^{\mbox{#1}}}} \begin{document} In symbols we write $l \persp{O} l ' ,$ or $$ l \persp{O} l ' , $$ \end{document} which produces this: Is there a way to make this lovely bit of latex magic work inline just as it does in displayed equations? Because a few lines later, I need to define an analogous, but simpler, thing and make it work inline, like this:
- microtype producing dozens of Unknown slot number warnings for Lete Sans Mathby Teepeemm on July 18, 2025 at 2:51 pm
microtype is producing dozens of unknown slot number warnings. Here is an MWE: % !TEX program = LuaLaTeX \documentclass{article} %\usepackage{lete-sans-math} \usepackage{unicode-math} \setmathfont{LeteSansMath.otf} \usepackage{microtype} \begin{document} \parbox{100pt}{text} % must be in a parbox \end{document} This produces dozens of warnings, starting with these two: Package microtype Warning: Unknown slot number of character (microtype) `\`A' (microtype) in font encoding `TU' in inheritance list (microtype) `microtype.cfg/424(protrusion)'. Package microtype Warning: Unknown slot number of character (microtype) `\'A' (microtype) in font encoding `TU' in inheritance list (microtype) `microtype.cfg/424(protrusion)'. The list goes all the way to z, and might include every accented character. If I take the text out of the parbox, then the problem doesn't happen. This is definitely related to microtype producing dozens of Unknown slot number warnings (I've copied some of that question to here), but that problem was solved by an update years ago, and my packages are up to date. Also relevant is "microtype Warning: Unknown slot number of character" with Lato font, but I can't get any of those solutions to work (which may mean I'm not using the correct font name; it may also be related to the parbox mystery).
- How to draw an array like this?by Sunshine on July 18, 2025 at 1:15 pm
Notice that the bracket is beside the content: \documentclass{article} \usepackage{amsmath} \begin{document} $$ \begin{array}{l} \omega_1 \omega_2^2, \omega_2^3 \\ i = 3, \ldots, g, \\ i = 3, \ldots, g, \\ i = 3, \ldots, g, \text{basis of } \overline{W}\\ \text{basis of } H^0(C, K^3(-2D))\\ i = 3, \ldots, g, \text{basis of } H^0(C, K^3(-D))\\ i = 3, \ldots, g,\text{basis of } H^0(C, K^3) \end{array} $$ \end{document}
- Header in scrbook: chapter title on odd pages and section title on even pagesby Akira on July 18, 2025 at 11:52 am
I have a tex file (taken from here): \documentclass[ chapterprefix=true, headings=optiontohead, twoside=false ]{scrbook} \usepackage{kantlipsum} \usepackage[autooneside=false,automark]{scrlayer-scrpage} \clearpairofpagestyles \ihead{\leftmark} \ohead{\Ifstr{\leftmark}{\rightmark}{}{\rightmark}} \cfoot*{\pagemark} \begin{document} \chapter{Introduction} \kant[1-2] \section{Motivation} \kant[1-2] \chapter{Well-posedness of MV-SDEs with density-dependent drift} \kant[1-3] \section{Existence and regularity of a solution} \kant[1-2] \section{Optimal transport} \kant[1-2] \end{document} As you can see, the (long) header texts are overlapped. To remedy this problem, I would like to put in header: on odd pages, only chapter title. on even pages, only section title. Could you explain how to do so?
- Line spacing in author block when using authblk and mathpazoby amoeba on July 18, 2025 at 8:47 am
I get a weird issue with line spacing inside the author block when I am using authblk and mathpazo at the same time. If an author name contains letters with descenders such as "p", then an ugly between-line space appears after that line. \documentclass[twocolumn]{article} \usepackage[utf8]{inputenc} \usepackage{mathpazo} \usepackage{authblk} \title{Title} \author[1]{Author A. von Author} \author[1]{Author A. von Author} \author[1]{Author A. von Author} \author[1]{Author A. von Author} \author[1]{Author A. von Author} \author[1]{Author A. pon Author} % PROBLEM HERE \author[1]{Author A. von Author} \author[1]{Author A. von Author} \author[1]{Author A. von Author} \author[1]{Author A. von Author} \author[1]{Author A. von Author} \author[1]{Author A. von Author} \author[1]{Author A. von Author} \affil[1]{Affiliation} \begin{document} \maketitle \end{document} This only happens with I use mathpazo (for the Palatino font). Without mathpazo there are no issues in the above document. Can this be fixed? Update: Loading mathpazo via \usepackage[sc,osf]{mathpazo} which uses "old-school figures" (i.e. numbers) fixes the issue in the above snippet, but does not fix the issue in general, e.g. if one of the authors in the next line has \'A in the name.
- tikz / tikzlibrary{calc,intersections}: draw a tangent line that intersects secant at right angleby Oregon Math Tutor on July 17, 2025 at 5:22 pm
I need to draw a tangent line that intersects a secant line at a right angle outside the circle. The MWE below correctly renders a circle and a secant line, and labels the intersection points. However, I can't figure out how to reorient the tangent line so it intersects the secant at a 90° angle outside the circle. Questions: ❓ Questions: Is my secant line and labeling code efficient? How do I modify the code so the tangent intersects the secant at a right angle outside the circle? Thank you for taking time to assist me. mwe: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,intersections} \usepackage{amsmath} \begin{document} \begin{tikzpicture}[scale=1.5] % Draw the circle with a name for intersection calculations \draw[thick, name path=circle] (0,0) circle (2); % Mark the center \fill (0,0) circle (1.5pt); \node at (0.2,-0.2) {$O$}; % Define the secant line path (extend beyond circle) \path[name path=secant] (-1,3) -- (3,-2); % Find intersection points automatically and store them \path[name intersections={of=circle and secant}] (intersection-1) coordinate (A) (intersection-2) coordinate (B); % Extend the secant line beyond the circle in both directions \draw[thick, red] (-1,3) -- (3,-2); % Mark intersection points \fill[red] (A) circle (1.5pt) (B) circle (1.5pt); % Labels for intersection points \node at (A) [above right] {$A$}; \node at (B) [below left] {$B$}; % Define tangent point on the circle \coordinate (T) at (1.6, 1.2); % Point on circle where tangent touches % Draw tangent line (perpendicular to radius at T) % The radius to T has direction (1.6, 1.2), so perpendicular direction is (-1.2, 1.6) \draw[thick, blue] ($(T) + 2*(-1.2, 1.6)$) -- ($(T) + 2*(1.2, -1.6)$); % Mark the tangent point \fill[blue] (T) circle (1.5pt); \node at (T) [above left] {$T$}; \end{tikzpicture} \end{document}
- Second kind of Surface Integral with P,Q,R optionalby HelenBurns on July 17, 2025 at 1:17 pm
I want to use \dss[\Sigma][P][Q][R] or \dss[\Sigma]{P,Q,R} or \dss{\Sigma,P,Q,R} to generate \[ \iint_{\Sigma} P\mathrm{d}y\mathrm{d}z+Q\mathrm{d}z\mathrm{d}x+R\mathrm{d}x\mathrm{d}y \] \documentclass{article} %\usepackage{xparse,expl3} \usepackage{amsmath} %\ExplSyntaxOn \NewDocumentCommand{\dss}{O{\Sigma}ooo}{\iint_{#1}% \IfValueT{#2}{#2\,\mathrm{d}y\mathrm{d}z}% \IfValueT{#3}{+#3\,\mathrm{d}z\mathrm{d}x}% \IfValueT{#4}{+#4\,\mathrm{d}x\mathrm{d}y}% } %\ExplSyntaxOff \begin{document} $\dss[D][(x+y+z)][xy][(x-y-z)]$ $\dss[D][][xy][(x-y-z)]$ $\dss[D][][][x-y-z]$ $\dss[D][(x+y+z)][][]$ %or $\dss{D,x+y+z,xy,x-y-z}$. \end{document} But if we only have Q and R, then there is no + sign with Q. However, there are many situations and I don't know how to deal with it. \dss[D][][][x-y-z] indicates P and Q empty but actually those are T under the test of \IfValueTF. But I can't use \dss[D][x-y-z] since x-y-z will presents P instead of R.
- \tcbitemize[raster columns=n] - How can I change the widths from n-1 \tcbitem nodes so that they fit to the width of a separate \tcbitem box?by user2379123 on July 17, 2025 at 10:26 am
What I have tried so far shows following code: \documentclass{standalone} \usepackage{amssymb, amsfonts, dsfont} \usepackage{tcolorbox} \tcbuselibrary{raster} \begin{document} %gray "IBM" box \begin{tcboxedraster}[raster columns=1]{title={IBM}} %smaller gray box "Qiskit Functions Catalog \begin{tcbitemize}[raster columns=1, colback=gray!40] \tcbitem Qiskit Functions Catalog %nested nodes "Circuit Functions" and "Application Functions" \begin{tcbitemize}[raster columns=2, colback=gray!80] \tcbitem Circuit Functions \tcbitem Application Functions \end{tcbitemize} \end{tcbitemize} %violet nodes with same widths and heights \begin{tcbitemize}[raster columns=4, colback=violet!20] \tcbitem Qiskit SDK \tcbitem Qiskit addons \tcbitem Qiskit Transpiler Service \tcbitem Qiskit Code Assistant \end{tcbitemize} \end{tcboxedraster} \end{document} This is my result: Let's take a look on the second row with the violet items. They have same widths and heights which is the desirect effect caused by raster columns=4. What will happen if I put three items in the row but with the same option raster columns=4? In that case this would be the output: I want to change the widths from the violet items so that they perfectly fit to the width size of the upper gray box. How can I obtain this goal? Thanks in advance!
- Inquiry on a letterby mathex on July 17, 2025 at 5:56 am
How to write the following specific version of a letter in LaTeX?
- Table split into two parts but not vertically alignedby katiecat0196 on July 16, 2025 at 9:41 pm
I have a long but narrow table that I would like to fit onto one page by splitting it into two parts side-by-side but still under the same table environment. I have somewhat achieved this using two tabularx environments. However, as the two parts of the table have different lengths, they are slightly vertically offset on the page. Does anyone know how to get these tables vertically aligned with each other? I am quite new to using LaTeX but I've not been able to figure this out with my googling. This is the code I am using: \begin{table}[t] %\centering \caption[List of compounds in mixed stock solution.]{List of compounds in mixed stock solution. iso = isoprene, mt = monoterpene, omt = oxygenated monoterpene, sqt = sesquiterpene, osqt = oxygenated sesquiterpene, dt = diterpene, tt = triterpene.} \small \begin{tabularx}{0.5\textwidth}{ L R R} \hline Compound & Type & Formula \\ \hline\hline Isoprene & iso & C$_{5}$H$_{8}$ \\ \hline $\upalpha$-Pinene & mt & C$_{10}$H$_{16}$ \\ \hline Camphene & mt & C$_{10}$H$_{16}$ \\ \hline Sabinene & mt & C$_{10}$H$_{16}$ \\ \hline $\upbeta$-Pinene & mt & C$_{10}$H$_{16}$ \\ \hline $\upbeta$-Myrcene & mt & C$_{10}$H$_{16}$ \\ \hline $\upalpha$-Phellandrene & mt & C$_{10}$H$_{16}$ \\ \hline 3-Carene & mt & C$_{10}$H$_{16}$ \\ \hline $\upalpha$-Terpinene & mt & C$_{10}$H$_{16}$ \\ \hline \textit{m}-Cymene & mt & C$_{10}$H$_{14}$ \\ \hline \textit{p}-Cymene & mt & C$_{10}$H$_{14}$ \\ \hline Ocimene & mt & C$_{10}$H$_{16}$ \\ \hline Eucalyptol & omt & C$_{10}$H$_{18}$O \\ \hline \textit{D}-Limonene & mt & C$_{10}$H$_{16}$ \\ \hline \textit{o}-Cymene & mt & C$_{10}$H$_{14}$ \\ \hline $\upgamma$-Terpinene & mt & C$_{10}$H$_{16}$ \\ \hline Sabinene Hydrate & omt & C$_{10}$H$_{18}$O \\ \hline Terpinolene & mt & C$_{10}$H$_{16}$ \\ \hline Linalool & omt & C$_{10}$H$_{18}$O \\ \hline Fenchol & omt & C$_{10}$H$_{18}$O \\ \hline Isopulegol & omt & C$_{10}$H$_{18}$O \\ \hline \end{tabularx} \begin{tabularx}{0.5\textwidth} { L R R} \hline Compound & Type & Formula \\ \hline\hline Isoborneol & omt & C$_{10}$H$_{18}$O \\ \hline (-)-Borneol & omt & C$_{10}$H$_{18}$O \\ \hline (+)-Borneol & omt & C$_{10}$H$_{18}$O \\ \hline Menthol & omt & C$_{10}$H$_{20}$O \\ \hline Terpinen-4-ol & omt & C$_{10}$H$_{18}$O \\ \hline $\upalpha$-Terpineol & omt & C$_{10}$H$_{18}$O \\ \hline Citronellol & omt & C$_{10}$H$_{20}$O \\ \hline Carvacrol & omt & C$_{10}$H$_{14}$O \\ \hline Geraniol & omt & C$_{10}$H$_{18}$O \\ \hline Thymol & omt & C$_{10}$H$_{14}$O \\ \hline (-)-$\upalpha$-Cedrene & sqt & C$_{15}$H$_{24}$ \\ \hline Caryophyllene & sqt & C$_{15}$H$_{24}$ \\ \hline trans-$\upbeta$-Farnesene & sqt & C$_{15}$H$_{24}$ \\ \hline Humulene & sqt & C$_{15}$H$_{24}$ \\ \hline Valencene & sqt & C$_{15}$H$_{24}$ \\ \hline Nerolidol & osqt & C$_{15}$H$_{26}$O \\ \hline Guaiol & osqt & C$_{15}$H$_{26}$O \\ \hline Cedrol & osqt & C$_{15}$H$_{26}$O \\ \hline (-)-$\upalpha$-Bisabolol & osqt & C$_{15}$H$_{26}$O \\ \hline Farnesol & osqt & C$_{15}$H$_{26}$O \\ \hline Phytane & dt & C$_{20}$H$_{42}$ \\ \hline Squalene & tt & C$_{30}$H$_{50}$ \\ \hline \end{tabularx} \end{table}
- sans math in beamer with fontsetupby user20478285 on July 16, 2025 at 5:31 pm
How do I get both \usepackage{fontsetup} (for New Computer Modern) to work in beamer without the math font changing to serif? Normal: With fontsetup: \documentclass[14pt]{beamer} \usepackage{fontsetup} \begin{document} \begin{frame}{Test} $123+x$ \end{frame} \end{document}
- Specific formatting in the table of contentsby lionSpyre on July 16, 2025 at 4:45 pm
I am trying to make a few subtle changes to the default table of contents in document{report}. I need the table of contents entries to adhere to the global \doublespacing, except for when an entry exceeds one line. In this case, I need it to wrap ~3/4 of the way through the page, and for the second line to be single-spaced relative to the first. I need it to do this for both chapter entries as well as section and subsection entries. Here's a short compilable example of what I'm trying to do: \documentclass{report} \usepackage{setspace} % Global double spacing \doublespacing \begin{document} \cleardoublepage \makeatletter { \renewcommand{\@pnumwidth}{2em} \renewcommand{\@tocrmarg}{2em} \renewcommand*{\l@chapter}[2]{% \addpenalty{-\@highpenalty}% \vskip 1.0em \setlength\@tempdima{1.5em} \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip \hangindent=0.75\linewidth \hangafter=1 \doublespacing \setstretch{1.0} {\bfseries #1}\nobreak \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}\hfill \nobreak #2\par \endgroup } \renewcommand*{\l@section}[2]{% \addpenalty{\@secpenalty}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \advance\leftskip 2.3em \hangindent=0.75\linewidth \hangafter=1 \doublespacing \setstretch{1.0} #1\nobreak \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}\hfill \nobreak #2\par \endgroup } \renewcommand*{\l@subsection}[2]{% \addpenalty{\@secpenalty}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \advance\leftskip 3.8em \hangindent=0.75\linewidth \hangafter=1 \doublespacing \setstretch{1.0} #1\nobreak \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}\hfill \nobreak #2\par \endgroup } \renewcommand{\contentsname}{\MakeUppercase{TABLE OF CONTENTS}} \tableofcontents } \makeatother \chapter{A Very Long Chapter Title That Will Definitely Require Wrapping To The Second Line in the Table of Contents} \section{An Example Section Title That Is Long Enough to Wrap and Test This Case} \subsection{A Subsection Title That Also Wraps to Check Multi-line Behavior} \chapter{Another Chapter} \section{Short Section} \end{document} Any and all help is greatly appreciated, as I've been banging my head against this wall for quite some time. Thank you!
- Table multirow vertical center alignment not working [duplicate]by Balaji K on July 16, 2025 at 12:45 pm
Table multirow vertical alignment centre not working properly. \documentclass{book} \usepackage{multirow} \begin{document} \begin{tabular}{p{100pt}p{100pt}p{100pt}} \hline \multirow{6}{100pt}{realized two line text two line text two line text}&realized two line text two line text two line text&realized two line text two line text two line text\\ &realized two line text two line text two line text&realized two line text two line text two line text\\ &1&2\\ &1&2\\ &1&2\\ &1&2\\ \hline \end{tabular} \end{document}
- Toprule, bottomrule and midrule for tablesby Neuling on July 15, 2025 at 9:06 pm
My following Latex code generated the table as shown in the image. I want the top, bottom and midrule to extend until the margin. Since I use resize option, the table is resized but not the rules. Without changing the existing code much, I would like to know how can I draw the rules, such that the table fits within the margin. \newcommand\mcc[1]{\multicolumn{2}{>{\Centering}p{2.9cm}}{#1}} \begin{table*} % \centering \setlength\tabcolsep{3pt} \caption{Performance Summary} \resizebox{0.73\textwidth}{!}{ \begin{tabularx} {\textwidth}{@{}l *{8}{p{1.45cm}<{\centering}}@{}} \toprule Methodology Details & \mcc{Output prediction accuracy} & \mcc{Parameter estimation accuracy} & \mcc{Training time} & \mcc{Parameter count}\\ \cmidrule(lr){2-3} \cmidrule(lr){4-5} \cmidrule(lr){6-7} \cmidrule(lr){8-9} & Sim. & Meas. & Sim. & Meas. & Sim. & Meas. & Sim. & Meas. \\ \midrule Method 1 & \textcolor{purple}{$\approx$} & \textcolor{green}{\checkmark} & \textcolor{green}{\checkmark} & \textcolor{green}{\checkmark} & \textcolor{green}{\checkmark} & \textcolor{green}{\checkmark} & \textcolor{red}{$\times$} & \textcolor{red}{$\times$} \\ Method 2 & \textcolor{purple}{$\approx$} & \textcolor{green}{\checkmark} & \textcolor{green}{\checkmark} & \textcolor{green}{\checkmark} & \textcolor{green}{\checkmark} & \textcolor{green}{\checkmark} & \textcolor{purple}{$\approx$} & \textcolor{red}{$\times$} \\ \bottomrule \end{tabularx} } \noindent\parbox{\textwidth}{ \vspace{1mm} {\footnotesize Legend (compared to baseline): \textcolor{green}{\checkmark} = better, \textcolor{purple}{$\approx$} = approximately equal, \textcolor{red}{$\times$} = worse, -- = not applicable.} } \end{table*}
- How can I improve the appearance of a 3D parametric curve with projections in PGFPlots?by Marco Moldenhauer on July 15, 2025 at 5:53 am
I'd like to recreate the appearance of a 3D parametric curve with vertical projection lines, as shown in the image below (you can ignore the text labels): Below is my code and the output it produces. Unfortunately, I'm not very happy with the result — it doesn't quite match the the target image. Any ideas for improving the visual appearance of this parametric plot would be greatly appreciated! my code \documentclass{article} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usetikzlibrary{tikzmark} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \pagenumbering{gobble} \usepackage{xcolor} \geometry{ %showframe, paperwidth=34.40cm, paperheight=14.40cm, margin=1cm } \begin{document} \begin{tikzpicture} [ % Define a paremtric curve declare function = { fx(\t) = 1+\t^3; fy(\t) = 1+1.6*\t; fz(\t) = 1.5-\t^2; SamplesLow = 5; SamplesHigh = 50; DomLowerBound = 0; DomUpperBound = 1; stepsize = (DomUpperBound-DomLowerBound)/SamplesLow; AxisXmin = -.5; AxisXmax = 4; AxisYmin = -.5; AxisYmax = 4; AxisZmin = 0; AxisZmax = 2; }, ] \begin{axis} [%% view={120}{45}, plot box ratio=1 1 1, width=22cm, height=12cm, xmin=AxisXmin, xmax=AxisXmax, ymin=AxisYmin, ymax=AxisYmax, zmin=AxisZmin, zmax=AxisZmax, grid, grid style={very thin, gray}, trig format plots=rad, enlargelimits=false, xlabel=$x$, ylabel=$y$, zlabel=$z$, xtick={0,1,...,AxisXmax-1}, ytick={0,1,...,AxisYmax-1}, ztick={0,1,...,AxisZmax} %axis x line=middle, %axis y line=middle, %axis z line=middle, ]%% % Plot the parametric surface using the defined functions \addplot3 [ variable=t, mesh, domain=DomLowerBound:DomUpperBound, samples=SamplesLow+1 ] ( { fx(t) }, { fy(t) }, { fz(t) } ); \addplot3 [ variable=t, mesh, domain=DomLowerBound:DomUpperBound, samples=SamplesLow+1, gray ] ( { fx(t) }, { fy(t) }, { AxisZmin } ); \pgfplotsinvokeforeach {0,stepsize,...,DomUpperBound} { \draw[gray, dotted] ({fx(#1)},{fy(#1)},AxisZmin) -- ({fx(#1)},{fy(#1)},{fz(#1)}); } \end{axis} \end{tikzpicture} \end{document} my output
- Is that possible to automatically add the non-empty border in tabularray?by Explorer on July 15, 2025 at 3:58 am
I want to get the following result: which is generated by: \documentclass{article} \usepackage{libertinus} \usepackage{tabularray} \setlength\lTblrDefaultHruleWidthDim{2pt}% \setlength\lTblrDefaultVruleWidthDim{2pt}% \begin{document} \begin{tblr}{ colspec = *{4}{Q[c,.75cm]}, stretch=0, rows = {ht=1cm,font=\bfseries\Large}, hline{1} = {1-2}{}, hline{2} = {1-2,4}{}, hline{3-4}, vline{1} = {1,3}{}, vline{2-3}, vline{4-5} = {2-3}{}, } A & B & & \\ & C & & D \\ E & F & G & H \\ \end{tblr} \end{document} However, the following controled mannally is not so clever: hline{1} = {1-2}{}, hline{2} = {1-2,4}{}, hline{3-4}, vline{1} = {1,3}{}, vline{2-3}, vline{4-5} = {2-3}{}, Provided that the rows and columns are large, and it's cumbersome to determine the "border" of "non-empty" content. I have consulted for the cmd key, however it's used for "execute command for the cell text", which is not so proper. Is that better method to draw the "non-empty"'s border automnatically in this case with tabularrray?
- MiKTeX update problem – very slow updatingby Sebastiano on July 14, 2025 at 7:59 pm
I'm trying to update MiKTeX of July 14, 2025, but the update process fails with the following error message: GENERAL MIKTEX INFORMATION ReportDate: 2025-07-14 21:48:39 CurrentVersion: 25.4 SetupDate: 2022-02-02 21:41:00 SetupVersion: 22.1 Configuration: Regular GitInfo: ae1a027 / 2025-04-18 10:00:22 OS: Windows 10.0.19045 SharedSetup: no LinkTargetDirectory: C:\Users\sebys\AppData\Local\Programs\MiKTeX\miktex\bin\x64 PathOkay: yes LastUpdateCheck: 2025-07-14 21:40:01 LastUpdate: 2025-07-07 22:50:34 LastUpdateDb: 2025-07-14 21:39:59 SystemAdmin: yes RootPrivileges: no AdminMode: no Root0: C:\Users\sebys\AppData\Roaming\MiKTeX Root1: C:\Users\sebys\AppData\Local\MiKTeX Root2: C:\Local TeX Files\cl-texmf Root3: C:\Local TeX Files\texmf Root4: C:\Users\sebys\AppData\Local\Programs\MiKTeX UserInstall: C:\Users\sebys\AppData\Local\Programs\MiKTeX UserConfig: C:\Users\sebys\AppData\Roaming\MiKTeX UserData: C:\Users\sebys\AppData\Local\MiKTeX Invokers: non-existing/explorer ERROR DETAILS Program: miktex-console Source: Libraries\MiKTeX\Core\LockFile\LockFile.cpp:111 Error: File is locked: {0} Details: path: C:\Users\sebys\AppData\Local\Programs\MiKTeX\miktex/lock\package-manager.lock Additionally, the download is very slow especially for System Information: MiKTeX version: 25.4, Operating system: Windows 10, Last successful update: 2025-07-07. What is the reason?
- stix2 lower-case \mathcal glyphs in pdfLaTeXby schtandard on July 14, 2025 at 11:00 am
I want to use the stix2 calligraphic math fonts in my document (using libertinus for the other fonts). In LuaLaTeX, I can just do that using \setmathfont. Unfortunately I am forced to use pdfLaTeX and need to emulate the settings there. The mathalpha package seems to be set up just for this, but the lower-case \mathcal glyphs seem to be missing there, while they do appear in the LuaLaTeX version. Adding to my confusion, in Section 4 Math alphabets of the stix2 manual, lower-case \mathcal is listed as Not covered. So maybe the glyphs I see with \setmathfont are from a different font? Though I don't see why a different one should be loaded. How can I use the \mathcal glyphs I see with LuaLaTeX when using pdfLaTeX? I should clarify that part of why I compare LuaLaTeX and pdfLaTeX (besides me preferring the glyphs in the former) is that, while I need to create and submit the main document using pdfLaTeX, I use LuaLaTeX to create Figures for the document (for reasons unrelated to fonts) that I only need to submit as .pdf files. Of course, I want the fonts in the Figures to match the main document, so whatever solution I find, I will have to implement it in both systems. Here's an MWE. When I compile it with LuaLaTeX, I get the output in the first image, with pdfLaTeX that in the second. Following the discussion in the comments I also included the \mathscr variants. \documentclass{article} \usepackage{iftex} \ifpdftex \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{libertinus} \usepackage{libertinust1math} \usepackage[cal=stixtwoplain, scr=stixtwofancy]{mathalpha} \else \usepackage{unicode-math} \usepackage{libertinus} \setmathfont{StixTwoMath}[range={cal, scr}] \fi \begin{document} $\mathcal L, \mathcal l$ $\mathscr L, \mathscr l$ \end{document}
- Creating TeX commands from Luaby yannisl on July 14, 2025 at 10:03 am
I am aware there were a couple of previous questions and answers as to how to create TeX commands from LuaTeX. However, this is a follow-up to a question and answer by Max Chernoff, who recommends that commands should be defined as much as possible on the Lua side so that \directlua can be used only to load the module. I modified the code to define a \repeatstring command that scans two arguments from the stream and prints the string n times. Question: How far can such a function be abstracted, so args can be variadic using ... so that for example can accept braced arguments for this particular example, or an options table or compose through a second Lua func etc., by changing the signature to something like function register_tex_cmd(name, func,func1,...) Why do I care? I think it opens a lot of possibilities to avoid expansion problems, simplify the writing of macros using a language like Lua that is easy to learn and perhaps lessen the learning curve of programming TeX/LaTeX. As a start modifying the script to define commands similar to what xparse does will do for an answer. Of course without using the xparse commands. \documentclass{article} \usepackage{luacode} \begin{document} \begin{luacode*} local function register_tex_cmd(name, func, args) local scanners = {} for _, arg in ipairs(args) do scanners[#scanners + 1] = token['scan_' .. arg] end local scanning_func = function() local values = {} for _, scanner in ipairs(scanners) do values[#values + 1] = scanner() end func(table.unpack(values)) end local index = luatexbase.new_luafunction(name) lua.get_functions_table()[index] = scanning_func token.set_lua(name, index, "global") -- token library pg 324 companion to luadef! end -- Define a function that takes a string and an integer local function repeat_string(s, n) for i = 1, n do tex.sprint(s) end end -- Register the macro \repeatstring that takes a string and an int -- passes it onto a lua function repeat_string register_tex_cmd("repeatstring", repeat_string, {"string", "int"}) \end{luacode*} \repeatstring `Why?' 5 \end{document} Output
- Package answers: access to answers counters?by Garulfo on July 14, 2025 at 8:22 am
With the package answers, is it possible to have access to the answer counter? Here is a minimal example, where I would like to write something like "Ans. 1.1 (continued)" or "Sol. 1.1 (continued)" (using a command that could be something like \theans or \thesol to get the right answer or solution number) at the top of each new page (see in code). Anyone have an idea? \documentclass[french,12pt,a4paper]{book} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{answers} %%%%%%%%%%%%%%%%%%%%%%% %% commands relative to package answers %%%%%%%%%%%%%%%%%%%%%%% \newtheorem{Exc}{Exercice}[chapter] \Newassociation{sol}{Solution}{solutions} \Newassociation{ans}{Answer}{answers} \renewcommand{\Answerlabel}[1]{\textbf{Ans. #1}} \renewcommand{\Solutionlabel}[1]{\textbf{\fbox{Sol. #1}}} %%%%%%%%%%%%%%%%%%%%%%% %% Begin document %%%%%%%%%%%%%%%%%%%%%%% \begin{document} \chapter{My first chapter} \section{Theory} Theory chapter 1 %%%%%%%%%%%%%%%%%%%%%%% %% Begin exercices %%%%%%%%%%%%%%%%%%%%%%% \Opensolutionfile{solutions}[solutions\thechapter] \Opensolutionfile{answers}[answers\thechapter] \section{Exercices} %%%%%%%%%%%%%%%%%%%%%%% Ex. 1.1 \begin{Exc} Calculate. \begin{enumerate} \item Item (1) \item Item (2) \item Item (3) \end{enumerate} \begin{ans} ~ \begin{enumerate} \item Answer (1) \item Answer (2) \item Answer (3) \end{enumerate} \end{ans} \begin{sol} ~ \begin{enumerate} \item Detailed solution (1) \item Detailed solution (2) \newpage Here at the top of the new page, I would like to have something like:\\ \fbox{\textbf{Sol. 1.1 (continued)}} \item Detailed solution (3) \end{enumerate} \end{sol} \end{Exc} %%%%%%%%%%%%%%%%%%%%%%% \Closesolutionfile{answers} \Closesolutionfile{solutions} \section{Answers} \input{answers\thechapter} \section{Detailed solutions} \input{solutions\thechapter} \end{document}
- Is the main advantage of sockets that they are TeX's version of enum?by Teepeemm on July 13, 2025 at 10:28 pm
I'm wanting to understand sockets better. The following is adapted from texdoc ltsockets: \documentclass{article} \NewSocket{fooSocket}{2} \NewSocketPlug{fooSocket}{fooSocketPlugA}{foo-A: #1!#2} \NewSocketPlug{fooSocket}{fooSocketPlugB}{foo-B: #2 x 2} \begin{document} \begin{enumerate} \item \UseSocket{fooSocket}{hello}{world} % no output; default plug is noop \AssignSocketPlug{fooSocket}{fooSocketPlugA} \item \UseSocket{fooSocket}{hello}{world} % output: foo-A: hello!world \AssignSocketPlug{fooSocket}{fooSocketPlugB} \item \UseSocket{fooSocket}{hello}{world} % output: foo-B: world x 2 \AssignSocketPlug{fooSocket}{noop} \item \UseSocket{fooSocket}{hello}{world} % no output \end{enumerate} \end{document} and has output 1. 2. foo-A: hello!world 3. foo-B: world x 2 4. From my reading of ltsockets and ltsockets-code, this seems to be the exact same as: \documentclass{article} \newcommand{\fooSocket}[2]{} \newcommand{\fooSocketPlugA}[2]{foo-A: #1!#2} \newcommand{\fooSocketPlugB}[2]{foo-B: #2 x 2} \begin{document} \begin{enumerate} \item \fooSocket{hello}{world} % no output \let\fooSocket=\fooSocketPlugA \item \fooSocket{hello}{world} % output: foo-A: hello!world \let\fooSocket=\fooSocketPlugB \item \fooSocket{hello}{world} % output: foo-B: world x 2 \makeatletter\let\fooSocket=\@gobbletwo\makeatother \item \fooSocket{hello}{world} % no output \end{enumerate} \end{document} Both have the same output. The main advantage of sockets seems to be that they are like enums in other programming languages: only a fixed set of predefined elements can be used, making them less error prone. For example, \let\fooSocket=\textbf works, but \AssignSocketPlug{fooSocket}{textbf} is a compilation error. Other (less important) differences seem to be that sockets must be defined at the top level, and sockets have error messages and debugging support. Am I understanding sockets correctly? Is there an aspect to sockets that I've missed?
- pgf Error: No shape named `spiralpath' is knownby Myo Nyunt on July 13, 2025 at 4:14 pm
I cannot manage to finish this document: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{tikz} \usetikzlibrary{calc,intersections,through,backgrounds,arrows.meta} % <--- Add 'intersections' here if it's not already \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines = middle, xmin=-25, xmax=25, ymin=-25, ymax=25, axis equal image, clip = false, axis line style={shorten >=-15pt, shorten <=-15pt}, ] % Step 1: Draw the main spiral plot WITHOUT an arrowhead. % We will draw the arrowhead separately. \addplot [ domain=2*pi:4.25*pi, samples=400, smooth, thick, blue, % Store coordinates for later use by the arrow /pgfplots/every axis plot post/.append style={ name path=spiralpath, % 'name path' requires 'intersections' library overlay % Important to ensure it's a direct TikZ path } ] ({x*cos(deg(x))}, {x*sin(deg(x))}); % Step 2: Draw a small segment at the end of the *named* spiralpath with an arrowhead. % This method is robust because 'spiralpath' is now a standard TikZ named path. \draw[-{Stealth[length=4pt, width=4pt, fill=blue]}, thick, blue] (spiralpath.at 0.99) -- (spiralpath.at end); % Draw from 99% to end % --- Your other existing elements --- \draw[->, thick, black] (0,0) -- (20,20); % --- Angle Label 'θ' --- \node at (12.5,7) {$\theta$}; \node [left=1pt] at (14,14) {$r$}; \node [right] at (20,20) {$z = x + iy$}; \end{axis} \end{tikzpicture} \end{document}
- How Can I Define Macros Using Name Suffixes Based on Counter Values?by HOO on July 13, 2025 at 3:27 pm
I am trying to define a set of macros whose names are derived from the values of a counter. In the MWE given below, I am trying to define the macros \itemOne, \itemTwo, ... \itemSeven. I get the following error messages when I try to compile the code: Missing \endcsname inserted.} Extra \endcsname. } Undefined control sequence. Item one: \itemOne Undefined control sequence. Item two: \itemTwo Undefined control sequence. Item seven: \itemSeven The problem is with the code line that uses the \expandafter, \csname and \endcsname constructs. I would be very grateful if someone could analyze the MWE, point out the mistake that I have made and let me know how I should modify the code to eliminate the problem. Thanks, in advance, to all those who will have had a look at the MWE. MWE: \documentclass[a4paper,10pt]{article} \usepackage[T1]{fontenc} \usepackage{etoolbox} \usepackage{numname} \usepackage{pgffor} % \setlength{\parindent}{0pt} % \newcounter{itemcount} \setcounter{itemcount}{0} % \begin{document} \foreach \i in {a,b,c,d,e,f,g}{ \addtocounter{itemcount}{1} \def\name{item\numtoName{\theitemcount}} \expandafter\xdef\csname\name\endcsname{\i} } Item one: \itemOne\\ Item two: \itemTwo\\ ...\\ Item seven: \itemSeven \end{document}
- Subsection by zref-cleverby Akira on July 13, 2025 at 1:46 pm
I have a tex file \documentclass{memoir} \usepackage{mathtools,amsthm,zref-clever} \zcsetup{cap=true} \usepackage[notcite,notref]{showkeys} \usepackage[hypertexnames=false]{hyperref} \hypersetup{ colorlinks=true, linkcolor=blue, filecolor=blue, urlcolor=red, citecolor=magenta } \setcounter{secnumdepth}{3} %%%%%%%%%%%%%%%%%%%%%%%%%% \numberwithin{equation}{chapter} \newtheorem{theorem}{Theorem}[chapter] \theoremstyle{definition} \newtheorem{assumption}[theorem]{Assumption} \AddToHook{env/assumption/begin}{% \zcsetup{countertype={theorem=assumption}}} \zcRefTypeSetup{assumption}{Name-sg=Assumption} \begin{document} \chapter{Introduction} \label{chap} \section{Some section name} \label{sec} \subsection{Some subsection name} \label{subsec} We have \zcref{chap}, \zcref{sec} and \zcref{subsec}. \end{document} Could you explain how to get the type Subsection? My desired result is that \zcref{subsec} produces Subsection 1.1.1. I have tried the option \zcRefTypeSetup{subsection}{Name-sg=Subsection} but to no avail.
- How to split arrows and draw arrowed triangles in TikZ?by pixel on July 13, 2025 at 12:21 pm
I'm trying to replicate the following figure in TikZ: And I have the following code so far: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{arrows.meta, positioning} \tikzset{ solidarrow/.style={-Stealth, thick}, dashedarrow/.style={-Stealth, thick, dashed}, box/.style={rectangle, draw, minimum width=3cm, minimum height=1cm, align=center}, every node/.style={font=\small, align=center}, } \begin{document} \begin{tikzpicture}[node distance=1.8cm and 2.2cm] % Nodes explicitly placed \node (CDGS) {Centered DGS}; \node (SVP) [below=of CDGS] {SVP}; \node (box) [box, below=of SVP] {CVP, SIVP, DGS}; \node (DGSS) [right=3.5cm of CDGS] {DGS $s \ge \gamma\sqrt{\log n}\cdot \lambda_n$}; \node (gSVP) [below=1.5cm of DGSS, xshift=-1cm] {$\gamma$-SVP}; \node (gSIVP) [right=3cm of gSVP] {$\gamma$-SIVP}; \node (gCVP) [below=of gSIVP] {$\gamma$-CVP}; \node (BDD) [right=2.5cm of gSIVP] {BDD$_{1/\gamma}$}; \node (guSVP) [above=of BDD] {$\gamma$-uSVP}; \node (gGapSVP) [below=of BDD] {$\gamma$-GapSVP}; \node (gGapCVP) [below=of gGapSVP] {$\gamma$-GapCVP}; % Solid Arrows \draw[solidarrow] (CDGS)--(SVP) node[midway,left]{[S16]}; \draw[solidarrow] (SVP)--(box) node[midway,left]{[GMSS99]}; \draw[solidarrow] (DGSS)--(gSVP) node[midway,left]{[GPV08, BL+13]}; \draw[solidarrow] (guSVP)--(gGapSVP) node[midway,right]{[LM09]}; \draw[solidarrow] (gGapSVP)--(gGapCVP) node[midway,right]{[GMSS99]}; % Dashed Arrows \draw[dashedarrow] (CDGS) to[bend left=20] node[midway,above]{\scriptsize$\gamma=\sqrt{n/\log n}$[S16]} (gSVP); \draw[dashedarrow] (DGSS)--(gSIVP) node[midway,right]{\scriptsize[Reg09] $\gamma\mapsto\sqrt{n\log n}\gamma$}; \draw[dashedarrow] (gSVP)--(gSIVP) node[midway,above]{\scriptsize$\gamma\mapsto\sqrt{n}\gamma$}; \draw[dashedarrow] (gSIVP)--(gCVP) node[midway,right]{[Mic08]}; \draw[dashedarrow] (gSVP) to[bend right=20] node[midway,below]{\scriptsize$\gamma\mapsto\sqrt{n}\gamma^2$[GMSS99]} (gCVP); \draw[dashedarrow] (gSIVP)--(BDD) node[midway,above]{\scriptsize$\gamma\mapsto n/\log n\gamma$}; \draw[dashedarrow] (BDD)--(guSVP) node[midway,right]{[BSW16]}; \draw[dashedarrow] (gSIVP)--(gGapSVP) node[midway,above]{\scriptsize$\gamma\mapsto n\gamma$[Ban93]}; \draw[dashedarrow] (gGapSVP) to[bend right=20] node[midway,left]{\scriptsize$\gamma\mapsto\sqrt{2}\gamma$} (BDD); \end{tikzpicture} \end{document} But the result is not nearly as in the picture. My biggest problem for starters are: How to split the arrows? As is done at the middle going from DGS to \gamma-SVP to \gamma-SIVP for example. How to form triangles? As is in the middle and right segment of the figure. Any help with replicating the above figure in TikZ is highly appreciated.
- Draw 3D triad in TikZby user2501235 on July 12, 2025 at 11:38 pm
I am attempting to mimic a 3D triad like the one shown below from a CAD system. So far I have been able to closely match the axes and the origin cube using TikZ but not sure exactly how to get the truncated 3D spheres. Here is a minimum working example. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{} \tikzstyle{isometric}=[x={(0.710cm,-0.410cm)},y={(0cm,0.820cm)},z={(-0.710cm,-0.410cm)}] \tikzstyle{dimetric} =[x={(0.935cm,-0.118cm)},y={(0cm,0.943cm)},z={(-0.354cm,-0.312cm)}] \tikzstyle{dimetric2}=[x={(0.935cm,-0.118cm)},z={(0cm,0.943cm)},y={(+0.354cm,+0.312cm)}] \tikzstyle{trimetric}=[x={(0.926cm,-0.207cm)},y={(0cm,0.837cm)},z={(-0.378cm,-0.507cm)}] \usepackage{xcolor} \definecolor{myblue}{HTML}{C7E9F1} \begin{document} \begin{tikzpicture} % Draw a triad \begin{scope}[trimetric] % Y-face \draw [fill=myblue!30!white] (-0.25,0.25,-0.25) --++(0.5,0,0) --++(0,0,0.5) --++(-0.5,0,0) -- cycle; % Z-face \draw [fill=myblue!50!white] (-0.25,0.25,0.25) --++(0.5,0,0) --++(0,-0.5,0) --++(-0.5,0,0) -- cycle; % x-face \draw [fill=myblue!80!white] (0.25,0.25,0.25) --++(0,0,-0.5) --++(0,-0.5,0) --++(0,0,0.5) -- cycle; % Axes \draw [ultra thick,-latex,red] (0.35,0,0) --(1.0,0,0); \draw [ultra thick,-latex,green!50!black] (0,0.35,0) --(0,1.0,0); \draw [ultra thick,-latex,blue] (0,0,0.35) --(0,0,1.0); \end{scope} \end{tikzpicture} \end{document} Here is the results from my TikZ attempt.
- When is it appropriate to use inline or display math?by Stog on July 12, 2025 at 9:41 pm
I am new to the stack exchange and to LaTeX itself. I would like to know when it is appropriate to use display mode or text mode. For example, let's say I write \[ \frac{\mathrm{d}}{\mathrm{d}x}\int_a^x f(t)\,\mathrm{d}t=f(x) \] as a standalone object, then I use display mode (as it looks better). However, if I am writing this as part of an inline formula with other terms (like in the below example), will it be better to write the symbols in text or display mode? \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \[ \frac{\mathrm{d}}{\mathrm{d}x}\tan x=\frac{\mathrm{d}}{\mathrm{d}x}\left(\frac{\sin x}{\cos x}\right) \\ =\frac{\cos x\cdot\cos x-(-\sin x\cdot\sin x)}{\cos^2 x} \\ =\frac{\cos^2 x+sin^2 x}{\cos^2 x} \\ =\frac{1}{\cos^2 x}\because\sin^2 x+\cos^2 x=1 \\ =\sec^2 x \\\\ \therefore\frac{\mathrm{d}}{\mathrm{d}x}\tan x=\sec^2 x \] \end{document} Here, should I write the differential operator \frac{\mathrm{d}}{\mathrm{d}x} in text mode (to take up less space) or display mode? Should complex fractions like \frac{1+\frac{1}{x}}{\frac{1}{x}-x} have the fractions in the fraction written in text mode or display mode? In summary, how can I incorporate the use of both text and display mode to create a document that takes the least space while also looking good? Any and all answers are appreciated. Thank you in advance.
- listings' morekeywords=[...]{...} in a custom command doesn't workby Denis Bitouzé on July 12, 2025 at 2:02 pm
With listings, it is easy to define new languages with own keywords: \documentclass{article} \usepackage{listings} \usepackage{xcolor} \lstdefinelanguage{mylang}{% morekeywords=[1]{foo},% numeric keywords morekeywords=[2]{bar},% mapping keywords }[keywords,comments]% \lstset{ basicstyle=\ttfamily, language=mylang, keywordstyle=[1]\color{red},% keywordstyle=[2]\color{blue},% } \begin{document} \begin{lstlisting} foo bar \end{lstlisting} \end{document} Suppose I'd like to create a more semantic command, based on \lstdefinelanguage, that specifies the roles of the different classes of keywords (above specified by [1] and [2]). This is done in the following code: \documentclass{article} \usepackage{listings} \usepackage{xcolor} \ExplSyntaxOn \tl_new:N \g__numeric_keywords_tl \tl_new:N \g__mapping_keywords_tl \keys_define:nn { mypkg } { numeric~ keywords .tl_gset:N = \g__numeric_keywords_tl, mapping~ keywords .tl_gset:N = \g__mapping_keywords_tl } \cs_new_protected:Nn \__define_language:n { \IfNoValueF {#1} { \keys_set:nn { mypkg } { #1 } } \lstdefinelanguage{mylang}{% morekeywords = [1]{\g__numeric_keywords_tl}, morekeywords = [2]{\g__mapping_keywords_tl}, }[keywords,comments]% } \NewDocumentCommand{\definelanguage}{m}{ \__define_language:n {#1} } \AddToHook{begindocument/end}{ \tl_show:N \g__numeric_keywords_tl \tl_show:N \g__mapping_keywords_tl } \ExplSyntaxOff \definelanguage{ numeric keywords = {foo}, mapping keywords = {bar} } \lstset{ basicstyle=\ttfamily, language=mylang, keywordstyle=[1]\color{red},% keywordstyle=[2]\color{blue},% } \begin{document} \begin{lstlisting} foo bar \end{lstlisting} \end{document} Despite the lack of error and the fact that: \g__numeric_keywords_tl contains foo, \g__mapping_keywords_tl contains bar, the problem here is that the keywords don't belong to their respective classes (they are not color highlighted): I guess the trouble is an expansion one but all my attempts to solve it failed. How to fix it?
- Use Libertinus serif italic J from stylistic alternativeby schtandard on July 12, 2025 at 6:36 am
The capital J in the serif italic font from Libertinus (i.e. Libertine) is a bit out of place. There is a stylistic alternative in the font (cf. for example this PR) that contains a glyph that's more consistent with the other letters. In the libertinus-otf documentation, a font option salt is mentioned, but I cannot figure out how to select it, let alone for just one letter. How can I select the alternative glyph for the serif italic J? % !TeX program = lualatex \documentclass{article} \usepackage{libertinus} \usepackage{xcolor} \begin{document} ABCDEFGHI\textcolor{green!70!black}{J}KLMNOPQRSTUVWXYZ \textit{ABCDEFGHI\textcolor{red}{J}KLMNOPQRSTUVWXYZ} \end{document}
- yfonts \textgoth errors with some accented charactersby imnothere on July 12, 2025 at 3:45 am
In TL2025 \textgoth{é} would error with Corrupted NFSS tables. wrong@fontshape ...message {Corrupted NFSS tables} error@fontshape else let f... but the PDF would render a "gothic" é anyway. Also (not new in TL2025) while lowercase ä, ö, ü compile and render without problems, uppercase Ä, Ö, Ü would error with Text composite \" undeclared in encoding LYG, with no umlauts rendered in the PDF. Is there a workaround for these? Or are such glyphs actually non-existent for \textgoth so shouldn't be used anyway? \documentclass{article} \usepackage{yfonts} \begin{document} \textgoth{ä} \textgoth{ö} \textgoth{ü} \textgoth{Ä} \textgoth{Ö} \textgoth{Ü} \textgoth{é} \end{document}