Newest Questions
269,057 questions
2
votes
1
answer
56
views
Tagged PDF & verbatim with new envirornment
I try to use verbatim and define a new environment. To my understanding this package should be more compatible for the PDF tagging then fvextra. Since I'm not a TeX-developer I use the regular version ...
0
votes
1
answer
20
views
How to place a line with word "Chapter" into ToC after the Preface section
I am trying to place the word "Chapter" into my doc's table of contents to follow the Preface and precede the numbered sections. My code is below, and the screenshot of the output PDF file ...
3
votes
3
answers
271
views
A command with potentially many arguments (to cite several Stacks Project tags at once)
I am currently using the following in my preamble:
\newcommand{\stacksref}[1]{%
\cite[\texttt{\href{https://stacks.math.columbia.edu/tag/#1}{#1}}]{SP}
}
so that for instance \stacksref{AB78} gives ...
2
votes
1
answer
23
views
Using format/list in latex acro package
I am working with lower case acronyms in latex and want them to be printed with a leading uppercase letter in the acronym list. I utilize the acro package.
Reproducable code:
\documentclass{article}
\...
3
votes
1
answer
125
views
Stepped cylinder in tikzplot
I want to draw a stepped cylinder similar to the one in the figure. I tried using the similar tags in stackexchange and here is what I come with.
\documentclass{standalone}
\usepackage{tikz}
\...
2
votes
2
answers
56
views
! TeX capacity exceeded, sorry [input stack size=10000]
I get this error with these sets of equations. The commented out ones also produce same error as one that is not commented out. How do I fix it? What am I doing wrong?
This is my error code:
! TeX ...
10
votes
3
answers
431
views
Single $ sign fixes an error in NewDocumentCommand
For some reason, this macro creates no error
\documentclass{article}
\usepackage{xparse}
\usepackage{amsmath}
\NewDocumentCommand{\ex}{e{!}m}{
\exists\IfValueTF{#1}{!#1$}{#2}
}
\begin{document}
$\...
1
vote
1
answer
29
views
Nicematrix customizing the label text for \Vbrace and \Hbrace commands
Consider the following example
$\begin{NiceArray}{ccccc}%
[ hvlines ,
first-row ,
last-row = 6,
first-col ,
last-col ,
xdots/horizontal-labels ]
& \Hbrace{3}{p} & \Hbrace{2}{q} \\
\...
3
votes
0
answers
37
views
How to bypass \ExplSyntaxOn handling of spaces [duplicate]
I am dealing with some key-value interface definitions using \ExplSyntaxOn and \ExplSyntaxOff and I have encountered an issue that I managed to narrow down to a simple MWE. As far as I understand, the ...
0
votes
2
answers
39
views
How may something like a 2-row 'multline*' object be aligned horizontally with the '\item' object in an enumeration?
Picture: Screenshot of a 2-row multline* equation which does not horizontally align with its item, (4).
What is a reasonable way to obtain the horizontal alignment? I have the following code sample:
\...
1
vote
1
answer
72
views
Make a word or number appear and disappear in the PDF
I wanted to know if I could make it so that a response doesn't appear in the LaTeX PDF, but instead, when I click on the PDF, it appears. Is this possible?
2
votes
0
answers
84
views
Anti-Aliasing tikz pictures
Is it possible to smooth/anti-alias the edges of the following tikz picture?
\documentclass{article}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[remember picture, ...
1
vote
0
answers
30
views
contents does not match the actual titles [duplicate]
\documentclass{report}
\usepackage[UTF8]{ctex} % for multilingual doc
\usepackage{titlesec}
\usepackage{titletoc} % ToC customization
% ---------- BODY: chapter / section labels ----------
\...
1
vote
2
answers
65
views
UTF8 characters in verbatim environments
I want to have ⏎ displayed in a verbatim environment. I looked for different approaches and solutions and found the following one:
\DocumentMetadata{
pdfstandard = ua-2,
pdfversion = 2.0,
...
3
votes
4
answers
142
views
`\@ifnextchar_` with a function as an argument
I'm trying to make a more intuitive versio of \to in the contexts of limits.
I want
\cos(x) \to_{x\to 0} 1
to produce the following result
which can be done without macros with
\cos(x) \xrightarrow[...