Hot
- Spacing issues with \hat, \widehat, \tilde, \widetilde (pdflatex)by Tork on April 15, 2026 at 5:33 am
I'm using $\widehat{.}$ and $\widetilde{.}$ in my text for ordinals. As I'm sometimes using subscripts I decided to just always go with these instead of $\hat{.}$ or $\tilde{.}$ as $\hat{x_{n+1}}$ doesn't look good at all. Furthermore, the wide versions look noticably different from the regular ones, such that I would consider it bad notation to switch between both. I only treat \widehat in the following, but the problems I mention also arise with widetilde. Problem 1) Even for ordinals \widehat{.} interferes with brackets (and \hat{.} too, for that matter). I tried to be smart and simply define a new command \what{.} using mathop, mathbin etc. but only \newcommand{\what}[1]{\mathpunct{\widehat{#1}}} fixes the bracket interference (kind of). It's not a solution though, as it interferes with the spacing of \what{t}\in\what{S} and \what{t}', and the space added is not equally distributed. Question 1) Is there a solution here that fixes the spacing issue of \widehat{.} with brackets, while not interfering with \what{t}\in\what{S} and \what{t}'? Problem 2) Defining an equivalence relation on my widehat-versions, I thought \widehat{=} would be a good idea - intuitive notation, at least for me. However, here the spacing again becomes problematic, when comparing t=t to t \widehat{=} t. I figured from one of egreg's answers that I can fix this by defining \newcommand{\whrel}[1]{\mathrel{\widehat{#1}}} and this indeed works. Question 2) Answers to Question 1) will likely not fix t \widehat{=} t. Do I really need to define different commands? I am using \newcommand{\quasiequal}{\whrel{=}}, which I don't intend to change, so this is more of a general question. Is there nothing like a \mathwhatever{.} that specifies "take the spacing of whatever you're using widehat on, and potentially add equal spacing on both sides to keep brackets at bay"? If so, why? Here is a MWE: \documentclass{article} \newcommand{\what}[1]{\mathpunct{\widehat{#1}}}% \newcommand{\wtil}[1]{\mathpunct{\widetilde{#1}}}% %\mathord, \mathop etc. don't work for keeping brackets at bay \newcommand{\whrel}[1]{\mathrel{\widehat{#1}}}%for relations \newcommand{\whord}[1]{\mathord{\widehat{#1}}}%for ordinals \begin{document} hat: $(\hat{t})$ bracket interference. Also, compare $t=t$ to $t \hat{=} t$. widehat: $(\widehat{t})$ bracket interference. $\widehat{t}\in\widehat{S}$, $\widehat{t}'$ look fine. But $t=t$, $t \widehat{=} t$. what: Fixes $(\what{t})$ kinda. But $t=t$, $t \what{=} t$, $t\in S$, $\what{t}\in\what{S}$, $t'$, $\what{t}'$. wtil: Fixes $(\wtil{t})$ kinda. But $t=t$, $t \wtil{=} t$, $t\in S$, $\wtil{t}\in\wtil{S}$, $t'$, $\wtil{t}'$. whrel: Fixes $t \whrel{=} t$. whord: Keeps $\whord{t}\in\whord{S}$ and $\whord{t}'$ but doesn't fix $(\whord{t})$. \end{document}
- alaligne not working on tikzpicture environmentby ABV on April 15, 2026 at 3:39 am
/alaligne (new line space for system score) not working on tikzpicture environment. The basic code is as follow: \documentclass[% border={35pt 100pt 150pt 5pt},% left bottom right top varwidth]{standalone} % ========== PAQUETES ========== \usepackage{tikz} \usetikzlibrary{arrows.meta,calc} %LIBRERIA PARA LAS FORMAS \usetikzlibrary{quotes} \usetikzlibrary{shapes} \usetikzlibrary{fit,positioning} \usetikzlibrary{arrows.meta} \usetikzlibrary{decorations} \usepackage{amsmath}% \usepackage{musicography}% \usepackage{musixtex}% \input musixlyr% \usepackage{xcolor}% \xdefinecolor{red-undar}{RGB}{179,35,79} \begin{document}% \begin{tikzpicture} \node[anchor=north west, inner sep=0pt] (score) at (0,0) {% \begin{music}% \resetlyrics% \font\A=phvb8t at 10pt% \font\B=phvb8t at 8pt% \setsongraise1{-1.5mm}% \staffbotmarg3\Interligne% \setclef1\treble% \nobarnumbers% \nostartrule% %\startextract% \startpiece%\addspace\afterruleskip% % AQUI EMPIEZOOO \Notes\zw{h}\hu{j}\qsk\hu{l}\en\bar% \Notes\zw{f}\hu{k}\qsk\hu{j}\en\bar% \Notes\zw{g}\hu{i}\sk\en\setdoublebar\bar% \Notes\zw{h}\hu{m}\qsk\hu{l}\en\bar% \Notes\zw{f}\hu{k}\qsk\hu{j}\en\bar\setdoublebar% \Notes\zw{g}\hu{i}\sk\en\alaligne%%\setdoublebar\bar% \Notes\zw{b}\hu{g}\qsk\hu{f}\en\bar% \Notes\zw{c}\hu{e}\qsk\hu{g}\en\setdoublebar\bar% \Notes\zw{g}\hu{i}\qsk\hu{k}\en\bar% \Notes\zw{c}\hu{l}\qsk\hu{n}\en\setdoublebar% \endpiece% %\endextract% \end{music}% }; % CURVA 1 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(-1.1cm,-0.7cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(-1.7cm,-1.2cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(-1.9cm,-1.0cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(-2.0cm,-1.1cm)$); % punto FIN (nota abajo) % % % CURVA 2 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(0.6cm,-0.9cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(0.5cm,-1.1cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(0.2cm,-1.2cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(-0.1cm,-1.2cm)$); % punto FIN (nota abajo) % % % CURVA 3 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(4.1cm,-0.7cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(3.8cm,-1.0cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(3.6cm,-1.0cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(3.2cm,-1.1cm)$); % punto FIN (nota abajo) % % % CURVA 4 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(5.8cm,-0.9cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(5.6cm,-1.1cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(5.4cm,-1.2cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(5.1cm,-1.2cm)$); % punto FIN (nota abajo) % % % CURVA 5 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(9.2cm,-1.3cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(9.1cm,-1.5cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(8.7cm,-1.6cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(8.4cm,-1.6cm)$); % punto FIN (nota abajo) % % % CURVA 6 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(11.0cm,-1.2cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(10.8cm,-1.4cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(10.5cm,-1.5cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(10.2cm,-1.5cm)$); % punto FIN (nota abajo) % % % CURVA 7 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(12.9cm,-0.8cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(12.8cm,-1.0cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(12.4cm,-1.2cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(12.0cm,-1.2cm)$); % punto FIN (nota abajo) % % % CURVA 8 % \draw[line width=0.9pt, color=red-undar] % ($(score.north west)+(14.6cm,-0.6cm)$) % punto INICIO (nota arriba) % .. controls % ($(score.north west)+(14.5cm,-1.1cm)$) % punto control 1 (curva izquierda) % and % ($(score.north west)+(14.2cm,-1.4cm)$) % punto control 2 (curva izquierda) % .. % ($(score.north west)+(13.9cm,-1.5cm)$); % punto FIN (nota abajo) % % \node[anchor=south west] at ($(score.north west)+(1.6cm, -0.6cm)$) % {\small\textbf{Etc.}}; % % \node[anchor=south west] at ($(score.north west)+(6.9cm, -0.6cm)$) % {\small\textbf{Etc.}}; % % \node[anchor=south west] at ($(score.north west)+(0.0cm, -0.2cm)$) % {\small\textbf{a)}}; % % \node[anchor=south west] at ($(score.north west)+(5.1cm, -0.2cm)$) % {\small\textbf{b)}}; % \\ % \node[anchor=south west] at ($(score.north west)+(9.5cm, -0.2cm)$) % {\small\textbf{c)}}; % \node[anchor=south west] at ($(score.north west)+(13.1cm, -0.2cm)$) % {\small\textbf{d)}}; % PUNTOS DE REFERENCIA %\fill[red] ($(score.north west)+(4.4cm,-0.9cm)$) circle (1pt); % INICIO %\fill[blue] ($(score.north west)+(0.5cm,-1.2cm)$) circle (1pt); % FIN %\fill[green] ($(score.north west)+(14.5cm,-0.9cm)$) circle (1pt); % CONTROL 1 %\fill[green] ($(score.north west)+(14.2cm,-1.1cm)$) circle (1pt); % CONTROL 2 \end{tikzpicture} \end{document}% The current output is as follow:
- How to highlight the current subsection at the beginning of each subsection in ltx-talk?by Polly Nomial on April 14, 2026 at 8:38 pm
Followup to my previous question on "How to show section slides in ltx-talk?" I would like the depth-2 (sections and subsections) table of contents to be shown at the beginning of every subsection. The MWE below incorporates @cfr's first solution from the previous question, but this solution has the undesirable behavior of highlighting all subsection. Is there a way to highlight just the current subsection? \DocumentMetadata{ lang = de, pdfstandard = ua-2, pdfstandard = a-4f, tagging=on, tagging-setup={math/setup=mathml-SE} } \documentclass{ltx-talk} \EditInstance{footer}{std}{ element-order = {title, subtitle, framenumber} } \AddToHook{cmd/section/after}{% \begin{frame} \tableofcontents \end{frame}% } \AddToHook{cmd/subsection/after}{% \begin{frame} \tableofcontents \end{frame}% } \title{My talk} \subtitle{I want to show sections} \institute{University of Stack Exchange} \date{} \begin{document} \begin{frame} \maketitle \end{frame} \section{Motivation} \begin{frame}\frametitle{Here is a frame title} Some text. \end{frame} \section{Real talk} \subsection{Part 1} \begin{frame}\frametitle{Here is a frame title} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \end{frame} \subsection{Part 2} \begin{frame}\frametitle{Here is a frame title} Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \end{frame} \end{document}
- Problem with tkz-grapheur packageby Sebastiano on April 14, 2026 at 8:10 pm
It is possible that either the package does not behave as I expect, or I am misunderstanding how to use it correctly. According to the manual, the inequality 3x + 2y - 6 >= 0 should represent the half-plane above the line 3x + 2y - 6 = 0, i.e., the region containing points such as (0,3). However, in my code the line is drawn correctly (it passes through (0,3) and (2,0)), but the shaded region does not match the expected half-plane: it appears on the opposite side of the line. What am I doing wrong when using \LinearInequality? Is it a sign convention issue, an internal convention of the package, or do I need to rewrite the expression in a different form to obtain the correct shaded region? \documentclass{article} \usepackage{tkz-grapheur} \begin{document} \begin{GraphTikz}[ x=1cm, y=1cm, Xmin=-3,Xmax=3, Ymin=-3,Ymax=3 ] \DrawAxisGrids[Font=\small]{auto}{auto} \LinearInequality[color=pink,hatch={north east lines}]{3x+2y-6}{>=0} \end{GraphTikz} \end{document}
- Change page layout for bibliography section onlyby Atcold on April 14, 2026 at 5:46 pm
I'm using a per-chapter bibliography. I would like to disregard the margin note spacing, and make full use of the page. Using a two page layout is making this hard. This is my macro, but the \checkoddpage is not working I don't know why. \newcommand{\insertChapterBibliography}{% % 1. Sync the page check without forcing a new page \strictpagecheck \checkoddpage % 2. Identify the distance from the left edge of the paper to the text block. % LaTeX measures this as 1 inch + \oddsidemargin (or \evensidemargin). % To get back to exactly 1 inch, we shift by exactly -\sidemargin. \ifoddpage \def\leftshift{-\oddsidemargin} \else \def\leftshift{-\evensidemargin} \fi % 3. Apply the shift using standard [left][right] logic. % We want the final width to be \headwidth. % The math for the right offset to reach \headwidth is: % RightOffset = \linewidth - \headwidth - \leftshift \begin{adjustwidth}{\leftshift}{\dimexpr\linewidth-\headwidth-\leftshift\relax} \begin{multicols}{2} \bibliographystyle{alpha} \bibliography{main} \end{multicols} \end{adjustwidth} } I can try to provide a minimal working example, but I'm not sure how, with all these citations… biblio.tex \documentclass[twoside]{book} \usepackage[includemp, inner=1in, outer=10mm, marginparwidth=161pt, showframe]{geometry} \usepackage{fancyhdr} \usepackage{multicol} \usepackage{changepage} \usepackage{etoolbox} \usepackage{lipsum} \usepackage[sectionbib]{chapterbib} \pagestyle{fancy} \setlength{\headwidth}{468pt} \AfterEndPreamble{% \patchcmd{\thebibliography}{\section*{\bibname}}{\relax}{}{}% \patchcmd{\thebibliography}{\section*{\refname}}{\relax}{}{}% } \newcommand{\insertBib}{% \strictpagecheck\checkoddpage \ifoddpage \def\lshift{-\oddsidemargin} \else \def\lshift{-\evensidemargin} \fi \begin{adjustwidth*}{\lshift}{\dimexpr\linewidth-\headwidth-\lshift\relax} \begin{multicols}{2} \scriptsize \bibliographystyle{alpha} \bibliography{biblio} \end{multicols} \end{adjustwidth*} } \begin{document} \include{odd} \include{even} \end{document} biblio.bib @book{key1, author = {Author, A.}, year = {2001}, title = {Title One}, publisher = {Publisher}, } @book{key2, author = {Writer, B.}, year = {2002}, title = {Title Two}, publisher = {Publisher}, } odd.tex \chapter{Odd page bibliography} \lipsum[1-2] \cite{key1} \cite{key2} \insertBib even.tex \chapter{Even page bibliography} \lipsum[1-4] \cite{key1} \cite{key2} \insertBib
- Formatting list of acronyms using acro package, setting colspec for longtableby nullgeodesic on April 14, 2026 at 4:37 pm
According to the manual of the acro package, it's possible to print a list of acronyms via \printacronyms and format it as a longtable. I want to set colspec = {p{0.10\linewidth} p{0.80\linewidth}}, which is possible according to p. 39 of the manual, but I don't understand how exactly to do this. I tried modifying the optional arguments of \printacronyms and adding an optional argument when loading the acro package, but neither works. Do I need to \RenewAcroTemplate or is there a cleaner way to pass the colspec? \documentclass{article} \usepackage{acro} \usepackage{longtable, array} \DeclareAcronym{a}{ short = a, long = aaa } \DeclareAcronym{b}{ short = b, long = bbb } \begin{document} \printacronyms[template=longtable] Test \ac{a} and \ac{b}. \end{document}
- Standard solution to `Missing character` when using pandocby Signor Pizza on April 14, 2026 at 2:45 pm
I don't need to do customising, I am happy with the way LaTeX looks already. What solution do you recommend for when a command like pandoc file.md -o file.pdf outputs warnings like [WARNING] Missing character: There is no ─ (U+2500) (U+2500) in font [lmmono10-regular]:! ? I believe there's a way to specify a specific font via a command-line option, but even then what font would I choose? The focus here is full Unicode support, i.e. be gone, Missing character issues! (--pdf-engine=xelatex and --pdf-engine=lualatex have not sufficed in this case)
- Fixing the footer of a documentby user516076 on April 14, 2026 at 1:19 pm
The footer only works from page 2 to the end, but I have to make a manual footer in the cover like this MWE (I've tried to simplify my code before posting, though it's still too long to read, so sorry): \documentclass[12pt,twoside]{article} \usepackage[a4paper, hmargin=2cm, vmargin=1.8cm]{geometry} \usepackage{graphicx} % \includegraphics \usepackage{tikz} % candidate name box \usepackage[export]{adjustbox} % valign=m in tabular \usepackage{fancyhdr} % mypages style \usepackage{array} % m{} column type \usepackage{pstricks} % \rput, \rotatebox \usepackage{pst-barcode} % \psbarcode \usepackage{marginnote} % \marginnote \usepackage{refcount} % \getrefnumber \usepackage{lastpage} % \pageref{LastPage} \usepackage{lipsum} \pagestyle{empty} \newcommand{\commandpage}{\pageref{LastPage}} \newcounter{marks} \newcommand{\maxmarks}{100} \newcommand{\addmarks}[1]{\addtocounter{marks}{#1}} \newcommand{\award}[1]{\addmarks{#1}\par\hfill[#1]\par} \makeatletter \AtEndDocument{% \immediate\write\@auxout{% \string\newlabel{totalmarks}{{\number\value{marks}}{\thepage}}% }% } \makeatother \newcommand{\marktotal}{\getrefnumber{totalmarks}} \newcommand{\markwarning}{% \ifnum\getrefnumber{totalmarks}>\maxmarks \par\smallskip \noindent\textbf{WARNING: TOTAL MARKS EXCEED \maxmarks.}% \fi } \fancypagestyle{mypages}{ \fancyhf{} \fancyhead[C]{\thepage} \fancyfoot[L]{\small © School 2026} \fancyfoot[C]{\small 0580/02/UT/26} \fancyfoot[RO]{\small \textbf{[Turn Over]}} \renewcommand{\headrulewidth}{0pt} } \newcolumntype{L}[1]{>{\raggedright\arraybackslash}m{#1}} \newcolumntype{R}[1]{>{\raggedleft\arraybackslash}m{#1}} \newcommand{\studentcode}{04-14-2026-TEST} \newcommand{\studentpayload}{TEST-PAYLOAD} \newcommand\studentbarcodetag{% \rput(-1.34,-6){\rotatebox{270}{% \parbox{6in}{\centering% \small\ttfamily\studentcode\\[-0.8cm] \makebox[3in][l]{\psbarcode{\studentpayload}{height=0.5 width=4}{code128}} }% }}% } \begin{document} \begingroup \setlength{\parindent}{0pt} \vspace*{-1.7cm} \begin{tabular}{@{}p{0.2\textwidth}@{}p{0.8\textwidth}@{}} \hspace*{-.25cm}\includegraphics[height=2.2cm,valign=m]{example-image} & \hfill\includegraphics[height=2.2cm,valign=m]{example-image}\hspace*{-1cm} \end{tabular} \vspace{1cm} {\LARGE \textbf{Program Title}} \vspace{0.6cm} \hspace*{-0.15cm}\begin{tikzpicture} \node[anchor=west] at (0,-0.2) {\small FULL NAME}; \draw (3,-0.7) rectangle (17,0.3); \end{tikzpicture} \vspace{10pt} \reversemarginpar\marginnote{\studentbarcodetag}% \hrule \begin{tabular}{@{}p{0.6\textwidth}@{}p{0.4\textwidth}@{}} \vspace{1pt} \textbf{SUBJECT} \par Paper 1 \vspace{2pt} \par Instructions here. & \raggedleft\vspace{1pt} 0580/02 \par April 2026 \par 1 hour 20 minutes \end{tabular} \endgroup \vspace{1pt} \hrule \vspace{0.6cm} \noindent\textbf{INFORMATION} \begin{itemize} \item Total marks: \textbf{\marktotal}. \item Marks per question shown in brackets~[ ]. \end{itemize} \markwarning \hrule \vspace*{0.2cm} \begin{center} This document has \textbf{\commandpage} pages. \end{center} \hrule \vspace{1cm} \noindent \begin{tabular}{@{}p{0.5\textwidth}@{}p{0.5\textwidth}@{}} {\small © School 2026} & \raggedleft{\small \textbf{[Turn Over]}} \end{tabular} \newpage \pagestyle{mypages} \lipsum[1-20] \end{document} I need to make the footer automatic on the lower. as you can see, on the first cover, since it is manual, it acts like a multiline text. so, if I add text, it will be pushed below. I want it to be locked at the footer just as the rest odd paging. T.I.A
- Overbrace, underbrace, overbracket, underbracket mess with following spacing? [duplicate]by pglpm on April 14, 2026 at 1:18 pm
I've noticed that use of \underbrace{} and cousins, including \under/\overbracket{} from mathtools, messes up the following spacing. Here's a minimal document showing this, with output image: \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{equation*} \begin{aligned} &a + \overbracket{3000} + c \\ &a + 3000 + c \\ &a + \underbracket{3000} + c \\ &a + \overbrace{3000} + c \\ &a + 3000 + c \\ &a + \underbrace{3000} + c \end{aligned} \end{equation*} \end{document} You notice that on the second and fifth lines ('a+3000+c') there's correct spacing between the last '+' and 'c', but on the lines where \overbrace{}, \underbrace{}, \overbracket{}, \underbracket{} are used, that spacing is abnormally reduced. The problem persists even if under/overtext is added with _{}. The only way I've found to fix it is to enclose the whole bracket macro in curly brackets, eg {\underbrace{...}}. A search on Stackexchange and web in general didn't lead to anything regarding this. Does anyone know if it's a known bug, and how to fix it in a better way?
- Best way to define new operator with limitsby murray on April 14, 2026 at 1:05 pm
Is this an appropriate way to define a new math operator-with-limits (for a "box product"), like \bigcup, assuming use of lua-unicode-math and lualatex? % !TEX program = lualatex \documentclass{article} \usepackage{fontspec} \usepackage{lua-unicode-math} \setmainfont{TeX Gyre Termes X} \setmathfont{STIX Two Math} \usepackage{amsmath} \usepackage{scalerel} \AtBeginDocument{% \DeclareMathOperator*{\bigsquareop}{\scalerel*{\lgwhtsquare}{\bigcup}} \DeclareRobustCommand{\BoxProd}{\DOTSB\bigsquareop}% } \begin{document} $\bigcup_{i \in I} X_{i} \quad \BoxProd_{i \in I} X_{i}$ and \[ \bigcup_{i \in I} X_{i} \quad \BoxProd_{i \in I} X_{i} \] \end{document} Related: How to create my own math operator with limits?, How to create a new math operator?, https://tex.stackexchange.com/a/552914/13492.
- Filtering rows in \DTLdisplaylongdb from datatool [closed]by JamesI on April 14, 2026 at 9:56 am
I'm trying to filter out rows in a longtable display of a datatool database. The datatool handbook gives the example \DTLdisplaydb*[row-condition-inline= {\ifodd#2\else#3\fi}]{mydata} but I want to filter out rows where the value in column 1 is the text 'Exclude'. The datatool handbook specifies that row-condition-inline can access current row content Both filter options can access information from the current database row with current row commands such as \dtlgetentryfromcurrentrow but \dtlgetentryfromcurrentrow creates a control sequence, so I don't see how it can be used in string comparison. I've tried just creating the control sequence at the beginning of the inline expression and defining the filter value \def\FilterVal{Exclude} to get my comparison control sequence... row-condition-inline={\dtlgetentryfromcurrentrow{\myval}{1}\ifx\myval\FilterVal \else #3 \fi} ... but it doesn't work, nothing is filtered out. This seems like such a simple task I'm sure I'm over-complicating it. The logic is simple - if the row has the word 'Exclude' in column 1 exclude it, otherwise include it. Edit - I'm not wedded to filtering out in the display - if it's easier, I could filter out at read. What I can't do (for technical reasons) is filter out beforehand - ie just use a pre-filtered CSV)
- How to show section slides in ltx-talk?by Polly Nomial on April 14, 2026 at 3:53 am
Edit: follow-up question here: How to highlight the current subsection at the beginning of each subsection in ltx-talk? How do I show the start of a new section, either as itself a "section slide" or even in the "body" slides? \DocumentMetadata{ lang = de, pdfstandard = ua-2, pdfstandard = a-4f, tagging=on, tagging-setup={math/setup=mathml-SE} } \documentclass{ltx-talk} \EditInstance{footer}{std}{ element-order = {title, subtitle, framenumber} } \title{My talk} \subtitle{I want to show sections} \institute{University of Stack Exchange} \date{} \begin{document} \begin{frame} \maketitle \end{frame} \section{Motivation} \begin{frame}\frametitle{Here is a frame title} Some text. \end{frame} \section{Real talk} \begin{frame}\frametitle{Here is a frame title} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \end{frame} \end{document}
- \str_set_convert:Nnnn trouble in LuaLatexby Miguel V. S. Frasson on April 14, 2026 at 3:33 am
I want to use \str_set_convert:Nnnn with Japanese chars directly in document. The MWE below has no problem in pdfLaTeX. It correctly displays E782B9. \documentclass{article} \begin{document} \ExplSyntaxOn % works in pdflatex, fails in lualatex \str_set_convert:Nnnn \l_tmpa_str {点} {utf8} {utf8/hex} \l_tmpa_str \ExplSyntaxOff \end{document} But in LuaLaTeX, it gives the error message: LaTeX Error: String invalid in escaping 'bytes': it may only contain bytes. What am I missing? How should I wrap the text to get the same result in any engine provided that "the user" can type the actual Japanese char, not some escaping sequences?
- Is there a color free alert in ltx-talk?by Teepeemm on April 14, 2026 at 12:49 am
I'm going to have a printed version of my ltx-talk that won't have color. I would still like to have \alert do something, however. I think that means I should renew alert to make things bold, but I'm having trouble making that work properly: many of the options listed at How can I get bold math symbols? don't make things bold, or they cause errors if tagging is enabled. To give an example: \DocumentMetadata{} \RequirePackage{fixmath} % must come before unicode-math loaded by ltx-talk \documentclass{ltx-talk} \usepackage{bm} \usepackage{amsmath} \usepackage{amsbsy} \newcommand{\colvect}{\begin{pmatrix}x\\-1\end{pmatrix}} \begin{document} \colorlet{alert}{black} \begin{frame} \( normal \colvect alert \alert{\colvect} mathbf \mathbf{\colvect} symbf \symbf{\colvect} pmb \pmb{\colvect} % incompatible with unicode-math, tagging? mathbold \mathbold{\colvect} % requires package fixmath, conflicts with unicode-math % \boldsymbol{\colvect}\quad % error % \bm{\colvect}\quad % error \) boldmath {\boldmath\(\colvect\)} % {\setmathfont{luciole-math}\(\colvect\)} % preamble only bfseries {\bfseries\(\colvect\)} % \(\bfseries\colvect\) % invalid in math mode \bigskip normal \alert{alert} \textbf{textbf} \symbf{symbf} \pmb{pmb} {\bfseries bfseries} \end{frame} \end{document} has the output Notice that without color, \alert doesn't do anything. \symbf does a bit in math mode, but only the letter and number, not the parentheses and minus. \textbf and \bfseries succeed in text mode, so I could test \ifmmode, but I still need something in math mode. \pmb seems to work the best, but https://github.com/latex3/tagging-project/issues/1240 says that it's not working at the moment (and it appears to be intentionally broken in text mode).
- In Luatex Hebrew text not working after update miktex (april 13 2026)by Cook on April 13, 2026 at 2:46 pm
After updating miktex today I get the message Undefined control sequence. \mathemptydisplaymode in the luabidi.sty. I removed miktex completely and installed it, the same result. Could you please help me? It’s a 4,000-page book in Greek, Hebrew, and Dutch that was compiled over the past three years. % !TeX TS-program = lualatex \documentclass[11pt,a4paper,twoside]{book} %%%%%%%%%%%%------following loaded before biblatex` \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{dutch} \setotherlanguage{greek} \setotherlanguage{hebrew} %%<<-------------------Greek/Hebrew \setmainfont[Ligatures=TeX]{Charis SIL} \defaultfontfeatures{Ligatures=TeX} \newfontfamily\hebrewfont{Ezra SIL}[Script=Hebrew,Contextuals=Alternate]%\texthebrew %%Greek \newfontfamily{\greekfont}[Script=Greek, Scale=MatchUppercase, Ligatures=TeX]{SBL Greek} \begin{document} Nederlands: gewoon een zinnetje Grieks: \textgreek{Οὗτος δῶρα} Hebrew: \texthebrew{תְהֹ֑ום} \end{document}
- How to correctly expand the first parameter of \hrefrun?by Hans Nieuwenhuis on April 13, 2026 at 11:12 am
This is my code (which I compile using LuaLatex: This is LuaHBTeX, Version 1.24.0 (TeX Live 2026) (format=lualatex 2026.4.1). % test of hrefrun \DocumentMetadata { pdfversion = 2.0, } \documentclass [ a4paper, ] {article} \usepackage{hyperref} % set options for hyperref \hypersetup { colorlinks, % give links a color runcolor = blue, % set color of links to external files } \ExplSyntaxOn % ----------------------------------------------------------------------------- % Command to replace all occurrences of a given text in a string with another given text. % % Note that the original text is not changed, this command gives as result the % processed text. % % #1 = text which needs to be processed % #2 = text to be replaced % #3 = the replacement text % ----------------------------------------------------------------------------- \NewDocumentCommand{\ReplaceText}{m m m} { \tl_set:Nn \l_tmpa_tl {#1} \tl_replace_all:Nnn \l_tmpa_tl {#2} {#3} \tl_to_str:N \l_tmpa_tl } \ExplSyntaxOff %--------------------------------------------------------------- \begin{document} % make a filename in which spaces are replaced by underscores \newcommand{\MyFilename}{\ReplaceText{./audio/Engels/one hundred.mp3}{ }{_}} \hrefrun{\MyFilename}{\MyFilename} \end{document} When I compile this code, the second parameter of \hrefrun is correct. However in the first parameter of \hrefrun is the space between 'one' and 'hundred' not replaced by an underscore. Instead of that, the space and underscore are appended after '.mp3'. See this image: How can I get the first parameter of \hrefrun to be processed correctly?
- How to fix different spacing within `expex` in `beamerposter` depending on the compiler?by schoekling on April 13, 2026 at 7:03 am
I am creating a beamerposter with linguistic examples in expex with a custom font (libertine). I originally wrote most of it using pdflatex but have to switch to lua or xetex now. However, when I do so, the spacing within the examples changes drastically. Simply loading fontspec has the same effect, so it doesn't seem to have anything to do with the font specifically. Loading neither libertine nor fontspec produces the same spacing as pdflatex. \documentclass{beamer} \usepackage{beamerposter} % loading either of these increases the spacing within expex's (cf. second picture) %\usepackage{fontspec} %\usepackage{libertine} \usepackage{expex} \begin{document} \begin{frame} \pex \a \begingl \gla text// \glb gloss// \glft `transl'// \endgl \xe \ex \begingl \gla text// \glb gloss// \glft `transl'// \endgl \xe \end{frame} \end{document} pdflatex with libertine: lualatex with libertine (same spacing with xetex and/or fontspec): lualatex without libertine or fontspec:
- Solving cyclic overlap of occlusion for trianglesby Jasper on April 13, 2026 at 5:03 am
I want to pose a question to resolve the issue described in https://stackoverflow.com/a/32463868/32395400, by simplicial partitioning. There doesn't seem to be a precedent for this, so I made a little document: \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \foreach \ang/\col in {0/red,120/green,240/blue} { \draw[\col,ultra thick] (\ang:1) -- +(\ang-90:3) -- +(\ang+90:3); } \end{tikzpicture} \end{document}
- marginnote inhibits noindent in following paragraphby Erwann on April 13, 2026 at 2:53 am
How can I restore indentation in this setup? \documentclass{article} \usepackage[showframe]{geometry} \usepackage{marginnote,lipsum} \reversemarginpar \setlength{\marginparwidth}{1.1in} \ProvideDocumentCommand{\LetterSection}{m}{% \par \smallskip \leavevmode \marginnote{% \raggedleft \footnotesize % \sffamily % \scshape \strut #1 }[1pt]% % \ignorespaces } \begin{document} \LetterSection{test} \noindent\lipsum[1][1] \end{document}
- Changing a conjunction in BibLaTeX?by Knudsen on April 13, 2026 at 12:34 am
Under normal circumstances, BibLaTeX uses the same coordinating conjunction "and" for two authors that may have their names in one script (Latin, for now) and also to join two translator names that could have their names in another script (Cyrillic in this example). You may change the scripts above to any other pair and the problem remains the same. This has the unfortunate consequence of placing a pair of names in English joined by a Russian conjunction in the text as seen here: generated by the simple MWE: \documentclass{article} \begin{filecontents}[overwrite]{isaac.bib} @BOOK{isaacson:en, author = {Isaacson, Eugene and Keller, Herbert Bishop}, title = {Analysis of Numerical Methods}, publisher = {Dover Publications}, address = {Mineola, New York}, year = {1994}, langid = {english}, } @BOOK{isaacson:ru, author = {Isaacson, Eugene and Keller, Herbert Bishop}, title = {Анализ численных методов}, author-ru = {Э. Исааксон and Х. Б. Келлер}, translator = {В. В. Пчелинцев and L. L. Пчелинцев}, publisher = {Мир}, address = {Москва}, year = {1976}, langid = {russian}, } @book{rudin:zh, author = {Walter Rudin and Elena Rudin}, title = {实分析与复分析}, translator = {戴牧民 and 张更容}, publisher = {机械工业出版社}, address = {北京}, year = {2006}, langid = {chinese-simplified}, } \end{filecontents} \usepackage{babel} \babelprovide[import, main]{american} \babelprovide[import]{russian} \babelfont{rm}{NewComputerModern10} \babelfont{sf}{NewCMSans10-Regular} \babelfont{tt}{NewCMMono10-Regular} \babelprovide[import]{chinese-simplified} \babelfont[chinese-simplified]{rm}[ Scale = MatchLowercase, ItalicFont = Noto Serif CJK SC, ItalicFeatures = {FakeSlant=0} ]{Noto Serif CJK SC} \usepackage[style=authoryear,language=auto,autolang=other]{biblatex} \addbibresource{isaac.bib} \begin{document} Citing \textcite{isaacson:en}, \textcite{isaacson:ru}, \textcite{rudin:zh}. \printbibliography \end{document} It would be desirable to: Have one conjunction to be used with the authors names (and) that would show up in the Biblio list and in the main text, that is mostly in Latin. Have another to be used with the translator names (и) or inside the record, that is mostly in Cyrillic The russian.lbx file (as all others I know of) seems to have only one coordinating conjunction. and = {{и}{и}}, Is there a way to separate them, or define a new one, to be used in the bibliographical tags?
- Section headers disappear in TeXLive 2026by Ted Shifrin on April 12, 2026 at 11:56 pm
My code snippets: \renewcommand{\chaptermark}[1]{\markboth{\scshape\chaptername\ \thechapter. #1}{}}% \renewcommand{\sectionmark}[1]{\markright{\scshape\S\thesection. #1}}% worked just fine in TeXLive 2022 (using amsbook format in LaTeX), but in TeXLive 2026 the section heads do not appear at all. I gather this is due to the changes in the way headers are handled now. Can you suggest a modern modification I can make to get section heads to appear? fancyhdr did nothing for me. EDIT: OK. Here is a short document which typesets to three pages. Using TeXLive 2022 I get a section header on p. 3; using TeXLive 2026 there is none. 🙂 \documentclass[11pt]{amsbook} \renewcommand{\chaptermark}[1]{\markboth{\scshape\chaptername\ \thechapter. #1}{}}% \renewcommand{\sectionmark}[1]{\markright{\scshape\S\thesection. #1}}% \begin{document} \chapter{Curves} \section{Examples, Arclength Parametrization} We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. We say a vector function $f\: (a,b)\to\mathbb R^3$ is $C^k$ ($k=0,1,2,\dots$) if $f$ and its first $k$ derivatives, $f'$, $f''$, \dots, $f^{(k)}$, exist and are all continuous. We say $f$ is smooth if $f$ is $C^k$ for every positive integer $k$. A parametrized curve is a $C^3$ (or smooth) map $\alpha\: I\to\mathbb R^3$ for some interval $I=(a,b)$ or $[a,b]$ (possibly infinite). We say $\alpha$ is regular if $\alpha'(t)\ne 0$ for all $t\in I$. We can imagine a particle moving along the path $\alpha$, with its position at time $t$ given by $\alpha(t)$. As we learned in vector calculus, $$\alpha'(t) = \lim_{h\to 0}\frac{\alpha(t+h)-\alpha(t)}h$$ is the velocity of the particle at time $t$. The velocity vector $\alpha'(t)$ is tangent to the curve at $\alpha(t)$ and its length, $\|\alpha'(t)\|$, is the speed of the particle. \section{Local Theory: Frenet Frame} What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ What distinguishes a circle or a helix from a line is their curvature, i.e., the tendency of the curve to change direction. We shall now see that we can associate to each smooth ($C^3$) arclength-parametrized curve $\alpha$ a natural ``moving frame" (an orthonormal basis for $\mathbb R^3$ chosen at each point on the curve, adapted to the geometry of the curve as much as possible). We begin with a fact from vector calculus that will appear throughout this course. Suppose $f, g: (a,b)\to\mathbb R^3$ are differentiable and satisfy $f(t)\cdot g(t)=\text{const}$ for all $t$. Then $f'(t)\cdot g(t) = -f(t)\cdot g'(t)$. In particular, $$\|f(t)\|=\text{const} \quad\text{if and only if}\quad f(t)\cdot f'(t)=0 \quad\text{for all }t\,.$$ \end{document} I hope this helps.
- Vertical centering of frametitle when using ltx-talkby CornBoy on April 12, 2026 at 11:11 pm
I have been looking into switching my lecture presentations from Beamer to ltx-talk for the automatic tagging functionality. For frame titles, the default behavior does not vertically center the text in the colored header/banner. Here is a minimum working example (most recent release of MacTeX). % !TEX TS-program = lualatex \DocumentMetadata{tagging=on} \documentclass{ltx-talk} \EditInstance{header}{std}{ background-color = blue!50, color = white, } \author{John Doe PhD} \title{An interesting title} \institute{Interesting Conference} \begin{document} \begin{frame} \maketitle[framestyle = wallpaper] \end{frame} \begin{frame} \frametitle{Frame title not vertically centered in colored header} Some text \ldots \end{frame} \end{document} Does anyone know how to achieve a frame title that is vertically centered in the header/banner when using ltx-talk?
- Devanagari Shiro-rekha fillingby Sushant on April 12, 2026 at 6:39 pm
I am using exam clas with liguistix package to create an exam paper in Marathi. As English has base line, the Devanagari script used for writing Marathi has head-line or Shiro-rekha (ꣻꣻꣻ). As in english the space for an answer is provided using an \hrulefill command which is at the position of base line of Latin characters, I wan to use Shiro-rekha for providing answering space for Marathi text. I can type the shiro-rekha character many times (like this: ꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻ) to fill the space. But it will take time and will be unevenly filled. Is there any way to use this shiro-rekha character and get filled it like a hrulefill? My MWE is as bellow: \documentclass{exam} \usepackage{linguistix} \linguistix{languages={english,marathi}} \begin{document} \makebox[\textwidth]{\textsc{संपूर्ण नाव : } ꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻꣻ} \vspace{0.2in} \makebox[\textwidth]{\textsc{Full name:}\enspace\hrulefill} \end{document}
- Using fontspec to set the main font as Helvetica doesn't workby tistieom on April 12, 2026 at 4:35 pm
First I tried to set the main font to Helvetica using \usepackage[scaled]{helvet} with \renewcommand\familydefault{\sfdefault}, but it didn't set the sans-serif font to Helvetica - the document was now in CM Sans Serif. I then switched to XeLaTeX and tried the following code for fontspec, but now when I save the document, after a few seconds it gives me the error in the image along with "Recipe terminated". Then if I reload the window after those errors appear (I use VSCode), the PDF is updated with whatever text I added anyway as if there was no error. Just still in CM Sans Serif instead of Helvetica. I have Helvetica installed on my computer, I can find it in C:\Windows\Fonts. \documentclass{article} \usepackage{fontspec, lipsum} \setmainfont{Helvetica} \renewcommand\familydefault{\sfdefault} \begin{document} \lipsum[1-10] \end{document}
- How do I align a pgfplots figure environment to the right side of my document?by tistieom on April 12, 2026 at 2:46 pm
I'm using a two-column extarticle document, without multicol. How do I make these two plots in a {figure} environment right-aligned instead of left-aligned in the column? They are a part of a nested list in my actual document so I did the same in the code here; other than the lorem ipsum, those are the same figures I'm using in my actual document. My goal with making them right-aligned is to align the left-hand side of the plots with the text following them. \documentclass[twocolumn]{extarticle} \usepackage{pgfplots, lipsum} \usepackage[margin=1cm]{geometry} \pgfplotsset{compat=1.18} \begin{document} \lipsum[1-5] \begin{enumerate} \item \begin{enumerate} \item \lipsum[1] \begin{figure} \label{fig:3sinx+2-x} \begin{tikzpicture} \begin{axis}[ xlabel=$x$, ylabel=$f(x)$, xmin=-0.5, xmax=2*pi+0.5, ymin=-6.25, ymax=6.25, xtick={0, pi/4, pi/2, 3*pi/4, pi, 5*pi/4, 3*pi/2, 7*pi/4, 2*pi}, xticklabels={$0$, , $\frac{\pi}{2}$, , $\pi$, , $\frac{3\pi}{2}$, , $2\pi$}, ytick={-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6}, yticklabels={$-6$, , $-4$, , $-2$, , $0$, , $2$, , $4$, , $6$}, axis lines=middle, width=5.5cm, title={$f(x) = 3\sin(x)+2-x$} ] \addplot[ color=red, domain=0:2*pi, smooth ]{3*sin(deg(x)) + 2 - x}; \end{axis} \end{tikzpicture} \label{fig:3sinx+x-3} \begin{tikzpicture} \begin{axis}[ xlabel=$x$, ylabel=$f(x)$, xmin=-0.5, xmax=2*pi+0.5, ymin=-4.25, ymax=4.25, xtick={0, pi/4, pi/2, 3*pi/4, pi, 5*pi/4, 3*pi/2, 7*pi/4, 2*pi}, xticklabels={$0$, , $\frac{\pi}{2}$, , $\pi$, , $\frac{3\pi}{2}$, , $2\pi$}, ytick={-4, -3, -2, -1, 0, 1, 2, 3, 4}, yticklabels={$-4$, $-3$, $-2$, $-1$, $0$, $1$, $2$, $3$, $4$}, axis lines=middle, width=5.5cm, title={$f(x) = 3\sin(x)+x-3$} ] \addplot[ color=red, domain=0:2*pi, smooth ]{3*sin(deg(x)) + x - 3}; \end{axis} \end{tikzpicture} \end{figure} \item \lipsum[1-2] \end{enumerate} \end{enumerate} \end{document}
- Graphing a system of inequalities in 3 dimensionsby Henry Timmons on April 11, 2026 at 2:14 pm
I am trying to graph a system of 3 inequalities in 3 dimensions. These ineuqalities are: y-z>=1/2x, x-z>=0, and x+y>=3z. Currently I am struggling to get even a basic output. My input is: \documentclass[12pt, a4paper]{article} \usepackage{float, ulem, amsmath, amsthm, amssymb, pgfplots, tikz} \pgfplotsset{width=10cm,compat=1.9} \usepgfplotslibrary{external, fillbetween} \tikzexternalize \begin{document} \begin{tikzpicture} \begin{axis}[domain=0:10,y domain=0:10] \addplot3[surf] {y-(\frac{1}{2}*x)}; \addplot3[surf] {x}; \addplot3[surf] {\frac{x+y}{3}}; \end{axis} \end{tikzpicture} \end{document} I am getting the error: "Package tikz Error: Sorry, the system call 'pdflatex -shell-escape - halt-on-error -interaction=batchmode -jobname "output-figure0" "\def\tikzexternalrealjob{output}\input{output}"' did NOT result in a usable output file 'output-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or something like that. Or maybe the command simply failed? Error messages can be found in 'output-figure0.log'."
- How to get non-compilable code without the % symbol?by Cham on April 10, 2026 at 3:24 pm
While I know that I can use % to comment out a line of code, I would like to get the same result (i.e. non-compiling text) in the middle of a block of text, like this (the brackets are here just to show the example): Blabla blabla bla bla bla [some non-compiling comments] bla bla blabla blab I don't want to write something like the following (i.e splitting the text paragraph): Blabla blabla bla bla bla % some non-compiling comments bla bla blabla blab Is it possible? I guess that I'll need to use some non-compiling macro, like \nc{} but I would prefer not to use something like it. In Mathematica, we have the ability to insert non-compiling codes with (* non-compiling text *)
- Skull emoji 💀 in pdfLaTeXby Bryan on April 9, 2026 at 11:47 pm
I’d like to include the skull emoji 💀 in a document compiled with pdfLaTeX but with colors similar to how it displays on my device in other contexts. I can get a skull with fontawesome, but it’s not quite the same: \documentclass{scrartcl} \usepackage{fontawesome5} \begin{document} \faSkull \end{document} creates a skull like which is black/white inverted compared to how my device normally shows 💀, where the skull is white, and the eye sockets are black. I cannot change to LuaTeX because what I am compiling is like, super large. I also tried something along the lines of \contourlength{0.5pt} and \contour{black}{\color{white}\faSkull} but that did not work well. Can anyone help get 💀 with black eye sockets on a white skull or something close to it? Thanks!
- Overlapping two disjunction (or conjunction) symbolsby paula on April 9, 2026 at 11:29 pm
Does anyone know a way to "overlap" two disjunction (or conjunction) symbols? Almost looking like a "W". It is sometimes used in infinitary logic!
- Improvements to code used for a special headingby yannisl on April 8, 2026 at 11:51 am
The following code snippet draws a box in box for a heading. I would like some help to improve the code so that only the top right corner of the bottom box is rounded. Most of the values are currently hardcoded, as this forms part of a larger code that calls the macro \tikzspecial defines keys that are passed as options. The height of the blue top box should be 3cm, I seem to be about a couple of mm out, any help with that I would also appreciate. \documentclass[10pt,twoside]{book} \usepackage[bottom=2cm,top=2cm, left=3cm, right=4cm,showframe]{geometry} \usepackage{tikz} \usepackage{kantlipsum} \ExplSyntaxOn \makeatletter \NewDocumentCommand{\tikzspecial}{s O +m}{ %% First band \begin{tikzpicture}[remember~picture,overlay,inner~sep=0pt,outer~sep=0pt] \draw[draw=none,fill=cyan,outer~sep=0pt,inner~sep=0pt, xshift={-2cm},yshift=-\dimexpr3cm+10pt] (current~page.north~west) rectangle (\paperwidth,2.5cm); \end{tikzpicture} %% Second band with rounded corners \begin{tikzpicture}[remember~picture,overlay] \node~at~(current~page.north~west)~[yshift=-\dimexpr3cm+5.4pt,xshift=-10pt,%.3 klls corners on left anchor=south~west,inner~sep=10pt, outer~sep=0,white,fill=black, draw=none,rounded~corners=10pt,align=left, text~width=\textwidth]{\leftskip10pt \large \sffamily\LARGE\bfseries \IfBooleanTF{#1}{}{\thechapter.\space} #3\par }; \end{tikzpicture} \vspace*{4\baselineskip} \par \@afterindentfalse \@afterheading } \makeatother \ExplSyntaxOff \begin{document} \parindent=2em % simulate chapter \stepcounter{chapter} \tikzspecial*{Some Special Layout\\ Format} \kant[1-9] \end{document}