• Same Index twice in a document
    by Knudsen on November 17, 2025 at 8:56 pm

    I am trying to print the same index twice in a document, and in the following MWE the two indexes print fine, but I am observing that the first occurrence of \printindex stops all indexation in any text that follows, as you can see here: \documentclass{book} \usepackage{imakeidx} \makeindex[program=texindy, options=-L portuguese -C utf8] \begin{document} First part: \index{notation-one} \index{aut-one} \printindex \newpage Second part: \index{notation-two} \index{aut-two} \printindex \end{document} that produces: First part: Index aut-one, 1 notation-one, 1 Second part: Index aut-one, 1 notation-one, 1 and the material in the Second part is not indexed. How can one keep it indexing the entries beyond the first \printindex?

  • KOMA-Script method to add linebreak after a section number?
    by ana on November 17, 2025 at 8:46 pm

    I would like to add a line break in between the section number and section title. The title would start on the next line and not be indented if it wraps. Only in the content, not the TOC. In other words, instead of: 1.1 This is a really long section name. I would like: 1.1 This is a really long section name. This was asked ten years ago for KOMA version 3.20. The solution was a hack. KOMA-Script is now version 3.48. Is there a better way to do this?

  • 1. How to use "funny letters" in LaTeX? And why are there "fake" letters?
    by Grzegorz Brzczyszczykiewicz on November 17, 2025 at 7:16 pm

    How to use "funny letters" in LaTeX? Specifically: the "phonetic" package (not to be confused with TIPA) the T4 encoding the X2 encoding (for various Cyrillic letters) inside normal text encoded in the default LaTeX encoding. And where can I find documentation? Also, some of the supposedly-Cyrillic letters from X2 don't seem to be real, they look like fakes (specifically: 034 and 035, the two delta-like glyphs (δ), 120 and 160 (looks like р with a weird line), 233 and 273 (looks like Ԑԑ but are defined as "cyrillic epsilon" not "cyrillic reversed ze")). If they are what I suspect them to be (fake letters that don't exist), why did they include them? Additionally, there are weird glyphs in T2B and T2C (allegedly combinations of T1+X2) that do not appear to be present in X2. Some of them are real (T2B's 224 and 264 (Ӿ, ӿ), T2C's 206 and 246 (Ҏ, ҏ), 223 and 263 (Ҍ and ҍ (semisoft sign), distinct from Ѣ ѣ (yat) present in X2), 224 and 264 (Ҋ, ҋ), ), while others appear to be more "fakes" (T2B's 200 and 240 (Ӷ̶ and ӷ̶), 221 and 261 (looks like a messed up version of Ç ç), T2C's 216 and 256 (Ɱ), 233 and 273 (looks like Ϧ with an Р head)). If T2B and T2C are stored internally using T1 and X2 glyphs (which is what The LaTeX Project claims), how are these "extras" stored, and why do they include more "fakes"? The "fakes" aren't even in Unicode!

  • Can siunitx tabular align section numbers?
    by Teepeemm on November 17, 2025 at 4:10 pm

    I have a table of equations where I'm including the section where that equation was introduced. I'd like to align the sections on the decimal marker between the section and the subsection. Here's an example of what I mean: \documentclass{article} \usepackage{siunitx} \begin{document} \section{Section}\label{sec}\[a^2+b^2=c^2\] \stepcounter{subsection} \subsection{Subsection}\label{subsec}\[E=mc^2\] \addtocounter{subsubsection}{2} \subsubsection{Subsubsection}\label{subsubsec}\[F=ma\] \begin{tabular}{ l S[table-format=1.2, table-align-text-after=false] l } \hline Equation & {Section} & Section \\\hline $a^2+b^2=c^2$ & 1 & 1 \\ $E=mc^2$ & 1.2 & 1.2 \\ $F=ma$ & 1.2{.3} & 1.2.3 \\\hline $a^2+b^2=c^2$ & \ref{sec} & \ref{sec} \\ $E=mc^2$ & \ref{subsec} & \ref{subsec} \\ $F=ma$ & \ref{subsubsec} & \ref{subsubsec} \\\hline \end{tabular} \end{document} If I left align the column (3rd column), then it's too far to the left, relative to the "Section" header. siunitx can align on the decimal like I want, but it doesn't see the marker at all (2nd column, bottom half). And if I manually enter the section numbers, I still have to protect the subsubsection from being seen (2nd column, top half). Is there a way to have the entries aligned on the first decimal point (2nd column, top half) but have \ref produce the section numbers (bottom half)? (Note that this will use booktabs and hyperref, but those do not seem necessary for the question at hand.)

  • In tabular environment, aligning a center aligned column to have a left-alignment within the center alignment
    by Jason on November 17, 2025 at 3:58 pm

    I am wondering if there is a relatively sane way to get a tabular environment with a centered alignment column, to have a consistent left alignment within that centering. This is easiest to explain by showing with example: I want a column within a tabular environment that typesets to look something like the following: |Column Head (Centered)| | A | | AB | | A- | | D | | A+ | | DN | | D- | Notice how the column head is larger than any of the column contents, and how the contents below it are "centered" but they are aligned left within that centering, leading to a nice clean edge that is left aligned, with the contents still generally centered beneath the heading, even though the content of the column has various lengths. For my application, each row content will be 1 or 2 characters long (as in the example above) but fonts being what they are, the actual horizontal spacing may not be equal for all characters and I don't want to use a uniform font/typesetting to force that to be the case. My goal is to see if there is a non-crazy way to typeset this kind of alignment within a column for a tabular environment. I have managed to achieved this by defining some crazy commands to contain the contents I want that then take the maximum horizontal width of all the content going in the column, and artificially making all content in the column that width by appending forced whitespace to the right of the text for each of the contents in that row. This ensures that, when centered, it ends up looking as I wanted... but this is a huge pain and definitely a Rube Goldberg approach. I suspect there is an easy way to do this with multicol package, but I don't know it well enough to know how to do this in a nice way that keeps the content centered more-or-less (exactly center isn't a huge deal as long as it looks centered). I wouldn't mind a multicol approach, but I'm trying to see if there is another solution. If any other solution is just as crazy as mine though, then if someone can point me to (or submit) a good multicol solution that would be nice. It is worth mentioning that I have relatively narrow parameters, in particular each rows content in the column is 1 or 2 characters, so it doesn't need to be hugely dynamic. NOTE: I'm sure this is answered somewhere but I can't get my search-foo to work well enough to find the niche formatting I am after. If anyone can point me to an answered version I'll gladly remove this.

  • How to centrally align grid in tcolorbox interior
    by Alec on November 17, 2025 at 3:42 pm

    I'm making a test using the exam class and wish to have answer boxes with a grid background for my students to write their responses. I'm doing this with a custom tcolorbox. I'm wondering why my grid isn't centrally aligned as I wanted to have it so that, regardless of the size parameter I put in, the grid is 'balanced' vertically and horizontally. Currently it doesn't balance either vertically or horizontally (I've deliberately picked awkward heights to highlight this). In my MWE below I've put two types of custom tcolorbox answer grid, as I actually want the first one with the 'grow to the right' bit, but wanted to show that it's not this bit messing up the grid balance and so omitted it in the second answer grid type. \documentclass[addpoints,12pt,a4paper,dvipsnames,table]{exam} \usepackage[most,many]{tcolorbox} \newtcolorbox{ansgrid}[1] {height=#1, width=\linewidth, grow to right by=10mm, arc=2mm, enhanced, underlay={ \begin{tcbclipinterior} {\centering \draw[step=0.5,line width=0.3mm, gray!50] (interior.center) grid (interior.north east); \draw[step=0.5,line width=0.3mm, gray!50] (interior.center) grid (interior.north west); \draw[step=0.5,line width=0.3mm, gray!50] (interior.center) grid (interior.south east); \draw[step=0.5,line width=0.3mm, gray!50] (interior.center) grid (interior.south west);} \end{tcbclipinterior} } } \newtcolorbox{ansgrid2}[1] {height=#1, width=\linewidth, arc=2mm, enhanced, underlay={ \begin{tcbclipinterior} {\centering \draw[step=0.5,line width=0.3mm, gray!50] (interior.center) grid (interior.north east); \draw[step=0.5,line width=0.3mm, gray!50] (interior.center) grid (interior.north west); \draw[step=0.5,line width=0.3mm, gray!50] (interior.center) grid (interior.south east); \draw[step=0.5,line width=0.3mm, gray!50] (interior.center) grid (interior.south west);} \end{tcbclipinterior} } } \begin{document} \begin{questions} \question[1] What is the answer? \begin{ansgrid}{3.4cm} \end{ansgrid} \question[1] What is the answer to this one? \begin{ansgrid2}{3.9cm} \end{ansgrid2} \end{questions} \end{document}

  • Referencing theorems
    by Rodrigo Tavares on November 17, 2025 at 2:51 pm

    I put a label \label{thm} inside the theorem environment, but when I use \cite{thm} it displays a [?] instead of any label. I wanted to put in the label the number of the theorem. In my text, the theorems are numbered not inside chapter or sections, but with a number since the first, like theorem 1, 2, ..., etc.

  • subref failing when glossaries package is loaded
    by Hans F Hansen on November 17, 2025 at 2:39 pm

    I use \subref from the subcaption package to reference subfigures in the figure's caption. However, after updating my LaTeX installation, I now find that this fails. It appears to be a problem with the glossaries (and glossaries-extra) packages. The following MWE produces (??) where it should reference (a) and (b). I can still reference subfigure 1a using \ref. \documentclass{article} \usepackage{subcaption} \usepackage{glossaries} \begin{document} \begin{figure} \begin{subfigure}[b]{0.5\linewidth} \caption{ \label{fig:a}} \end{subfigure} \begin{subfigure}[b]{0.5\linewidth} \caption{ \label{fig:b}} \end{subfigure} \caption{Side-by-side figures. (\subref{fig:a}) Left. (\subref{fig:b}) Right.} \end{figure} Reference Figure \ref{fig:a} \end{document} Everything works well if I do not load the glossaries package. Any ideas or work arounds would be much appreciated.

  • Newest pdfmanagement conflicts with tocloft package also for pdflatex
    by Linear Christmas on November 17, 2025 at 1:30 pm

    I have been using DocumentMetadata with tocloft in pdflatex without setbacks for more than two years. However, something changed with the most recent updates. Currently the code gives warning tocloft.sty: warning: 1156: \@starttoc has already been redefined; tocloft bailing out. All (or most) links in table of contents do not work. MWE: \DocumentMetadata{lang=en, pdfversion=2.0} \documentclass{article} \usepackage[english]{babel} \usepackage{tocloft} \usepackage[hypertexnames=false]{hyperref} \begin{document} \tableofcontents \section{123123} \subsection{absc} No links in table of contents. Comment out \verb|\DocumentMetadata| or \verb|tocloft| package and links work. \end{document} Could I do something differently? I saw Non-hyperlinked TOC entry when loading tocloft+hyperref with phase-III tagging with lualatex/xelatex 2023 #74 on latex3 / tagging-project. That is from May 2024 about XeLaTeX and LuaLaTex; pdflatex at the time seems not to have had this issue. There is also the confusing warning babel.sty: warning: : Configuration files are deprecated, as they can break document portability., but that is irrelevant here. Log This is pdfTeX, Version 3.141592653-2.6-1.40.27 (MiKTeX 25.4) (preloaded format=pdflatex 2025.11.17) 17 NOV 2025 14:36 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **./testbugs.tex (testbugs.tex LaTeX2e <2025-11-01> L3 programming layer <2025-10-24> (C:\Users\Username\MikTeX\tex/latex/latex-lab\documentmetadata-support.ltx (C:\Users\Username\MikTeX\tex/latex/pdfmanagement-testphase\pdfmanagement-testpha se.sty Package: pdfmanagement-testphase 2025-08-05 v0.96v LaTeX PDF management bundle (C:\Users\Username\MikTeX\tex/latex/tagpdf\tagpdf-base.sty Package: tagpdf-base 2025-10-31 v0.99w part of tagpdf - provide base, no-op ver sions of the user commands \c@g__tag_MCID_abs_int=\count275 \c@g__tag_struct_abs_int=\count276 ) (C:\Users\Username\MikTeX\tex/latex/pdfmanagement-testphase\pdfmanagement.ltx File: pdfmanagement.ltx 2025-08-05 v0.96v PDF management code \g__pdfmanagement_EmbeddedFiles_int=\count277 \l__pdfmeta_xmp_indent_int=\count278 \g_pdffile_embed_pdfa_int=\count279 \g_pdffile_embed_nonpdfa_int=\count280 ))) (C:\Users\Username\MikTeX\tex/latex/l3backend\l3backend-pdftex.def File: l3backend-pdftex.def 2025-10-09 L3 backend support: PDF output (pdfTeX) \l__color_backend_stack_int=\count281 ) (C:\Users\Username\MikTeX\tex/latex/pdfmanagement-testphase\l3backend-testphase-p dftex.def File: l3backend-testphase-pdftex.def 2025-08-05 v0.96s LaTeX PDF management bun dle backend support:PDFoutput(pdfTeX) \l__pdf_backend_tmpa_box=\box53 \l__pdf_backend_tmpb_box=\box54 \g__pdf_backend_resourceid_int=\count282 \g__pdf_backend_name_int=\count283 \g__pdf_backend_page_int=\count284 ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-latest.sty Package: latex-lab-testphase-latest 2025-09-13 v0.1d latex-lab modules (C:\Users\Username\MikTeX\tex/latex/tagpdf\tagpdf.sty Package: tagpdf 2025-10-31 v0.99w LaTeX kernel code for PDF tagging \l__tag_tmpa_int=\count285 \l__tag_tmpa_box=\box55 \l__tag_tmpb_box=\box56 \l__tag_loglevel_int=\count286 \g__tag_unique_cnt_int=\count287 \l__tag_tag_stop_int=\count288 (C:\Users\Username\MikTeX\tex/latex/tagpdf\tagpdf-mc-code-generic.sty Package: tagpdf-mc-code-generic 2025-10-31 v0.99w part of tagpdf - code related to marking chunks - generic mode \g__tag_mc_marks=\marks4 ) \g__tag_tree_id_pad_int=\count289 \c@g__tag_parenttree_obj_int=\count290 Package tagpdf Info: reading namespace definitions tagpdf-ns-pdf.def Package tagpdf Info: reading namespace definitions tagpdf-ns-pdf2.def Package tagpdf Info: reading namespace definitions tagpdf-ns-mathml.def Package tagpdf Info: reading namespace definitions tagpdf-ns-latex-book.def Package tagpdf Info: reading namespace definitions tagpdf-ns-latex.def Package tagpdf Info: reading namespace definitions tagpdf-ns-latex-lab.def Package tagpdf Info: reading namespace definitions tagpdf-ns-pdf.def Package tagpdf Info: reading namespace definitions tagpdf-ns-pdf2.def \g__tag_struct_AFobj_int=\count291 \g__tag_para_begin_int=\count292 \g__tag_para_end_int=\count293 \g__tag_para_main_begin_int=\count294 \g__tag_para_main_end_int=\count295 ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-names.sty Package: latex-lab-testphase-names 2025-08-14 v0.8f Code related to the names o f tags ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-new-or-2.sty Package: latex-lab-testphase-new-or-2 2025-05-10 v0.86d Changes to the output r outine (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-footnotes.ltx File: latex-lab-footnotes.ltx 2025-07-04 v0.8o changes to the footnote interfac es \footnotemargin=\dimen148 \g_fnote_id_int=\count296 )) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-block.sty Package: latex-lab-testphase-block 2025-07-26 v0.9k blockenv implementation (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-kernel-changes.sty Package: latex-lab-kernel-changes 2025-07-09 v0.85i General kernel and class ch anges (C:\Users\Username\MikTeX\tex/latex/latex-lab\glyphtounicode-cmex.tex)) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-context.sty Package: latex-lab-testphase-context 2025-10-09 v0.5b Providing context for ins tance, etc. ) LaTeX template Info: Declaring template type 'blockenv' taking 1 argument(s) (template) on line 96. LaTeX template Info: Declaring template type 'block' taking 1 argument(s) on (template) line 97. LaTeX template Info: Declaring template type 'para' taking 1 argument(s) on (template) line 98. LaTeX template Info: Declaring template type 'list' taking 1 argument(s) on (template) line 99. LaTeX template Info: Declaring template type 'item' taking 1 argument(s) on (template) line 100. \c@maxblocklevels=\count297 \l__par_start_skip=\skip49 \l__block_botsep_skip=\skip50 \l__block_parbotsep_skip=\skip51 \l__block_parindent_dim=\dimen149 \l__block_counter_start_int=\count298 \l__block_one_label_box=\box57 \g__block_labels_box=\box58 \l__block_tmpa_skip=\skip52 \l__block_topsepadd_skip=\skip53 \l__block_effective_top_skip=\skip54 LaTeX Info: Redefining \centering on input line 1476. LaTeX Info: Redefining \raggedleft on input line 1477. LaTeX Info: Redefining \raggedright on input line 1478. ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-sec.sty Package: latex-lab-testphase-sec 2025-10-20 v0.84k Code related to the tagging of sectioning commands ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-toc.sty Package: latex-lab-testphase-toc 2025-07-02 v0.85h Code related to the tagging of toc-like lists \g__tag_toc_level_int=\count299 ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-minipage.sty Package: latex-lab-testphase-minipage 2025-05-10 v0.81g Code related to the tag ging of minipages and parboxes (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-new-or-1.sty Package: latex-lab-testphase-new-or-1 2025-05-10 v0.85d Temporary output patche s for tagging and better link support -- no longer active )) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-graphic.sty Package: latex-lab-testphase-graphic 2025-09-25 v0.80i Code related to the tagg ing of graphics \g__tag_graphic_int=\count300 ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-float.sty Package: latex-lab-testphase-float 2025-10-17 v0.81l Code related to the taggin g of floats \g__tag_float_int=\count301 ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-bib.sty Package: latex-lab-testphase-bib 2025-05-09 v0.81c Code related to the tagging of bibliography and cite command ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-text.sty Package: latex-lab-testphase-text 2025-05-10 v0.85f Code related to the tagging of various small text commands LaTeX Info: Redefining \mbox on input line 84. ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-marginpar.sty Package: latex-lab-testphase-marginpar 2025-07-23 v0.85h Changes related to the tagging of the margin notes \g__kernel_marginpar_int=\count302 ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-title.sty Package: latex-lab-testphase-title 2025-03-08 v0.85d Changes related to the tag ging of the title ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-table.sty Package: latex-lab-testphase-table 2025-08-01 v0.85s Code related to the taggin g of tables (C:\Users\Username\MikTeX\tex/latex/tools\array.sty Package: array 2025/09/25 v2.6n Tabular extension package (FMi) \col@sep=\dimen150 \ar@mcellbox=\box59 \extrarowheight=\dimen151 \NC@list=\toks17 \extratabsurround=\skip55 \backup@length=\skip56 \ar@cellbox=\box60 )) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-math.sty Package: latex-lab-testphase-math 2025-03-10 v0.8d code related to the math tag ging (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-math.ltx File: latex-lab-math.ltx 2025-10-02 v0.6w Grab all the math(s) and tag it (expe riments) \l__math_tmpa_skip=\skip57 \g__math_mathml_total_int=\count303 \g__math_mathml_int=\count304 \g__math_math_total_int=\count305 \g__math_mathml_AF_found_int=\count306 \g__math_mathml_AF_attached_int=\count307 \l__math_tmpa_box=\box61 \l__math_mathstyle_int=\count308 \g__math_mathchoice_int=\count309 \l__math_grab_env_int=\count310 \g__math_postdisplaypenalty_int=\count311 ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-mathpkg.ltx File: latex-lab-mathpkg.ltx 2025-06-20 v0.1c mathpkg adaptions ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-mathintent.ltx File: latex-lab-mathintent.ltx 2025-08-03 v0.1c MathML intent attributes )) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-firstaid.sty Package: latex-lab-testphase-firstaid 2025-11-03 v2025-11-03 Temporary patches to external packages needed for the tagging project ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-testphase-tikz.sty Package: latex-lab-testphase-tikz 2025-09-27 v0.80d Code related to the tagging of tikz pictures )) (C:\Users\Username\MikTeX\tex/latex/pdfmanagement-testphase\pdfmanagement-firstai d.sty Package: pdfmanagement-firstaid 2025-08-05 v0.96v LaTeX PDF management bundle / firstaid-patches Package pdfmanagement Info: loading pdfmanagement firstaid code for pgf ) (C:\Users\Username\MikTeX\tex/latex/base\article.cls Document Class: article 2025/01/22 v1.4n Standard LaTeX document class (C:\Users\Username\MikTeX\tex/latex/base\size10.clo File: size10.clo 2025/01/22 v1.4n Standard LaTeX file (size option) ) \c@part=\count312 \c@section=\count313 \c@subsection=\count314 \c@subsubsection=\count315 \c@paragraph=\count316 \c@subparagraph=\count317 \c@figure=\count318 \c@table=\count319 \abovecaptionskip=\skip58 \belowcaptionskip=\skip59 \bibindent=\dimen152 ) (C:\Users\Username\MikTeX\tex/generic/babel\babel.sty Package: babel 2025/10/22 v25.14 The multilingual framework for LuaLaTeX, pdfLa TeX and XeLaTeX \babel@savecnt=\count320 LaTeX Encoding Info: Redeclaring text command \ij (encoding OT1) on input li ne 2050. LaTeX Encoding Info: Redeclaring text command \IJ (encoding OT1) on input li ne 2052. LaTeX Encoding Info: Redeclaring text command \ij (encoding T1) on input lin e 2054. LaTeX Encoding Info: Redeclaring text command \IJ (encoding T1) on input lin e 2055. LaTeX Encoding Info: Ignoring declaration for text command \ij (encoding ?) on input line 2056. LaTeX Encoding Info: Ignoring declaration for text command \IJ (encoding ?) on input line 2058. LaTeX Encoding Info: Ignoring declaration for text command \SS (encoding ?) on input line 2083. \U@D=\dimen153 \l@unhyphenated=\language84 (C:\Users\Username\MikTeX\tex/generic/babel\txtbabel.def) \bbl@readstream=\read2 \bbl@dirlevel=\count321 Package babel Info: Fetching locale name for tag en (babel) from babel-en.ini. Reported on input line 4153. Package babel Info: Passing english to babel on input line 4158. Package babel Warning: Configuration files are deprecated, as (babel) they can break document portability. (babel) Reported on input line 4172. ************************************* * Local config file bblopts.cfg used * (C:\Users\Username\MikTeX\tex/latex/arabi\bblopts.cfg File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of babel ) (C:\Users\Username\MikTeX\tex/generic/babel/locale/en\babel-english.tex) Package babel Info: Importing font and identification data for english (babel) from babel-en.ini. Reported on input line 4295. (C:\Users\Username\MikTeX\tex/latex/babel-english\english.ldf Language: english 2017/06/06 v3.3r English support from the babel system Package babel Info: Hyphen rules for 'canadian' set to \l@english (babel) (\language0). Reported on input line 102. Package babel Info: Hyphen rules for 'australian' set to \l@ukenglish (babel) (\language78). Reported on input line 105. Package babel Info: Hyphen rules for 'newzealand' set to \l@ukenglish (babel) (\language78). Reported on input line 108. )) (C:\Users\Username\MikTeX\tex/latex/tocloft\tocloft.sty Package: tocloft 2017/08/31 v2.3i parameterised ToC, etc., typesetting Package tocloft Info: The document has section divisions on input line 51. \cftparskip=\skip60 \cftbeforetoctitleskip=\skip61 \cftaftertoctitleskip=\skip62 \cftbeforepartskip=\skip63 \cftpartnumwidth=\skip64 \cftpartindent=\skip65 \cftbeforesecskip=\skip66 \cftsecindent=\skip67 \cftsecnumwidth=\skip68 \cftbeforesubsecskip=\skip69 \cftsubsecindent=\skip70 \cftsubsecnumwidth=\skip71 \cftbeforesubsubsecskip=\skip72 \cftsubsubsecindent=\skip73 \cftsubsubsecnumwidth=\skip74 \cftbeforeparaskip=\skip75 \cftparaindent=\skip76 \cftparanumwidth=\skip77 \cftbeforesubparaskip=\skip78 \cftsubparaindent=\skip79 \cftsubparanumwidth=\skip80 \cftbeforeloftitleskip=\skip81 \cftafterloftitleskip=\skip82 \cftbeforefigskip=\skip83 \cftfigindent=\skip84 \cftfignumwidth=\skip85 \c@lofdepth=\count322 \c@lotdepth=\count323 \cftbeforelottitleskip=\skip86 \cftafterlottitleskip=\skip87 \cftbeforetabskip=\skip88 \cfttabindent=\skip89 \cfttabnumwidth=\skip90 Package tocloft Warning: \@starttoc has already been redefined; tocloft bailing out. on input line 1156. ) (C:\Users\Username\MikTeX\tex/latex/hyperref\hyperref.sty Package: hyperref 2025-07-12 v7.01o Hypertext links for LaTeX (C:\Users\Username\MikTeX\tex/generic/iftex\iftex.sty Package: iftex 2024/12/12 v1.0g TeX engine tests ) (C:\Users\Username\MikTeX\tex/latex/graphics\keyval.sty Package: keyval 2022/05/29 v1.15 key=value parser (DPC) \KV@toks@=\toks18 ) (C:\Users\Username\MikTeX\tex/latex/kvsetkeys\kvsetkeys.sty Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO) ) (C:\Users\Username\MikTeX\tex/generic/kvdefinekeys\kvdefinekeys.sty Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO) ) (C:\Users\Username\MikTeX\tex/generic/pdfescape\pdfescape.sty Package: pdfescape 2019/12/09 v1.15 Implements pdfTeX's escape features (HO) (C:\Users\Username\MikTeX\tex/generic/ltxcmds\ltxcmds.sty Package: ltxcmds 2023-12-04 v1.26 LaTeX kernel commands for general use (HO) ) (C:\Users\Username\MikTeX\tex/generic/pdftexcmds\pdftexcmds.sty Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO ) (C:\Users\Username\MikTeX\tex/generic/infwarerr\infwarerr.sty Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) ) Package pdftexcmds Info: \pdf@primitive is available. Package pdftexcmds Info: \pdf@ifprimitive is available. Package pdftexcmds Info: \pdfdraftmode found. )) (C:\Users\Username\MikTeX\tex/latex/hycolor\hycolor.sty Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO) ) (C:\Users\Username\MikTeX\tex/latex/hyperref\nameref.sty Package: nameref 2025-06-21 v2.57 Cross-referencing by name of section (C:\Users\Username\MikTeX\tex/latex/refcount\refcount.sty Package: refcount 2019/12/15 v3.6 Data extraction from label references (HO) ) (C:\Users\Username\MikTeX\tex/generic/gettitlestring\gettitlestring.sty Package: gettitlestring 2019/12/15 v1.6 Cleanup title references (HO) (C:\Users\Username\MikTeX\tex/latex/kvoptions\kvoptions.sty Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO) )) \c@section@level=\count324 ) (C:\Users\Username\MikTeX\tex/latex/etoolbox\etoolbox.sty Package: etoolbox 2025/10/02 v2.5m e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count325 ) (C:\Users\Username\MikTeX\tex/generic/stringenc\stringenc.sty Package: stringenc 2019/11/29 v1.12 Convert strings between diff. encodings (HO ) ) \@linkdim=\dimen154 \Hy@linkcounter=\count326 \Hy@pagecounter=\count327 (C:\Users\Username\MikTeX\tex/latex/hyperref\pd1enc.def File: pd1enc.def 2025-07-12 v7.01o Hyperref: PDFDocEncoding definition (HO) Now handling font encoding PD1 ... ... no UTF-8 mapping file for font encoding PD1 ) (C:\Users\Username\MikTeX\tex/generic/intcalc\intcalc.sty Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO) ) \Hy@SavedSpaceFactor=\count328 (C:\Users\Username\MikTeX\tex/latex/hyperref\puenc.def File: puenc.def 2025-07-12 v7.01o Hyperref: PDF Unicode definition (HO) Now handling font encoding PU ... ... no UTF-8 mapping file for font encoding PU ) Package hyperref Info: Option `hypertexnames' set `false' on input line 4066. Package hyperref Info: Hyper figures OFF on input line 4195. Package hyperref Info: Link nesting OFF on input line 4200. Package hyperref Info: Hyper index ON on input line 4203. Package hyperref Info: Plain pages OFF on input line 4210. Package hyperref Info: Backreferencing OFF on input line 4215. Package hyperref Info: Implicit mode ON; LaTeX internals redefined. Package hyperref Info: Bookmarks ON on input line 4462. \c@Hy@tempcnt=\count329 (C:\Users\Username\MikTeX\tex/latex/url\url.sty \Urlmuskip=\muskip17 Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc. ) LaTeX Info: Redefining \url on input line 4801. \XeTeXLinkMargin=\dimen155 (C:\Users\Username\MikTeX\tex/generic/bitset\bitset.sty Package: bitset 2019/12/09 v1.3 Handle bit-vector datatype (HO) (C:\Users\Username\MikTeX\tex/generic/bigintcalc\bigintcalc.sty Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO ) )) \Fld@menulength=\count330 \Field@Width=\dimen156 \Fld@charsize=\dimen157 Package hyperref Info: Hyper figures OFF on input line 6078. Package hyperref Info: Link nesting OFF on input line 6083. Package hyperref Info: Hyper index ON on input line 6086. Package hyperref Info: backreferencing OFF on input line 6093. Package hyperref Info: Link coloring OFF on input line 6098. Package hyperref Info: Link coloring with OCG OFF on input line 6103. Package hyperref Info: PDF/A mode OFF on input line 6108. \Hy@abspage=\count331 \c@Item=\count332 ) Package hyperref Info: Driver (custom): hgeneric-testphase. (C:\Users\Username\MikTeX\tex/latex/pdfmanagement-testphase\hgeneric-testphase.de f File: hgeneric-testphase.def 2025-08-05 v0.96v generic Hyperref driver for the LaTeX PDF management bundle (C:\Users\Username\MikTeX\tex/latex/pdfmanagement-testphase\hyperref-colorschemes .def) LaTeX Info: Redefining \href on input line 274. LaTeX Info: Redefining \url on input line 360. \l__hyp_tmpa_box=\box62 \l__hyp_tmpa_int=\count333 \l__hyp_dest_box=\box63 \g__hyp_linknestlevel_int=\count334 \HyAnn@Count=\count335 \Fld@listcount=\count336 \Hy@SectionHShift=\skip91 ) (C:\Users\Username\MikTeX\tex/latex/amsmath\amsmath.sty Package: amsmath 2025/07/09 v2.17z AMS math features \@mathmargin=\skip92 For additional information on amsmath, use the `?' option. (C:\Users\Username\MikTeX\tex/latex/amsmath\amstext.sty Package: amstext 2024/11/17 v2.01 AMS text (C:\Users\Username\MikTeX\tex/latex/amsmath\amsgen.sty File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks19 \ex@=\dimen158 )) (C:\Users\Username\MikTeX\tex/latex/amsmath\amsbsy.sty Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen159 ) (C:\Users\Username\MikTeX\tex/latex/amsmath\amsopn.sty Package: amsopn 2022/04/08 v2.04 operator names ) \inf@bad=\count337 LaTeX Info: Redefining \frac on input line 233. \uproot@=\count338 \leftroot@=\count339 LaTeX Info: Redefining \overline on input line 398. LaTeX Info: Redefining \colon on input line 409. \classnum@=\count340 \DOTSCASE@=\count341 LaTeX Info: Redefining \ldots on input line 495. LaTeX Info: Redefining \dots on input line 498. LaTeX Info: Redefining \cdots on input line 619. \Mathstrutbox@=\box64 \strutbox@=\box65 LaTeX Info: Redefining \big on input line 721. LaTeX Info: Redefining \Big on input line 722. LaTeX Info: Redefining \bigg on input line 723. LaTeX Info: Redefining \Bigg on input line 724. \big@size=\dimen160 LaTeX Font Info: Redeclaring font encoding OML on input line 742. LaTeX Font Info: Redeclaring font encoding OMS on input line 743. \macc@depth=\count342 LaTeX Info: Redefining \bmod on input line 904. LaTeX Info: Redefining \pmod on input line 909. LaTeX Info: Redefining \smash on input line 939. LaTeX Info: Redefining \relbar on input line 969. LaTeX Info: Redefining \Relbar on input line 970. \c@MaxMatrixCols=\count343 \dotsspace@=\muskip18 \c@parentequation=\count344 \dspbrk@lvl=\count345 \tag@help=\toks20 \row@=\count346 \column@=\count347 \maxfields@=\count348 \andhelp@=\toks21 \eqnshift@=\dimen161 \alignsep@=\dimen162 \tagshift@=\dimen163 \tagwidth@=\dimen164 \totwidth@=\dimen165 \lineht@=\dimen166 \@envbody=\toks22 \multlinegap=\skip93 \multlinetaggap=\skip94 \mathdisplay@stack=\toks23 LaTeX Info: Redefining \[ on input line 2950. LaTeX Info: Redefining \] on input line 2951. ) (C:\Users\Username\MikTeX\tex/latex/latex-lab\latex-lab-amsmath.ltx File: latex-lab-amsmath.ltx 2025-09-29 v0.1i amsmath adaptions LaTeX Info: Redefining \eqref on input line 57. ) (C:\Users\Username\MikTeX\tex/latex/bookmark\bookmark.sty Package: bookmark 2023-12-10 v1.31 PDF bookmarks (HO) (C:\Users\Username\MikTeX\tex/latex/bookmark\bkm-pdftex.def File: bkm-pdftex.def 2023-12-10 v1.31 bookmark driver for pdfTeX and luaTeX (HO ) \BKM@id=\count349 )) (testbugs.aux) \openout1 = `testbugs.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. Package hyperref Info: Link coloring OFF on input line 8. (testbugs.toc) \tf@toc=\write3 \openout3 = `testbugs.toc'. [1 {C:/Users/Username/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}{C:/Users/Username/MikTeX/fonts/enc/dvips/cm-super/cm-super-t1.enc}] (testbugs.aux) *********** LaTeX2e <2025-11-01> L3 programming layer <2025-10-24> *********** ) Here is how much of TeX's memory you used: 15841 strings out of 467833 357684 string characters out of 5427605 937895 words of memory out of 5000000 44543 multiletter control sequences out of 15000+600000 649696 words of font info for 51 fonts, out of 8000000 for 9000 1141 hyphenation exceptions out of 8191 75i,5n,83p,456b,470s stack positions out of 10000i,1000n,20000p,200000b,200000s <C:/Users/Username/MikTeX/fonts/type1/public/cm-super/sfbx1000.pfb><C:/Users/Username/MikTeX/fonts/type1/public/cm-super/sfbx1200.pfb><C:/Users/Username/MikTeX/fo nts/type1/public/cm-super/sfbx1440.pfb><C:/Users/Username/MikTeX/fonts/type1/publ ic/cm-super/sfrm1000.pfb><C:/Users/Username/MikTeX/fonts/type1/public/cm-super/sf tt1000.pfb> Output written on testbugs.pdf (1 page, 90597 bytes). PDF statistics: 66 PDF objects out of 1000 (max. 8388607) 4 named destinations out of 1000 (max. 500000) 25 words of extra memory for PDF output out of 10000 (max. 10000000)

  • minipagebreaks: breaking a box into smaller chunks
    by schtandard on November 17, 2025 at 1:25 pm

    The main thing TeX does is typeset text into lines and paragraphs and then break those into chunks called pages. How can I replicate this on a smaller scale, i.e. typeset some text into a box (like a minipage) and then break that into smaller chunks (like breaking off a smaller minipage from the top) to use or further manipulate? As a rather silly example that hopefully gets my point across, let's say I want to typeset something like this, that is, break text into lines of 4cm width, then take the top 4cm and put them on a page, then take the rest, rotate it by 90° and put it next to the first chunk. I can fake the effect by typesetting the whole text first, identifying a spot to break it apart and then typesetting it again in two chunks. However, I would like for TeX to do that work for me, just providing the desired chunk sizes. How can I do this? \documentclass{article} \usepackage{adjustbox} \begin{document} \makeatletter % For checking linebreaks. \begin{minipage}{4cm} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \end{minipage} \bigskip % Fake the desired effect manually. \begin{minipage}[b][4cm][t]{4cm}\parfillskip=0pt Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi \end{minipage}\quad \begin{adjustbox}{rotate=90} \begin{minipage}{4cm} consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \end{minipage} \end{adjustbox} \end{document}

  • How can I use straight lines to connect elements inside nested TikZ environments?
    by Yilin Cheng on November 17, 2025 at 6:13 am

    I am currently refining the flowchart in this problem Why does \begin{figure}[H] disrupt line spacing?. The solution in the problem involves using nested TikZ, but I have encountered another issue that I cannot resolve: For example, connecting nodes B and C across two separate TikZ environments, but the generated result is: and I want to get: LaTeX code is as follows (not exactly a minimal working example, but relatively concise): \documentclass{ctexart} \usepackage{ctex} \usepackage{setspace} \setstretch{1.5} \usepackage{float} \usepackage{tikz} \usepackage{standalone} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[remember picture,foo/.style={draw,inner sep=5pt},>=stealth] \node[foo,font=\bfseries] (O) {A}; \node[foo,font=\bfseries] (A) [below=of O] {\begin{tikzpicture}[remember picture,nodes={foo,draw,minimum width=1cm}] \node (X_1) {B}; \end{tikzpicture} }; \node[foo,font=\bfseries] (B) [below=of A] {\begin{tikzpicture}[remember picture,nodes={foo,draw,minimum width=1cm}] \node (X_2) {C}; \end{tikzpicture} }; \draw[-] (X_1.south) -- (X_2.north); \end{tikzpicture} \end{document} Is there any feasible approach to address this concern? Your comments and alternatives are highly appreciated. PS: I have drafted the flowchart according to the method proposed by @Explorer, but certain aspects lack aesthetic refinement, and the connecting lines are not entirely vertically aligned. \documentclass{ctexart} \usepackage{ctex} \usepackage{setspace} \setstretch{1.5} \usepackage{float} \usepackage{tikz} \usetikzlibrary{positioning,fit,calc} \begin{document} \begin{tikzpicture}[ >=stealth, foo/.style 2 args={draw,font=\bfseries,inner sep=5pt,minimum width=#1 cm,minimum height=#2 cm}, foo/.default={1}{0.8}, box/.style={draw,inner sep=8pt,rounded corners=2pt,minimum width=15cm,minimum height=2.5cm}, small/.style={draw,inner sep=3pt,minimum width=1cm,minimum height=0.6cm,font=\small} ] \node[foo] (O) {test}; \node[foo] (A) [left=2cm of O] {test}; \node[foo] (B) [right=2cm of O] {test}; \draw[->] (A) -- (O); \draw[->] (B) -- (O); \node[small] (X_o) [below=2.5cm of O] {test}; \node[small] (X_a) [left=3cm of X_o.center] {test}; \node[small] (X_b) [right=3cm of X_o.center] {test}; \node[small] (X_c) [below=1.2cm of X_o] {test}; \node[small] (X_d) [above=1.2cm of X_a] {test}; \node[small] (X_e) [below=2.4cm of X_a] {test}; \draw[->] (X_d) -- (X_a); \draw[<-] (X_a) -- (X_o); \draw[<-] (X_b) -- (X_o); \draw[<-] (X_c) -- (X_o); \draw[<-] (X_e) -- (X_a); \draw[->] (X_c) -| ([xshift=1.2em]X_a.south); \draw[->] (X_c) -| (X_b.south); \node[box] (X_box) [fit=(X_o)(X_a)(X_b)(X_c)(X_d)(X_e)] {}; \node[font=\bfseries,anchor=north] at (X_box.north) {test}; \draw[<-] (X_box.north) -- (O); \node[small,text width=5em,align=center] (Y_o) [below=4cm of X_o] {test}; \node[small,text width=5em,align=center] (Y_a) [below=1cm of Y_o] {test}; \node[small,text width=5em,align=center] (Y_dfp) [below=1cm of Y_a] {test}; \node[small,text width=1em,align=center] (Y_c) [left=0.3cm of Y_a] {test}; \node[small,text width=1em,align=center] (Y_d) [right=0.3cm of Y_a] {test}; \node[small,text width=3em,align=center] (Y_e) [left=3cm of Y_o.center] {test}; \node[small,text width=3em,align=center] (Y_i) [below=1cm of Y_e] {test}; \node[small,text width=1em,align=center] (Y_j) [below left=0.8cm and -0.5cm of Y_i] {test}; \node[small,text width=1em,align=center] (Y_k) [below right=0.8cm and -0.5cm of Y_i] {test}; \node[small,text width=3em,align=center] (Y_f) [right=3cm of Y_o.center] {test}; \node[small,text width=3em,align=center] (Y_g) [below=1cm of Y_f] {test}; \node[small,text width=3em,align=center] (Y_h) [below=1cm of Y_g] {test}; \draw[-] (Y_o) -- (Y_a); \draw[-] (Y_a) -- (Y_dfp); \draw[-] (Y_c.north) |- (Y_o.west); \draw[-] (Y_c.east) -- (Y_a.west); \draw[-] (Y_d.north) |- (Y_o.east); \draw[-] (Y_d.west) -- (Y_a.east); \draw[-] (Y_dfp.west) -| (Y_c.south); \draw[-] (Y_dfp.east) -| (Y_d.south); \draw[-] (Y_e) -- (Y_i); \draw[-] ([xshift=-0.3em]Y_i.south) -- ++(0,-0.5) -| (Y_j.north); \draw[-] ([xshift=0.3em]Y_i.south) -- ++(0,-0.5) -| (Y_k.north); \draw[-] (Y_f) -- (Y_g); \draw[-] (Y_g) -- (Y_h); \node[box] (Y_box) [fit=(Y_o)(Y_a)(Y_dfp)(Y_c)(Y_d)(Y_e)(Y_i)(Y_j)(Y_k)(Y_f)(Y_g)(Y_h)] {}; \node[anchor=east,text width=1em,font=\linespread{1.}\bfseries] at (Y_box.east) {test}; \draw[<-] (Y_box.north) -- (X_box.south); \node[small,text width=4em,align=center] (Z_o) [below=2.2cm of Y_dfp] {test}; \node[small,text width=4em,align=center] (Z_hedge) [left=3cm of Z_o.center] {test}; \node[small,text width=4em,align=center] (Z_f) [right=3cm of Z_o.center] {test}; \node[box] (Z_box) [fit=(Z_hedge)(Z_o)(Z_f)] {}; \node[font=\linespread{1.}\bfseries,anchor=east,text width=1em,] at (Z_box.east) {test}; \draw[->] (Y_dfp.south) -- (Z_o.north); \draw[<-] (Z_f) -- (Y_h); \draw[<-] ([xshift=-0.3em]Z_hedge.north) -- ++(0,0.5) -| (Y_j.south); \draw[<-] ([xshift=0.3em]Z_hedge.north) -- ++(0,0.5) -| (Y_k.south); \node[small,text width=7em,align=center] (U_o) [below=1.5cm of Z_o] {(\textbf{test})\\test}; \node[small,text width=6em,align=center] (U_g) [left=3cm of U_o.center] {(\textbf{test})\\test}; \node[small,text width=6em,align=center] (U_f) [right=3cm of U_o.center] {(\textbf{test})\\test}; \node[box] (U_box) [fit=(U_g)(U_o)(U_f)] {}; \node[font=\linespread{1.}\bfseries,anchor=east,text width=1em,] at (U_box.east) {test}; \draw[->] (Z_hedge.south) -- (U_g.north); \draw[->] (Z_o.south) -- (U_o.north); \draw[->] (Z_f.south) -- (U_f.north); \node[foo] (Z) [below=1cm of U_o] {\textbf{test}}; \draw[<-] (Z.north) -- (U_box.south); \end{tikzpicture} \end{document} why the vertical lines are still skewed when U_o.center and Z_o.center should be aligned (I have let the [left=3cm of U_o.center] and [left=3cm of Z_o.center])? PS: I will update this ...

  • talltblr, longtblr: how to move left margin of remark text to align with the left border of table?
    by Zarko on November 17, 2025 at 5:47 am

    The following simple MWE \documentclass{article} \usepackage{geometry} \usepackage{lipsum} \usepackage{tabularray} \SetTblrStyle{remark}{font=\footnotesize} \begin{document} \begin{talltblr}[ caption = {test of remark style}, label = {tab:remark}, remark{Note} = \lipsum[66] ]{colspec = { *{4}{X[j]} }, row{1} = {font=\bfseries, c}, hlines, vlines } column 1 & column 2 & column 3 & column 4 \\ \lipsum[1][1] & \lipsum[1][2] & \lipsum[1][3] & \lipsum[1][4] \\ \end{talltblr} \end{document} gives I looking for a (simple) way to aligning whole remark text with left border of table as the word Note in above example is.

  • how to remove a gap between textbody and footnote area when using `\usepackage[bottom]{footmisc}`
    by glenncounty on November 17, 2025 at 5:32 am

    I am using \usepackage[bottom]{footmisc} to lay footnotes at the bottom of the page. Frequently, I can see a gap (the orange box) between the text body and the footnote area, as you see below, on page 2 of the working example. I want to fill it with the body text of the top of page 3. How can I do this? Such as putting footnotes on the next page or breaking footnotes across pages? (\interfootnotelinepenalty=0 does not seem to work.) FYI, I use MS Windows 10 x64, texlive 2025, lualatex. Here is a working example. % !TeX encoding = UTF-8 % !TeX spellcheck = en_US % !TeX TS-program = lualatex \documentclass[letterpaper,12pt]{article} \usepackage[USenglish]{babel} \babelfont{rm}{Noto Serif} \usepackage[bottom]{footmisc} \usepackage{lipsum} \usepackage{setspace} %\interfootnotelinepenalty=0 \begin{document} \doublespacing \lipsum[1]\footnote{\lipsum[2]} \lipsum[3]\footnote{\lipsum[4]} \lipsum[5]\footnote{\lipsum[6]} \lipsum[7]\footnote{\lipsum[8]} \end{document}

  • Printing out an image with an exact dimensions in letter size paper
    by UberMorlock80 on November 17, 2025 at 1:37 am

    I need to print out the image below with exact size in letter size paper. I know real life sizing isn’t proper word, I have no clue how to describe it. For instance: I want the image to be 15cm by 15cm when I print it out so that students can measure those same 15cmx15cm with their ruler and then cut it out. I used the following code: \usepackage[paperheight=11in,paperwidth=8.5in,bindingoffset=0in, left=1.5cm,right=1.5cm, top=0.7in,bottom=1.5cm,headsep=.5\baselineskip]{geometry} and \includegraphics[width=15cm,height=15cm,keepaspectratio]{picture1} but it doesn't work properly. There is an error of a few millimeters. Any help please? Thank you in advance.

  • Unexpected small horizontal offset with sidewaysfigure
    by schtandard on November 16, 2025 at 11:10 pm

    When using sidewaysfigure the resulting float is not quite centered in the type area, there is a small horizontal (or in the figure's frame of reference vertical) offset. Why is it there and how can I avoid it? Here is an MWE showing the offset (~1 mm to the left). \documentclass{article} \usepackage{rotating} \usepackage{showframe} \newlength\outertextwidth \begin{document} \outertextwidth=\textwidth \begin{sidewaysfigure} \color{orange} \rule{\textwidth}{\outertextwidth} \end{sidewaysfigure} \end{document}

  • help with 3D Surface plot TikZ
    by Mark Roelands on November 16, 2025 at 9:20 pm

    Can someone please help with coding the surface plot for $\sqrt{(x - 1)^2 + y^2} + \sqrt{(x + 1)^2 + y^2} - 4 = -|z|$ in TikZ for my article in LateX? I have been trying, but can't seem to manage it. This is what I have so far, it only plots one half of the surface on a square but not within the disk: \begin{tikzpicture} \begin{axis}[ hide axis, colormap/cool, ] \addplot3[ mesh, samples=50, domain=-2:2, ] {deg(sqrt((x - 1)^2 + y^2) + sqrt((x + 1)^2 +y^2) - 4)}; \end{axis} \end{tikzpicture}

  • tikz-shading - shading is non preserved under rotation, why?
    by mario on November 16, 2025 at 9:05 pm

    I need help with the following. As you may see, the shading effect turns out differently, if I rotate the figure. I have no idea why, and I am unable to fix it. Also, I would like to delay - so to speak - the shading effect, as to have a larger unshaded area by the vertices. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shadings} \begin{document} \begin{tikzpicture} \shadedraw[lower left =red, upper left=blue, lower right=yellow, upper right=green, rotate around={0:(0,0)}] (0,0) rectangle (4,4); \end{tikzpicture} \newline \begin{tikzpicture} \shadedraw[lower left =red, upper left=blue, lower right=yellow, upper right=green, rotate around={45:(0,-4)}] (0,6) rectangle (4,10); \end{tikzpicture} \end{document}

  • Vertical spacing between a line of text and an equation not being affected by control parameters
    by keith77777 on November 16, 2025 at 6:54 pm

    Parameters like \abovedisplayskip and fptop are having no effect on vertical spacing. \documentclass[% openright, % doublepage cleaning ends up right side 11pt, % font size ]{book}% \usepackage[fleqn]{amsmath}% \usepackage{amssymb}% \usepackage{amsthm}% \usepackage[english]{babel}% \usepackage{exscale} \usepackage[paperheight=240mm,paperwidth=175mm,bindingoffset=12.5mm,showcrop]{geometry} \usepackage[a4,cam,center]{crop} % \usepackage{layout} \usepackage{graphicx}% \usepackage{etoolbox} \usepackage{mathtools}% \usepackage{float} \usepackage{setspace} \usepackage{hyperref}% \usepackage{fancyhdr,lastpage,fancyref}% \setlength{\parskip}{6pt} \setlength{\parindent}{0pt} % none of the following seven parameters affect the vertical spacing \setlength{\abovedisplayskip}{100pt plus 0.5pt minus 0.5pt}% \setlength{\belowdisplayskip}{100pt plus 0.5pt minus 0.5pt}% \setlength{\textfloatsep}{100pt plus 2pt minus 4pt} \setlength{\floatsep}{100pt plus 2pt minus 4pt} \makeatletter \setlength{\@fptop}{50pt} \setlength{\@fpsep}{50pt} \setlength{\@fpbot}{50pt} \makeatother \begin{document} A line of ordinary text running across page. A second line of ordinary text running across page. My particular interest is in the space between this line of text and \\[2pt] the first equation below. $(x+3)(x-2)=0$ $(x+4)(x-5)=0$ $(x+6)(x-4)=0$ \end{document}

  • Wath ar you dink haw lits atj jilgs [closed]
    by Sohail Kbiri alaoui on November 16, 2025 at 3:41 pm

    م. المنطق تم التعليق6 hours ago أضف تعليق 1 استخدم فقط otherlanguage*. LaTeX لا يقرأ اللغة الصينية أو اليونانية، أنت المسؤول عن إخباره بذلك. \documentclass[fontset=none,nofonts]{ctexart} \usepackage{babel} \usepackage{multicol} \babelprovide{greek} \babelfont[greek]{rm}[ Extension=.otf, Scale=MatchUppercase, UprightFont=*, ItalicFont=*It, BoldFont=*Bold, BoldItalicFont=*BoldIt, ]{GFSArtemisia.otf} \setCJKmainfont{PingFang SC} \setCJKsansfont{PingFang SC} \setCJKmonofont{PingFang SC} %\title{测试} \begin{document} %\maketitle

  • Character overlay
    by Nikulok on November 16, 2025 at 11:11 am

    I am using eforms. In the \textField field, characters that don't fit within the field's size are truncated. How can I make them extend beyond the field's boundaries rather than being truncated? This is necessary so that if someone's last name is too long and doesn't fit within the specified boundaries, those characters aren't lost but overlaid on other characters so they can be read. Maybe it is possible to use \FfMultiline to make characters that don't fit visible? Example: \documentclass{book} \usepackage {eforms} \begin{document} \textField[\W1\BC{0 0 0}]{uni}{2cm}{12bp} \textField[\W1\BC{0 0 0}]{ksk}{2cm}{12bp} \end{document}

  • Decrease vertical space before and after equation environments
    by Akira on November 16, 2025 at 10:45 am

    I have a tex file \documentclass{beamer} \setlength{\parskip}{0.5\baselineskip} \begin{document} \begin{frame} \frametitle{Main result} If A is an operator, then the following statement is true If A is an operator, then the following statement is true \begin{equation} A = B . \end{equation} If A is an operator, then the following statement is true \[ A = B \] If A is an operator, then the following statement is true \end{frame} \end{document} Could you explain how to decrease vertical space before and after the environments \[...\] and \begin{equation}...\end{equation}? Update: From this thread, I have tried \setlength{\abovedisplayskip}{5pt} \setlength{\belowdisplayskip}{50pt} \setlength{\abovedisplayshortskip}{2pt} \setlength{\belowdisplayshortskip}{2pt} However, they do not have any effect.

  • Text running into right margin
    by albert on November 16, 2025 at 10:19 am

    When having the MWE: \documentclass{book} \usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry} \usepackage{hyperref} \newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}} \begin{document} The MATHJAX\+\_\+\+EXTENSIONS tag can be used to specify one or more Math\+Jax extension names that should be enabled during Math\+Jax rendering. For example for Math\+Jax version 2 (see \href{https://docs.mathjax.org/en/v2.7/tex.html}{\texttt{https\+://docs.\+mathjax.\+org/en/v2.\+7/tex.\+html}})\+: For example for Math\+Jax version 3 (see \href{https://docs.mathjax.org/en/v3.2/input/tex/extensions/}{\texttt{https\+://docs.\+mathjax.\+org/en/v3.\+2/input/tex/extensions/}})\+: For example for Math\+Jax version 4 (see \href{https://docs.mathjax.org/en/v4.0/input/tex/extensions/}{\texttt{https\+://docs.\+mathjax.\+org/en/v4.\+0/input/tex/extensions/}})\+: \end{document} we get as result: We see here that for the second and 3rd line the link is not wrapped like it is done for the first line and that the link runs into the right margin. (The order of loading hyperref and geometry doesn't make a difference) How can this problem be solved?

  • TikZ forest: how to add vertical dots to the 'top' or bottom of a directory tree?
    by Grass on November 16, 2025 at 9:51 am

    cfr provides us with a nice starting MWE to create directory trees: \documentclass[border=10pt,multi,tikz]{standalone} \usepackage[edges]{forest} \definecolor{folderbg}{RGB}{124,166,198} \definecolor{folderborder}{RGB}{110,144,169} \newlength\Size \setlength\Size{4pt} \tikzset{% folder/.pic={% \filldraw [draw=folderborder, top color=folderbg!50, bottom color=folderbg] (-1.05*\Size,0.2\Size+5pt) rectangle ++(.75*\Size,-0.2\Size-5pt); \filldraw [draw=folderborder, top color=folderbg!50, bottom color=folderbg] (-1.15*\Size,-\Size) rectangle (1.15*\Size,\Size); }, file/.pic={% \filldraw [draw=folderborder, top color=folderbg!5, bottom color=folderbg!10] (-\Size,.4*\Size+5pt) coordinate (a) |- (\Size,-1.2*\Size) coordinate (b) -- ++(0,1.6*\Size) coordinate (c) -- ++(-5pt,5pt) coordinate (d) -- cycle (d) |- (c) ; }, } \forestset{% declare autowrapped toks={pic me}{}, declare boolean register={pic root}, pic root=0, pic dir tree/.style={% for tree={% folder, font=\ttfamily, grow'=0, }, before typesetting nodes={% for tree={% edge label+/.option={pic me}, }, if pic root={ tikz+={ \pic at ([xshift=\Size].west) {folder}; }, align={l} }{}, }, }, pic me set/.code n args=2{% \forestset{% #1/.style={% inner xsep=2\Size, pic me={pic {#2}}, } } }, pic me set={directory}{folder}, pic me set={file}{file}, } \begin{document} \begin{forest} pic dir tree, pic root, for tree={% folder icons by default; override using file for file icons directory, }, [system [config ] [lib [Access ] [Plugin ] [file.txt, file ] ] ] \end{forest} \end{document} But how do I add vdots at the top of the directory tree --- more precisely, right below [system] --- and at the bottom of the directory tree? Here are the respective illustrations of the results I wish to achieve: I tried looking at edge path, the names of the forest nodes, and forest anchors in forest's documentation, but I couldn't get anywhere close to the results I want. Edit (Ref: cfr’s first comment I want something like this: I tried \begin{forest} pic dir tree, pic root, for tree={% folder icons by default; override using file for file icons directory, }, [system,extensible edge [config ] [lib, extend [file.txt, file, extend ] [file, file] ] ] \end{forest} with cfr’s MWE but it gave (Ref: cfr’s second comment When we use for tree={edge=rounded corners}, as in the following MWE, we have extraneous white space, which the removal of |- !u.child anchor seems to solve: \documentclass[border=10pt,multi,tikz]{standalone} % ateb: https://tex.stackexchange.com/a/754955/ \usepackage[edges]{forest} \definecolor{folderbg}{RGB}{124,166,198} \definecolor{folderborder}{RGB}{110,144,169} \newlength\Size \setlength\Size{4pt} \tikzset{% folder/.pic={% \filldraw [draw=folderborder, top color=folderbg!50, bottom color=folderbg, sharp corners] (-1.05*\Size,0.2\Size+5pt) rectangle ++(.75*\Size,-0.2\Size-5pt); \filldraw [draw=folderborder, top color=folderbg!50, bottom color=folderbg, sharp corners] (-1.15*\Size,-\Size) rectangle (1.15*\Size,\Size); }, file/.pic={% \filldraw [draw=folderborder, top color=folderbg!5, bottom color=folderbg!10, sharp corners] (-\Size,.4*\Size+5pt) coordinate (a) |- (\Size,-1.2*\Size) coordinate (b) -- ++(0,1.6*\Size) coordinate (c) -- ++(-5pt,5pt) coordinate (d) -- cycle (d) |- (c) ; }, } \forestset{% declare autowrapped toks={pic me}{}, declare boolean register={pic root}, pic root=0, pic dir tree/.style={% for tree={% folder, font=\ttfamily, grow'=0, }, before typesetting nodes={% for tree={% edge label+/.option={pic me}, edge=rounded corners, }, if pic root={ tikz+={ \pic at ([xshift=\Size].west) {folder}; }, align={l} }{}, }, }, pic me set/.code n args=2{% \forestset{% #1/.style={% inner xsep=2\Size, pic me={pic {#2}}, } } }, pic me set={directory}{folder}, pic me set={file}{file}, declare toks={real siblings}{}, extensible edge/.style={% delay={% prepend={[\strut, delay={% do dynamics, temptoksa=, for following siblings={% if temptoksa={}{}{% temptoksa+={,}, }, temptoksa+/.option=name, }, real siblings/.register=temptoksa, folder, grow'=0, before computing xy={% l'=0pt, s'=-15pt, }, delay n=2{% split option={real siblings}{,}{append}, }, }, edge path'={% (!u.parent anchor) ++(\foresteregister{folder indent},0pt) -- ++(0pt,-5pt) edge [dotted] ([xshift=\foresteregister{folder indent}].parent anchor) }, ]}, }, }, extend/.style={% delay={% append={[\strut, folder, grow'=0, before computing xy={% l'=0pt, s'=-15pt, }, if n children=0{% before drawing tree={% delay={% y/.min={>O{y}}{parent,descendants}, }, }, }{}, edge path'={% (!uu.parent anchor |- !u.child anchor) ++(\foresteregister{folder indent},0pt) coordinate (a) -- ([yshift=15pt].parent anchor -| a) edge [dotted] (.parent anchor -| a) }, ]}, }, }, } \begin{document} \begin{forest} pic dir tree, pic root, for tree={% folder icons by default; override using file for file icons directory, }, [system [config ] [lib [Access ] [Plugin ] [file.txt, file ] ] ] \end{forest} \begin{forest} pic dir tree, pic root, for tree={% folder icons by default; override using file for file icons directory, }, [system, extensible edge, [config ] [lib [Access ] [Plugin ] [file.txt, file ] ] ] \end{forest} \begin{forest} pic dir tree, pic root, for tree={% folder icons by default; override using file for file icons directory, }, [system [config ] [lib, extend [Access ] [Plugin ] [file.txt, file,extend ] ] ] \end{forest} \begin{forest} pic dir tree, pic root, for tree={% folder icons by default; override using file for file icons directory, }, [system,extensible edge [config ] [lib, extend [Access ] [Plugin ] [file.txt, file, extend ] ] ] \end{forest} \end{document}

  • Quantum gate on multiple wires
    by Dhawal Patil on November 16, 2025 at 6:36 am

    What is wrong with this code? How can I get the following output? I am able to compile the following code \documentclass{article} \usepackage{amsmath,quantikz} \begin{document} \begin{quantikz} \gate[2,disable auto height]{H} & \phase{ $ \alpha $ } \\ \qz & \\ \ctrl{-1}\wire[u][q] & \\ \end{quantikz} and get the following output but the compiler returns several errors. ! Missing } inserted. <inserted text> } l.8 \end {quantikz} ?

  • Long words can't be line-broken in a right way when invoking babel
    by M. Logic on November 16, 2025 at 4:45 am

    A minimal working sample is as follows. \documentclass{ctexart} \usepackage{babel}% \babelprovide{greek} \babelfont[greek]{rm}[Scale=MatchUppercase, ItalicFont={GFSArtemisiaIt.otf}, BoldFont={GFSArtemisiaBold.otf}, BoldItalicFont={GFSArtemisiaBoldIt.otf}]{GFSArtemisia.otf} \usepackage[utf8, ugly, backend=biber, style=caspervector-ay, sorting=cenyt]{biblatex} \addbibresource{\jobname.bib} \begin{filecontents*}[overwrite]{\jobname.bib} @collection{Msfz2014, editor = {刘查理 and 风格林}, language = {chinese}, location = {北京}, publisher = {科学出版社}, title = {长城}, year = {2014}} @proceedings{Ttom1965, editor = {J. W. Green and L. Stone and A. Bust}, location = {New York and Oxford}, publisher = {Oxford University Press}, title = {History of \LaTeX{}}, year = {1999}} \end{filecontents*} \title{测试} \author{佚名} \begin{document} \maketitle \LaTeX{}(音译“拉泰赫”)是一种基于\TeX{}的排版系统,由美国计算机学家莱斯利·兰伯特(Leslie Lamport)在20世纪80年代初期开发------利用这种格式------即使使用者没有排版和程序设计的知识也可以充分发挥由TeX所提供的强大功能。 Longlongwords Longlongwords Longlongwords Longlongwords Longlongwords Longlongwords test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test Some texts \foreignlanguage{greek}{φιλοσοφία} \foreignlanguage{english}{% \printbibliography[title = {参考文献},heading = bibintoc]% } \nocite{*} \end{document} As you see, I'd like to add Greek texts into the article, so I invoke babel, while long words can't be line broken in a right way at the moment. To make eds, trans and so on work well, I add \foreinlaguage{english}{} around \printbibliography. When I add english option before babel, long words could be line-broken in a right way. But it brings new problems: (1) the main language is Chinese not English; (2) the date format becomes English while it should be Chinese; (3) eds, trans and so on don't work well. So my question is Is there any way to make long words be line-broken in a right way when invoking babel in the ctexart document class? Don't changing the Chinese date format is also necessary (in fact, don't change some other Chinese formats too), and make eds, trans and so on work well.

  • Large table does not fit on page
    by Saïd Maanan on November 15, 2025 at 7:36 pm

    I am typesetting a table in landscape mode using the pdflscape package. The table has four columns, one of which contains long mathematical expressions. I want the table to fit properly on the landscape page, while the math remaining readable (no extreme shrinking), and without using tabularx or resizebox (because they produce unreadably small text in my case). However, even when specifying column widths manually, the table still exceeds the page width. Here is my script: \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb,amsfonts,amsthm,enumitem} \usepackage[margin=2cm]{geometry} \usepackage{graphicx} \usepackage{setspace} \usepackage{pdflscape} \onehalfspacing \DeclareMathOperator{\Var}{Var} \DeclareMathOperator{\Cov}{Cov} \DeclareMathOperator{\sgn}{sgn} \title{text} \author{names} \date{text} \begin{document} %\maketitle \begin{landscape} \begin{table}[!htbp] \centering \caption{RNML Penalty Structure Across Spatial Econometric Models} \label{tab:rnml_penalties} \small \renewcommand{\arraystretch}{1.1} \begin{tabular}{p{5cm} p{5cm} p{12cm} p{5cm}} \hline \textbf{Model} & \textbf{Spatial Dependence Type} & \textbf{RNML Adaptive Penalty Term (Spatial Component)} & \textbf{Nesting / Relation} \\ \hline \textbf{SLX} (Spatial Lag of X) & No endogenous or error feedback & No spatial autoregressive term; RNML reduces to the standard non-spatial form: \[ \frac{k}{2}\ln(n) + \ln\Gamma\!\left(\tfrac{n}{2}\right) \] & Baseline model; special case of SDM or SDEM when $\rho=\lambda=0$. \\ \textbf{SAR} (Spatial Autoregressive Model) & Endogenous spatial lag of the dependent variable & \[ \frac{1}{2}\ln\!\left( \operatorname{tr}\!\Bigl[ (\mathbf{A}^{-1}(\hat{\rho})\mathbf{W})^2 \Bigr] + \frac{1}{\hat{\sigma}^2} \hat{\boldsymbol{\beta}}^{\top}\mathbf{X}^{\top}\mathbf{W}^{\top}\mathbf{W}\mathbf{X}\hat{\boldsymbol{\beta}} \right) \] & Special case of SAC when $\lambda=0$. \\ \textbf{SEM} (Spatial Error Model) & Spatial dependence in the error term & \[ \frac{1}{2}\ln\!\left( \operatorname{tr}\!\Bigl[ (\mathbf{B}^{-1}(\hat{\lambda})\mathbf{W})^2 \Bigr] \right) \] & Special case of SAC when $\rho=0$. \\ \textbf{SDM} (Spatial Durbin Model) & Endogenous and exogenous spatial lags & \[ \frac{1}{2}\ln\!\left( \operatorname{tr}\!\Bigl[ (\mathbf{A}^{-1}(\hat{\rho})\mathbf{W})^2 \Bigr] + \frac{1}{\hat{\sigma}^2} \begin{bmatrix} \hat{\boldsymbol{\beta}} \\[0.2em] \hat{\boldsymbol{\theta}} \end{bmatrix}^{\!\top} \mathbf{X}_{+}^{\top}\mathbf{W}^{\top}\mathbf{W}\mathbf{X}_{+} \begin{bmatrix} \hat{\boldsymbol{\beta}} \\[0.2em] \hat{\boldsymbol{\theta}} \end{bmatrix} \right) \] & Reduces to SAR when $\boldsymbol{\theta}=\mathbf{0}$. \\ \textbf{SDEM} (Spatial Durbin Error Model) & Spatial lag in regressors and error autocorrelation & \[ \frac{1}{2}\ln\!\left( \operatorname{tr}\!\Bigl[ (\mathbf{B}^{-1}(\hat{\lambda})\mathbf{W})^2 \Bigr] + \frac{1}{\hat{\sigma}^2} \hat{\boldsymbol{\theta}}^{\top}\mathbf{X}^{\top}\mathbf{W}^{\top}\mathbf{W}\mathbf{X}\hat{\boldsymbol{\theta}} \right) \] & Reduces to SEM when $\boldsymbol{\theta}=\mathbf{0}$. \\ \textbf{SAC} (Spatial Autoregressive Combined Model) & Both lag and error spatial dependence & \[ \frac{1}{2}\ln\!\det\!\!\left( \begin{bmatrix} \mathcal{I}_{\rho\rho} & \mathcal{I}_{\rho\lambda} \\ \mathcal{I}_{\lambda\rho} & \mathcal{I}_{\lambda\lambda} \end{bmatrix}_{\!\!\hat{\phi}} \right) \] & Generalizes SAR and SEM; special case of GNS when $\boldsymbol{\theta}=\mathbf{0}$. \\ \textbf{GNS} (General Nesting Spatial Model) & Full specification with endogenous, exogenous, and error dependence & \[ \frac{1}{2}\ln\!\det\!\bigl( \mathcal{I}_{\phi\phi}(\hat{\phi}) \bigr) \] where $\mathcal{I}_{\phi\phi}$ includes all cross-derivatives for $(\rho,\lambda,\boldsymbol{\theta})$ & Most general model; nests SAR, SEM, SDM, SDEM, and SAC. \\ \hline \multicolumn{4}{l}{\footnotesize \textbf{Notes:} All models include the standard regression and variance penalty $\frac{k}{2}\ln(n) + \ln\Gamma\!\bigl(\tfrac{n}{2}\bigr)$. Here, $\mathbf{A}(\rho)=\mathbf{I}-\rho\mathbf{W}$ and $\mathbf{B}(\lambda)=\mathbf{I}-\lambda\mathbf{W}$. The matrix $\mathcal{I}_{\phi\phi}$ denotes the Fisher Information Matrix block corresponding to the spatial parameters, whose curvature determines the adaptive component of the RNML penalty. As $|\rho|$ or $|\lambda|$ increase, the curvature of the likelihood surface steepens, leading to a stronger penalty and preventing overfitting.} \end{tabular} \end{table} \end{landscape} \end{document} Even in landscape mode, the table width exceeds the page width: What is the recommended way to typeset such table so that: the table fits within the page width, the math stays readable (no global shrinking with resizebox), and I can still control wrapping in only one or two columns?

  • How to compile a kaobook offline
    by Eparoh on November 15, 2025 at 4:52 pm

    I want to use the kaobook template, which correctly compiles in Overleaf, but it is not compiling in my computer. I'm working in Windows with MiKTeX and Texmaker and when I use pdflatex on the file main.tex I get the following error: ! TeX capacity exceeded, sorry [parameter stack size=20000]. \use_none:nnnnnnn #1#2#3#4#5#6#7-> l.28 ..., again]{It's Mona Lisa again. \blindtext} Here is the full log in case more information is nedeed. And well, just to avoid creating another post, how can I perform the second and sixth order in the template page (the first one for the index and the one for the glossary)? \documentclass{kaobook} \begin{document} \begin{table} \footnotesize \caption{Commands to add a particular entry to the table of contents.} X \end{table} \end{document}

  • reledmac: Unexpected interaction between \linenum and \Xnumberonlyfirstinline?
    by Jeff Dodson on November 15, 2025 at 8:48 am

    I'm trying to use reledmac's \linenum command in conjunction with the \Xnumberonlyfirstinline command, and I'm seeing something that I think might be unexpected behavior (but I'm not sure). Here's a generic MWE to illustrate: % !TEX program = XeLaTeX \documentclass{book} \usepackage{geometry} \usepackage{enumitem} \usepackage{reledmac} \usepackage{polyglossia} \usepackage{fontspec} \geometry{letterpaper, margin=1in} \setlength{\parindent}{0pt} \lineation{page} \firstlinenum{1000000} \Xarrangement[A]{paragraph} \Xnotenumfont{\bfseries} \Xnumberonlyfirstinline[A] \Xtxtbeforenumber[A]{•} \Xsymlinenum[A]{|} \Xnolemmaseparator[A] \Xinplaceoflemmaseparator[A]{1pt} \Xlinerangeseparator[A]{/} \begin{document} \beginnumbering \pstart \setline{1}\startlock% This is my first line of text. I've never \setline{1}\edtext{*}{\Afootnote{although I've typed}}written any text before, so of course I'm rather proud of my effort. \endlock \setline{2}\startlock% This is my second line of text. I'm not as proud of it as I was my first line\setline{2}\edtext{*}{\Afootnote{although I'm still proud}}. I guess I have a rather short attention span.\setline{2}\edtext{*}{\linenum{|2|||3}\Afootnote{approx. 30 seconds}} \endlock \setline{3}\startlock% This is my third and final line of text. The critical reception of my earlier two lines was, shall we say, less than what I expected.\setline{3}\edtext{*}{\linenum{|3|||4}\Afootnote{Rotten Tomatoes gave me 1 star out of 100}} For that reason, I'm retiring from my writing career, and will create no more text. \endlock \pend \endnumbering \end{document} This produces the following output: The behavior that I'm unsure of is in regards to the note that reads "*approx. 30 seconds". Notice that the source code for that note uses the \linenum command to send a starting line number of 2 and an ending line number of 3 to that note. Similarly, for the note that reads "*Rotten Tomatoes gave me 1 star out of 100", I set the starting and ending line numbers to 3 and 4, respectively. With the final note, as I would expect, the note actually displays a range of 3/4, using the range separator of "/" that I configured. However, the "*approx. 30 seconds" note does not display the range "2/3" as I would expect. Instead, it remains paired up with the other note that occurs on line 2. What I would have expected is that reledmac would use the numbers passed by linenum to make decisions for the \Xnumberonlyfirstinline option. In that case, it should have broken my "2/3" note out such that it had its own line range label in the apparatus. So all in all, I would have expected to see notes in my apparatus for "1", "2", "2/3" and "3/4". So my questions are: (1) Is it expected behavior that \Xnumberonlyfirstinline would not use the line numbers from \Xlinenum to decide whether or not to subsume a note under a previous line number label? and (2) Is there an alternate way I can write this to make it give the expected "1", "2", "2/3" and "3/4" notes? If I pass a lemma to the first argument of \edtext that actually spans multiple lines (instead of passing "*"), the footnotes do, in fact, print out like I'd expect. However, due to some nesting of commands in my code, I was hoping to use the \linenum command to indicate where a lemma spans multiple lines instead. Notice also that if you comment out the \Xnumberonlyfirstinline call, "2/3" is printed as the line number range for the note in question. It's just that if you turn the option back on, that note is subsumed under the note that is labeled "2".

  • LaTex xcolor \definecolor renders the wrong colour in baposter. Resulting PDF does not have the correct colour
    by patapouf_ai on November 14, 2025 at 6:02 pm

    I wish to render colour RGB: 17, 41, 215 as the background of my baposter poster. To define the colour I use xcolor's: \definecolor{HQPosterB}{RGB}{17, 41, 215} The rendered colour is NOT RGB: 17, 41, 215. How do I know? I have a png file which is of that colour, as checked through many online tools. Here is the png file of colour RGB: 17, 41, 215: When I include it in the poster, there is a difference between the colour of the poster background which is set to HQPosterB and the colour of the included file. This issue happens not only for the background but also for text using that colour, in the example below, there is also text which is not visible due to being the same colour as the background. Hence why I believe it is an issue with \definecolor rather than anything else. It looks as follows: If you have any ideas, please help. The included hqb.png file is the first blue rectangle png image of the present post (i.e. https://i.sstatic.net/UmmBqh1E.png). Here is minimal example: \documentclass[paperwidth=36in,paperheight=48in]{baposter} % Adjust the font scale/size here %%%%%%%%%%%% \definecolor{HQPosterB}{RGB}{17, 41, 215} \begin{document} \begin{poster} { headerborder=closed, % Adds a border around the header of content boxes colspacing=1em, % Column spacing bgColorOne=HQPosterB, % Background color for the gradient on the left side of the poster bgColorTwo=white, % Background color for the gradient on the right side of the poster background=plain, %user or none or plain % <-- added borderColor=white, % Border color headerColorOne=white, % Background color for the header in the content boxes (left side) headerColorTwo=white, % Background color for the header in the content boxes (right side) headerFontColor=white, % Text color for the header text in the content boxes boxColorOne=white, % Background color of the content boxes textborder=roundedleft, % Format of the border around content boxes, can be: none, bars, coils, triangles, rectangle, rounded, roundedsmall, roundedright or faded eyecatcher=true, % Set to false for ignoring the left logo in the title and move the title left headerheight=0.15\textheight, % Height of the header headershape=roundedright, % Specify the rounded corner in the content box headers, can be: rectangle, small-rounded, roundedright, roundedleft or rounded headerfont=\Large\bf\textsc, % Large, bold and sans serif font in the headers of content boxes %textfont={\setlength{\parindent}{1.5em}}, % Uncomment for paragraph indentation linewidth=2pt, % Width of the border lines around content boxes } %---------------------------------------------------------------------------------------- % TITLE SECTION %---------------------------------------------------------------------------------------- % {\includegraphics[height=1.5cm]{hqb.png}} % First university/lab logo on the left {\color{HQPosterB} definecolor bug} % Poster title {} % Author names and institution {\includegraphics[height=3cm]{hqb.png}} Other info: I am compiling using pdfLatex on overleaf. But the same issue appeared with XeLatex and LuaLatex. ADDENDUM: It seems to be a problem specifically with baposter. The issue is not as bad with a normal latex article class as can be seen in the following where the background is the above HQPosterB colour: Here is the code for the article class: \documentclass{article} \usepackage{graphicx} \usepackage{xcolor,lipsum} \usepackage[margin=1.5cm]{geometry} \definecolor{HQPosterB}{RGB}{17, 41, 215} \pagecolor{HQPosterB} \begin{document} \lipsum[1][1-6] \section*{This is a demo text} \lipsum[2-8] \section*{Next demo text} \lipsum[8-13] \begin{figure} \centering \includegraphics[width=0.5\linewidth]{hqb.png} \caption{Enter Caption} \label{fig:placeholder} \end{figure} \end{document}

  • I need a \overbracket to illustrate different permutations (quantum field theory)
    by M. Lemelin on November 13, 2025 at 9:46 pm

    I have four fields illustrate by \phi_1,\phi_2,\phi_3 and \phi_4. And I need to illustrate the permutation between them with a \overbracket. For example, the permutation between 1 and 3 would look like this: But then I have to do 1-2 then 1-4 etc.. I search on the web and I could not find a way to do the overbracket by choosing the two numbers that represent the permutation while always showing the 4 fields. Any idea? Thank you in advance for your help.