Newest Questions
272,205 questions
1
vote
0
answers
24
views
What does Latex really do if PDF/A, PDF/UA, PDF/X is declared in \DocumentMetadata?
Form other communication, I know that for PDF/X at time of this writing,
declaring the standard only writes the according claim into xmp data.
But what about the other standards?
For example tagging? ...
0
votes
0
answers
13
views
When is CreationDate of a PDF in the info directory and when in the xmp data?
I offer a way to check whether I can reproduce certain old documents.
To than end, I store as is and when recompiling I use the old timestamp.
To find out I use pdfinfo.
The problem is, that sometimes ...
0
votes
2
answers
28
views
How to globally turn OFF a macro from the preamble?
Consider the epigraph macro in the following MWE:
\documentclass[11pt,twoside]{report}
\usepackage[T1]{fontenc}
\usepackage[tt=false]{libertinus}
\usepackage[french]{babel}
\usepackage[stretch=50]{...
-2
votes
1
answer
45
views
Conspicuous deficiency of the longdivision package
This manual seems to say that this package does the arithmetic for you and only gives results that are correct and complete. I don't know how anyone who teaches mathematics fails to see what's wrong ...
1
vote
1
answer
20
views
Apply specific font and stroke to title text
ar LaTeX users, I am trying to apply the font Alfa Slab One to the title text on my cover page and add a black stroke to it.
Could you please help me with this?Thank you
\documentclass[12pt]{book}
\...
0
votes
2
answers
25
views
which combinations of standards PDF/A, X, UA are valid
This question comes from the fact, that norms are quite expensive,
except PDF/UA-1/2 normed as ISO 14289-1/2 which i read.
Extrapolating a bit, what I read in Section 5 and 6 to the other norms,
it ...
2
votes
1
answer
46
views
Difference between \begin{align*}...\end{align*} and \align* ...\endalign*
I thought that \begin{env}...\end{env} is essentially equivalent to \env ...\endenv. However, in the case of align*, the first example below compiles without issue, while the second gives a runaway ...
1
vote
2
answers
35
views
Compatibility issues between ibrackets and \underset/\overset/\substack
The ibrackets package doesn't seem to work when I use \underset or \overset.
\[
]-\infty\underset{\substack{\uparrow \\ \frac{\pi}{2n}}}{,} a] \text { oppure } [a\underset{\substack{\uparrow \\ \frac{\...
2
votes
0
answers
24
views
why tex4ht gives this invalid math conversion only in the table of content and not in the actual chapter header?
Using TL 2025, this mwe
\documentclass[12pt]{book}
\usepackage{amsmath}
\begin{document}
\ifdefined\HCode
\Configure{tableofcontents*}{chapter}
\else
\tableofcontents
\fi
\chapter{reflections $\prod_{...
1
vote
1
answer
31
views
RawFeature={+axis={...}} equivalent to Rawaxis={...}?
(Disclaimer: I'm far to be an expert in variable fonts.)
I am told that RawFeature={+axis={...}} can be shortened into RawAxis={...}. Nevertheless, as shown by the following MCE, that's the case when ...
0
votes
0
answers
27
views
PGFPlots filled polygons with colormap
I want to plot a bunch of polygons and fill each of them with color from colormap. I am trying the following unsuccessfully:
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=...
1
vote
1
answer
41
views
How to wrap an image in enumerate environment
\documentclass[11pt,a4paper]{article}
% Use XeLaTeX to compile
% Go to Menu > Compiler and set it to XeLaTeX
\usepackage{wrapfig}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{siunitx}...
0
votes
0
answers
17
views
How to remove "LyX is already running in another instance" when it is not running (after crash)
I am using single instance mode on Ubuntu 24.04. Sometimes, after LyX crashes, I cannot start it again and get the notification:
"Server.cpp (1015): LyX is already running in another instance
and ...
6
votes
0
answers
40
views
pin to some point on an arrow
Please consider the following MWE:
\documentclass[tikz,border=3mm]{standalone}
%---------------------------------------------------------------%
\begin{document}
%-------------------------------------...
-1
votes
0
answers
51
views
Horizontal stroke character "-" overlaps
I defined a custom character:
% strokeff.mf
mode_setup;
xoo#:=10pt#;
yoo#:=10pt#;
thick#:=5pt#;
define_pixels(xoo, yoo, thick);
beginchar(0, 7*xoo#, 7*yoo#, 0); %H
pickup pencircle scaled thick;
...
3
votes
1
answer
20
views
Citations with the changes package
I am using the packages changes for tracking updates to a shared .tex document, but I get errors caused by the \cite command.
Consider this .tex file:
\documentclass{article}
\usepackage{cite}
\...
4
votes
1
answer
93
views
nicematrix - Auto fill subblocks
I would like to factorize the code to avoid to manually type the a's, b's and m's. Is it possible?
\documentclass{standalone}
\usepackage{nicematrix}
\usepackage[svgnames]{xcolor}
\begin{document}
$...
3
votes
2
answers
166
views
How to create PDF/X with latex
I try to compile the following with lualatex, TeXLive 2025 current,
{pdfmanagement-testphase}{2025-11-12}{0.96x}
\DocumentMetadata{lang=en-US,pdfversion=2.0,pdfstandard=x-6n}
...
but this yields
! ...
5
votes
1
answer
187
views
Gradients in TikZ
Based on the documentation, I would expect the two rectangles generated by this code to look identical:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\pgfdeclarehorizontalshading{...
4
votes
1
answer
34
views
Unwanted extra space in biblatex's prenote
My straightforward implementation of the solution for referring to a biblatex citation note creates an unwanted extra space before the referenced citation as seen in the example below. How do I avoid ...
0
votes
1
answer
19
views
Exempt certain entry type from the short-form citation
In my document, a newspaper article should be cited without the author(s) or title, which I've implemented successfully. The problem is, except for citations to the same article that immediately ...
2
votes
1
answer
91
views
How many expl3 code lines are in the LaTeX kernel?
I was courious to know how many line of expl3 code is in the LaTeX kernel.
I run a python script (code below) to count the number of lines in each dtx file in the base directory of the LaTeX2e ...
0
votes
0
answers
20
views
Footnote within newkeytheorem [duplicate]
EDIT: When used within a keytheorem environment, footnote label counter is different ('a', 'b',...) than
\documentclass[11pt]{book}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{...
1
vote
1
answer
35
views
Overlining with titlo Cyrillic text
NewComputerModern is adding support for more diacritics including titlo (UFE2E+UFE2F). When titlo is placed above two consecutive letters of the same height then everything works as expected. For ...
5
votes
1
answer
62
views
Environment that conditionally collects its content
Disclaimer: This is a bit a XY problem, or rather: I have a problem X and I have a solution Y which works but does not really make me happy.
Background: I have an environment, say {foo}, which I use ...
0
votes
0
answers
41
views
Adding a style to biblatex makes my beamer document crash
I am using biblatex on Overleaf to cite in my Beamer document. When I don't specify any styles,
\usepackage{biblatex}
\addbibresource{references.bib}
works just fine. But I want the citations to look ...
1
vote
1
answer
66
views
Tikz comma shape
I am using tikz to make a PA Dutch hex sign-like image. How can I make the comma-like shape that is seen below? I will ultimately be replicating it and rotating it around a center point, but I don't ...
5
votes
3
answers
99
views
drawing arc using intersection with triangle
I've been trying to adapt the answer https://tex.stackexchange.com/a/239471 to the drawing I've been attempting, but I'm getting a strange result.
I want draw an arc that begins and ends where it ...
1
vote
3
answers
83
views
Tracing command silently alters pdf
The desired output is with an overlay; but \tl_show:N prevents inhibits it. Though I found a workaround for this, \tl_log:N, it has cost me time so I thought I'd post it for insights. The question is: ...
0
votes
0
answers
28
views
Problem with CharisSIL (charssil) Font on Fedora
A journal with which I'm associated is considering moving to CharisSIL for the font. So I've been trying to experiment with it. This is for a maths journal, so we're using Greek and small caps and ...
1
vote
1
answer
56
views
Parnote repeating itself inside tabularray package
Good afternoon, so I found about parnotes which work quite good, till I was in the search of a little annoyance in vertical lines in my table to look as booktabs. As suggested I tried the ...
5
votes
2
answers
104
views
Strange output using AMSmath's \operatorname and fontsetup
I have the following document
\documentclass{article}
\usepackage{fontsetup}
\usepackage{amsmath}
\newcommand{\coordRng}{\operatorname{\Gamma}}
\begin{document}
\(\coordRng (X)\) \(\Gamma\)
\end{...
4
votes
1
answer
217
views
What is the proper way to demonstrate tagged PDFs
What is the best way to demonstrate a tagged PDF vs untagged. I don't mean a verification mark. I am looking for a, preferably Linux, screen reader that can read a tagged pdf and its formulas ...
0
votes
0
answers
40
views
LaTeX: How to set different geometry margins for different pages based on PDF background images?
I'm creating example papers in LaTeX with different PDF backgrounds for different pages, and demo PDFs are given as follows:
First page: example-image-a.pdf
Odd pages (except first): example-image-b....
2
votes
3
answers
115
views
Checking the current page against the last page in a shipout hook
I meant to restrict the overlay to all but the last page, but this setup fails due to \zref@extractdefault{abspage}{abspage}{0} stuck at 0. Is there a solution to this specific issue, and a better ...
3
votes
2
answers
91
views
How to customize the quote environment?
I'm trying to customize the quote environment for a novel (citations at the beginning of each chapter), and I'm having troubles in setting custom vertical line spacing, horizontal line length, the ...
1
vote
1
answer
31
views
TexStudio: Is there a way to make autocomplete suggestions less rigid
I switched to TexStudio from Overleaf recently. I do miss the autocomplete suggestions in Overleaf where you don't have to get the cases or even the order of the words in the label right for the ...
3
votes
1
answer
109
views
One colored structure combining amsart, amsthm, mdframed and thmtools
I am working with the amsart class and I would like to define two new environments to create a sort of structured dialogue with que (question), ris (answer).
I would have with this MWE:
\...
4
votes
2
answers
117
views
tikz-cd: Put brackets/parentheses around one column of diagram?
I would like to put parentheses around one column of a tikz-cd diagram — something like the diagram in the example below, but with the second set of parens around just the left-hand vertical of the ...
8
votes
2
answers
158
views
How to avoid `\phantom{}` and empty groups in this array, while maintaining the same alignment?
I'm working on creating a specific two-column table in \LaTeX. The second column, $f(n)$, contains expressions that are linear combinations of $\alpha$, $\beta$, and $\gamma$, but not all terms are ...
2
votes
1
answer
30
views
wrapfig introducing whitespace when next to text divided by sections
I'm trying to have text wrap around other text or a figure as is supposed to be done with wrapfigure. However I'm encountering an issue where there is a lot of whitespace under the wrapfig when the ...
5
votes
2
answers
98
views
NewDocumentCommand with keyword arguments: how to prevent evaluation of keyword default values?
Consider the following MWE:
\documentclass{article}
\DeclareKeys [ myKeys ]{
a .store = \whereA,
b .store = \whereB,
}
\SetKeys [ myKeys ] {
a = AAA,
b = \pageref{#2},
}
\...
2
votes
2
answers
160
views
How to distribute items (cards) evenly on a A4 page in Latex?
I need to print cards (bussiness for example) on both sides of A4 paper so they must match exactly.I was trying to do some calculations and search for hidden margin, but none of those worked.
code: ...
0
votes
4
answers
82
views
Boxed text + figure on the left
I would like to have a framed box that contains some (justified) text and, on the side, a figure with its label and caption, something like this:
I think/I read on other threads that some starting ...
9
votes
6
answers
299
views
How to layout the two-side notes using Latex
The following is an example from an English book. I'm planning to rewrite it in latex.
The layout is with an itemize of points in the middle, and with "CONNECTIONS" notes along the two sides....
19
votes
3
answers
653
views
Drawing a sphere and ellipsoid together
I would like to draw a sphere, of radius 3, and an ellipsoid of semi-axis 2, 3 and 4 together. They intersect at two great circles on the sphere (marked in red).
I started out with the sphere and the ...
14
votes
4
answers
810
views
How to add a mirror like shadow effect to a title?
I would like to add a reversed gray shadow under a title to mimmic a mirror effect. How can we do that with standard pdflatex (the live tex distribution)?
Currtently, the code below only add a dull ...
2
votes
1
answer
92
views
Center a table in a list
How do I get the table to respect the “new” left margin/indent in a list so it centres correctly, rather than the full-page text width?
\documentclass[10pt]{book}
\usepackage{booktabs}
\usepackage{...
2
votes
1
answer
61
views
Section Number Alignment and Wrapping a Figure with Text [closed]
\documentclass[11pt,a4paper]{article}
% Use XeLaTeX to compile
% Go to Menu > Compiler and set it to XeLaTeX
\usepackage{wrapfig}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{siunitx}...
1
vote
3
answers
108
views
How to use OT3 encoding? Does it redefine existing macros?
Please help. OT3 is a very old encoding and I want to use it for stylistic reasons to make my document look old.
EDIT: I figured out how, but I have a new question: does OT3 and \usepackage{ipa} ...