• In book class, how to allow any combination of objects on any page as long as they physically fit?
    by keith77777 on June 3, 2025 at 11:47 am

    I am using the default values for \topfraction, \textfraction and \floatpagefraction but two graphics - totalling less than 0.75 of the page height - will not co-exist on one page. Yet, one full-page graphic will display. How do we interpret the meaning of these parameters, and is there an over-ride instruction that will remove all restrictions on what goes on a page?

  • Tagged PDF & enumext
    by LeO on June 3, 2025 at 11:00 am

    I try the following example \DocumentMetadata{ pdfstandard = ua-2, tagging = on, } \tagpdfsetup{math/mathml/luamml/load=false} \documentclass[a4paper,11pt,british]{article} \usepackage{enumerate} % for enumeration to change \usepackage{enumext} % for tagging friendly enumerations \begin{document} List with starting at 50 \begin{enumext}[start=50, noitemsep] \item Coffee \item Tea \item Milk \end{enumext} \end{document} When I have tagging enabled then I the list starts with 1, when I have it disabled it starts with 50 - as expected. When the list starts with 50 somehow the spacing seems to be odd since there is no space between the number+. and the text. Is there a "simple" way to fix both of the issues?

  • Umlaut Weirdness in TeXWorks
    by Hauke Reddmann on June 3, 2025 at 10:28 am

    In the meantime, I nailed down the error myself: {\''a} for a German umlaut of course is wrong, {\"a} is correct. (Not that I didn't know, but annoyingly both looks exactly the same in the TeXWorks editor, only a standard editor showed it.) But on the internet, I usually read something like "you place two ticks etc.", and up to now I thought TeXWorks autoconverted ticks (like it does when you place double ticks around a quote). Can someone sum up the TeXWorks editor rules for tick handling?

  • Input tex file using 'stop_file' callback
    by Linuxss on June 3, 2025 at 9:44 am

    The goal is to write a lua loader which loads additional file after imputed style. For example after main.sty is loaded input main.addons.sty (if it exists). I use stop_file callback to find files and input via tex.sprint([[\input{]]... but it seams that it just steps over the input. After compiling I see that main.addons.sty is found and I expect to see undefined \ImHere error if this file is loaded but it just breaks expanding next tokens (\begin{document}) <<<./main.sty main>>> FOUND: main.addons.sty STOP LOAD ) ! Argument of \@iinput has an extra }. <inserted text> \par l.20 \begin{document} Full example test.tex (with subfiles): \begin{filecontents}{main.sty} % fake \endinput \end{filecontents} \begin{filecontents}{main.addons.sty} \ProvidesFile{main.addons.sty} \ImHere \endinput \end{filecontents} \begin{filecontents}[noheader]{loadaddons.lua} require(kpse.find_file("lualibs-file.lua", "lua")) local checked_addons = {} function load_addons_files(category) if category == 1 then local info = status.list() local tex_style_name = file.nameonly(info.filename) print (info.filename, tex_style_name) if tex_style_name ~= "" and not checked_addons[tex_style_name] then print ("<<<".. info.filename .." " .. tex_style_name ..">>>") local addons_file = tex_style_name ..".addons.sty" local fullpath = kpse.find_file(addons_file) if fullpath then print ("FOUND:", addons_file) tex.print([[\input{]] .. addons_file .. [[}\relax]]) print ("STOP LOAD") end checked_addons[tex_style_name] = true end end texio.write(")") end luatexbase.add_to_callback('stop_file', load_addons_files, 'stop file') \end{filecontents} \directlua{require("loadaddons.lua")} \documentclass{article} \tracingmacros=2\tracingcommands=2 \usepackage{main} \tracingmacros=0\tracingcommands=0 \begin{document} aa \end{document}

  • Is that possible to check the element in latex3's "type"?
    by Explorer on June 3, 2025 at 9:07 am

    I want to develop the following command to customly assign the bibitem's color: \documentclass[12pt]{article} \bibliographystyle{plain} \usepackage{xcolor} \usepackage{etoolbox} \ExplSyntaxOn \seq_new:N \g_my_cite_refname \seq_new:N \g_my_cite_refcolor \NewDocumentCommand\mycite{O{black}m}{% \textcolor{#1}{\cite{#2}}% \seq_put_right:Nn \g_my_cite_refcolor {#1} \seq_put_right:Nn \g_my_cite_refname {#2} } \let\mybibitem\bibitem \renewcommand{\bibitem}[1]{% \int_step_inline:nn {\seq_count:N \g_my_cite_refname}{% \item {#1}~and~\seq_item:Nn \g_my_cite_refname {##1}~%\par \str_if_eq:nnTF{#1}{\seq_item:Nn \g_my_cite_refname {##1}}{TT}{FF} }\mybibitem{#1} } \ExplSyntaxOff \begin{document} Here is a cite\mycite[cyan]{article-full}. Here is another cite\mycite[magenta]{misc-full}. Here is another cite\mycite{incollection-full} \bibliography{xampl} \end{document} It's inconvenient that, in \str_if_eq, for example: #1 is expanded to article-full \seq_item:Nn \g_my_cite_refname {##1} is also expanded to article-full But it resulted FF. Rather inconvienent for test. Thus, my Questions are: How to fix this case? Is that possible to know the "type"(like int/tl/str) for one element in LaTeX3 coding? Edit: The \seq_item:Nn \g_my_cite_refname {##1}, in the documentationn stated, seemed unexpanded, that cause str_if_eq:eeTF and str_if_eq:nVTF failed(in my comment).

  • Individual Citation Style
    by Offal on June 3, 2025 at 8:17 am

    I am rather new to LaTeX and have a question. In Art history I am required to cite Exhibition Catalogues in a specific way. That is: Ausst.kat. Name Of Show, City (Institution of Exhibition), City of Publication Year. How do i implement such a style? Right now my file looks like this: \documentclass[10pt]{article} \usepackage[ngerman]{babel} \usepackage[backend=biber, style=footnote-dw, language=german, sorting=nyt]{biblatex} \addbibresource{kunstgeschichte_literatur.bib} \DeclareNameAlias{default}{family-given} \title{} \author{} \date{\today} \begin{document} \maketitle \tableofcontents \section{Biografie} test Courbet\autocite[12]{courbet2014} \printbibliography \end{document} for the Bib File this is what I am using right now : @catalogue{courbet2014, author = {Sam Keller}, title = {Gustave Courbet}, subtitle = {Fondation Beyeler (Riehen)}, location = {Ostfildern}, year = {2014}, note = {Ausstellungskatalog} } I want it to come out like this: Ausst.kat. Gustave Courbet, Fondation Beyeler (Riehen), Ostfildern 2014 Right now it Appears like this: Keller, Sam: Gustave Courbet. Fondation Beyeler (Riehen), Ausstellungskatalog, Ostfildern, 2014, So I need to get rid of the author, have Ausst.kat. in front of everything instead of Ausstellungskatalog in the middle and no comma between Ostfildern and 2014.

  • Watermark with reverse color text
    by hijinkery on June 3, 2025 at 8:04 am

    I want to make a watermark, or randomly scattered shapes in every page, whose color is very shallow. And the text above the watermark should have a white color, which is as the following picture. I want to do this as a copy-proof tool so that the printed page will not be easily scanned or copied. Is thera a package that allowing me to achieve this? Or can we draw the shapes and text with tikz?

  • Changes in font size not reflecting in SVG path geometry (latex + dvisvgm)
    by niran90 on June 3, 2025 at 2:22 am

    I am using latex + dvisvgm to extract the paths of all latex glyphs so I can use them in an animation software (Blender). The problem I am having is that the paths in the SVG file remain unchanged when I change the font in my .tex file (e.g. from 10pt to 20pt in the minimal example below). test.tex \documentclass[preview,10pt]{standalone} \usepackage{tgtermes} \begin{document} T \end{document} which I then compile with latex -interaction=nonstopmode -output-format=dvi test.tex followed by dvisvgm --no-fonts --exact-bbox test.dvi -o test.svg Can anyone offer some advice on how I can get changes in the font size to reflect in the SVG path geometry?

  • How do I use these fonts for mathematical ambients?
    by Alexander Kahleul on June 3, 2025 at 1:45 am

    How can I use these symbols in LaTex? I didn't find out

  • peek ahead in expl3
    by Frigeri on June 2, 2025 at 10:29 pm

    I'm trying to peek ahead (using expl) to find out if two consecutive environments are the same. In short I want to be able to identify, when processing the ending part of an environment if, by chance, it will be followed by another environment of the same kind. Well, in the code below, instead of looking for the next environment, I simplified the test just to look for the macro \xyz And, it so happens that, using \begin{myenv}...\end{myenv} the test fails... but if I use \myenv...\endmyenv it works... My question: how to do this test, then? (I mean, using \begin{myenv}... \end{myenv}) \documentclass[10pt]{article} \ExplSyntaxOn \bool_new:N \l_myenv_next_flag_bool \bool_set_false:N \l_myenv_next_flag_bool \NewDocumentEnvironment {myenv} {} { \par \textbf{Start~of~myenv}\par \bool_if:NT \l_myenv_next_flag_bool { \par \textit{Previous~was~another~myenv!} } } { % End environment \par \textbf{End~of~myenv}\par %to just peek the next token, instead. %\peek_after:Nw \myenv_test: \peek_regex:nTF {\c{xyz}} {(next~ is~ xyz~T~)} {(next~ isn't~xyz~F~)} } % this one, if I leave a \cE (to finish the group) at the end of the regexp I get an error... :/ \cs_new:Npn \testnext { \peek_regex:nTF {\c{begin}\cB{myenv}} {(next~is~begin\{myenv\}~T~)} {(next~isn't~begin\{myenv\}~F~)} } %\cs_new:Npn \testend % { % \peek_regex:nTF {\c{end}\cB{myenv}\cE} % {(next~is~end{myenv}~T~)} % {(next~isn't~begin{myenv}~T~)} % } \cs_new:Npn \myenv_test: { \token_to_meaning:N \l_peek_token } \cs_new:Npn \xyz { This~ is~ \textbf{xyz}\par } \ExplSyntaxOff \begin{document} % % \testnext recognizes the \begin{myenv} % % the first \xyz isn't recognized by the environment end % the second \xyz is ... \testnext \begin{myenv} SOME \end{myenv}\xyz \myenv ...so... \endmyenv\xyz \end{document}

  • fontspec: \setmainfont has no effect on chapter and section font for scrreprt
    by Markus W. on June 2, 2025 at 9:23 pm

    I am running some experiments with LuaLaTeX and the fontspec package. In the following example, the chapter and section fonts are not based on the main font declaration. How do I tell scrreprt to use the formerly declared main font Corbel? \documentclass[11pt, a4paper, numbers=noenddot, % not 1.1. but 1.1 oneside, bibliography=totoc, listof=totoc, parskip=half, ]{scrreprt} \usepackage{fontspec} \setmainfont{Corbel}[ Extension = .ttf, Path = fonts/corbel/, UprightFont = corbel, BoldFont = corbelb, ItalicFont = corbeli, BoldItalicFont = corbelz, LightItalicFont = corbelli, LightFont = corbell] \newfontfamily{\CorbelLight}{Corbel Light}[ Extension = .ttf, Path = fonts/corbel/, UprightFont = corbell, ItalicFont = corbelli ] \usepackage{graphicx} \begin{document} \chapter{Some Chapter} \section{Some Section} {\Large \textbf{Some Section}} \textbf{Lorem} ipsum \dots \emph{emphasized}. This is \textbf{\emph{bold emphasized}}. { \CorbelLight The house of \emph{Santa Clause}} \end{document} The result shows a difference in fonts for chapter and section:

  • How to use Greek letters for all SI prefixes with the same font in siunitx?
    by Sebastiano on June 2, 2025 at 9:21 pm

    I am using the siunitx package to typeset units in my LaTeX document. By default, when I want to use Greek letters for SI prefixes like micro, the package siunitx give me a different font style for the Greek letters, such as μ for micro or μA for microamperes. Is there a way to tell siunitx to use the regular Greek letters (italic or upright) for all SI prefixes with the same font of the document? \documentclass[12pt]{article} \usepackage{amsmath,amssymb} \usepackage{siunitx} \begin{document} Una spira quadrata di lato 7,20 cm è immersa in un campo magnetico di modulo $B=\qty[per-mode = symbol]{30.0}{ \mu\tesla}$ diretto perpendicolarmente alla sua superficie. Calcola il valore del flusso attraverso la spira. Di quanto occorre ruotare la spira affinché il flusso si riduca a un terzo. Una spira quadrata di lato 7,20 cm è immersa in un campo magnetico di modulo $B=\qty[per-mode = symbol]{30.0}{ \micro\tesla}$ diretto perpendicolarmente alla sua superficie. Calcola il valore del flusso attraverso la spira. Di quanto occorre ruotare la spira affinché il flusso si riduca a un terzo. \end{document} For my students I use the font URW-Classico:

  • Why isn’t the baseline of the second box flush with the first after splitting a vbox with \vsplit
    by Harry on June 2, 2025 at 8:56 pm

    I'm trying to split a vbox into upper and lower parts using \vsplit, but the alignment between the two resulting boxes is off. Specifically, the baseline of the first line in the second box doesn't align with the baseline of the first box. Here's a minimal example: \def\splitbox#1#2#3{\setbox#1=\vsplit#2 upto #3\lineheight\relax} \newbox\topsplit \newbox\bottomsplit \setbox\bottomsplit=\vbox{ \hsize=\dimexpr0.5\textwidth - 0.5cm\relax \input knuth } \splitbox{\topsplit}{\bottomsplit}{10} \starttext \leavevmode \vtop{\unvbox\topsplit}% \hskip0.5cm \vtop{\unvbox\bottomsplit} \stoptext Why are the baselines misaligned, and how can I fix it so the two boxes line up correctly? Would appreciate any help!

  • How to add endpoint dots to the axes and to a function graph in TikZ/PGFPlots?
    by Sebastiano on June 2, 2025 at 8:54 pm

    I am trying to plot the graph of a function like f(x)=e^x in TikZ/PGFPlots. I would like to add endpoint dots to the graph, similar to those seen in some mathematical diagrams. In other words, I want the curve and the axes to end with a "dot" or a "symbol" at the last point of the function. Here is my basic code for plotting f(x)=e^x: \documentclass[12pt]{article} \usepackage{pgfplots} \begin{document} \begin{figure} \centering \begin{tikzpicture} \begin{axis}[ axis on top, axis equal, axis lines=middle, xmin=-3, xmax=3, % Ensure rounded values for the domain ymin=-.25, ymax=1, % Ensure rounded values for the range xtick={-2,-1,0,1, 2}, % Explicit ticks for x-axis ytick={0,1}, % Explicit ticks for y-axis samples=1000, % Ensure sufficient sample points width=12cm, % Optional: define width for the plot height=8cm, % Optional: define height for the plot legend pos=south west, legend style={fill=gray!10,draw=none,cells={anchor=west}}, enlargelimits=true, ] % Plot functions with colors using addplot \addplot[orange, very thick, smooth,domain=-3:3]{e^x}; \addlegendentry{$f(x)=e^x$} \end{axis} \end{tikzpicture} \end{figure} \end{document} I would like to know how I can add endpoint dots at the ends of the axes and of the graph, so that visually ends like this image:

  • Why must \protect defined qed symbol with theorem-like environment?
    by murray on June 2, 2025 at 7:55 pm

    The following source compiles and produces the output shown. % !TEX TS-program = lualatex \documentclass{article} \usepackage[math-style=ISO]{unicode-math} \defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX} \setmainfont{TeX Gyre Termes X} \setmathfont{TeX Gyre Termes Math} \setmathfont{STIX Two Math}[range={\mdlgwhtdiamond},Scale=MatchUppercase] \usepackage{scalerel} \newcommand\myDiamond{\scalerel*{\mdlgwhtdiamond}{X}} \usepackage[thmtools-compat]{keytheorems} % \DeclareRobustCommand{\qed}{% for run-in QED \ifmmode \mathqed \else \leavevmode\unskip\penalty9999\hbox{}\nobreak \quad\hbox{\qedsymbol}% \fi } \newkeytheoremstyle{defstyle}{% headfont= \sffamily\bfseries, headpunct={\sffamily\bfseries.}, postheadspace=0.5em plus 2pt minus 2pt, bodyfont=\normalfont, } \newkeytheorem{example}[ style=defstyle, qed=$\protect\myDiamond$ % why is \protect needed? ] \begin{document} \begin{example} This is an example of something. \end{example} \end{document} But why does compilation fail, with the following error, if the \protect is omitted from the option qed=$\protect\myDiamond$ of \newkeytheorem{example}? ./file.tex:35: Argument of \@begintheorem has an extra }. <inserted text> \par l.35 T his is an example of something. (I think this requirement for the \protect is a new requirement here, after recent updates to either the LaTeX system or package files.) Related: Move qed symbol not to end of sentence with keytheorems

  • Pygments: Python keywords
    by dpgoldenberg on June 2, 2025 at 7:53 pm

    I am starting to use Pygments, via the LaTeX minted package. My goal is to typeset Python code using the highlighting scheme used in JupyterLab, or something close to that. Starting with the default style, I have managed to get close to what I want by adding modifications to the LaTeX file, as described here: https://topanswers.xyz/tex?q=8045#a7657 But, I am stuck on the highlighting of some of the Python keywords, specifically "continue", "del", "global" and "in". As far as I can tell, none of these words are highlighted using any of the standard keyword tokens, and I have managed to deduce the following: "continued" is highlighted as Name.Class "global" and "in" are highlighted as Name.Namespace But, I haven't been able to figure out how "del" is handled. My goal here is to highlight all of the Python keywords in the same way (bold green). I'm sure that there is a lot that I still don't understand about how pygments works, and any guidance would be greatly appreciated! Thanks, David

  • Recreate this Platonic solids separator
    by Alex Bogatskiy on June 2, 2025 at 7:22 pm

    I encountered this very cool separator in a book and was wondering how to reproduce it in an efficient way. TikZ could work but I'm worried it would be quite slow if used many times in a long document (like a book). Perhaps there's a font that has these glyphs, or a LaTeX way of creating such a font from TikZ figures?

  • Changes final option not working with quotation marks
    by Alex on June 2, 2025 at 7:09 pm

    \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[final]{changes} \begin{document} \added{“a”} \end{document} Why is there an undefined control sequence error when the first character in \added is a quotation mark and how can I solve this? It only shows up with the final option of changes. I need to add a quote to an article and have to use the quotation marks. Log file until error: This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=pdflatex 2024.3.14) 2 JUN 2025 21:16 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **Problem.tex (./Problem.tex LaTeX2e <2021-11-15> patch level 1 L3 programming layer <2022-01-21> (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrartcl.cls Document Class: scrartcl 2021/11/13 v3.35 KOMA-Script document class (article) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrkbase.sty Package: scrkbase 2021/11/13 v3.35 KOMA-Script package (KOMA-Script-dependent b asics and keyval usage) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty Package: scrbase 2021/11/13 v3.35 KOMA-Script package (KOMA-Script-independent basics and keyval usage) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty Package: scrlfile 2021/11/13 v3.35 KOMA-Script package (file load hooks) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty Package: scrlfile-hook 2021/11/13 v3.35 KOMA-Script package (using LaTeX hooks) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlogo.sty Package: scrlogo 2021/11/13 v3.35 KOMA-Script package (logo) ))) (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks16 ) Applying: [2021/05/01] Usage of raw or classic option list on input line 252. Already applied: [0000/00/00] Usage of raw or classic option list on input line 368. )) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/tocbasic.sty Package: tocbasic 2021/11/13 v3.35 KOMA-Script package (handling toc-files) \scr@dte@tocline@numberwidth=\skip47 \scr@dte@tocline@numbox=\box50 ) Package tocbasic Info: babel extension for `toc' omitted (tocbasic) because of missing \bbl@set@language on input line 135. Class scrartcl Info: File `scrsize11pt.clo' used instead of (scrartcl) file `scrsize11.clo' to setup font sizes on input line 224 2. (/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrsize11pt.clo File: scrsize11pt.clo 2021/11/13 v3.35 KOMA-Script font size class option (11pt ) ) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/typearea.sty Package: typearea 2021/11/13 v3.35 KOMA-Script package (type area) \ta@bcor=\skip48 \ta@div=\count185 \ta@hblk=\skip49 \ta@vblk=\skip50 \ta@temp=\skip51 \footheight=\skip52 Package typearea Info: These are the values describing the layout: (typearea) DIV = 10 (typearea) BCOR = 0.0pt (typearea) \paperwidth = 597.50793pt (typearea) \textwidth = 418.25555pt (typearea) DIV departure = -6% (typearea) \evensidemargin = 17.3562pt (typearea) \oddsidemargin = 17.3562pt (typearea) \paperheight = 845.04694pt (typearea) \textheight = 595.80026pt (typearea) \topmargin = -25.16531pt (typearea) \headheight = 17.0pt (typearea) \headsep = 20.40001pt (typearea) \topskip = 11.0pt (typearea) \footskip = 47.6pt (typearea) \baselineskip = 13.6pt (typearea) on input line 1743. ) \c@part=\count186 \c@section=\count187 \c@subsection=\count188 \c@subsubsection=\count189 \c@paragraph=\count190 \c@subparagraph=\count191 \scr@dte@section@maxnumwidth=\skip53 Class scrartcl Info: using compatibility default `runin=bysign' (scrartcl) for `\section on input line 4852. Class scrartcl Info: using compatibility default `afterindent=bysign' (scrartcl) for `\section on input line 4852. \scr@dte@part@maxnumwidth=\skip54 Class scrartcl Info: using compatibility default `afterindent=false' (scrartcl) for `\part on input line 4860. \scr@dte@subsection@maxnumwidth=\skip55 Class scrartcl Info: using compatibility default `runin=bysign' (scrartcl) for `\subsection on input line 4870. Class scrartcl Info: using compatibility default `afterindent=bysign' (scrartcl) for `\subsection on input line 4870. \scr@dte@subsubsection@maxnumwidth=\skip56 Class scrartcl Info: using compatibility default `runin=bysign' (scrartcl) for `\subsubsection on input line 4880. Class scrartcl Info: using compatibility default `afterindent=bysign' (scrartcl) for `\subsubsection on input line 4880. \scr@dte@paragraph@maxnumwidth=\skip57 Class scrartcl Info: using compatibility default `runin=bysign' (scrartcl) for `\paragraph on input line 4891. Class scrartcl Info: using compatibility default `afterindent=bysign' (scrartcl) for `\paragraph on input line 4891. \scr@dte@subparagraph@maxnumwidth=\skip58 Class scrartcl Info: using compatibility default `runin=bysign' (scrartcl) for `\subparagraph on input line 4901. Class scrartcl Info: using compatibility default `afterindent=bysign' (scrartcl) for `\subparagraph on input line 4901. \abovecaptionskip=\skip59 \belowcaptionskip=\skip60 \c@pti@nb@sid@b@x=\box51 Package tocbasic Info: babel extension for `lof' omitted (tocbasic) because of missing \bbl@set@language on input line 6076. \scr@dte@figure@maxnumwidth=\skip61 \c@figure=\count192 Package tocbasic Info: babel extension for `lot' omitted (tocbasic) because of missing \bbl@set@language on input line 6091. \scr@dte@table@maxnumwidth=\skip62 \c@table=\count193 Class scrartcl Info: Redefining `\numberline' on input line 6258. \bibindent=\dimen138 ) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty Package: inputenc 2021/02/14 v1.3d Input encoding file \inpenc@prehook=\toks17 \inpenc@posthook=\toks18 ) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2021/04/29 v2.0v Standard LaTeX package ) (/usr/share/texlive/texmf-dist/tex/latex/changes/changes.sty Package: changes 2021/07/15 v4.2.1 changes package *** changes package 2021/07/15 v4.2.1 *** (/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty Package: xkeyval 2020/11/20 v2.8 package option processing (HA) (/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex \XKV@toks=\toks19 \XKV@tempa@toks=\toks20 ) \XKV@depth=\count194 File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA) )) (/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count195 ) (/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.sty (/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.tex \integerpart=\count196 \decimalpart=\count197 ) Package: xstring 2021/07/21 v1.84 String manipulations (CT) ) ulem-option 'normalem,normalbf', passed to package ulem truncate-option 'breakall,fit', passed to package truncate changes-option 'final' (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty Package: xcolor 2021/10/31 v2.13 LaTeX color extensions (UK) (/usr/share/texlive/texmf-dist/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 227. (/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex ) Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1352. Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1356. Package xcolor Info: Model `RGB' extended on input line 1368. Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1370. Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1371. Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1372. Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1373. Package xcolor Info: Model `Gray' substituted by `gray' on input line 1374. Package xcolor Info: Model `wave' substituted by `hsb' on input line 1375. ) (/usr/share/texlive/texmf-dist/tex/generic/ulem/ulem.sty \UL@box=\box52 \UL@hyphenbox=\box53 \UL@skip=\skip63 \UL@hook=\toks21 \UL@height=\dimen139 \UL@pe=\count198 \UL@pixel=\dimen140 \ULC@box=\box54 Package: ulem 2019/11/18 \ULdepth=\dimen141 ) (/usr/share/texlive/texmf-dist/tex/latex/todonotes/todonotes.sty Package: todonotes 2021/06/04 v1.1.5 Todonotes source and documentation. Package: todonotes 2021/06/04 (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2020/11/24 v1.1c Standard LaTeX ifthen package (DPC) ) (/usr/share/texlive/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty (/usr/share/texlive/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty (/usr/share/texlive/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex \pgfutil@everybye=\toks22 \pgfutil@tempdima=\dimen142 \pgfutil@tempdimb=\dimen143 (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.t ex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def \pgfutil@abb=\box55 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex (/usr/share/texlive/texmf-dist/tex/generic/pgf/pgf.revision.tex) Package: pgfrcs 2021/05/15 v3.1.9a (3.1.9a) )) Package: pgf 2021/05/15 v3.1.9a (3.1.9a) (/usr/share/texlive/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR) (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty Package: trig 2021/08/11 v1.11 sin cos tan (DPC) ) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration ) Package graphics Info: Driver file: pdftex.def on input line 107. ) \Gin@req@height=\dimen144 \Gin@req@width=\dimen145 ) (/usr/share/texlive/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty (/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex Package: pgfsys 2021/05/15 v3.1.9a (3.1.9a) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex \pgfkeys@pathtoks=\toks23 \pgfkeys@temptoks=\toks24 (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.t ex \pgfkeys@tmptoks=\toks25 )) \pgf@x=\dimen146 \pgf@y=\dimen147 \pgf@xa=\dimen148 \pgf@ya=\dimen149 \pgf@xb=\dimen150 \pgf@yb=\dimen151 \pgf@xc=\dimen152 \pgf@yc=\dimen153 \pgf@xd=\dimen154 \pgf@yd=\dimen155 \w@pgf@writea=\write3 \r@pgf@reada=\read2 \c@pgf@counta=\count199 \c@pgf@countb=\count266 \c@pgf@countc=\count267 \c@pgf@countd=\count268 \t@pgf@toka=\toks26 \t@pgf@tokb=\toks27 \t@pgf@tokc=\toks28 \pgf@sys@id@count=\count269 (/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg File: pgf.cfg 2021/05/15 v3.1.9a (3.1.9a) ) Driver file for pgf: pgfsys-pdftex.def (/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def File: pgfsys-pdftex.def 2021/05/15 v3.1.9a (3.1.9a) (/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.de f File: pgfsys-common-pdf.def 2021/05/15 v3.1.9a (3.1.9a) ))) (/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code. tex File: pgfsyssoftpath.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgfsyssoftpath@smallbuffer@items=\count270 \pgfsyssoftpath@bigbuffer@items=\count271 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code. tex File: pgfsysprotocol.code.tex 2021/05/15 v3.1.9a (3.1.9a) )) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex Package: pgfcore 2021/05/15 v3.1.9a (3.1.9a) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex \pgfmath@dimen=\dimen156 \pgfmath@count=\count272 \pgfmath@box=\box56 \pgfmath@toks=\toks29 \pgfmath@stack@operand=\toks30 \pgfmath@stack@operation=\toks31 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code .tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonomet ric.code.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.cod e.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison .code.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code. tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code .tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code. tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerari thmetics.code.tex))) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex \c@pgfmathroundto@lastzeros=\count273 )) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfint.code.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.te x File: pgfcorepoints.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgf@picminx=\dimen157 \pgf@picmaxx=\dimen158 \pgf@picminy=\dimen159 \pgf@picmaxy=\dimen160 \pgf@pathminx=\dimen161 \pgf@pathmaxx=\dimen162 \pgf@pathminy=\dimen163 \pgf@pathmaxy=\dimen164 \pgf@xx=\dimen165 \pgf@xy=\dimen166 \pgf@yx=\dimen167 \pgf@yy=\dimen168 \pgf@zx=\dimen169 \pgf@zy=\dimen170 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct. code.tex File: pgfcorepathconstruct.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgf@path@lastx=\dimen171 \pgf@path@lasty=\dimen172 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code .tex File: pgfcorepathusage.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgf@shorten@end@additional=\dimen173 \pgf@shorten@start@additional=\dimen174 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.te x File: pgfcorescopes.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgfpic=\box57 \pgf@hbox=\box58 \pgf@layerbox@main=\box59 \pgf@picture@serial@count=\count274 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.c ode.tex File: pgfcoregraphicstate.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgflinewidth=\dimen175 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformation s.code.tex File: pgfcoretransformations.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgf@pt@x=\dimen176 \pgf@pt@y=\dimen177 \pgf@pt@temp=\dimen178 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex File: pgfcorequick.code.tex 2021/05/15 v3.1.9a (3.1.9a) ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.t ex File: pgfcoreobjects.code.tex 2021/05/15 v3.1.9a (3.1.9a) ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing .code.tex File: pgfcorepathprocessing.code.tex 2021/05/15 v3.1.9a (3.1.9a) ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.te x File: pgfcorearrows.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgfarrowsep=\dimen179 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex File: pgfcoreshade.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgf@max=\dimen180 \pgf@sys@shading@range@num=\count275 \pgf@shadingcount=\count276 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex File: pgfcoreimage.code.tex 2021/05/15 v3.1.9a (3.1.9a) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code. tex File: pgfcoreexternal.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgfexternal@startupbox=\box60 )) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.te x File: pgfcorelayers.code.tex 2021/05/15 v3.1.9a (3.1.9a) ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.c ode.tex File: pgfcoretransparency.code.tex 2021/05/15 v3.1.9a (3.1.9a) ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code. tex File: pgfcorepatterns.code.tex 2021/05/15 v3.1.9a (3.1.9a) ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex File: pgfcorerdf.code.tex 2021/05/15 v3.1.9a (3.1.9a) ))) (/usr/share/texlive/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex File: pgfmoduleshapes.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgfnodeparttextbox=\box61 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex File: pgfmoduleplot.code.tex 2021/05/15 v3.1.9a (3.1.9a) ) (/usr/share/texlive/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65 .sty Package: pgfcomp-version-0-65 2021/05/15 v3.1.9a (3.1.9a) \pgf@nodesepstart=\dimen181 \pgf@nodesepend=\dimen182 ) (/usr/share/texlive/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18 .sty Package: pgfcomp-version-1-18 2021/05/15 v3.1.9a (3.1.9a) )) (/usr/share/texlive/texmf-dist/tex/latex/pgf/utilities/pgffor.sty (/usr/share/texlive/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex)) (/usr/share/texlive/texmf-dist/tex/latex/pgf/math/pgfmath.sty (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex Package: pgffor 2021/05/15 v3.1.9a (3.1.9a) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex) \pgffor@iter=\dimen183 \pgffor@skip=\dimen184 \pgffor@stack=\toks32 \pgffor@toks=\toks33 )) (/usr/share/texlive/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex Package: tikz 2021/05/15 v3.1.9a (3.1.9a) (/usr/share/texlive/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers .code.tex File: pgflibraryplothandlers.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgf@plot@mark@count=\count277 \pgfplotmarksize=\dimen185 ) \tikz@lastx=\dimen186 \tikz@lasty=\dimen187 \tikz@lastxsaved=\dimen188 \tikz@lastysaved=\dimen189 \tikz@lastmovetox=\dimen190 \tikz@lastmovetoy=\dimen191 \tikzleveldistance=\dimen192 \tikzsiblingdistance=\dimen193 \tikz@figbox=\box62 \tikz@figbox@bg=\box63 \tikz@tempbox=\box64 \tikz@tempbox@bg=\box65 \tikztreelevel=\count278 \tikznumberofchildren=\count279 \tikznumberofcurrentchild=\count280 \tikz@fig@count=\count281 (/usr/share/texlive/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex File: pgfmodulematrix.code.tex 2021/05/15 v3.1.9a (3.1.9a) \pgfmatrixcurrentrow=\count282 \pgfmatrixcurrentcolumn=\count283 \pgf@matrix@numberofcolumns=\count284 ) \tikz@expandcount=\count285 (/usr/share/texlive/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tik zlibrarytopaths.code.tex File: tikzlibrarytopaths.code.tex 2021/05/15 v3.1.9a (3.1.9a) ))) (/usr/share/texlive/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tik zlibrarypositioning.code.tex File: tikzlibrarypositioning.code.tex 2021/05/15 v3.1.9a (3.1.9a) ) (/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ) \calc@Acount=\count286 \calc@Bcount=\count287 \calc@Adimen=\dimen194 \calc@Bdimen=\dimen195 \calc@Askip=\skip64 \calc@Bskip=\skip65 LaTeX Info: Redefining \setlength on input line 80. LaTeX Info: Redefining \addtolength on input line 81. \calc@Ccount=\count288 \calc@Cskip=\skip66 ) \c@@todonotes@numberoftodonotes=\count289 ) \c@Changes@AuthorCount=\count290 \c@Changes@Author=\count291 \c@Changes@addedCount=\count292 \c@Changes@deletedCount=\count293 \c@Changes@replacedCount=\count294 \c@Changes@highlightCount=\count295 \c@Changes@commentCount=\count296 \c@authorcommentcount=\count297 (/usr/share/texlive/texmf-dist/tex/latex/truncate/truncate.sty Package: truncate 2001/08/20 ver 3.6 \@Trunc@RestHyph=\toks34 ) \Changestruncatewidth=\skip67 \Changes@summary@width=\skip68 ) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def File: l3backend-pdftex.def 2022-01-12 L3 backend support: PDF output (pdfTeX) \l__color_backend_stack_int=\count298 \l__pdf_internal_box=\box66 ) (./Problem.aux) \openout1 = `Problem.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 6. LaTeX Font Info: ... okay on input line 6. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 6. LaTeX Font Info: ... okay on input line 6. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 6. LaTeX Font Info: ... okay on input line 6. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 6. LaTeX Font Info: ... okay on input line 6. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 6. LaTeX Font Info: ... okay on input line 6. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 6. LaTeX Font Info: ... okay on input line 6. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 6. LaTeX Font Info: ... okay on input line 6. Package scrbase Info: activating english \contentsname on input line 6. Package scrbase Info: activating english \listfigurename on input line 6. Package scrbase Info: activating english \listtablename on input line 6. (/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] \scratchcounter=\count299 \scratchdimen=\dimen196 \scratchbox=\box67 \nofMPsegments=\count300 \nofMParguments=\count301 \everyMPshowfont=\toks35 \MPscratchCnt=\count302 \MPscratchDim=\dimen197 \MPnumerator=\count303 \makeMPintoPDFobject=\count304 \everyMPtoPDFconversion=\toks36 ) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf (/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) ) (/usr/share/texlive/texmf-dist/tex/latex/grfext/grfext.sty Package: grfext 2019/12/03 v1.3 Manage graphics extensions (HO) (/usr/share/texlive/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO) )) (/usr/share/texlive/texmf-dist/tex/latex/kvoptions/kvoptions.sty Package: kvoptions 2020-10-07 v3.14 Key value format for package options (HO) (/usr/share/texlive/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO) )) (/usr/share/texlive/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO ) (/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty Package: iftex 2020/03/06 v1.0d TeX engine tests ) Package pdftexcmds Info: \pdf@primitive is available. Package pdftexcmds Info: \pdf@ifprimitive is available. Package pdftexcmds Info: \pdfdraftmode found. ) Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4 85. Package grfext Info: Graphics extension search list: (grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE G,.JBIG2,.JB2,.eps] (grfext) \AppendGraphicsExtensions on input line 504. (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv e )) ! Undefined control sequence. \GenericError ... #4 \errhelp \@err@ ... l.7 \added{“a”} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.

  • utf8 character in index of .dtx file
    by Gargantuar on June 2, 2025 at 6:49 pm

    I'm trying to add § as a command to my .dtx file (as an active character), including the index. Consider the following code: \documentclass{ltxdoc} \EnableCrossrefs \CodelineIndex \NewDocElement[envlike, idxtype=symb., idxgroup=, printtype=\textit{symb.}]{Symb}{symb} \begin{document} % \DescribeSymb{§} % <-- not working \DescribeSymb{\S} Description of~|§|. \begin{symb}{\S} % <-- can disable indexing with [noindex] Definition of~|§|. \begin{macrocode} § % \end{macrocode} \end{symb} \PrintIndex \end{document} There are a few problems: I couldn't use § in \DescribeSymb because of utf8 encoding issues. Falling back to \S worked. I can't use § in the symb environment due to utf8. Falling back to \S first of all prints it verbatim in the margin, and second of all creates a different entry in the index. Is there a way to fix this? I know that makeindex is kind of limited regarding utf8, but especially for symb, it doesn't seem like a makeindex issue only.

  • LaTeX Error: Counter too large. - Too many subsections (more than 26)
    by Dalton Cézane on June 2, 2025 at 6:08 pm

    I have a document that is using IEEEtran template and it is with more than 26 subsections. This is generating the following error: LaTeX Error: Counter too large. Seaching here in StackOverflow and other sites, I tried putting the following code in the beggining of the section, but it does not work: \renewcommand*{\thesubsection}{\alphalph{\value{subsection}}}. My main file has the following packages: \documentclass[journal]{IEEEtran} \usepackage[english]{babel} \usepackage{csquotes} \usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig} \usepackage{hyperref} \usepackage{alphalph} \usepackage{graphicx} \graphicspath{ {./images/} } \hyphenation{op-tical net-works semi-conduc-tor IEEE-Xplore} \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} \usepackage{balance} \newtheorem{theorem}{Theorem} \usepackage{diagbox} \usepackage{multirow} \usepackage[normalem]{ulem} \useunder{\uline}{\ul}{} \usepackage{booktabs} % Keywords command \providecommand{\keywords}[1] { \small \textbf{\textit{Keywords---}} #1 } \begin{document} ... \input{sectionx} \medskip %\printbibliography \bibliographystyle{IEEEtran} \bibliography{ref.bib} \end{document} And below I put the code I am using in the sectionx file: \section{My Section} \label{sec:mysec} \renewcommand*{\thesubsection}{\alphalph{\value{subsection}}} %... \subsection{sub} \label{subsec} \subsection{sub1} \label{subsec1} %... Can anyone please tell me what I am doing wrong?

  • How can I include a new documentclass in a LaTeX document or LaTeX distribution [duplicate]
    by Samuel Enibe on June 2, 2025 at 5:29 pm

    I am writing an article for publication. The publisher, Trans Tech Publications, provided a custom document class named TTP.CLS. This documentclass is not in my TeXLive LaTeX distribution. How can I use this custom documentclass?

  • Shared counter for floats and non-floats: numbering order incorrect when float moves
    by ScapeProf on June 2, 2025 at 5:02 pm

    I'm using a shared counter for both floats (like algorithms) and non-floats (like theorems/examples). However, when LaTeX moves a float (e.g., an algorithm) to a different page, the numbering doesn't reflect the visual order in the document. Here's a minimal working example illustrating the issue: \documentclass[12pt,a4paper,oneside]{memoir} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{amsthm} \usepackage{etoolbox} % Define theorem-like environments \theoremstyle{definition} \newtheorem{theorem}{Theorem}[chapter] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \makeatletter \let\c@algorithm\c@theorem \makeatother \renewcommand{\thealgorithm}{\thetheorem} \begin{document} \chapter{Test} \begin{algorithm} \caption{My Algorithm} \begin{algorithmic} \newcount\i \i=1 \loop \State Step \advance \i by 1 \ifnum\i<28 \repeat \end{algorithmic} \label{alg:myalgo} \end{algorithm} \begin{example} This is an example illustrating the concept. \label{ex:myexample} \end{example} As you can see, Algorithm~\ref{alg:myalgo} gets number 1.1 and Example~\ref{ex:myexample} gets number 1.2, but the algorithm appears after the example due to LaTeX choosing to place the float on the next page. \end{document} I want a dynamic solution that fixes the numbering based on where LaTeX places the float without changing anything else (if possible). So, no use of [H] or equivalent to force float placement. I.e., I want the above MWE to say Example 1.1 and Algorithm 1.2 (if the Algorithm appears after the example in the output) without changing anything else.

  • Need help creating table with tabularray
    by suckingalemon on June 2, 2025 at 4:35 pm

    I am trying to create this table in LaTeX using tabularray (see image below made using Word). Here is a minimum working example: \documentclass{article} \usepackage{tabularray} \usepackage{siunitx} \usepackage{caption} \usepackage{chemmacros} \DeclareSIUnit{\wt}{wt\%} \begin{document} \begin{table} \centering \caption{Summary of gravimetrically determined excess, total, and net \ch{H2} adsorption capacities (mean of three data sets with standard deviation) of the filler PTPA, pristine PIM-1 membrane, and the two composites at \SI{77}{\kelvin}. The skeletal densities (\(\rho_\text{sk}\)) of the polymers are also given (error is given from the linear fitting). \(\phi\) represents the void fraction of the material.} \label{Here} \begin{tblr}{ colspec={@{}XXXXXXXXX@{}}, hline{1,7} = {-}{0.08em}, hline{2,3} = {-}{0.05em}, row{2} = {r}, column{8} = {r}, column{9} = {r}, cell{1}{1} = {r=2}{}, cell{1}{2} = {c=2}{r}, cell{1}{4} = {c=2}{r}, cell{1}{6} = {c=2}{r}, cell{1}{8} = {r=2}{}, cell{1}{9} = {r=2}{}, cell{3}{2} = {r}, cell{3}{3} = {r}, cell{3}{4} = {r}, cell{3}{5} = {r}, cell{3}{6} = {r}, cell{3}{7} = {r}, cell{4}{2} = {r}, cell{4}{3} = {r}, cell{4}{4} = {r}, cell{4}{5} = {r}, cell{4}{6} = {r}, cell{4}{7} = {r}, cell{5}{2} = {r}, cell{5}{3} = {r}, cell{5}{4} = {r}, cell{5}{5} = {r}, cell{5}{6} = {r}, cell{5}{7} = {r}, cell{6}{2} = {r}, cell{6}{3} = {r}, cell{6}{4} = {r}, cell{6}{5} = {r}, cell{6}{6} = {r}, cell{6}{7} = {r}, } Sample & Excess \ch{H2} capacity at \SI{50}{\bar} & & Total \ch{H2} capacity at \SI{100}{\bar} & & Net \ch{H2} capacity at \SI{10}{\bar} & & \(\rho_\text{sk}\) (\unit{\gram\per\cm\cubed}) & \(\phi\) \\ & \unit{\mmol\per\gram} & \unit{\wt} & \unit{\mmol\per\gram} & \unit{\wt} & \unit{\mmol\per\gram} & \unit{\wt} & & \\ PTPA & \( 11.65 \pm 0.02 \) & \( 2.349 \pm 0.005 \) & \( 20.21 \pm 0.05 \) & \( 4.07 \pm 0.01 \) & \( 8.98 \pm 0.01 \) & \( 1.810 \pm 0.002 \) & \( 1.266 \pm 0.004 \) & 0.50 \\ PIM mem & \( 8.12 \pm 0.03 \) & \( 1.64 \pm 0.01 \) & \( 14.35 \pm 0.01 \) & \( 2.892 \pm 0.002 \) & \( 5.87 \pm 0.03 \) & \( 1.18 \pm 0.01 \) & \( 1.295 \pm 0.002 \) & 0.40 \\ PIM-PTPA-13 & \( 8.53 \pm 0.11 \) & \( 1.72 \pm 0.02 \) & \( 14.96 \pm 0.21 \) & \( 3.02 \pm 0.04 \) & \( 6.26 \pm 0.100 \) & \( 1.26 \pm 0.02 \) & \( 1.285 \pm 0.005 \) & 0.38 \\ PIM-PTPA-23 & \( 9.14 \pm 0.01 \) & \( 1.842 \pm 0.003 \) & \( 15.96 \pm 0.04 \) & \( 3.22 \pm 0.01 \) & \( 6.75 \pm 0.01 \) & \( 1.360 \pm 0.002\) & \( 1.261 \pm 0.005 \) & 0.36 \end{tblr} \end{table} \end{document} I've built this using LaTeX Tables but that tends to only work well with very simple tables. I'm almost there but can anyone help me just make this so it works correctly? It isn't fitting correctly in my document (too wide) and I know tabularray can auto adjust things so they fit correctly. Thanks for any help in advance.

  • How can I draw "rounded stars" in TikZ?
    by user319109 on June 2, 2025 at 2:08 pm

    I'm trying to draw rounded stars in TikZ that look similar to what so many AI applications nowadays are using. They look like the following: I modified some LaTeX code from another question to draw a single star that looks like the following: However, as you can see, the inner and outer angles are pointed and not rounded. I assume you can use some kind of (Bezier?) curves to draw the rounded points, but my TikZ skills are not high enough to know how to do this and I can't come up with the proper keywords to figure out how I can tackle this. How might I be able to draw these rounded stars? My code: \documentclass[tikz,dvipsnames]{standalone} \usepackage{tikz} \newcommand{\tstar}[5]{% inner radius, outer radius, tips, rot angle, options \pgfmathsetmacro{\starangle}{360/#3} \draw[#5] (#4:#1) \foreach \x in {1,...,#3} { -- (#4+\x*\starangle-\starangle/2:#2) -- (#4+\x*\starangle:#1) } -- cycle; } \begin{document} \begin{tikzpicture} \tstar{1.75}{4}{4}{45}{thick,draw=none,fill=Purple} \end{tikzpicture} \end{document}

  • Using type 1 fonts with unicode-math
    by Noah on June 2, 2025 at 12:09 pm

    I'm quite a fan of the times compatible super / subscript used in the mathtime pro 2 font, but otherwise would like to use unicode-math and XITS. Is there either any way to use the script from MT Pro 2 alongside XITS in unicode-math, or else is there an open type font with times compatible script?

  • thmmarks option of ntheorem breaks beamer \item with overlay specification
    by Sebastian on June 2, 2025 at 12:08 pm

    Here's a minimal non-working example: \documentclass[noamsthm]{beamer} \usepackage[thmmarks]{ntheorem} \begin{document} \begin{frame}{Fail} \begin{itemize} \item<+-> a \item<+-> a \item<+-> a \end{itemize} \end{frame} \end{document} If I run that (via pdflatex), I get the error ! LaTeX Error: \begin{itemize} on input line 10 ended by \end{document}. It seems that the modifications of thmmarks clash with beamer's magic to detect the end of an \item with overlay specification. A simple ugly fix is to wrap the last \item in an explicit command instead, e.g., \documentclass[noamsthm]{beamer} \usepackage[thmmarks]{ntheorem} \begin{document} \begin{frame}{Fail} \begin{itemize} \item<+-> a \item<+-> a \onslide<+->{ \item a } % The explicit group seems to save the day \end{itemize} \end{frame} \end{document} Is there a way to properly patch ntheorem here? Or a clever way to at least apply the fix automatically (by adding an invisible dummy item)? Update: My fix above seems not to work when nesting itemize. We now also need a dummy item before the sub-itemize ... (and the spacing is not quite right as is) \begin{frame}[t]{Fails} \begin{itemize} \item<+-> a \item<+-> a %\visible<.->{\item[] } \begin{itemize} \item<+-> a \visible<.->{\item[] \vspace*{-\itemsep-\baselineskip}} \end{itemize} \item<+-> a \visible<.->{\item[] \vspace*{-\itemsep-\baselineskip}} \end{itemize} After \end{frame}

  • Readability of inline fractions [closed]
    by ahron on June 2, 2025 at 6:55 am

    In a markdown document, I need to express a 2nd order partial derivative inline. I have (afaik) two ways: * $p_{ij}$ stands for $\frac{\partial^2 F}{\partial x_i \partial x_j}$ * $p_{ij}$ stands for $\partial^2 F / \partial x_i \partial x_j$ Which would be better for readability and correctness?

  • How to use quotation marks in ConTeXt?
    by Jasper on June 1, 2025 at 7:29 pm

    I want to quote something in ConTeXt, but the typical LaTeX syntax is producing the wrong result. \starttext ``Get off my lawn!'' yelled the old man. \stoptext

  • How can I write the equation of the plane that passes through three points given in a list of three points?
    by TTTT2025 on June 1, 2025 at 8:34 am

    I have a list of three points (code in Mathematica) {{{-12, 2, -1}, {-11, 1, -5}, {-10, -2, 3}}, {{-12, 2, -1}, {-11, 1, -5}, {-10, 6, 3}}, {{-12, 2, -1}, {-11, 1, -5}, {-9, 5, -7}}, {{-12, 2, -1}, {-11, 1, -5}, {-9, 8, -4}}, {{-12, 2, -1}, {-11, 1, -5}, {-7, -6, -2}}, {{-12, 2, -1}, {-11, 1, -5}, {-7, -2, -8}}, {{-12, 2, -1}, {-11, 1, -5}, {-7, -2, 6}}, {{-12, 2, -1}, {-11, 1, -5}, {-7, 3, -9}}, {{-12, 2, -1}, {-11, 1, -5}, {-7, 3, 7}}, {{-12, 2, -1}, {-11, 1, -5}, {-7, 6, -8}}, {{-12, 2, -1}, {-11, 1, -5}, {-7, 9, 3}}, {{-12, 2, -1}, {-11, 1, -5}, {-7, 10, -2}}, {{-12, 2, -1}, {-11, 1, -5}, {-6, -4, -7}}, {{-12, 2, -1}, {-11, 1, -5}, {-6, -4, 5}}, {{-12, 2, -1}, {-11, 1, -5}, {-6, 8, -7}}, {{-12, 2, -1}, {-11, 1, -5}, {-6, 8, 5}}, {{-12, 2, -1}, {-11, 1, -5}, {-4, -6, 3}}, {{-12, 2, -1}, {-11, 1, -5}, {-4, -2, -9}}, {{-12, 2, -1}, {-11, 1, -5}, {-4, -2, 7}}, {{-12, 2, -1}, {-11, 1, -5}, {-4, 6, -9}}, {{-12, 2, -1}, {-11, 1, -5}, {-4, 6, 7}}, {{-12, 2, -1}, {-11, 1, -5}, {-4, 10, 3}}, {{-12, 2, -1}, {-11, 1, -5}, {-2, -6, 3}}, {{-12, 2, -1}, {-11, 1, -5}, {-2, 6, -9}}, {{-12, 2, -1}, {-11, 1, -5}, {-2, 6, 7}}, {{-12, 2, -1}, {-11, 1, -5}, {-2, 10, 3}}, {{-12, 2, -1}, {-11, 1, -5}, {3, 5, -7}}, {{-12, 2, -1}, {-11, 1, -5}, {3, 8, -4}}, {{-12, 2, -1}, {-11, 1, -5}, {4, -2, 3}}, {{-12, 2, -1}, {-11, 1, -5}, {4, 6, 3}}, {{-12, 2, -1}, {-11, 1, -5}, {5, 6, -2}}, {{-12, 2, -1}, {-11, 1, 3}, {-10, -2, -5}}, {{-12, 2, -1}, {-11, 1, 3}, {-10, 6, -5}}, {{-12, 2, -1}, {-11, 1, 3}, {-9, 5, -7}}, {{-12, 2, -1}, {-11, 1, 3}, {-9, 8, -4}}, {{-12, 2, -1}, {-11, 1, 3}, {-7, -6, -2}}, {{-12, 2, -1}, {-11, 1, 3}, {-7, -2, -8}}, {{-12, 2, -1}, {-11, 1, 3}, {-7, -2, 6}}, {{-12, 2, -1}, {-11, 1, 3}, {-7, 6, -8}}, {{-12, 2, -1}, {-11, 1, 3}, {-7, 9, -5}}} With each three points, I use the ProfLycee package like this \documentclass{article} \usepackage{ProfLycee} \begin{document} \[\TrouveEqCartPlan[SimplifCoeffs,Facteur=-1](-12, 2, -1)(-11, 1, -5)(-10, -2, 3)\] \end{document} How can I write the equation of the plane that passes through three points given in a list of three points?

  • how to circle both over-dots in $\ddot{x}$
    by feynman on June 1, 2025 at 7:45 am

    \ddot{x} gives 2 overdots for x, 2nd derivative of x. How to circle both overdots in \ddot{x}?