• Copying code from pdf
    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 texadmi or even a single user texadmin. 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 and I want to have control over the packages. Which arguments are in favor the IT shall pass installation to texadmin? What in mixed linux/unix/windows environment? I would like to administrate in linux, have centralized installation for some years and our platforms.

  • 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 italc texts, in the style of Aldus Manutius and of the early renaissance books? I believe it could probably be done with lua.otf.font.handler but I don't know where to start. Also, I think of at least two aspects 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 italic; Kerning: it will probably require to define new kerning pairs for many (or every) capitals, and I aspect 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 complete answers, are very appreciated. Thank you

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

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

  • lateset lineno conflict and infinite loop with breakable stuff?
    by Explorer on February 28, 2026 at 5:02 pm

    The following mwe cause infinite loop with lineno package: \listfiles \documentclass{article} \usepackage[paperheight=10cm]{geometry} \usepackage[most]{tcolorbox} \usepackage{lipsum} \usepackage{lineno}%<- \begin{document} \begin{tcolorbox} \lipsum \end{tcolorbox} \end{document} Looping... (c:/texlive/2026/texmf-dist/tex/latex/lineno/lineno.sty (c:/texlive/2026/texmf-dist/tex/latex/kvoptions/kvoptions.sty (c:/texlive/2026/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty))) (./mwe.aux) *geometry* driver: auto-detecting *geometry* detected driver: pdftex (c:/texlive/2026/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (c:/texlive/2026/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (c:/texlive/2026/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) (c:/texlive/2026/texmf-dist/tex/latex/base/inputenc.sty) [1{c:/texlive/2026/tex mf-var/fonts/map/pdftex/updmap/pdftex.map}] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212] [213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225] [226] [227] [228] [229] [230] [231] [232] [233] [234] [235] [236] [237] [238] [239] [240] [241] [242] [243] [244] [245] [246] [247] [248] [249] [250] [251] [252] [253] [254] [255] [256] [257] [258] [259] [260] [261] [262] [263] [264] [265] [266] [267] [268] [269] [270] [271] [272] [273] [274] [275] [276] [277] [278] [279] [280] [281] [282] [283] [284] [285] [286] [287] [288] [289] [290] [291] [292] [293] [294] [295] [296] [297] [298] [299] [300] [301] [302] [303] [304] [305] [306] [307] [308] [309] [310] [311] [312] [313] [314] [315] [316] [317] [318] [319] [320] [321] [322] [323] [324] [325] [326] [327] [328] [329] [330] [331] [332] [333] [334] [335] [336] [337] [338] [339] [340] [341] [342] [343] [344] [345] [346] [347] [348] [349] [350] [351] [352] [353] [354] [355] [356] [357] [358] [359] [360] [361] [362] [363] [364] [365] [366] [367] [368] [369] [370] [371] [372] [373] [374] [375] [376] [377] [378] [379] [380] [381] [382] [383] [384] [385] [386] [387]....? ! Interruption. <argument> ...\__shipout_drop_firstpage_specials: \set@typeset@protect \hook... l.12 ? ! Emergency stop. <argument> ...\__shipout_drop_firstpage_specials: \set@typeset@protect \hook... l.12 ! ==> Fatal error occurred, no output PDF file produced! Transcript written on mwe.log. The \listfiles on my machine: *File List* article.cls 2025/01/22 v1.4n Standard LaTeX document class size10.clo 2025/01/22 v1.4n Standard LaTeX file (size option) geometry.sty 2020/01/02 v5.9 Page Geometry keyval.sty 2022/05/29 v1.15 key=value parser (DPC) ifvtex.sty 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead. iftex.sty 2024/12/12 v1.0g TeX engine tests tcolorbox.sty 2025/11/28 version 6.9.0 text color boxes tikz.sty 2025-08-29 v3.1.11a (3.1.11a) pgf.sty 2025-08-29 v3.1.11a (3.1.11a) pgfrcs.sty 2025-08-29 v3.1.11a (3.1.11a) pgfrcs.code.tex pgfcore.sty 2025-08-29 v3.1.11a (3.1.11a) graphicx.sty 2024/12/31 v1.2e Enhanced LaTeX Graphics (DPC,SPQR) graphics.sty 2024/08/06 v1.4g Standard LaTeX Graphics (DPC,SPQR) trig.sty 2023/12/02 v1.11 sin cos tan (DPC) graphics.cfg 2016/06/04 v1.11 sample graphics configuration pdftex.def 2025/09/29 v1.2d Graphics/color driver for pdftex pgfsys.sty 2025-08-29 v3.1.11a (3.1.11a) pgfsys.code.tex pgfsyssoftpath.code.tex 2025-08-29 v3.1.11a (3.1.11a) pgfsysprotocol.code.tex 2025-08-29 v3.1.11a (3.1.11a) xcolor.sty 2024/09/29 v3.02 LaTeX color extensions (UK) color.cfg 2016/01/02 v1.6 sample color configuration mathcolor.ltx pgfcore.code.tex pgfcomp-version-0-65.sty 2025-08-29 v3.1.11a (3.1.11a) pgfcomp-version-1-18.sty 2025-08-29 v3.1.11a (3.1.11a) pgffor.sty 2025-08-29 v3.1.11a (3.1.11a) pgfkeys.sty pgfkeys.code.tex pgfmath.sty pgfmath.code.tex pgffor.code.tex tikz.code.tex verbatim.sty 2024-01-22 v1.5x LaTeX2e package for verbatim enhancements environ.sty 2014/05/04 v0.3 A new way to define environments trimspaces.sty 2009/09/17 v1.1 Trim spaces around a token list etoolbox.sty 2025/10/02 v2.5m e-TeX tools for LaTeX (JAW) tikzfill.image.sty 2023/08/08 v1.0.1 Image filling library for TikZ tikzfill-common.sty 2023/08/08 v1.0.1 Auxiliary code for tikzfill pdfcol.sty 2022-09-21 v1.7 Handle new color stacks for pdfTeX (HO) ltxcmds.sty 2023-12-04 v1.26 LaTeX kernel commands for general use (HO) infwarerr.sty 2019/12/03 v1.5 Providing info/warning/error messages (HO) amsmath.sty 2025/07/09 v2.17z AMS math features amstext.sty 2024/11/17 v2.01 AMS text amsgen.sty 1999/11/30 v2.0 generic functions amsbsy.sty 1999/11/29 v1.2d Bold Symbols amsopn.sty 2022/04/08 v2.04 operator names listings.sty 2025/11/14 1.11b (Carsten Heinz) lstpatch.sty 2025/11/14 1.11b (Carsten Heinz) lstmisc.sty 2025/11/14 1.11b (Carsten Heinz) listings.cfg 2025/11/14 1.11b listings configuration listingsutf8.sty 2019-12-10 v1.5 Allow UTF-8 in listings input (HO) pdftexcmds.sty 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO) stringenc.sty 2019/11/29 v1.12 Convert strings between diff. encodings (HO) pdfescape.sty 2019/12/09 v1.15 Implements pdfTeX's escape features (HO) lipsum.sty 2021-09-20 v2.7 150 paragraphs of Lorem Ipsum dummy text l3keys2e.sty 2025-10-09 LaTeX2e option processing using LaTeX3 keys expl3.sty 2026-01-19 L3 programming layer (loader) l3backend-pdftex.def 2025-10-09 L3 backend support: PDF output (pdfTeX) lipsum.ltd lineno.sty 2026/02/16 line numbers on paragraphs v5.7 kvoptions.sty 2022-06-15 v3.15 Key value format for package options (HO) kvsetkeys.sty 2022-10-05 v1.19 Key value parser (HO) supp-pdf.mkii epstopdf-base.sty 2020-01-24 v2.11 Base part for package epstopdf epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live inputenc.sty 2024/02/08 v1.3d Input encoding file ***********

  • KOMA-Script v3.49.2 does not like my "runin"
    by ViToni on February 28, 2026 at 4:24 pm

    This document throws an error Package scrbase Error: unknown option 'runin=false'. scrbase.sty indicates this is KOMA-Script version 2026/02/02 v3.49.2 KOMA-Script. \documentclass{scrreport} \RedeclareSectionCommand[ beforeskip=1sp,% afterskip=-1sp,% runin=false% ]{chapter} \begin{document} \chapter{A Chapter} Chapter text. \section{A section} Section text. \end{document} My understanding is, this option should be allowed as used in this M(N)WE. Using up-to-date TeX-live on MacOS (Mx) if it matters...

  • VS Code LaTeX Workshop: how to configure settings.json when using both chemnum and nomencl?
    by palloc on February 28, 2026 at 4:13 pm

    I am working on a LaTeX document in VS Code using the LaTeX Workshop extension (Windows 11). My document uses chemnum/chemstyle as well as the nomencl package to generate a nomenclature. How should I correctly configure the settings.json file in VS Code to handle both chemnum/chemstyle and makenomenclature? The following code works as intended on Overleaf with Latex Compiler: main.tex \documentclass{article} \usepackage{geometry} \usepackage{graphicx} \usepackage[version=4]{mhchem} \usepackage{chemstyle} \usepackage{chemnum} \usepackage[backend=biber]{biblatex} \addbibresource{bib.bib} \usepackage{nomencl} \makenomenclature \begin{document} \nomenclature{A}{a} \printnomenclature \section{First} \cite{knuth1984texbook} \begin{scheme} \replacecmpd{benezen} \replacecmpd{toluene} \includegraphics[scale=0.8]{aromatic-compounds.eps} \caption{Aromatic-compounds} \label{aromatic-compounds} \end{scheme} \refcmpd{benezen, toluene} \printbibliography \end{document} bib.bib @book{knuth1984texbook, title={The texbook}, author={Knuth, Donald Ervin and Bibby, Duane}, volume={15}, year={1984}, publisher={Addison-Wesley Reading} } aromatic-compounds.eps https://drive.google.com/file/d/1faCOOvd5xcVAF_KZqhx7vAI0Mqh7pmF6/view?usp=sharing Overleaf output: VS Code settings.json { "latex-workshop.latex.tools": [ { "name": "latexmk", "command": "latexmk", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "%DOC%" ] }, { "name": "makenomenclature", "command": "makeindex", "args": [ "%DOCFILE%.nlo", "-s", "nomencl.ist", "-o", "%DOCFILE%.nls" ] } ], "latex-workshop.latex.recipes": [ { "name": "latexmk → nomencl → latexmk", "tools": [ "latexmk", "makenomenclature", "latexmk" ] } ], "latex-workshop.latex.recipe.default": "latexmk → nomencl → latexmk", "latex-workshop.latex.autoBuild.run": "never", } VS Code output: As you can see there is no overwrite on TMP1, TMP2 in the scheme in case of VS Code. I only found the following question, but I do not really get it: chemnum numbering only working in overleaf Could you give me a answer?

  • longtable: gap below first subtable
    by cis on February 28, 2026 at 1:21 pm

    The following longtable always starts at the top of the text-body. I've noticed that the very first subtable in the following longtable has one less row than the other (page-height) subtables - even though the content is almost identical. In individual cases, this can be fixed by adding \hrule height0pt\vskip-22pt before the table - determined by eye. However, this generally doesn't help if the fontsize or page geometry (height) is changed. The question is: How can this be professionally fixed? That is, all subtables (except the last one) should have the same distance from the bottom of the text-body (perhaps this distance is zero), regardless of page height or font size. \documentclass[a5paper]{article} \usepackage[margin=12mm, %paperheight=150mm,% optional 1/3 showframe=true, ]{geometry} \usepackage{pgffor} \usepackage{longtable} \def\OutFilename{\jobname-tabledata.tex} \newwrite\MyFile \immediate\openout\MyFile=\OutFilename \def\Rows{140} \foreach \n in {1,...,\Rows}{%% \ifnum\n=\Rows % \immediate\write\MyFile{\n & 0.1 & 0.2 & 0.3}% \else% \immediate\write\MyFile{\n & 0.1 & 0.2 & 0.3 \\}% \fi% }%% \immediate\closeout\MyFile \begin{document} %\footnotesize% optional 2/3 %\Large% optional 3/3 \begin{longtable}{| c c c c | } %% Very first Header ======================== \hline n & p1 & p2 & p3 \\ \hline \endfirsthead %% Header for subsequent pages ================ \hline n & p1 & p2 & p3 \\ \hline \endhead% %% Footer for all pages except last ================ \hline n & q1 & q2 & q3 \\ \hline \endfoot %% Footer for the very last page ================ \hline n & q1 & q2 & q3 \\ \hline \endlastfoot \input{\OutFilename} \end{longtable} \end{document}

  • Extra horizontal white space appearing, when declaring floats in text using the apa7 document class in student mode
    by Treachable on February 28, 2026 at 10:10 am

    Declaring floats in the middle of a paragraph causes extra white space to appear at that point. Declaring between paragraphs solves the problem but adding % symbols does not. It also does not happen in the article class. The white space also disappears when changing to document class article or even document class apa7 without student mode. So why does this happen? Is there a way to avoid the white space while still declaring the float within the paragraph? Below is a minimal working example. \documentclass[stu]{apa7} \usepackage{graphicx} \title{Assignment Title} \begin{document} \maketitle While I write I describe a table. I then embed the table in the tex-document. This results in mystery white space appearing at the end of this sentence. \begin{table} \caption{small table} \begin{tabular}{lcccc} \hline &A1&A2&A3&A4\\ \hline B1&1&2&3&4\\ B2&5&6&7&8\\ \hline \end{tabular} \end{table} I can of course make sure I am declaring my floats between paragraphs, but I was used to doing it this way because in other document classes this could result in the table being placed right at that spot, when typesetting allowed. And I find that good for readability. Placing some \% symbols at the end of all of the lines reduces the white space somewhat.% \begin{table}% \caption{small table}% \begin{tabular}{lcccc}% \hline% &A1&A2&A3&A4\\% \hline% B1&1&2&3&4\\% B2&5&6&7&8\\% \hline% \end{tabular}% \end{table}% But as you can see it does not disappear. The same happens for figures. \begin{figure} \caption{a figure} \includegraphics{example-image} \end{figure} As seen here. \end{document}

  • Placement of see and see also
    by Lata Deokar on February 28, 2026 at 8:10 am

    I am preparing an Index in Marathi. There are several entries in which either "see" or "see also" is required. I have gone through the discussion on this platform. But I cannot find a solution as to how to get see also entries at the end rather than at the beginning of sub-entries. \documentclass[12pt]{memoir} \usepackage{polyglossia} \setmainlanguage{marathi} \setmainfont[ Script=Devanagari, Mapping=devanagarinumerals ]{Noto Serif Devanagari} \usepackage{imakeidx} \makeindex % Source - https://tex.stackexchange.com/a/270982 % Posted by matsch, modified by community. See post 'Timeline' for change history % Retrieved 2026-02-28, License - CC BY-SA 3.0 % Source - https://tex.stackexchange.com/a/86910 % Posted by barbara beeton % Retrieved 2026-02-28, License - CC BY-SA 3.0 \providecommand{\indexalso}[3]{% \index{#1!zzzzz@\emph{\alsoname} {#2}}} \begin{document} तिबेटबद्दल बोलणं म्हणजे सुद्धा गोष्टी बाळबोध करणं आहे - \index{तिबेट!राजकीय आणि वांशिक}राजकीय आणि वांशिक तिबेट यामध्ये फरक करणं हेच मुळात गोष्टी अत्यंत बाळबोध करणं आहे. पूर्वेकडील खम आणि \index{आम्दो!आणि प्रादेशिक अस्मिता}आम्दो या भागातले लोक नेहमी स्वतःला तिबेटी म्हणवून घेण्याऐवजी \index{खम!आणि प्रादेशिक अस्मिता}खम्पा आणि आम्दोवा म्हणत आले आहेत. कित्येकदा त्यांची मध्य तिबेटऐवजी चिनी शेजाऱ्यांशी अधिक जवळीक होती. विसाव्या शतकापर्यंत हे स्थानिक बंध बृहत्तर तिबेटच्या कुठल्याही कल्पनेपेक्षा अधिक दृढ होते. व्यापक तिबेटी अस्मिता निर्माण करण्याच्या आधुनिक प्रयत्नांना हे बंध आजही धोका निर्माण करत आहेत. तसंच, बौद्ध धर्मानुयायी असणं हा समान धागा विशिष्ट पंथ किंवा विहारांशी वैयक्तिक निष्ठा ठेवण्याच्या आड येत नव्हता. त्यांचं बौद्धधर्मीय असणंसुद्धा {बौद्ध धर्म!विहारांदरम्यानचे संघर्ष}विहारांदरम्यान होणाऱ्या - काही प्रसंगी \index[words]{विहार!-मधील हिंसा}हिंस्र - संघर्षांना थोपवू शकत नव्हतं. \indexalso{आम्दो}{च़ोङ्खा शहर} \printindex \end{document}

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

  • Adjusting space between the last paragraph and the footnote bar in the page [duplicate]
    by hisacro on February 27, 2026 at 12:46 am

    I wanted to increase the spacing after the last paragraph in the page where the footnote bar starts, The above image shows the case. I'm using scrartcl as my document class.

  • FiraSans and math font in Beamer
    by Dimitrios ANAGNOSTOU on February 26, 2026 at 2:21 pm

    I am using Moloch theme and FiraSans font. When choosing the font for the math text, how to be sure which fonts are compatible with respect to sizes? As an example of comparison: % ============================================================ % CLASSE ET THÈME % ============================================================ \documentclass[10pt]{beamer} \usetheme{moloch} % Thème moloch % ============================================================ % ENCODAGE ET LANGUE % ============================================================ \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage[semibold,light]{FiraSans} \usepackage{FiraMono} \usepackage{mathpazo} %\usepackage{newtxmath} \usefonttheme[onlymath]{serif} \begin{document} \begin{frame} Soit $E$ un espace vectoriel réel de dimension finie. On considère une application linéaire $T : E \to E$ telle que \[ T(\alpha x + \beta y) = \alpha T(x) + \beta T(y). \] On suppose que la matrice associée à $T$ dans une base donnée est \[ A = \begin{pmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ \vdots & \ddots & & \vdots \\ a_{n1} & \cdots & & a_{nn} \end{pmatrix}. \] Le déterminant $\det(A)$ permet de caractériser l'inversibilité de $T$. En particulier, \[ \det(A) \neq 0 \Longleftrightarrow T \text{ est bijective}. \] On en déduit que le système linéaire $Ax = b$ admet une solution unique si et seulement si le rang de $A$ est égal à $n$. \end{frame} \end{document} With mathpazo With newtxmath Default

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

  • enumerate with right-aligned labels, the widest is flush-left to left edge of text area without setting widest=
    by tsj on February 25, 2026 at 6:40 pm

    I want the following simple layout with enumitem: Blah blah noindent I. Foo II. Bar blah blah long line paragraph wrapping continues here III. Baz Blah blah noindent non-enumerate text Labels are right aligned, \labelsep can be fixed (e.g. 0.5em), and text continues from the same horizonal position on the next line in the case of a longer paragraph (I think this means \itemsep should be zero). enumitem apparently has the capacity to calculate the width of the widest label and set \labelwidth accordingly, though I can't determine under what circumstances that happens after reading the documentation. I can set widest=<whatever> to achieve the output I want, but I'd like to know if I can achieve the same by setting one or more parameters to ! or *, i.e. computing the parameters automatically. MWE and output are below, basically I just want the widest label (maybe VI or III or IV) label to be left-aligned with the left edge of the VVVVV (the left edge of the text area), everything else the same. \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=\Roman*.,nosep,align=right, leftmargin=*, labelindent=0pt, labelsep=0.5em, itemsep=0pt, % widest=VI, % I don't want to use this! ] \item Alpha. \item Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis sem. Nullam nec mi et neque pharetra sollicitudin. \item Gamma \item Delta \item Epsilon \item Zeta \end{enumerate} VVVVV \end{document}