Week
- Long document \inputting many small files that may \input smaller files, comprising "nested" sectionsby eigengrau on November 9, 2026 at 6:46 pm
I'm trying to develop and organize a long document about one overall (math and theoretical computer science, i.e., domain theory) subject, but with many subtopics that I need to individually focus my thinking on. And I can't really see the best way to "fit together" all the necessary subtopics until they've been mostly written. So I want to write each in its own topic.tex file, and eventually \input each such topic file in a more-or-less skeleton paper.tex file. But, as per title, after I get my thoughts better organized, a heirarchy may emerge such that some topic files end up \inputting others. And then, what I originally wrote as \sections in one topic file, may need to end up as \subsections (or \subsubsections, or \paragraphs, etc) when \inputted by another. Is there any way to sensibly accomplish that kind of thing? If we could reasonably do stuff like \begin{section}...\end{section}, then that kind of nesting could, at least in principle, be effectively recognized, e.g., if one such \begin{section}...\end(section} ends up being \inputted by another such section, then it would automatically be formatted as a \subsubsection, and numbered accordingly. But as it stands, seems like I'd have to do lots and lots of secretarial-type editing and re-editing to organize and re-organize (and re-re-organize) the topic files as the work progresses and I get better ideas about how all the little pieces should best fit together. Is there any latex approach that gives me the desired organizational flexibility with a minimum of secretarial editing overhead? I'd have thought this is a reasonably common kind of situation, but couldn't google a solution. Thanks.
- How to use the siunitx S column type (for tabular...) in a Jinja2 latex template?by Serge Ballesta on November 9, 2026 at 3:17 pm
I have to provide an automatic report containing financial data in tables. What I mean is that I want some data to display as 12,20 € and aligned on the decimal comma (comma is the decimal point in French locale...), even if it was passed 12.2 €. So far so good, I have found the S column type of the siunitx package which nicely handles the conversion and my source file looks like: ... \usepackage{tabularx} \usepackage[table]{xcolor} \usepackage{siunitx} \sisetup{ locale = FR, round-mode = places, round-precision = 2, round-pad = true } ... \begin{tabularx}{0.9\textwidth}{XSc} \rowcolor{black!10} \textbf{Description}&\textbf{Montant}&\textbf{Date} \\Cours à domicile&24.48 \euro{}&07/07/2026 \\Cours à domicile&40.8 \euro{}&08/07/2026 \end{tabularx} ... Things only go bad when I try to automate the task, with a Jinja2 template. Because the template table becomes: \begin{tabularx}{0.9\textwidth}{XSc} \rowcolor{black!10} \textbf{Description}&\textbf{Montant}&\textbf{Date} <! for presta in invoice.prestas !> \\<<presta.label>>&<<presta.amount>> \euro{}&<<presta.dat.strftime('%d/%m/%Y')>> <!endfor!> \end{tabularx} And I can no longer test the template as a valid latex document because the S type complains that it is given invalid values. What I have tried: manually replace the S with a r while developing the template, and only switch to S when the template is ready for production : it works but is err... manual use a variable containing XScor Xrc to allow an automatic switch. But then the tabular environment complains that it is given an invalid format string make all the conversions in the upside Python code and only use r column format. It surely works, but the S type looked so cute... I am now using the manual method 1, but wonder whether more clever ways could exist. So the question is : Is there a way to have a tex template for Jinja2 containing tables using the S column type from sunitx and have that template be a valid latex document?
- What's the position of LaTeX community on LLM-geneated software?by niru on November 9, 2026 at 9:16 am
Like many other software communities, the LaTeX world also has started witnessing software fully written by (or co-authored by) LLM models aka AI. I have some software that I developed for my personal use. I would like to distribute it. I generally prefer distributing my own software on forums that are decentralized and community-oriented, e.g., GNU Savannah, Puszcza, Codeberg, Sourcehut, git gay (as opposed to enterprises, e.g., Microsoft GitHub, Gitlab). Most of these decentralized software hosts have decided to not allow hosting LLM-generated software. In light of this, I wonder what the stance of LaTeX community is on this. There already are some packages written using LLM on CTAN and the number might soon increase. How should this be looked at? Note: I am aware that this is neither directly related to the TeX SE website, nor to its meta, but since it is primarily about best practices of (La)TeX development, I think this is a good place for this discussion. If it is still found to be not suitable for the website, I will delete it.
- Bidirectional hyperlinks between exercises and figures in LaTeXby Sebastiano on November 8, 2026 at 10:12 pm
I have the following minimal working example: \documentclass[12pt,a4paper]{amsart} \usepackage{tikz} \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \newtheorem{Es}{Esercizio} \begin{document} \section{Esercizi} \begin{Es} My solution Link to figure \end{Es} \bigskip \begin{Es} My solution \end{Es} \newpage \section*{Figure} %%%%%%%%%%%%%%%%% Add automatically link to exercise \begin{figure}[htbp] \centering \begin{tikzpicture}[scale=1.25] \draw[->] (-1.8,0) -- (1.8,0) node[below right] {$x$}; \draw[->] (0,-1.8) -- (0,1.8) node[below left] {$y$}; \draw[gray, thick] (0,0) circle (1); \draw[gray,very thick] (0,0) circle (1.5); \fill (0,0) circle (0.025); \node[below left] at (0,0) {$O$}; \draw[blue, very thick, domain=45:225, samples=100] plot ({1.5*cos(\x)},{1.5*sin(\x)}); \draw[blue, fill=white, very thick] ({1.5*cos(45)},{1.5*sin(45)}) circle (0.06); \draw[blue, fill=white, very thick] ({1.5*cos(225)},{1.5*sin(225)}) circle (0.06); \draw[dashed, gray] (0,0) -- ({1.6*cos(45)},{1.6*sin(45)}); \draw[dashed, gray] (0,0) -- ({1.6*cos(225)},{1.6*sin(225)}); \node[above right] at ({1.5*cos(45)},{1.5*sin(45)}) {$\frac{\pi}{4}$}; \node[below left] at ({1.5*cos(225)},{1.5*sin(225)}) {$\frac{5\pi}{4}$}; \end{tikzpicture} \caption{Soluzioni della disequazione $\sin x-\cos x>0$.} \label{fig:soluzioni_seno_coseno} \end{figure} \end{document} How can I modify this example to automatically create bidirectional hyperlinks between each Es environment and its corresponding TikZ figure, so that clicking at the end of an exercise takes me to its figure and clicking at the end of the figure takes me back to the exercise, without manually specifying exercise numbers, figure numbers, \hypertarget, or \hyperlink? Here an example PDF in this link https://www.lorenzoroi.net/prelievi/ProblemiEsame3.pdf PS: In this question Hyperlinks from exercises to solutions and vice versa there are mdframed and tcolorbox which I don’t need for the exercises, and I’d like it to be, for example, ‘Exercise 1 (solution)’, and at the end, in a final section, the image relating to Exercise 1 which, when clicked, takes me to the solution to the exercise, just like the PDF file mentioned above. I'm looking for a very simple solution that doesn't include packages released after 2018
- pgfplots warning when input starts with equal digitsby jlab on November 8, 2026 at 2:28 pm
I'm plotting thermodynamics data with pgfplots. I get a strange warning when a value begin with 55. For example: \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 55.463, 0.018030 } ; gives Missing character: There is no . (U+002E) in font nullfont! Missing character: There is no 4 (U+0034) in font nullfont! Missing character: There is no 6 (U+0036) in font nullfont! Missing character: There is no 3 (U+0033) in font nullfont! If I replace 55.463 with 550 I get Missing character: There is no 0 (U+0030) in font nullfont! But there is no warning if 55.463 is replaced by 5.463 54.463 56.463 Any idea to explain this strange behaviour? Compilable example: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ ,xmin = {0} ,xmax = {0.02} ,ymin = {90} ,ymax = {300} ] %% Warnings: %% Missing character: There is no . (U+002E) in font nullfont! %% Missing character: There is no 4 (U+0034) in font nullfont! %% Missing character: There is no 6 (U+0036) in font nullfont! %% Missing character: There is no 3 (U+0033) in font nullfont! %% \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 55.463, 0.018030 } ; %% Replace 55.463 by 550: %% Missing character: There is no 0 (U+0030) in font nullfont! \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 550, 0.018030 } ; %% Replace 55.463 by 5.463: no warnings \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 5.463, 0.018030 } ; %% Replace 55.463 by 54.463: no warnings \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 54.463, 0.018030 } ; %% Replace 55.463 by 56.463: no warnings \addplot table[x index=3,y index=1, col sep=comma]{ 311.00, 100.00, 56.463, 0.018030 } ; \end{axis} \end{tikzpicture} \end{document} Bug report I filled a bug report for that: https://github.com/pgf-tikz/pgfplots/issues/532
- Stop furigana (ruby) from pushing down titles (with luatexja-ruby)by threedaymonk on November 7, 2026 at 2:12 pm
Titles that include furigana push the title down, making them look out of alignment when compared to adjacent titles without. In the example below, the "With furigana" title and column is significantly lower than the adjacent title and paragraph text. \documentclass[a4paper, landscape]{book} \usepackage{luatexja} \usepackage{luatexja-ruby} \usepackage{multicol} \usepackage[margin=20mm]{geometry} \usepackage{lipsum} \begin{document} %\topskip=40pt \pagestyle{plain} \begin{multicols*}{3} \raggedcolumns \section*{With furigana・\ruby{振}{ふ}り\ruby{仮名}{がな}\ruby{有}{あ}り} \columnbreak \section*{Without furigana・振り仮名無し} \lipsum[1-20] \end{multicols*} \end{document} What I'd like to do is to let the furigana bleed into the blank space above, whether that's the page margin or a gap after a preceding (sub(sub(sub))) section, so that the text of both titles is at the same height. I can partially solve this by setting \topskip to a large enough value (e.g. 40pt), but this results in the third column paragraph lines losing alignment and there's now a big gap at the top: What I want to achieve is the alignment of columns 2 and 3 from the first image, and the alignment of columns 1 and 2 from the second, and no additional whitespace at the top. Is this possible?
- Punctuation with \textcitesby KeithB on November 7, 2026 at 11:25 am
I am using code like \textcites[57]{Faith:peasantry}[106--15]{Faith:moral} with this configuration: \usepackage[bibencoding=utf8,doi=false,isbn=false,url=false,eprint=false,dashed=true,uniquename=false,style=authoryear-comp,sorting=nyt,backref=true,useprefix=true,hyperref,backend=biber,urldate=long]{biblatex} The result looks like: Faith (1997, 57, 2020, 106–15) when I would like a semicolon: Faith (1997, 57; 2020, 106–15) I have tried \DeclareDelimFormat[textcite,textcites]{compcitedelim}{\addsemicolon\space} \DeclareDelimFormat[textcite,textcites]{multicitedelim}{\addsemicolon\space} but it's having no effect. Any suggestions? MWE: \documentclass[12pt,a4paper]{article} \usepackage[bibencoding=utf8,doi=false,isbn=false,url=false,eprint=false,dashed=true,uniquename=false,style=authoryear-comp,sorting=nyt,backref=true,useprefix=true,backend=biber,urldate=long]{biblatex} \bibliography{biblatex-examples} \begin{document} \textcites[57]{knuth:ct:c}[106--15]{knuth:ct:related}. \end{document} giving: Knuth (1986, p. 57, 1984–1986, pp. 106–15).
- Adding double line breaks into LaTeX code(!) inside align environment [duplicate]by kb70145613 on November 7, 2026 at 8:33 am
This is not a question about adding breaks into the output document. Suppose that you have a pretty long equation code inside align environment: \begin{align} &\Omega(\funTarget\funTarget\funTarget\NatTrans_A \circ \funTarget\funTarget\NatTrans_A \circ (1 + \funTarget\NatTrans_A) \circ \NatTrans_A)\\ =& ... \end{align} In most programming/markup languages, I would be able to write it as: \begin{align} & \Omega( \funTarget\funTarget\funTarget\NatTrans_A \circ \funTarget\funTarget\NatTrans_A ( 1 + \circ \funTarget\NatTrans_A ) \circ \NatTrans_A )\\ =& ... \end{align} It would make it much more readable and easier to edit. But LaTeX fails with an error when dealing with this kind of line breaks: Missing $ inserted. I guess that double line breaks have some special meaning inside LaTeX. Is there a way to temporarily disable this meaning and let line breaks be normal characters which could be used to organize the code? Or is this behavior is embedded deeply into LaTeX and I should just get used to unreadable code when equations get longer? I was looking into other questions and most of them try to add line breaks into the output document instead. If there is a way to adjust math environments to automatically replace sequences of line breaks with a singular line break, it would be great.
- \edef with incomplete expansionby Elayson Abreu on November 6, 2026 at 7:00 pm
I have a macro that removes whitespace from a set of tokens, called \removespaces. When I compile the code below, 1_2_3_ becomes 123 (where the underscore represents a whitespace character). In other words, \z=macro: ->123. And this is the desired result. \def\removespaces#1 {\if\relax\detokenize{#1}\relax\else#1\expandafter\removespaces\fi} \edef\z{\removespaces 1 2 3 {} } \show\z \bye The code below, in turn, produces the result \z=macro: ->1 2 3 {} . \def\removespaces#1 {\if\relax\detokenize{#1}\relax\else#1\expandafter\removespaces\fi} \def\y#1{\removespaces#1 {} } \edef\z{\y{ 1 2 3 }} \show\z \bye So my question is, why didn't a complete expansion occur at \z?
- Print page numbers from one run of a document as rules in a later run?by modallyFragile on November 6, 2026 at 11:27 am
I have a custom class for making lecture handouts. It has an environment notes and an option notes; when the option is enabled, everything in the environment is printed in greyed-out text. When it is not, the environment is ignored completely. I use this to prepare my own, 'instructors version' of the handout for each lecture -- I write just one document, then I compile without the option (and print many copies for the students), then recompile with the option (and print one copy for me). During lectures I often refer to our place in the handout. Before I used the greyed-out notes I used to do this by page number. But of course, with the greyed-out notes, my copy of the handout has different numbering to the student's. I can use section and paragraph numbers, but it's not the same. Goal: I would like to somehow save the locations of the page-breaks in the students (non-noted) compilation run, and print these, perhaps as margin notes or cross-pages rules, in my notated compilation run (e.g. similar to the cross-page rules used for page-numbering here). I know how to do all the typesetting and I can play around with the format myself, but I don't know where to start with saving and printing the external numbers. I imagine the answer has something to do with the aux file, zref, or maybe the new marks interface? Ideally I would also like to be able to compile with notes more than once, and not lose the existing data on the student's page numbering, but I recognise that might be a lot of extra work for little benefit. Any solution should also ideally account for the possibility that I compile with notes first, and so there is no data on the students' numbering -- in this case perhaps just print a question mark or something. Here's an MWE. \begin{filecontents}[overwrite]{handout.cls} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{handout-base} % Option for displaying notes \newif\ifnotes \notesfalse \DeclareOption{notes}{% \typeout{Option `notes' passed, notes will be displayed. Define macro `noteformat' to change formatting.} \notestrue% } \DeclareOption*{% \PassOptionsToClass{\CurrentOption}{article}% } \ProcessOptions\relax \LoadClass{article} \RequirePackage{xcolor} % Environment for writing notes \NewDocumentEnvironment{notes}{ +b }% {\ifnotes\bgroup\color{gray}#1\fi}% {\ifnotes\egroup\fi} % Cross-page rule counter printer for the page number \newcommand*\arabicpagerule[1]{\expandafter\@arabicpagerule\csname c@#1\endcsname} \newcommand*\@arabicpagerule[1]{ \begin{center} \hrulefill\raisebox{-0.5ex}{\the#1}\hrulefill\relax \end{center} } \end{filecontents} \documentclass% % [notes] % Uncomment and recompile for notated version {handout} \title{On the importance of \LaTeX\ in academia} \date{}\author{} \usepackage{lipsum} \begin{document} \maketitle \section{\TeX, the earlier days} \lipsum[1-2] \begin{notes}\lipsum[3]\end{notes} \section{Lamport's genius} \lipsum[5-6] \end{document} Which delivers: And my desired output after two runs, without then with notes, is something like this: Any help gratefully received. TIA.
- Is there a way, using Pandoc, to set the format of \today (Markdown to PDF)?by gjmb on November 6, 2026 at 1:01 am
I'm trying to set the format of the date field using Pandoc to convert .MD to .PDF. I use the xelatex engine to convert. Here is a MWE: --- title: "foo" author: Me date: \today --- What this prints as the date: November 5th, 2026. What I want: to be able to set it to things like 2026-11-05. What I've tried: Loading the isodate package (-\usepackage[USenglish]{isodate}). This didn't seem to do anything. Setting options as described here. I included every variant of -M date="`date "+%B%e, %Y"`" listed, but all this seemed to was to print that string of code in place of \today. What I have not tried (because it seems unnecessarily complicated) is making a Lua filter. I admittedly do not know that much about Pandoc or LaTeX. I know LaTeX and Markdown syntax, but my knowledge of the backend of these things is limited. I never learned raw TeX, and I may be missing something obvious. Is there some way to just format the input \today so that it is in, say, ISO?
- Alignment of cells in a simple tableby Ahmed Musa on November 6, 2026 at 12:38 am
Why can are the cell alignment reversed in this code? \documentclass{article} \usepackage{array} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \centering \begin{tabular}{| p{0.45\textwidth} | b{0.45\textwidth} |} \hline \textbf{Top-Aligned Column (p)} & \textbf{Bottom-Aligned Column (b)} \\ \hline This is a multi-line paragraph. Because we used the \textbf{p} specifier here, this column's content anchors to the top of the cell. & This is another multi-line paragraph. Because we used the \textbf{b} specifier here, this column's content anchors to the bottom of the cell. \\ \hline \end{tabular} \end{table} \end{document}
- Can I automatically record the alt text of images?by Teepeemm on November 5, 2026 at 7:17 pm
To support digital accessibility, my graduate school is requiring students' theses and dissertations to include an appendix that contains the alt-text, and long description when applicable, for all visual elements. I can somewhat help this process by creating commands for any alt text and description as follows: \DocumentMetadata{ tagging=on, lang=en-US, pdfstandard=ua-2 } \documentclass{article} \title{Title} \usepackage{graphicx} \begin{document} Some text that comes before a float. \begin{figure} \centering \gdef\duckAlt{A rubber duck with a crown on its head and a pizza.} \includegraphics[alt={\duckAlt},width=.5\textwidth]{example-image-duck} \caption{King duck}\label{fig:duck} \end{figure} Some text that comes between floats. \begin{figure} \centering % \gdef\gardnerAlt{Gardner's Conceptual Framework of Doctoral Student Development outlines the progressive phases of identity development that doctoral students experience, highlighting key challenges, sources of support, and potential points of attrition at each state.} % \gdef\gardnerDesc{% This is a diagram of Gardner's Conceptual Framework of Doctoral Student Development. It includes challenges and supports at three different phases. It also shows that students may depart their program at any phase. There is indication of the overlapping nature of Phase 1 to Phase 2 and Phase 2 to Phase 3. \begin{itemize} \item Phase 1 Challenges include admission, coursework begins, learning balance, transition from undergraduate to graduate expectations. \item Phase 1 Supports include orientation and initial relationships formed with peers and faculty. \item Phase 2 Challenges include coursework, examinations, changing role. \item Phase 2 Supports include peer relationships and advisor relationships. \item Phase 3 Challenges include candidacy, dissertation work, job search, and transition to professional role. \item Phase 3 supports include writing groups, advisor, and mentors. \end{itemize}} % \includegraphics[alt={\gardnerAlt},width=.77\textwidth]{Gardner} % \caption{Gardner's Conceptual Framework of Doctoral Student Development}\label{fig:gardner} % \end{figure} Some text that comes after a float. \clearpage \appendix \section*{Alt texts and figure descriptions} \paragraph{Figure \ref{fig:duck}:} \duckAlt \paragraph{Figure \ref{fig:gardner}:} \gardnerAlt \gardnerDesc \end{document} But this seems a bit error prone. Would it be possible to automate this process so that alt= records everything and then another command prints them? And a custom longDesc environment attaches itself to that alt text as well? The Gardner figure:
- I cant compile my acros anymore, because of Helvetica and xcolor? [closed]by digior on November 5, 2026 at 2:00 am
I have been trying to fix this issue for multiple hours yet i cant find the solution. Prerequisites: I have multiple files which all use the same template. The older ones i am certain used to work, but now i cant compile them anymore. Since then i had to reinstall vscode (unable to open on ARM-macOS) via homebrew. Further I am using pdflatex and acros in a seperate file from the main.tex. I use fancyhdr, color acro and xspace Possible Culprit: Acros in general work, but once i include the \fontfamily{phv} everything seems to break. Breaking used to mean for my acros to be bold font, wrong color and a ! behind it. Additionally for \acro{test}[Test]{Test full} i would get test instead of Test as the resulting word in my pdf. After recompiling and restarting my systems, somehow i have gotten to a point where now the acros work but i get @<>@<>@@<>@<>@ next to my acro inside of the tableofcontent, when i use my acro inside of \section{...} for example. I also get an error now: \contentsline {section}{\numberline {B} Test Section \ac {test}\global \let @<>@<>@@<>@<>@\global \AC@clearlist {\global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax \global \let @<>@<>@\relax }\xspace }{6}{appendix.B}% \providecommand \tocbasic@end@toc@file {}\tocbasic@end@toc@file Is there an easier way to this? Where can i educate myself? working example \documentclass{scrartcl} \usepackage{acro} \DeclareAcronym{test}{short=short,long=a test acronym} \begin{document} \fontfamily{phv}\selectfont % not the best way to switch to sans serif, but matches the question \tableofcontents \section{Test Section \ac {test}} \end{document}
- Drawing 3D atomic orbitals in LaTeX [closed]by sstac on November 4, 2026 at 12:54 pm
I am trying to recreate a few graphics found on a paper: https://www.researchgate.net/publication/376028984_Visualizing_atomic_orbitals_of_an_electron_by_Latex The images I want to recreate: The author supposedly wanted to share the source code, but the link in abstract is (at least for me) not working and I wasn't able to reach out to the author, so I decided to try to recreate the graphics myself. Unfortunaley I don't have much experience in drawing in latex/tikz/pgfplots (I did some 3d graphics in tikz-3dplot tho, but that was some time ago) so I am interested if someone can guess or say how were such graphics created? Thanks in advance! Best, Stipe Edit: Narrowed the question, removed the whole bunch of images.
- How to make diagonal titles on a step tableby es2377 on November 4, 2026 at 12:07 pm
Here is a sideways step-table taking up a full page, with each title for part of a column and the corresponding row. The titles, however, will not rotate about the origin specified by \rotatebox, and crash into the columns. Ideally they would rotate about the last letter and all be parallel. \documentclass{memoir} \usepackage{array} \usepackage[figuresright]{rotating} \usepackage{xltabular} \begin{document} \newlength{\pwid} \setlength{\pwid}{0.15\textwidth} %Define width of parbox %Excess width leads to squashing the table. \newcommand{\rot}[1]{\rotatebox[origin=br]{-45}{#1}} %Define a rotation %\newcommand{\rpar}[1]{\rot{\parbox[c][0.05\linewidth]{\pwid}{ #1}}}% %Rotating the parbox itself leads to excess column heights. \newcommand{\rpar}[1]{\parbox[c][0.05\textwidth]{\pwid}{\raggedleft% \leftskip 0pt plus \hsize minus \hsize % %This justifies the text in the parbox % \leftskip 0pt plus 1fill minus 1fill %This appears to have no effect \rot{#1}}} \newcolumntype{Q}{>{\tiny\arraybackslash}>{\raggedright}X} %Define our main column \renewcommand{\arraystretch}{1.3} \begin{sidewaystable} \begin{xltabular}{\textwidth}{|r |Q|Q|Q| Q|Q|Q| Q|Q|Q| Q|Q|Q|} \multicolumn{13}{r}{\rpar{Amsterdam}} \\ \cline{13-13} \multicolumn{12}{r|}{\rpar{Birmingham}} & \\ \cline{12-13} \multicolumn{11}{r|}{\rpar{Cleveland}} && \\ \cline{11-13} \multicolumn{10}{r|}{\rpar{Donegal {(Ireland)}}} &&& \\ \cline{10-13} \multicolumn{9}{r|}{\rpar{Eboracum (Yorkshire)}} && Some info && \textbf{MORE!}\\ \cline{9-13} \multicolumn{8}{r|}{\rpar{Florence}} &&&&&\\ \cline{8-13} \multicolumn{7}{r|}{\rpar{Geneva \mbox{(Switzerland)}}} &&&&& &\\ \cline{7-13} \multicolumn{6}{r|}{\rpar{Hartlepool }} &&&&& &&\\ \cline{6-13} \multicolumn{5}{r|}{\rpar{Indianapolis}} &&&&& &&&\\ \cline{5-13} \multicolumn{4}{r|}{\rpar{Jakarta {(Indonesia)}}} &&& More info && &&&&\\ \cline{4-13} \multicolumn{3}{r|}{\rpar{Kaliningrad (Russia)}} &&&&& &&& And so on && \\ \cline{3-13} \multicolumn{2}{r|}{\rpar{Ladrillera \mbox{(Mexico)}}} &&&&& &&Perhaps a distance &&& & \\ \cline{2-13} \multicolumn{1}{r|}{\rpar{Mandanici \mbox{(Italy)}}} &&&&& &&&&& &&\\ \cline{2-13} \end{xltabular} \smallskip \caption[Short caption title]{A long caption title that spreads across the page, all the way across, on and on and on it goes, before finally spreading itself onto the next line.} \end{sidewaystable} \end{document} The \parbox for each title is needed to force the row-heights to be fixed. It needs its height specified and the and the rotation to be within it, as rotating the \parboxes leads to different row heights. (Edit: This is not strictly true, as the answer below shows.) The \parbox width cannot be too much, or it squashes the table to the right, as the last row . This answer on right-justified text in a \parbox suggests \leftskip 0pt plus \hsize minus \hsize, but it does not seem to work. Overleaf suggests 1fill as an adjustment, but it also does not work, while the LaTeX Wikibook has only a brief description. (I am well aware that some people hate vertical lines in tables, but for the purposes of this exercise, they help to show the columns.)
- Selectively remove some borders (those set with linkbordercolor and citebordercolor) when using hyperref with pdfborder setting in beamerclassby canIchangethis on November 3, 2026 at 5:07 pm
When using hyperref I want boxes, not colorlinks in my Beamer presentation. However, not for all links, not for internal links and not for citations, I want nothing just the default that there is a link when hoovering over, because currently, when setting them to the background color (white) one can still see the borders (ugly borders, when the links are in parentheses). See this screenshot on what bugs me: MWE of what bugs me: \documentclass[aspectratio=169,10pt,handout]{beamer} \usepackage[ngerman]{babel} % Document is german \usepackage{hyperref} % clickable URls and cross-references \hypersetup{ breaklinks = true, pdfborder = 0 0 1, % boxes instead of 0 0 1 underlines or colorlinks linkbordercolor = white, % white internal links % BUT NONE DESIRED citebordercolor = white, % color of links to bibliography filebordercolor = red, % color of file links urlbordercolor = gray % color of external links } \title{beamer} \author{Author} \date{November 2026} \begin{document} \begin{frame}[label={Targetframe}] \maketitle \end{frame} \begin{frame}[label={Here}]{I want no borders at all (\hyperlink{Here}{here})} This is a (\hyperlink{Targetframe}{link in parentheses}). This is an \href{https://tex.stackexchange.com}{external link}. \end{frame} \end{document} As I removed the citations in the MWE (thus I am not showing the citebordercolor) so that I don't have to include BibLaTeX in the MWE, I provide this here. My desired output is: colored boxes around all links, except around internal links and citations. Those two link types should look like this, i.e., the outcome of NOT setting any hypersetup: So far, unsuccessfully, I tried: I can use this code https://tex.stackexchange.com/a/662960/114622 to remove the citation hyperlinks all together, which is not what I want. Plus, doesn't solve the other internal links problem. I tried to use some code from this answer, which disables all internal links (not what I want) https://tex.stackexchange.com/a/559760 I thought I could try to move to underlines instead so it wouldn't look that bad (using a variant of this question: https://tex.stackexchange.com/a/26085/114622). However, this colors links in beamer frame titles, which I really would not want either.
- How can I 'hide' character '#' in a macro definition?by katang on November 3, 2026 at 9:57 am
I want to make a macro with a \hyperref that uses '#' character which is legal for HTML, but not in a macro definition in LaTeX. How can I preserve hyperref functionality while processing the reference with LaTeX (the compiler throws the message "illegal garameter number in definition") \physicspanel{phys:VoltageLaw}{Voltage Law} { In classical electricity, \href{http://hyperphysics.phy-astr.gsu.edu/hbase/electric/ohmlaw.html#c2} {the voltage changes around any closed loop must sum to zero.} }
- Is subcaptionlite compatible with pdf tagging?by murray on November 3, 2026 at 2:33 am
The Title asks my question! Namely, is the new package subcaptionlite.sty compatible with pdf taggoing?
- Spacing differences of the cases curly brace between CM and mtpro2 and the impact of mtp2otf conversionby Sebastiano on November 2, 2026 at 9:17 pm
I am comparing the visual output of the cases environment between the standard Computer Modern font and MathTime Professional 2 (mtpro2) [lite]. Specifically, I noticed that the horizontal spacing between the large curly brace and the math content inside cases is quite different. Computer Modern curly brace is elegant and has a nice "breathing room", whereas in mtpro2 the brace looks too tight and sits visually too close to the curly brace. Here is the standard cases with Computer Modern: \documentclass{article} \usepackage{amsmath} %\usepackage[lite]{mtpro2} \begin{document} \[ \begin{cases} x > 2 & x+1\\ x < 2 & x-1 \end{cases} \] \end{document} And here is the code using mtpro2: \documentclass{article} \usepackage{amsmath} \usepackage[lite]{mtpro2} \begin{document} \[ \begin{cases} x > 2 & x+1\\ x < 2 & x-1 \end{cases} \] \end{document} Why is there not enough space in mtpro2 between the curly brackets and the equations? Does the Mtp2otf conversion package, into OpenType math format for modern Unicode engines (LuaLaTeX/XeLaTeX), correct the spacing between the curly brackets and the equations?