Hot
- How to copy and paste code (without having to shift every line)by X3nius on June 18, 2026 at 2:55 pm
How do I paste a long code here? For example when I click on "Code Sample" and paste the code, only the first line is inside the code block. Then I have to shift every other line by 4 spaces in order to get them into the block. Is there an effective way to do this?
- How to plot mark together with label with tikz instead of pgfplots?by Explorer on June 18, 2026 at 1:45 pm
Claim: I don't want to use pgfplots in this post. For the sake of I have already have a bunch of non-pgfplots code as below, I don't want to switch to pgfplots solution. The code is as below: \documentclass[tikz]{standalone} \usepackage{fourier-otf} \begin{document} \begin{tikzpicture} \draw[-latex] (0,0) -- (12,0) node[right] {Team}; \draw[-latex] (0,0) -- (0,26/4) node[above] {Number}; \foreach \y in {0,5,10,15,20,25} \draw (0,{\y/4}) -- (-0.1,{\y/4}) node[left] {\y}; \foreach \y in {5,10,15,20,25} \draw[gray!30] (0,{\y/4}) -- (11.5,{\y/4}); \foreach \name[count=\n] in {A,...,K} { \draw (\n,0) -- (\n,-0.1) node[below] {\name}; } %%%%%%%%%%%%%%%%%%% % \draw[thick] plot[mark=*, mark size=2pt, mark options={fill=black}] coordinates { % (1,16/4) (2,4/4) (3,12/4) (4,6/4) (5,5/4) (6,16/4) (7,17/4) (8,8/4) (9,8/4) (10,15/4) (11,11/4) % }; % \foreach \i[count=\n] in {16,4,12,6,5,16,17,8,8,15,11} { % \node[above=3pt] at (\n,\i/4) {$\i$}; % } %%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%% \foreach \i[count=\n] in {16,4,12,6,5,16,17,8,8,15,11} { \node[fill=black,circle,inner sep=2pt,label={above:$\i$}] (tmp-\n) at (\n,{\i/4}) {}; } \draw foreach \i[count=\last] in{2,...,11} {(tmp-\last) -- (tmp-\i)}; % %%%%%%%%%%%%%%%%%%%% \end{tikzpicture} \end{document} I would prefer the syntax of plot only in tikz: \draw[thick] plot[mark=*, mark size=2pt, mark options={fill=black}] coordinates { (1,16/4) (2,4/4) (3,12/4) (4,6/4) (5,5/4) (6,16/4) (7,17/4) (8,8/4) (9,8/4) (10,15/4) (11,11/4)}; \foreach \i[count=\n] in {16,4,12,6,5,16,17,8,8,15,11} { \node[above=3pt] at (\n,\i/4) {$\i$}; } However, I didn't find some way to label when plot. Thus I have to repeat the data \foreach \i[count=\n] in {16,4,12,6,5,16,17,8,8,15,11}{...} for the second time, which is not considered as a good practice. Any suggestions on how to do this similar without pgfplots? I don't want two forloop/plots as possible.
- Templates in ltx-talkby Matthias on June 18, 2026 at 1:07 pm
I'm trying to make a ltx-talk theme in the CI of our university. E.g., the CI request a line over the footer and a logo in the head, beside a two line header text. However, I'm afraid I haven't fully grasp the concept of templates. What exactly I have to declare or to overwrite? Do I need a new template type (but this would contradict the concept of templates, since the "idea" of a footer is still there), or a new interface, or template, or instance, and if so, how I can ensure that it is used?
- \DeclareFieldFormat seems to get ignored in after \clearname{author} in biblatex-ext-tabular bibliographyby Jonathan on June 18, 2026 at 12:23 pm
I have noticed some weird behaviour: When using the biblatex-ext-tabular package and \clearname{author} (or \usebibmacro{tabular:omitsortname}), \DelcareFieldFormat{title}{...} does not seem to have any effect: \documentclass{article} \usepackage[style=ext-authoryear]{biblatex} \usepackage{biblatex-ext-tabular} \addbibresource{biblatex-examples.bib} \DeclareFieldFormat{title}{banana} \defbibtabular{bibtabular}{}{}{\driver{\clearname{author}}\\} \begin{document} \cite{baez/online} \printbibtabular \end{document} The title ("Higher-Dimensional Algebra V: 2-Groups") is shown, although it should have been replaced by "banana". (Of course, that's not a meaningful example, but sensitive formatting instructions are ignored as well.) Any idea, why?
- Font $\mathcal{F}$ issue in keynotes [closed]by Sofee on June 18, 2026 at 9:29 am
I am trying to type in Keynote presentation, using insert equation, $\mathcal{F}$. Instead of getting I obtain the following How can one get the first one type of font?
- Local package cannot find EPS file shipping with itby impacthandmade on June 18, 2026 at 8:44 am
Broad context: I am working on a presentation with other people in a git repository. I am writing a beamer theme that contains an EPS file. I am trying to make that theme reusable in other documents. I wrote my theme in a different directory, and compile with TEXINPUTS=assets/packages//: so lualatex can find it. I can't really install the package locally. Problem: the package cannot find its EPS image (see log below). It works with JPG or PNG, so this is most likely linked to epstopdf. Some solutions I have considered: Not using EPS. I really want to use EPS because other formats look horrible in my case. Stop that package nonsense and use \usepackage and \graphicspath with relative paths. I'd like to keep this theme generic however. Actually that's my main goal here. You will find a MRE below. I removed beamer from the equation. Thank you very much for your help. ./mwe.tex \documentclass[12pt]{book} \usepackage{graphicx} \usepackage{mypackage} \begin{document} \hello \end{document} ./assets/packages/mypackage/mypackage.sty \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{mypackage}[2026-06-18] \newcommand{\hello}{% \includegraphics{circle.eps} } ./assets/packages/mypackage/circle.eps https://people.sc.fsu.edu/~jburkardt/data/eps/circle.eps Compilation TEXINPUTS=assets/packages//: lualatex --halt-on-error --file-line-error --synctex=1 --shell-escape -recorder -output-directory="out" "mwe.tex" Error message [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/local/texlive/2026/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2026/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))epstopdf ($Id: epstopdf.pl 71777 2024-07-11 21:24:57Z karl $) 2.36 !!! Error: Cannot open circle.eps: No such file or directory ./mwe.tex:9: Package luatex.def Error: File `circle-eps-converted-to.pdf' not f ound: using draft setting. See the luatex.def package documentation for explanation. Type H <return> for immediate help. ... l.9 \hello 421 words of node memory still in use: 3 hlist, 1 rule, 1 local_par, 1 dir, 1 glue, 3 kern, 1 glyph, 5 attribute, 4 8 glue_spec, 5 attribute_list, 1 temp, 7 if_stack, 1 write nodes avail lists: 2:2,3:2,4:1,5:3,7:1,9:2 ./mwe.tex:9: ==> Fatal error occurred, no output PDF file produced! Transcript written on mwe.log. Latexmk: Getting log file 'out/mwe.log' Latexmk: Examining 'out/mwe.fls' Latexmk: Examining 'out/mwe.log' Logfile claimed conversion from 'assets/packages/mypackage/circle.eps' to 'circle-eps-converted-to.pdf'. But: Output file does not exist Latexmk: Using bibtex to make bibliography file(s). Latexmk: Errors, so I did not complete making targets Collected error summary (may duplicate other messages): lualatex: Command for 'lualatex' gave return code 1 Refer to 'out/mwe.log' and/or above output for details Bonus point If possible I'd also like to make sure the PDF files end up in a specific directory with this piece of code: \usepackage{epstopdf} \epstopdfsetup{outdir=./out/} Thanks again, and have a good day.
- Use of unicode-math range with direct Unicode inputby Socob on June 18, 2026 at 8:16 am
Using the range option in unicode-math to override specific symbol ranges, I would have expected that both the script selection commands (\mathbb etc.) and direct input via Unicode characters (e. g. ℝ) would produce the same result from the overriding font. However, this does not seem to be the case: \documentclass{article} \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math} \setmathfont{Latin Modern Math}[range={bb}] \begin{document} \noindent Unicode input: $ℝ$ \noindent mathbb input: $\mathbb{R}$ \end{document} Output: I saw the question “Tell unicode-math how to translate unicode symbols (script vs calligraphic)”, but initially thought that the behavior there was due to complications of \mathcal and \mathscr representing the same Unicode codepoints. Am I correct in assuming that range will actually never affect the output for Unicode characters appearing literally in the TeX source, and that these will always try to use the main math font that was defined without range?
- correct way to reduce space above displayed equation which shows right below section header?by Nasser on June 18, 2026 at 2:25 am
When there is a displayed equation (say \begin{align*} first thing below section or subsection, the space between the section header and the equation is much larger than if the displayed equation was in middle with some text above it. Is there a way to make the space the same above the displayed equation, even if the equation is right below a section header? I tried adding this to preamble \setlength{\abovedisplayskip}{6pt} \setlength{\belowdisplayskip}{6pt} \setlength{\abovedisplayshortskip}{0pt} \setlength{\belowdisplayshortskip}{6pt} But the above had no effect. I can ofcourse add \vspace command with negative value above the displayed equation if it is first thing below section title, but this looks like a hack to me. Here is MWE. Compiled with lualatex using TL 2026 \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \section{Existence and uniqueness analysis} \begin{align*} y^{\prime}&=\left(x -2\right)^{2}\\ y \left(2\right) &= 1 \end{align*} This is a line here This is a line here This is a line here This is a line here \begin{align*} y^{\prime}&=\left(x -2\right)^{2}\\ y \left(2\right) &= 1 \end{align*} This is a line here This is a line here This is a line here This is a line here \begin{align*} y^{\prime}&=\left(x -2\right)^{2}\\ y \left(2\right) &= 1 \end{align*} \end{document} I also tried adding this to preamble but it had no effect \setlength{\abovedisplayskip}{3pt plus 1pt minus 2pt} \setlength{\abovedisplayshortskip}{0pt plus 1pt} \setlength{\belowdisplayskip}{3pt plus 1pt minus 2pt} \setlength{\belowdisplayshortskip}{3pt plus 1pt minus 2pt} Is there a global solution, I can add to preamble with having to manually use \vspace and such? Screen shot from actual latex pdf file I have: I do not like that extra vertical space above the first equation. I can rewrite things so first thing below section title is not an equation. But Latex should have solution not to add this extra space I thought.
- LaTeX old math symbolsby Dmelv on June 17, 2026 at 4:50 pm
Does anyone know if there are LaTeX codes for the old 17th- and 18th-century symbols for involution (powers) (kind of like an @ sign) and evolution (roots) (a sort of extended w)? Thanks.
- How to properly remove context and all dependencies from TeX Live 2026?by Aviroum on June 17, 2026 at 1:04 pm
I installed Context separately. Then I upgraded to texlive 2026. I encountered a lot of problems: fonts and fonts scripts not being recognised, and so many other issues. How do I properly remove Context from texlive 2026?
- Space at beginning of equation in tcolorbox [duplicate]by XY2580 on June 17, 2026 at 12:10 pm
I've been trying to figure out why I keep getting a space at the beginning of this equation in this coloured box, but don't know how to remove this consistently for all instances I've written this. It seems to be fine for most expressions I write, and if I remove the multiplicative terms after \left( ... \right), it seems to be fine. I've been using \vspace to the times when this happens, but would rather a different option than a case-by-case solution. \documentclass{article} \usepackage{amsfonts,amsmath,amssymb,amsthm} \usepackage[most]{tcolorbox} \begin{document} \newenvironment{mathscolourbox*}[1]{ \begin{tcolorbox}[ colback=#1!10!white, colframe=#1!10!white, top=0pt, bottom=2pt, ams equation*] }% { \end{tcolorbox}} \begin{mathscolourbox*}{cyan} ds^2 = -\left(1-\frac{2GM}{c^2r}\right) c^2 dt^2 + {\left(1-\frac{2GM}{c^2r}\right)}^{-1}dr^2 + r^2\left(d\theta^2+\sin^2\theta \, d\phi^2\right) \end{mathscolourbox*} \begin{mathscolourbox*}{cyan} ds^2 = -\left(1-\frac{2GM}{c^2r}\right) + \left(1-\frac{2GM}{c^2r}\right) + r^2\left(d\theta^2+\sin^2\theta \, d\phi^2\right) \end{mathscolourbox*} \end{document}
- How to include section template defined heading prefix in TOC?by David Purton on June 17, 2026 at 7:17 am
The new template based section heading definitions which support tagging include a prefix option which is added before the section number. What is the correct way to include this in the TOC? So in the below MWE, the contents ought to show: An Unnumbered Chapter Chapter Prefix 1 A Numbered Chapter MWE %! TeX Program = lualatex \DocumentMetadata { , lang = en , pdfstandard = ua-2 , tagging = on , tagging-setup = { math/mathml/luamml/load = false } } \documentclass{report} \EditInstance{heading}{chapter} { prefix = Chapter Prefix } \begin{document} \tableofcontents \addcontentsline{toc}{chapter}{An Unnumbered Chapter} \chapter{A Numbered Chapter} \end{document}
- Multiline frametitle with top vertical alignmentby TrAmA on June 16, 2026 at 4:56 pm
I am using Beamer, and trying to personalize the frame title. Most of the personalizations are already in place, but there is a subtle change I want that I am not able to achieve. I have a top bar with a background that stops at a certain point, let's say 11 cm. Then at the right of the bar I have the logo. The point is that I am not able to have the frame title vertically aligned at the top, when the title is on two lines (for instance due to a newline or a long title). In practice, the background box gets larger if the title is on two lines, and if I redefine the frametitle template, for instance setting a fixed height of the beamercolorbox, I get the text vertically aligned at the bottom. The code that produce the current format: \setbeamercolor{frametitle}{fg=white} \addtobeamertemplate{frametitle}{\setlength{\textwidth}{115mm}}{\vskip-0.5em} \setbeamertemplate{sidebar right} { \vskip4pt% \llap{\insertlogo\hskip0.1cm}% \vfill% \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}% \vskip2pt% } Title over one line: If the title is over two lines the box is taller: The use of sidebar, as suggested here sidebar, does not give the wanted result. The desired result is a red box of a fixed height, with the frame title text vertically aligned at the top, i.e. the second line must not move the first one vertically. Any help is appreciated, as I have tried several solutions, also using tikz, without luck.
- Colouring the counting numbers of the framesby Carl on June 16, 2026 at 3:56 pm
In the following code, how can I colour the slide numbers on bottom right with the same color of frame title (or title frame)? \documentclass{beamer} \usetheme[microtype]{fibeamer} \title{Presentation Title} \subtitle{Presentation Subtitle} \author{Author's name} \begin{document} \begin{frame} How can I colour ``1/1’’ on the bottom? \end{frame} \end{document}
- Controlling text height, text width, and margins in just one frameby Carl on June 16, 2026 at 3:03 pm
I have the code below for a wider frame but there are several problems, namely, I can control only left and right margin with the same distance, and long text overlay slide numbers. So, how can I control left margin, right margin, text height and text width with different distances (and prevent text overlay)? \documentclass{beamer} \usetheme[microtype]{fibeamer} \usepackage{lipsum} \title{Presentation Title} \subtitle{Presentation Subtitle} \author{Author's name} \newcommand\Wider[2][3em]{% \makebox[\linewidth][c]{% \begin{minipage}{\dimexpr\textwidth+#1\relax} \raggedright#2 \end{minipage}% }% } \begin{document} \begin{frame}{Long text} \Wider{\lipsum} \end{frame} \end{document}
- Aligning labels in multi-panel figuresby NicolasBourbaki on June 16, 2026 at 2:11 pm
I would like to create a multi-panel figure with two subpanels of different width and height. The labels should be placed in the upper left corner of each subpanel with the left margin of the labels aligned to the left margin of the graphic in the corresponding subpanel (and baseline of the letters on the same height just on top ("north") of the highest graphic of the subpanels: My approach in TikZ does not exactly align the left margin of the labels to the left margin in the corresponding subpanel: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} % the files green_ellipse and blue_square are on my disk; any graphics file would do \node[anchor=east, inner sep=0pt] at (0,0){\includegraphics[width=.3\textwidth]{green_ellipse}}; \node[anchor=south east] at (-3.7,1.8) {a}; \node[anchor=west,inner sep=0pt] at (1,0){\includegraphics[width=.6\textwidth]{blue_square}}; \node[anchor=south east] at (1,1.8) {b}; \end{tikzpicture} \end{document} How could the left margins of the labels with the left margins of the graphics in the subpanels and the baseline of the letters just on top ("north") of the highest graphic of the subpanels.
- How to compile the file mp.wby lazyboy on June 16, 2026 at 2:06 pm
I cloned the repository https://gitlab.lisn.upsaclay.fr/texlive/metapost/ and try to compile the file source\texk\web2c\mplibdir\mp.w with cweave like this: $ pwd /metapost/source/texk/web2c/mplibdir $ cweave mp.w $ pdftex mp.tex I got a error message: ! Missing $ inserted. <inserted text> $ <to be read again> _ <argument> \#define MPOST_ DEBUG_ENVELOPE \C #1->\5\5\quad $/\ast \,${\cmntfont #1 }$\,\ast /$ l.158 \M{5}\B\C{\#define MPOST_DEBUG_ENVELOPE } \6 Curiously there is no \M{5}\B\C on the line 158 in the file mp.tex. My question is: how can I compile the file mp.w correctly to a PDF file?
- Fontsize of frame numbersby Carl on June 16, 2026 at 9:54 am
What is the size of the slide numbers on bottom right, and can I use that size in a word/letters of a frame? \documentclass{beamer} \usetheme[microtype]{fibeamer} \title{Presentation Title} \subtitle{Presentation Subtitle} \author{Author's name} \begin{document} \begin{frame} \frametitle{Long text} \end{frame} \end{document}
- TikZ move scope to bottom left of a figureby Thomas on June 16, 2026 at 7:42 am
I have a figure to which I add representation of axis. Using scope environment I'm able to scale and move it where I want on the figure. Would it be possible to make it always at a specific position in the figure (for instance bottom left), so if I change the content of the figure by adding other element, the scope would still be placed where I intended. For a node I would use anchor. Here is a MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture}[show background rectangle] \draw[red,fill=yellow] (0,0,0) -- ++(-2,0,0) -- ++(0,-1,0) -- ++(2,0,0) -- cycle; \draw[red,fill=yellow] (0,0,0) -- ++(0,0,-1) -- ++(0,-1,0) -- ++(0,0,1) -- cycle; \draw[red,fill=yellow] (0,0,0) -- ++(-2,0,0) -- ++(0,0,-1) -- ++(2,0,0) -- cycle; \begin{scope}[xshift=-3cm, yshift=-0.56cm, scale=0.4] \draw[->, red] (0,0) -- (0,1) node[anchor=north east] {$x$}; \draw[->, green] (0,0) -- (-1,0) node[anchor=north west] {$y$}; \draw[blue] (0,0) node {$\odot$}; \draw[blue] (0,0) node[anchor=north west] {$z$}; \end{scope} \end{tikzpicture} \end{document} I manually set the xshift and yshift so the arrows are on the bottom part of the figure. (Note: here the scope does enlarge the figure on the left because there is nothing, but in my case where I'm facing this issue, there are other object on the top left part of it)
- Upright √ sqrt + closed style?by mathrm alpha on June 16, 2026 at 6:21 am
It doesn't work when I try both TeX methods together. sqrt upright style "Closed" (square) root symbol \documentclass{article} \usepackage{letltxmacro} \makeatletter \let\oldr@@t\r@@t \def\r@@t#1#2{% \setbox0=\hbox{$\oldr@@t#1{#2\,}$}\dimen0=\ht0 \advance\dimen0-0.2\ht0 \setbox2=\hbox{\vrule height\ht0 depth -\dimen0}% {\box0\lower0.4pt\box2}} \LetLtxMacro{\oldsqrt}{\Sqrt} \renewcommand*{\sqrt}[2][\ ]{\oldsqrt[#1]{#2}} \makeatother \usepackage{graphicx,scalerel,mathtools} \let\svsqrt\Sqrt \def\Sqrt#1{\ThisStyle{\ooalign{% \scalebox{.5}[1]{$\SavedStyle\svsqrt{\phantom{\cramped{#1#1}}}$}\cr \hfil$\SavedStyle\cramped{#1}$}}} \begin{document} $\Sqrt{123}$ \end{document} Error message: ! Undefined control sequence. <argument> $\SavedStyle \svsqrt {\phantom {\cramped {123123}}}$ l.24 $\Sqrt{123} $ ?
- How to get \LaTeX, \TeX logo in math-fonts format style? (Actual result: ℒ︀ᴬ𝒯︀ᴇ𝒳︀)by mathrm alpha on June 16, 2026 at 4:51 am
Why doesn't my output \LaTeX fully translate into \mathcal? \documentclass{article} \begin{document} $\mathcal{\LaTeX}$ \end{document} The following errors also occurred: You can't use `\spacefactor' in math mode. \@->\spacefactor \@m {} l.5 $\mathcal{\LaTeX} $ Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'. Missing character: There is no � in font cmex10!
- How to design station signs for Taiwan Railway in TeX?by mathrm alpha on June 16, 2026 at 4:08 am
Although I wrote a LaTeX-like design for Taiwanese train station signs, the resemblance is still somewhat lacking. https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/ROC_Taiwan_Railways_Administration_Logo.svg/960px-ROC_Taiwan_Railways_Administration_Logo.svg.png \documentclass{article} \usepackage{xeCJK,amssymb} \usepackage[ paperwidth=5in, paperheight=3in, margin=0.2in ]{geometry} \usepackage{graphicx} \usepackage{tikz} \pagestyle{empty} \begin{document} \begin{tikzpicture}[remember picture,overlay] \node[anchor=north west, xshift=0in, yshift=0in] at (current page.north west) { \includegraphics[width=0.5in,height=0.5in]{960px-ROC_Taiwan_Railways_Administration_Logo.svg.png} }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[align=center, text=black, yshift=0.25in] at (current page.center) { {\fontsize{28pt}{34pt}\selectfont Miaoli} \\[0.2em] {\fontsize{32pt}{38pt}\selectfont 苗栗} }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[ draw, line width=0.8pt, minimum size=0.9in, inner sep=0pt, align=center, font=\fontsize{12pt}{12pt}\selectfont ] at ([xshift=1.25in, yshift=0.25in]current page.center) { 苗栗縣\\ 苗栗市 }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[anchor=south west, xshift=0.2in, yshift=0.2in] at (current page.south west) { {\Large 豐富 Fengfu} }; \node[anchor=south east, xshift=-0.2in, yshift=0.2in] at (current page.south east) { {\Large 南勢 Nanshi} }; \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \draw[green!60!black, line width=1.2pt] ([yshift=0.65in]current page.south west) -- ([yshift=0.65in]current page.south east); \node[anchor=west, text=green!60!black] at ([yshift=0.78in]current page.south west) {\large $\blacktriangleleft$ 3.9 公里 (km)}; \node[anchor=east, text=green!60!black] at ([yshift=0.78in]current page.south east) {\large 6.6 公里 (km) $\blacktriangleright$}; \end{tikzpicture} \end{document} A better version should be: Source: http://trstour.com/miao-li.htm
- Two numbered equations in one lineby X3nius on June 16, 2026 at 12:34 am
How can I create two numbered equations in one line? I've tried this, however the word "with" is not aligned. Code 1 \documentclass[a4paper,10pt]{article} \usepackage{amssymb,amsmath,amsfonts} \usepackage{amsthm,thmtools} \usepackage[english]{babel} \usepackage[T1]{fontenc} \begin{document} \begin{tabular}{p{5cm}p{1.5cm}p{6cm}} \begin{equation} \sum \limits_{k=-\infty}^{\infty}c_ke^{ikx} \end{equation} & \begin{equation*} \hspace{0.5cm}\text{with} \end{equation*} & \begin{equation} G:= \int \limits_a^b g(x)\; dx \end{equation} \end{tabular} \end{document} Code 2 \documentclass[a4paper,10pt]{article} \usepackage{amssymb,amsmath,amsfonts} \usepackage{amsthm,thmtools} \usepackage[english]{babel} \usepackage[T1]{fontenc} \begin{document} \section{Section 1} \subsection{Subsection 1} ELorem ipsum dolor sit amet, consectetur adipiscing elit. Duis non orci vel augue pulvinar pretium in et turpis. Sed in dolor semper urna mattis vehicula. Suspendisse eu augue id nisi auctor venenatis. Maecenas tempor felis a sodales vehicula. Proin congue tellus lectus, sit amet ornare orci efficitur a. Duis dui sem, imperdiet ac commodo eu, semper porta odio. Praesent rhoncus sem ante, eget tincidunt massa ornare sed. Suspendisse a vehicula magna, mattis porttitor enim. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Duis vitae pulvinar risus. Nunc quis nisi libero.\\ \noindent \begin{minipage}{0.4\textwidth} \begin{equation}\label{(3.1)} f_{\infty}(x)=\sum \limits_{k=-\infty}^{\infty}c_{k}e^{ikx} \end{equation} \end{minipage} \hspace{1cm}with \begin{minipage}{0.5\textwidth} \begin{equation}\label{(3.2)} c_k:= \frac{1}{2\pi}\int_0^{2\pi}f(x)e^{-ikx} \; dx \;. \end{equation} \end{minipage} \bigskip\noindent Sed lacinia sem ac quam porttitor, vitae efficitur lorem pulvinar. \end{document}.
- Make a ⬲, ⟴ symbols in native math-mode, but negative spacing errorby mathrm alpha on June 15, 2026 at 11:53 pm
Have you noticed that when using negative spacing to overlap mathematical symbols, after typing a few more words, the other mathematicals text also appears to recede into negative spacing? \documentclass{article} \usepackage{newunicodechar} \newunicodechar{⬲}{\longleftarrow\!\!\!\!\!\!\!\!\oplus} \newunicodechar{⟴}{\longrightarrow\!\!\!\!\!\!\!\!\!\oplus} \begin{document} $A ⬲ B ⟴ C$ \end{document}
- With babel-french, fnpct and lualatex, footnotes not typeset according to the French typographic rules anymoreby Denis Bitouzé on June 15, 2026 at 3:02 pm
The following MCE: \documentclass[french]{article} % \usepackage{fnpct} \usepackage{babel} \pagestyle{empty} \begin{document} Foo\footnote{Bar.}\footnote{Baz.}. \end{document} compiled with current lualatex, typesets the footnotes according to the French typographic rules: Bar. Baz. But, if fnpct is loaded, that's not the case since the footnotes are typeset as follows: ¹Bar. ²Baz. At least with TeX Live 2025, we got the expected result even when fnpct was loaded. Here's what has changed since then: LuaHBTeX 1.22.0 (TL 2025) → 1.24.0 (TL 2026) keyval.sty 2022/05/29 v1.15 → 2026-05-17 v1.15 expl3.sty 2025-10-24 → 2026-05-26 l3backend-luatex.def 2025-10-09 → 2026-02-18 babel.sty 2025/10/22 v25.14 → 2026/06/14 v26.9 french.ldf 2025-08-15 v4.0e → 2026-06-06 v4.1a Do you know how to nowadays retrieve the previous, expected, behavior? Edit With current TL 2026, the result is the same with pdftex and with lualatex but, with TL 2025, the result is the expected one: not with pdflatex with lualatex.
- unicode-math set to AMS style "𝘍︦ " \digamma, why "𝖥︦ " \updigamma display missingby mathrm alpha on June 15, 2026 at 11:24 am
I tried using unicode-math to set the AMS-style digamma, but why didn't show up when to set the upright style AMS-style digamma. \documentclass{article} \usepackage{unicode-math,amsfonts}\usepackage{l3draw} \ExplSyntaxOn \NewDocumentCommand{\slantbox}{O{0}m} { \leavevmode \mode_if_math:TF { \mrma_slantbox_math:nn {#1} {#2} } { \mrma_slantbox_do:nn {#1} {#2} } } \box_new:N \l__mrma_slantbox_box \cs_new_protected:Nn \mrma_slantbox_math:nn { \mathpalette\__mrma_slantbox_math_i:nn { {#1}{#2} } } \cs_new_protected:Nn \__mrma_slantbox_math_i:nn { \__mrma_slantbox_math_ii:nnn #1#2 } \cs_new_protected:Nn \__mrma_slantbox_math_ii:nnn {% #1 = style, #2 = slant amount, #3 = material \mrma_slantbox_do:nn {#2} {$\use:c{m@th}#1#3$} } \cs_new_protected:Nn \mrma_slantbox_do:nn { \group_begin: \hbox_set:Nn \l__mrma_slantbox_box {#2} \hbox_to_wd:nn { \box_wd:N \l__mrma_slantbox_box } { \hss \draw_begin: \draw_transform_xslant:n {#1} \draw_set_baseline:n {0pt} \draw_box_use:N \l__mrma_slantbox_box \draw_end: \hss } \group_end: } \ExplSyntaxOff \NewDocumentCommand{\unslant}{O{-0.25}m}{\slantbox[#1]{#2}} \let\digamma\undefined \DeclareMathSymbol{\digamma}{\mathord}{AMSb}{`z} \let\updigamma\undefined \newcommand{\updigamma}{\unslant\digamma} \begin{document} $\digamma\updigamma$ \end{document} References: How to fix force unslant error in XeTeX/LuaTeX?
- How to fix force unslant error in XeTeX/LuaTeX?by mathrm alpha on June 15, 2026 at 3:01 am
Although it truly forces unslant, it will cause an error on XeTeX/LuaTeX. https://tex.stackexchange.com/a/230220/329597 The TeX code is as follows: % Source - https://tex.stackexchange.com/a/230220 % Posted by Steven B. Segletes, modified by community. See post 'Timeline' for change history % Retrieved 2026-06-15, License - CC BY-SA 3.0 \documentclass[a4paper]{article} \newsavebox{\foobox} \newcommand{\slantbox}[2][0]{\mbox{% \sbox{\foobox}{#2}% \hskip\wd\foobox \pdfsave \pdfsetmatrix{1 0 #1 1}% \llap{\usebox{\foobox}}% \pdfrestore }} \newcommand\unslant[2][-.25]{\slantbox[#1]{$#2$}} \begin{document} $\alpha\beta\gamma\delta\epsilon\eta\mu\phi\sigma\tau\omega\xi\psi\zeta$\par \unslant\alpha\unslant\beta\unslant\gamma\unslant[-.1]\delta\unslant[-.1]\epsilon% \unslant\eta\unslant\mu\unslant\phi\unslant\sigma\unslant\tau\unslant\omega% \unslant[-.15]\xi\unslant\psi\unslant[-.15]\zeta \end{document} The error code is as follows: <argument> ...alpha $}\hskip \wd \foobox \pdfsave \pdfsetmatrix {1 0 -.25 1}... l.19 \unslant\alpha \unslant\beta\unslant\gamma\unslant[-.1]\delta\unslant[-.... The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.
- lua, how to tex.print %%? [duplicate]by projetmbc on June 14, 2026 at 4:58 pm
I fail to modify the following working code to change the printing of ** into %%. How can I do that? I fear that the answer is easy... Don't judge me, please. 🙂 % !TEX TS-program = lualatex \documentclass[varwidth, border = 3pt]{standalone} \usepackage{verbatim} \begin{document} \directlua{ local test = { "1", "**", "\\three", "++++" } tex.print("\\begin{verbatim}") for i, x in ipairs(test) do tex.print("[" .. i .. "] " .. x) end tex.print("\\end{verbatim}") } \end{document}
- Symbol of cannonby Sebastiano on June 14, 2026 at 12:15 pm
I want to reproduce a cannon considering in old style (one of these) considering that I have not seen a specific symbol. Does anyone know if there’s a symbol that resembles one of this image? I have not found anything.
- fix spacing in ∰ \oiiintby mathrm alpha on June 14, 2026 at 5:59 am
Although I used his/her method and got \oiiint, the not big display mode spacing wasn't handled well. https://tex.stackexchange.com/a/404609/329597 \documentclass{article} \usepackage{esint} \newcommand{\oiiint}{\oiint \hspace{-13.5pt} \int} \begin{document} $A\oiiint B$\\ \[A \oiiint B\] \end{document} See in: Wrong subscript position in a customized integral