• Disable stretching between words while using babel for Thai
    by p_pattedd on March 2, 2026 at 8:04 am

    When typing a document in Thai with babel (using XeLaTeX via MikTeX), sometimes it outputs with these spaces between words, for example: MWE: \documentclass[12pt,a4paper]{article} \usepackage[no-math]{fontspec} \usepackage[thai,provide=*]{babel} \babelfont[thai]{rm}[Scale=1.33333]{TH Sarabun New} \renewcommand\baselinestretch{1.4} \begin{document} เดิมแผ่นดินเมืองจีนทั้งปวงนั้น เปนสุขมาช้านานแล้วก็เปนศึก ครั้นศึกสงบแล้วก็เปนสุข มีพระมหากษัตริย์ทรงพระนามพระเจ้าจิวบูอ๋อง แลพระวงศ์ได้เสวยราชย์ต่อ ๆ ลงมาเปนหลายพระองค์ ได้ความสุขมาถึงเจ็ดร้อยปี จึงมีผู้ตั้งแขงเมืองถึงเจ็ดหัวเมือง ครั้งนั้นพระเจ้าจิ๋นอ๋องได้เสวยราชย์ในเมืองจิ๋นก๊กให้ไปตีเอาหัวเมืองทั้งเจ็ดนั้น เข้าอยู่ในอาณาจักรพระเจ้าจิ๋นอ๋องทั้งสิ้น ครั้นอยู่มาพระเจ้าจิ๋นอ๋องเสียแก่ฮั่นฌ้อ แล้วฮั่นโกโจกับฮั่นฌ้อรบกัน จึงได้ราชสมบัติแก่ฮั่นโกโจ ฮั่นโกโจแลพระราชวงศ์ได้เสวยราชสมบัติต่อ ๆ มาในแผ่นดินจีนนั้นถึงสิบสององค์ มีขุนนางคนหนึ่งชื่ออองมังเปนขบถชิงเอาราชสมบัติได้ เปนเจ้าแผ่นดินอยู่สิบแปดปี แล้วจึงมีหลานพระเจ้าฮั่นโกโจชื่อฮั่นกองบู๊จับอองมังฆ่าเสียชิงเอาราชสมบัติได้เสวยราชย์สืบวงศ์มาสิบสององค์ พระองค์ได้เสวยราชย์ที่สุดนั้น ทรงพระนามพระเจ้าเหี้ยนเต้ จึงแตกเปนสามเมือง ภาษาจีนเรียกว่า สามก๊ก \end{document} How to stop LaTeX from doing this? (I have read babel-thai documentation, but none of the macros seems to work.)

  • Redesign of arrow at circuitikz ccgsw symbol
    by Zarko on March 2, 2026 at 7:20 am

    In circuitikz symbol ccgsw I like to change the color of arrow (by simple in-line selection, if is possible) and arrow head for example from stealth to Straight Barb. How to do this? \documentclass[margin=3mm]{standalone} \usepackage{xcolor} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw[gray] (0,0) to [ccgsw={$t=t_b$}] (2,0) ; \end{circuitikz} \end{document}

  • BibLaTeX specified language is not used
    by Knudsen on March 2, 2026 at 6:40 am

    Why would biblatex fill out this entry with Cyrillic while the language being specified is Serbian written in Latin? \documentclass{article} \begin{filecontents*}{test.bib} @book{Mitri-vol1-sr, title={Cauchyjev račun ostataka sa primenama}, author = {Mitrinović, Dragoslav S. and Kečkić, Jovan D.}, series = {Matematički problemi i ekspozicije}, volume = {8}, year = {1978}, publisher = {Naučna Knjiga}, address = {Beograd}, pages = {271}, langid = {serbian}, } \end{filecontents*} \usepackage{fontspec} \newfontfamily\cyrillicfont{STIX Two Text} \usepackage{polyglossia} \usepackage{csquotes} \setmainlanguage{english} \setotherlanguage{serbian} \usepackage[style=authoryear, backend=biber, autolang=other, ]{biblatex} \addbibresource{test.bib} \begin{document} \nocite{*} \printbibliography \end{document}

  • How to draw this shape? [closed]
    by bakhta marouf on March 2, 2026 at 5:49 am

    I want to draw this shape using TikZ, but I don't know how. Could anyone provide an example of how to do it?

  • Will (Lua)LaTeX always find a png image located in same directory as the cls file?
    by rallg on March 2, 2026 at 12:06 am

    Using lualatex, texlive 2025, Linux (jailed on Android). I do not think this involves Lua. I know the answer to my question on my own system. But since Linux jailed in Android has some file directory peculiarities, I wish to know whether my results are generally applicable. Question: Given any document class, which may be custom, will TeX automatically find any png image located in the same directory as the cls file? The cls file might be in TEXMF-DIST, TEXTMF-LOCAL, TEXMFHOME. When I say "automatically find" I mean without setting the graphics path, and without a two-pass compile. I should be able to include the png using only its file name. In the following MWE, the png does not need to be a real image, since it is not printed. You can follow the MWE by navigating to the directory that contains memoir.cls then (if privileged) touch NothingToSeeHere.png, followed by mktexlsr. \documentclass{memoir} \IfFileExists{NothingToSeeHere.png} {\typeout{HOORAY}}{\typeout{BOOHOO}} \begin{document} Hello, World \end{document} I chose memoir because it is widely available, but not in LaTeX base. In my own case, I get HOORAY no matter where the custom cls file (and png) is located in the TEXMF tree, as long as both are in the same place. Is that true for everybody?

  • \regex_if_match:nnTF creates an undefined control sequence error on Ubuntu [closed]
    by Paul Wintz on March 1, 2026 at 10:46 pm

    I was trying to use the LaTeX3 regex package to match text, but was running into trouble because \regex_if_match:nnTF is not defined, despite appearing in the LaTeX3 documentation. \documentclass{article} \usepackage{expl3} \ExplSyntaxOn \begin{document} \regex_if_match:nnTF{aaa}{aaa}{ TRUE }{ FALSE } \end{document} \ExplSyntaxOff

  • Proper way to set 'global' and 'local' TOC in Beamer with \part, \section, \subsection
    by Dimitrios ANAGNOSTOU on March 1, 2026 at 8:31 pm

    I want to have a hierarchical Beamer structure: parts → sections → subsections which 1) automatically generate subsection slides to highlight transitions; 2) show mini TOC per section, 3) giving context within sections; 4) show a global TOC divided by parts, hiding subsections for clarity. As (I hope!) MWE \documentclass{beamer} \usetheme{moloch} \title{Title} \subtitle{Subtitle} \author{DA} \newcommand{\makepart}[1]{ % For convenience \part{Title of part #1} \frame{\partpage} \section{Section} \begin{frame} Section \end{frame} \subsection{Subsection} \begin{frame} Subsection \end{frame} \subsection{Subsection} \begin{frame} Subsection \end{frame} \section{Section} \begin{frame} Section \end{frame} } \AtBeginSubsection[]{ \begin{frame}[plain, noframenumbering] \centering \vfill \Large\textbf{\insertsubsection} \vfill \end{frame} } % ============================================================ % TABLE DES MATIÈRES PAR SECTION % ============================================================ \addtobeamertemplate{section page}{}{% \hspace{1cm}% \begin{minipage}{.8\textwidth} \tableofcontents[ sections=\thesection, sectionstyle=hide/hide, currentsubsection, hideothersubsections ] \end{minipage} } \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame}{Global outline} \setbeamertemplate{section in toc}[sections numbered] Part I: \tableofcontents[part=1, hidesubsections] Part II: \tableofcontents[part=2, hidesubsections] \end{frame} \makepart{1} \makepart{2} \end{document} Is this a proper way to achieve my goals? Thanks a lot! Merci for every comment or/and answer!

  • How can I terminate a wire with an X symbol in quantikz?
    by tparker on March 1, 2026 at 8:08 pm

    I would like to terminate a quantum wire in Quantikz with an "X" drawn over the rightmost end. (I don't want to put the "X" in a box, because that would look like a Pauli X-gate.) The best way that I've found to do this is to with the swap{} command, like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{quantikz} \begin{document} \begin{quantikz} \lstick{} & \swap{} \end{quantikz} \end{document} This isn't bad, but the wire extends a little bit past the center of the "x". Is there any way to get the wire to terminate right at the cross of the "x"?

  • Copying code from pdf [closed]
    by Ali Hejazi on March 1, 2026 at 7:09 pm

    \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{geometry} \usepackage{listings} \usepackage{xcolor} \usepackage{graphicx} \geometry{margin=2.5cm} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{listings} \lstset{ basicstyle=\ttfamily\small, columns=fullflexible, keepspaces=true, showstringspaces=false, upquote=true, breaklines=true, frame=none, numbers=none } My code works perfectly fine however when I copy my code from a the PDF and run it. It give error does anyone know how I can fix this issue using latex.

  • tiered list with a heading with tree-like |- line connectors that enumerate items
    by Mampac on March 1, 2026 at 4:08 pm

    how do i get a list that has a heading (in this example, "Deep Learning Methods" as the heading), from which level-2 entries are connected with solid lines? so far i draw the connector lines with tikz like this: which looks fine except for the extra-bolded trunk of the tree due to multiple retracing of the same connector path in my current implementation. it is super-subtle, but when you zoom out of the PDF file, you can see marginal pixel strips lacking at the upper part of the tree trunk where it's thinner than the rest. the MRE is as follows: \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark,calc} \tikzset{ taxonomy/.style={ overlay, remember picture } } \newcommand{\subcatindent}{1.3em} \newcommand{\methodsindent}{2.3em} \begin{document} unrelated text\\ \textbf{\tikzmarknode{dl}{\underline{Deep Learning Methods}}}\\ \hspace*{\subcatindent}\textbf{\tikzmarknode{dl_convo}{Convolution}}\\ \hspace*{\methodsindent}AE-based\\ \hspace*{\subcatindent}\textbf{\tikzmarknode{dl_ae}{Autoencoders}}\\ \hspace*{\methodsindent}Method D2\\ \hspace*{\subcatindent}\textbf{\tikzmarknode{dl_gan}{GANs}}\\ \hspace*{\methodsindent}Method D3\\ \hspace*{\subcatindent}\textbf{\tikzmarknode{dl_diff}{Diffusion}}\\ \hspace*{\methodsindent}Method D3\\ \hspace*{\subcatindent}\textbf{\tikzmarknode{dl_att}{Attention-Driven}}\\ \hspace*{\methodsindent}Method D3\\ \hspace*{\subcatindent}\textbf{\tikzmarknode{dl_ens}{Ensemble}}\\ \hspace*{\methodsindent}Method D3 \begin{tikzpicture}[taxonomy] \newcommand{\srcOffsetX}{+0.3em} \newcommand{\srcOffsetY}{-1.0ex} \coordinate (dl_start) at ($(dl.south west)+(\srcOffsetX,\srcOffsetY + 0.3ex)$); \coordinate (dl_lowest) at (dl_ens.west); \coordinate (dl_trunk) at ($(dl_start |- dl_lowest)$); \draw (dl_start) -- (dl_trunk); \draw (dl_trunk) |- (dl_convo.west); \draw (dl_trunk) |- (dl_ae.west); \draw (dl_trunk) |- (dl_gan.west); \draw (dl_trunk) |- (dl_diff.west); \draw (dl_trunk) |- (dl_att.west); \draw (dl_trunk) |- (dl_ens.west); \end{tikzpicture} \end{document} is there a way to dynamically and systematically implement this so that the connectors are drawn exactly at the place where the previous one turned 90 degrees to the right? ideally, i could turn this in a custom list environment, but so far i don't see a clear way of solving the retracing problem.

  • How to change "python" language style of listings package
    by Syvshc on March 1, 2026 at 3:28 pm

    I want to define my own style of Python, so I write \documentclass{article} \usepackage{listings, xcolor} \lstset { basicstyle = \ttfamily\small, frame = leftline, framerule = 1pt, } \lstdefinelanguage{python}{ morekeywords = {python, red}, keywordstyle = {\bfseries\color{red}}, rulecolor = {\color{red}}, } \begin{document} \begin{lstlisting}[language=python] python, red \end{lstlisting} \end{document}% after compiling with texlive 2025, I got: It did not work. I thought it might be the problem with the default settings of listings.sty package, i.e. lstlang1.sty. However, I can change the style of matlab language: \documentclass{article} \usepackage{listings, xcolor} \lstset { basicstyle = \ttfamily\small, frame = leftline, framerule = 1pt, } \lstdefinelanguage{python}{ morekeywords = {python, red}, keywordstyle = {\bfseries\color{red}}, rulecolor = {\color{red}}, } \lstdefinelanguage{Matlab}{ morekeywords = {Matlab, lime}, keywordstyle = {\bfseries\color{lime}}, rulecolor = {\color{red}}, } \begin{document} \begin{lstlisting}[language=python] python, red \end{lstlisting} \begin{lstlisting}[language=Matlab] Matlab, lime \end{lstlisting} \end{document}% The output is: I wonder why it happened and how I can actually change the style of "python" language. EDIT: I found that this does not work only on TexLive 2025; my version of listings is 76899, and it's cat-version is 1.11b. If I compile this file with 1.10a and TexLive 2024 on Overleaf, all things worked well. EDIT: I found that listings package is insensitive to the language name, Python, python, and PYTHon point to the same language

  • xtemplate settings of custom counter in enotez package?
    by Explorer on March 1, 2026 at 2:55 pm

    I have the following code to get what I want as below: \documentclass[a4paper]{article} \usepackage[fontset=fandol]{ctex} \usepackage{enotez} \renewcommand*\enmark[1]{#1} \ExplSyntaxOn \cs_set:Npn \theendnote {【\zhnum{endnote}】} \ExplSyntaxOff \begin{document} This is\endnote{With an endnote.} some text.\endnote{With two endnotes.} \printendnotes \end{document} However, the \cs_set:Npn \theendnote {【\zhnum{endnote}】} is not the documentation's interface. I want to make good use of the xtemplate-based method as follows: \documentclass[a4paper]{article} \usepackage[fontset=fandol]{ctex} \usepackage{enotez} \newcommand{\myzhmark}[1]{\textsuperscript{【\zhnumber{#1}】}} \setenotez{mark-cs = \myzhmark} \DeclareInstance{enotez-list}{custom}{list} { format = \normalfont, number = 【\zhnumber{#1}】 } \begin{document} This is\endnote{With an endnote.} some text.\endnote{With two endnotes.} % \printendnotes \printendnotes[custom] \end{document} which complained: ! Argument of \__prop_split_flat:w has an extra }. <inserted text> \par l.17 \printendnotes[custom] ? My questions is that: whether my requirement could be achieved more elegantly by \DeclareInstance?

  • texlive install as admin?
    by user2609605 on March 1, 2026 at 2:31 pm

    I need some guidance. Even the documentation of texlive seems to be inconsistent whether to install as root or not. I think the choice is either root or some group texadmin or even a single user texadminu. The question admin or not seems to be relevant to me only in case of multi user engines. Usually, software is installed as admin. The only special thing about texlive is, that it is not really software but a cosmos of software packages with a proper package manager, tlmgr. This is the only aspect I can figure out which would justify a separate layer of IT administration, in particular, if there is the need to run with a choice of packages. I would prefer the group admin because texlive has a package manager and so needs a kind of sub-admin. The motivation for my question is that at work i gained the role as texlive responsible in a multi user environment and I want to have control over the packages. Which arguments are in favor the IT shall pass installation to a texadmin? What in mixed linux/unix/windows environment? I would like to administrate in linux, have centralized installation for some years and our platforms. Some comments talk about texlive in distro. I think, original has some advantage, it is easily reproducible in frozen releases and cutting edge else. IMPORTANT: I always want to ask high quality questions. So if rating down, leave a comment on what is wrong. Give me a chance and give the other readers a chance.

  • Automatic italic for foreign words
    by Apothikon on March 1, 2026 at 2:06 pm

    Foreign words or phrases inside a mostly monolingual document should usually be displayed in italic. How can this be achieved automatically using babel? I have produced the following code: \documentclass{article} \usepackage{lipsum} \usepackage[french, british, italian]{babel} % Font for the main language \babelfont{rm}{ebgaramond} % Font for foreign languages, inverting roman and italic \babelfont [french, british]{rm}{ebgaramond-Italic} \begin{document} MAIN LANGUAGE \lipsum[1] \vspace{1em} FOREIGN LANGUAGE \foreignlanguage{british}{\lipsum[1]} \end{document} However, I can see some problems in my approach: If I define new features for the font (ligatures, character variants...) I must repeat them for both the main and the foreign font; If I add new languages I must remember to add them to the list of foreign languages to which the italic must be applied. I am quite sure that the amazing babeltransform can easily make it more automatic.

  • Italic text with upright uppercases
    by Apothikon on March 1, 2026 at 1:45 pm

    Can someone suggest a method to have Roman (upright) capitals in italic texts, in the style of Aldus Manutius and of the early Renaissance books? I believe it could probably be done with the lua.otf.font.handler but I don't know where to start. Also, I think at least two aspects need to be kept in mind: Efficiency: the approach should not be too heavy, in order to be usable also for large documents with many paragraphs in italics; Kerning: it will probably be required to define new kerning pairs for many (or every) capital, and I expect this to be done manually depending on the font used in the document. As an example to test this: \documentclass{article} \usepackage{lipsum} \usepackage{ETbb} % A font in the style of Aldus Manutius \begin{document} A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \vspace{1em} \textit{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} \vspace{1em} \lipsum[1] \vspace{1em} \textit{\lipsum[1]} \end{document} Every suggestion, even if not a complete answer, is very appreciated.

  • How to fix LaTeX: You have requested package `../package_name', but the package provides `package_name'. for git submodule usage self-contained
    by clel on March 1, 2026 at 12:32 pm

    I have a LaTeX style package that I typically use as git submodule and thus import from some relative path. This however will then result in a warning like that: "LaTeX: You have requested package `../package_name', but the package provides `package_name'." What is a good way to solve this? Ideally, I want the solution to be self-contained and to work nicely in different setups. Thus, modifying the Makefile as described here (install package in subfolder) might not be good, right? So either through silence, maybe (but that might not be robust, and looks kind of like a workaround), or through \input@path in the files where the style file is used?

  • Reset counter in \newtheorem
    by Afonso Guerra on March 1, 2026 at 10:52 am

    I'm trying to make a title with \newtheorem{case}{Caso} (My code is in Portuguese-Portugal) and it outputs Caso X. "X" being the next number. So here is the thing, I actually need to reset the "X" value, and I have tried the [theorem] parameter, but it doesn't work for me so can anyone help? Here is my code: \documentclass[12pt]{report} \usepackage[]{amsmath,amsthm,amssymb,amscd} \usepackage[a4paper,margin=25mm]{geometry} \usepackage{babel} \usepackage{pgfplots} \usepackage{multirow} \usepackage{booktabs} \usepackage{framed} \newtheorem{case}{Caso} \begin{document} \begin{case} Não conhecemos a distribuição de $X_1$ ou $X_2$, mas os tamanhos das amostras não apresentão assimetrias exageradas. \end{case} \begin{case} % Some text here % \end{case} % Reset the X value % \begin{case} % More text here, but with it saying "Caso 1." % \end{case} \end{document} If you want something else please tell me.

  • I want to add 4 authors for my research paper in IEEE tran format
    by Nishant ES on March 1, 2026 at 9:27 am

    The below is the given code for the author block.. I already managed to add 3 authors but I could not add the 4th one.. Can anyone please tell how to do so \author{ \IEEEauthorblockN{Dr. Sandosh S.} \IEEEauthorblockA{ Faculty for Computer Science with \\ Specialization in Artificial Intelligence \\ and Machine Learning \\ Vellore Institute of Technology, \\ Chennai, India \\ Email: sandosh.s@vit.ac.in } \and \IEEEauthorblockN{E S Nishant} \IEEEauthorblockA{ Computer Science with specialization \\ in Artificial Intelligence and Machine\\ Learning\\ Vellore Institute of Technology,\\ Chennai, India\\ Email: nishant.es2023@vitstudent.ac.in } \and \IEEEauthorblockN{Sandeep V} \IEEEauthorblockA{ Computer Science with specialization \\ in Artificial Intelligence and Machine\\ Learning\\ Vellore Institute of Technology, \\ Chennai, India\\ Email: sandeep.v2023@vitstudent.ac.in } }

  • Achieving a 3D version of the parabolic map, which is one-to-one
    by Jasper on March 1, 2026 at 6:11 am

    I am trying to model a parabolic transformation of a Cartesian grid. The whole transformation is not one-to-one, and even a more restricted version which I will show here isn't either. This leads me to wonder whether the third dimension can be invoked to resolve this issue of one-to-oneness. What I would like to achieve is a diagram where every image has exactly one corresponding preimage. The way I infer that this would be possible is by mapping the plane onto a surface in 3D, so it no longer overlaps itself. There is a problematic ray from the origin too where even my restricted diagram blows up. \documentclass[tikz,border=1cm]{standalone} \begin{document} \pgfmathsetmacro{\iterations}{24} \foreach \i in {0,...,\iterations} { \pgfmathsetmacro{\i}{\i/\iterations} \begin{tikzpicture}[ declare function = { sigma(\x,\y) = \x*\y; tau(\x,\y) = ((\y)^2-(\x)^2)/2; } ] \useasboundingbox (-5,-5) rectangle (5,5); \pgfmathsetmacro{\xstart}{0} \pgfmathsetmacro{\xstop}{5} \pgfmathsetmacro{\xsamples}{20} \pgfmathsetmacro{\xstep}{(\xstop-\xstart)/(\xsamples-1)} \pgfmathsetmacro{\xnext}{(\xstart+\xstep)} \foreach \x in {\xstart,\xnext,...,\xstop} { \draw[ variable=\y, domain=-5:5, samples=40 ] plot ( {(1-\i)*\x+\i*sigma(\x,\y)}, {(1-\i)*\y+\i*tau(\x,\y)} ) plot ( {(1-\i)*\y+\i*sigma(\y,\x)}, {(1-\i)*\x+\i*tau(\y,\x)} ); } \end{tikzpicture}} \end{document}

  • How to produce an effect of bracket below with text?
    by Sunshine on March 1, 2026 at 5:29 am

    I want to produce the bracket like this: \documentclass{article} \begin{document} There is a bracket below with text. \end{document}

  • How to fit these items on three separate lines
    by Ricky W. on March 1, 2026 at 3:11 am

    I am trying to make this bullet points look nice in three lines but here is the problem. it won't fit. Here is my code \documentclass{beamer} \setbeamertemplate{theorems}[numbered] \begin{frame} \frametitle{Definitions} \begin{definition}[Normed Linear Space] A linear space $\mathbb{X}$ is a normed linear space if, to each vector $x\in \mathbb{X}$, there is a real-valued norm $\left\|x\right\|$ that satisfies \begin{itemize}[$\bullet$] \item $\left\|x\right\| \geq 0$ for all $x\in \mathbb{X}$, with $\left\|x\right\|=0$ if and only if $x=0$ \item $\left\|x+y\right\| \leq \left\|x\right\| + \left\|y\right\| $ for all $x,y\in \mathbb{X}$ \item $\left\|ax\right\|=|a|\left\|x\right\|$ for all $a\in \mathbb{R}$ and $x\in \mathbb{X}$ \end{itemize} Here is what I got

  • Variables ignored specified in texlive installation?
    by user2609605 on February 28, 2026 at 10:08 pm

    I install texlive via install-tl with following profile written by cat: cat > "texlive.profile" <<EOF #selected_scheme $SCHEME TEXDIR $INSTALL_DIR TEXMFCONFIG ~/.texlive${YEAR}/texmf-config TEXMFHOME ~/texmf TEXMFLOCAL $INSTALL_DIR/texmf-local TEXMFSYSCONFIG $INSTALL_DIR/texmf-config TEXMFSYSVAR $INSTALL_DIR/texmf-var TEXMFVAR ~/.texlive${YEAR}/texmf-var $(get_binaries) # installation options instopt_adjustpath 0 instopt_adjustrepo 1 # default instopt_letter $isLetter instopt_portable 1 instopt_write18_restricted $CONF_SHELL_ESCAPE_RESTRICTED # turned options into tlpdbopt tlpdbopt_autobackup 0 #tlpdbopt_backupdir tlpkg/backups # not needed because tlpdbopt_autobackup 0 tlpdbopt_create_formats 1 tlpdbopt_desktop_integration 0 tlpdbopt_file_assocs 0 tlpdbopt_generate_updmap 0 tlpdbopt_install_docfiles $INST_DOCFILES tlpdbopt_install_srcfiles $INST_SRCFILES tlpdbopt_post_code 1 tlpdbopt_sys_bin /usr/local/bin # unused because of instopt_adjustpath 0? tlpdbopt_sys_info /usr/local/share/info # unused because of instopt_adjustpath 0? tlpdbopt_sys_man /usr/local/share/man # unused because of instopt_adjustpath 0? tlpdbopt_w32_multi_user 0 EOF ./$INSTALLER -repository "$repo" -scheme "$SCHEME" -profile "texlive.profile" \ || { error "Installer failed with exit code $?. Aborting."; exit 3; } The relevant part is just setting the variables TEX.... As you can see, there are variables coming from my installation script. I checked with kpsewhich --var-value=... for the variables. Whereas TEXMFLOCAL $INSTALL_DIR/texmf-local TEXMFSYSCONFIG $INSTALL_DIR/texmf-config TEXMFSYSVAR $INSTALL_DIR/texmf-var can be acknowledged, TEXDIR seems undefined. What is more strange: all variables pointing into the home folder have the values of their counterparts pointing into texlive installation: $ kpsewhich --var-value=TEXMFVAR /usr/local/texlive/2025/texmf-var $ kpsewhich --var-value=TEXMFCONFIG /usr/local/texlive/2025/texmf-config $ kpsewhich --var-value=TEXMFHOME /usr/local/texlive/2025/texmf-local I can tell you that in my /usr/local/texlive/2025/tlpkg/texlive.profile i can read: selected_scheme scheme-small TEXDIR /usr/local/texlive/2025 TEXMFCONFIG ~/.texlive2025/texmf-config TEXMFHOME ~/texmf TEXMFLOCAL /usr/local/texlive/2025/texmf-local TEXMFSYSCONFIG /usr/local/texlive/2025/texmf-config TEXMFSYSVAR /usr/local/texlive/2025/texmf-var TEXMFVAR ~/.texlive2025/texmf-var which is correct. Also /usr/local/texlive/2025/texmf-dist/web2c/texmf.cnf % Per-user texmf tree(s) -- organized per the TDS, as usual. To define % more than one per-user tree, set this to a list of directories in % braces, as described above. (This used to be HOMETEXMF.) ~ expands % to %USERPROFILE% on Windows, $HOME otherwise. TEXMFHOME = ~/texmf % TEXMFVAR, where texconfig/updmap/fmtutil store cached runtime data. TEXMFVAR = ~/.texlive2025/texmf-var % TEXMFCONFIG, where texconfig/updmap/fmtutil store configuration data. TEXMFCONFIG = ~/.texlive2025/texmf-config seems correct. Still kpsewhich returns something strange. But: in fact, lualatex definitely complains so I believe kpsewhich. If I invoke some lualatex I obtain: $ lualatex minTikz This is LuaHBTeX, Version 1.22.0 (TeX Live 2025) restricted system commands enabled. (./minTikz.tex LaTeX2e <2025-11-01> L3 programming layer <2026-01-19> luaotfload | load : FATAL ERROR luaotfload | load : × Failed to load "fontloader" module "basics-gen". luaotfload | load : × Error message: luaotfload | load : × "...025/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua:301: system : no writeable cache path, quiting". stack traceback: ...ive/2025/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:200: in local 'load_fontloader_module' ...025/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua:303: in upvalue 'init_main' ...025/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua:590: in function 'luaotfload-init.lua' ...ive/2025/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:322: in field 'main' [\directlua]:1: in main chunk ...025/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua:301: system : no wr iteable cache path, quiting stack traceback: [C]: in function 'error' ...025/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua:301: in function ' os.exit' ...ive/2025/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:203: in local 'loa d_fontloader_module' ...025/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua:303: in upvalue 'i nit_main' ...025/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua:590: in function ' luaotfload-init.lua' ...ive/2025/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:322: in field 'mai n' [\directlua]:1: in main chunk. <everyjob> ...string \\encodingdefault{OT1}')end } \let \f@encoding \encoding... l.1 % !LMP targets=chk,pdf ? x 275 words of node memory still in use: 1 hlist, 1 dir, 39 glue_spec nodes avail lists: 2:12,3:3,4:1 warning (pdf backend): no pages of output. Transcript written on minTikz.log. which indicates that it tries to write on the installation as suggested by the kpsewhich result. If I set export TEXMFVAR=~/.texlive2025/texmf-var, the problem disappears. what happened?

  • How to create a subset of a large presentation? ("Harvey balls")
    by Ulrich Seelbach on February 28, 2026 at 9:01 pm

    I have a very large Beamer presentation (several hundreds of slides) for a lecture. To make life easier for the students, I am using "Harvey balls" in the upper right corner to indicate the relevance of the respective slide (ranging from 4=must be understood to 0=not relevant). To that end, I created a command \newcommand{\harvey}[1]{\logo{\includegraphics[width=1cm]{img/harvey#1.png}}} which sets the relevance for the next slide(s) until changed by another invocation: \harvey4 \begin{frame}{An important frame} ... \end{frame} Works nicely, and the students like it. Thing is, they suggested that I supply a stripped-down version of the presentation with only the "important" slides present (that is, those with a full or three-quarters-full Harvey ball). In other words, I am looking for a way to include, in the final PDF, only those slides with a Harvey score of at least n, where n may be 0 (all slides) to 4 (just the "full ball" slides). I guess that can be achieved with a Perl script or the like, but maybe there's a more TeXy solution? I'm not very TeX savvy, I have to admit... As requested, here is a small example (the Harvey balls show up in the wrong place when compiled, irrelevant to the question). You'd have to find the "Harvey balls" symbols somewhere in the Web to successfully compile: \documentclass[svgnames, dvipsnames, aspectratio=169,11pt]{beamer} \usepackage[T1]{fontenc} \newcommand{\harvey}[1]{\logo{\includegraphics[width=1cm]{img/harvey#1.png}}} \begin{document} \harvey{4} \begin{frame}{Relevant} This slide must be included in the final PDF. \end{frame} \begin{frame}{Also relevant} This one also, because the Harvey score was not changed. \end{frame} \harvey{2} \begin{frame}{Not so important} This frame not to be included if "output score" is at least three \end{frame} \harvey{0} \begin{frame}{Completely irrelevant} This frame only to be included if output score is zero \end{frame} \harvey{4} \begin{frame}{Very important} Another important frame \end{frame} \end{document}

  • organize images in a table with description
    by Matteo on February 28, 2026 at 6:34 pm

    I'm working on a frame where I progressively show four different images using two different datasets and across two different conditions. Hence, I was thinking to use a 2×2 table to do so. However, I'm facing some issues with the leftmost part of the table I'm working on; specifically, the dataset row should be separated by a vertical line from the below: samples and genomes which also should be rotated and vertically centered in the cell. It also appears the spacing and alignment is akward between dataset and rows below as well as between thier cells content... MWE \documentclass[xcolor=svgnames,aspectratio=149]{beamer} \usepackage[T1]{fontenc} \usetheme{Singapore} \usecolortheme{dolphin} \usepackage{multirow} \usepackage{tikz} \usepackage{tikzducks} \usepackage[table]{xcolor} \begin{document} \begin{frame} \centering \begin{tabular}{@{} cc cc @{}} & \multicolumn{2}{c@{}}{\textbf{approach}} \\ \cline{2-3} & raw \texttt{d-values} & \texttt{KL} corrcted \\ \multirow{2}{*}{\rotatebox[origin=c]{90}{\textbf{dataset}}} \rotatebox{90}{genomes} & \includegraphics<1->[width=1.25in,keepaspectratio]{example-image-a} & \visible<2->{\begin{tikzpicture} \duck[recedinghair=white,beard,book] \begin{scope}[scale=0.03,rotate=-20,xshift=500,yshift=700] \only<2->{\cellcolor{Gainsboro}} \draw[white,rotate around={36.9:(5,5)}] (5,5) rectangle ++(3,3); \draw[white,rotate around={36.9:(0,5)}] (0,5) rectangle ++(4,4); \draw[white] (0,0) rectangle (5,5); \end{scope} \end{tikzpicture}} \\ \rotatebox{90}{samples} & \visible<3->{\begin{tikzpicture} \duck[recedinghair=white,beard,book] \begin{scope}[scale=0.03,rotate=-20,xshift=500,yshift=700] \only<3->{\cellcolor{Gainsboro}} \draw[white,rotate around={36.9:(5,5)}] (5,5) rectangle ++(3,3); \draw[white,rotate around={36.9:(0,5)}] (0,5) rectangle ++(4,4); \draw[white] (0,0) rectangle (5,5); \end{scope} \end{tikzpicture}} & \includegraphics<4>[width=1.25in,keepaspectratio]{example-image-a} \end{tabular} \end{frame} \end{document} Final slide output Intended result

  • How can I automate the prevention of paragraph indentation only after chapter heads, abstracts and figures, etc.?
    by Dave Everitt on February 28, 2026 at 5:25 pm

    I’m generally happy with LaTeX paragraph indentation with \parindent. However, in the example below I want to prevent indentation only for paragraphs after \chapter, \begin{abstract} and \begin{figure}. from what I can see, I can only do this clunky by adding \noindent before the paras following these, which seems an overly manual approach. In order to prevent the awkward addition of manual \noindent commands, how might I automate this for a book-length document? Could I use \NoIndentAfter with parameters in my "style.cls" file to apply to the three commands in the example code, and lose the multiple manual \noindent commands? \chapter{Chapter Title Here} \begin{abstract} \noindent LaTeX nicely chooses first and following paragraphs and indents only following paragraphs. \end{abstract} \noindent But the entire practice of paragraph indentation is rather fiddly, because without prefixing this para with "\noindent" this is also indented. \begin{figure}[h] \centering \includegraphics[width=.5\linewidth]{my-fig} \caption[name]{caption} \label{fig:my-fig} \end{figure} \noindent This paragraph also gets indented, when I don’t want it, so indentation is a topic I need to get to grips with.

  • How can I calculate or approximate the intersection(s) or lack thereof of a line and an exponential curve using Lua?
    by Jasper on February 27, 2026 at 5:58 pm

    How can I calculate or approximate the intersection(s) or lack thereof of a line and an exponential curve. My goal is to avoid using an approach which first tessellates curves into line segments, and tests each line segment pair. That is O(n^2). I want something which can scale. I think Lua is appropriate for this, based on evidence in the comments. \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \draw[->] (-2,0) -- (2,0); \draw[->] (0,-2) -- (0,e^2); \draw[domain=-2:2] plot (\x,e^\x); \draw[domain=-2:2] plot (\x,\x+1.5); % two intersections \draw[domain=-2:2] plot (\x,\x+1); % one intersection \draw[domain=-2:2] plot (\x,-\x+4.5); % one intersection \draw[domain=-2:2] plot (\x,\x); % zero intersections % My goal is to use pgfmath to calculate, or if % necessary iteratively approximate, the intersections % of these lines with the exponential curve. % If it is not easy in pgfmath, then I want a Lua-based solution. \end{tikzpicture} \end{document}

  • Problem (warning message) with Calculator package
    by ViToni on February 27, 2026 at 4:03 pm

    This rather small document \documentclass{article} \usepackage{calculator} \newcommand{\myPerCent}[2]{% \DIVIDE{#1}{#2}{\sol}% \MULTIPLY{\sol}{100}{\sol}% \ROUND{\sol}{\sol}% \sol% } \begin{document} Computed \myPerCent{2441}{8667}.\par \end{document} produces this warning (I guess it's a warning and not an error as the PDF is finally built): (\end occurred when \ifdim on line 13 was incomplete) I have no clue how to solve the issue as the code looks ok at first glance, but it seems something is off here. How can I use the package in a proper way? (I'm quite happy I was able to identify the source for the warnings at least as the original document is rather large and I started looking into things like How to diagnose unclosed (incomplete) \iftrue or \ifnum? but somehow I didn't get me anywhere and I don't seem to know anything more than before...)

  • Redefine \gg in ‘unicode-math’
    by mvs on February 27, 2026 at 2:41 pm

    I have: \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{STIX Two Text}[Ligatures=TeX] \setmathfont{STIX Two Math} \usepackage{amsmath} % need a suitable redefinition of ‘\gg’ \begin{document} $\gg$ \end{document} with Lualatex but I want to redefine \gg to print a boldface g (such as \symbf{g}). I even asked ChatGPT but it could not find any solution which would work. Is there any? (of course I know that I could use a different command....)

  • Need a new Latex command for square brackets
    by Ilia on February 27, 2026 at 1:38 pm

    I've already encountered in this site complaints that in the standard font, the horizontal lines (serifs) in the image of square brackets are too short and difficult to visually distinguish. As a workaround, some suggest using overlapping "ceil" and "floor" symbols instead of square brackets. However, this results in unacceptably long serifs. I need a new command for something intermediate and very limited in use. I don't intend to use it for matrices or any other multi-line environment. Just one short text string between brackets. Unable to find a suitable ready-made solution, I decided to write such a command myself. After all, it's just one vertical bar and two horizontal serifs. This is what I got so far. \documentclass[12pt,a4paper,notitlepage]{report} \usepackage[cp1251]{inputenc} \usepackage[T1,T2A]{fontenc} \usepackage[russian]{babel} \usepackage{amsmath, amssymb} \usepackage{mathrsfs} \usepackage{enumitem} \usepackage{relsize} \usepackage{exscale} \usepackage{perpage} \usepackage{nicefrac} \usepackage[all,cmtip]{xy} \MakePerPage{footnote} \newcommand{\LBR}{ \hspace{0.2em}\rule[0.75em]{0.2em}{0.05em}% top serif \hspace{-0.2em}\rule[-0.2em]{0.2em}{0.05em}% bottom serif \hspace{-0.3em}\rule[-0.2em]{0.1em}{1.0em}% vertical bar \hspace{0.2em} } \newcommand{\RBR}{ \hspace{0.1em}\rule[0.75em]{0.2em}{0.05em}% top serif \hspace{-0.2em}\rule[-0.2em]{0.2em}{0.05em}% bottom serif \rule[-0.2em]{0.1em}{1.0em}% vertical bar \hspace{0.2em} } \newcommand{\opni}[1] {{\RBR #1 \LBR}} \newcommand{\opcli}[1]{{\RBR #1 \RBR}} \newcommand{\clopi}[1]{{\LBR #1 \LBR}} \newcommand{\clsi}[1] {{\LBR #1 \RBR}} \begin{document} \[ \begin{array}{ll} \opni{a, b} &=\ \{x\in A: a < x < b\},\\ \opcli{a, b} &=\ \{x\in A: a < x\leqslant b\},\\ \clopi{a, b} &=\ \{x\in A: a\leqslant x < b\},\\ \clsi{a, b} &=\ \{x\in A: a\leqslant x\leqslant b\},\\ \opni{{\gets},a} &=\ \{x\in A: x < a\},\\ \opcli{{\gets},a} &=\ \{x\in A: x\leqslant a\},\\ \opni{a,{\to}} &=\ \{x\in A: a < x\},\\ \clopi{a,{\to}} &=\ \{x\in A: a\leqslant x\}. \end{array} \] $\mathbb{R}^\clsi{a,b}$ \end{document} Although not very pretty, this solution is more or less satisfactory - except for two problems. First, in some random cases the vertical bar and one of serifs are too thick. Second and more important, the brackets are not scaled inside superscript, for example, in an expression like $\mathbb{R}^\clsi{a,b}$. The reason for the first problem I don't understand. The reason for the second I understand, but have no idea what to do about it. Any help is appreciated.

  • I am plotting a family of parabolas in TikZ, and there is a stray parabola. I'm confused
    by Jasper on February 25, 2026 at 7:14 pm

    I am plotting a family of parabolas in TikZ, and there is a stray parabola. I'm confused. \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \pgfmathsetmacro{\SIGMALstart}{-3} \pgfmathsetmacro{\SIGMALstop}{3} \pgfmathsetmacro{\SIGMALsamples}{50} \pgfmathsetmacro{\SIGMALstep}{(\SIGMALstop-\SIGMALstart)/(\SIGMALsamples-1)} \foreach \SIGMAL[parse=true] in {\SIGMALstart,\SIGMALstart+\SIGMALstep,...,\SIGMALstop} { \draw[ variable=\TAUL, domain=-3:3 ] plot ( {\SIGMAL*\TAUL}, {((\TAUL)^2-(\SIGMAL)^2)/2} ); } \end{tikzpicture} \end{document}