# Tag Info

Accepted

### table of content file is empty after pdflatex compilation

The \section* command is, in fact, for sections that won't appear in the table of content. Replace them with \section and it'll work. Just removing the two spurrious starts gives the output below.
• 640
Accepted

### Why are my footnotes using symbols instead of numbers?

The tablefootnote package provides the command \tablefootnote to be used in a table or sidewaystable environment, where \footnote will not work. \documentclass[12pt,a4paper]{article} \usepackage{...
• 24.4k
1 vote

### amsmath: Erroneous nesting of equation structures

You want aligned or more likely matrix. But there are much better ways to do what you want. \documentclass{article} \usepackage{mathtools} \usepackage{nicematrix} \DeclarePairedDelimiter{\bra}{\...
• 984k

### amsmath: Erroneous nesting of equation structures

Since the align environment works as a mathematical context while the inner of matrix is a text context, then align should be revised as aligned to work. The mistakes and codes are improved as follows....
• 2,747

### How to use U+1F54A (DOVE OF PEACE) with pdfLaTeX?

You can use the twemojis package with \twemoji{1f54a} or \twemoji{dove}. It works with PDFLaTeX. Unfortunately the dove is hard to see against a white background, so here I made the background gray: \...
• 35.6k

### How to use U+1F54A (DOVE OF PEACE) with pdfLaTeX?

Maybe it's not the exact same symbol, but fontawesome5 has a dove icon. \documentclass{article} \usepackage{fontawesome5} \begin{document} \faDove \end{document}
• 15.4k

### Should we give up pstricks?

I'd say yes. Overall, I think that it's time leaving Postscript and non-UTF8 encodings behind, and that TikZ is, and has been for years, a good replacement for PStricks. LaTeX evolves slowly, but it ...
• 640

### Should we give up pstricks?

In my opinion everyone who can should switch to LuaLaTeX. It is much more extensible and therefore much more likely to stay relevant in the future. To make the transition easier especially for ...
• 29.9k
Accepted

### Effecting a Shift of an FCOLORBOX within a Simple Lettrine

\fcolorbox will draw a box with the same inner padding and border width in all directions. The longbox allows you to separately set the top, bottom left and right widths of the padding and border. It ...
• 24.4k
Accepted

### Writing a form-style table

With {NiceTabular} of nicematrix. \documentclass[landscape]{article} \usepackage{nicematrix} \begin{document} \setlength{\tabcolsep}{0pt} \sffamily \begin{NiceTabular}{*{38}{wc{3mm}}} \Block[l]{1-...
• 25k

### Writing a form-style table

This is by no means the answer I'm only just starting myself, but it might get you on the right track. \documentclass{article} \begin{document} Name\\\ \begin{tabular}{|c|c|c|c|c|c|c|c|} \hline &...
1 vote

### \mathit{\vec{…}} silently swallows up the vector when using latex/pdflatex and newtxmath

I'm not sure how you could get \vec to forget the italic shape, but a workaround would be to use newtxmath's \vv command instead of \vec. It's another command to add an arrow above other symbols, but ...
• 15.4k
1 vote

### What is the code for selecting the top n integers from a list in Latex inside an algorithm?

I'm aware that you're using the pdftex tag, but just in case, here is a solution with LuaLaTeX: \documentclass{article} \usepackage{luacode} \directlua{ function sortf(x, y) return x > ...
• 640
1 vote

### What is the code for selecting the top n integers from a list in Latex inside an algorithm?

The solution based only on TeX primitives and basic Plain TeX macros is here: \newcount\selected \def\alist{} \def\scanlist#1 {% \ifx;#1\else \addtoalist\alist{#1}% \ifnum\selected&...
• 51.8k

### What is the code for selecting the top n integers from a list in Latex inside an algorithm?

Here is an example that selects the n largest integers from a comma-separated list. \documentclass{article} \ExplSyntaxOn \NewDocumentCommand{\listmax}{mm}{ % #1: list, #2: n \clist_set:Nn \...
• 2,390
Accepted

### Long table in four-column document

I would use a list here. I used itemize of course if your first column really is a counter in your real document it can be simplified more and use enumerate I used multicolumn not multicolumn* as ...
• 665k

### Export two copies of document with a \newif variable toggled on and off

Solution for pdflatex on Unix-based systems Gather the \newif declaration one line, say line 3, of the test.tex: \documentclass{article} \usepackage{blindtext} \newif\ifoption\optiontrue % ...
• 273
Accepted

### pdflatex stops when both german and hungarian languages are set in babel

magyar.ldf patches the (internal) latex command \@begindocumenthook to inject some code into the aux-file: {\toks@\expandafter{\expandafter\@@magyar@protect@backtick\@begindocumenthook}% \xdef\@...
• 292k

### Alignment ampersand within \underbrace

If you can use LuaLaTeX, then luamathalign is the best choice. Here's a fixed version, where instead of \underbrace I use the defined command \ubrace that avoids a shortcoming of \underbrace as ...
• 984k
1 vote
Accepted

### Alignment ampersand within \underbrace

You can do this with tikzmark: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{tikzmark,decorations.pathreplacing,calligraphy} \begin{document} \begin{align*} \...
• 19.8k
1 vote

### Alignment ampersand within \underbrace

If it's possible to use LuaTeX, then the luamathalign package can be used to solve this problem elegantly. It only requires replacing & with \AlignHere inside the \underbrace. \documentclass{...
• 105k
1 vote

### I have installed "mactex" (because I need "pdflatex") but it looks like not opening/working

Solution provided by @AlanMunn in the comments: brew uninstall mactex, download MacTeX.pkg from MacTex website Now, if I type which pdflatex from my Terminal, I get the following: /Library/TeX/...
• 151
Accepted

### is there a way to produce a similar table in LaTeX?

Here's my attempt using the tabularray package, which I recommend for any complex tables. It comes pretty close; though following your lead I used cyan rows rather than gray. (Muted a little as yours ...
• 35.6k

### How to put a box around a single page?

\AddToHook{shipout/background} We can draw the frame using tikz and add to background using \AddToHook{shipout/background}{...some code...}: \documentclass{article} \usepackage{lipsum} \usepackage{...
• 1,313

### How to set the Bibliography title for BibTex in Pandoc

If you're using citeproc, you can put in reference-section-title in the metadata. https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md pandoc --template template.latex --...
• 152

### Anyone knows how to show DOI or URL in \bibliographystyle{apa}?

You can use biblatex-apa for this purpose. I think that's the only implementation of APA 7 edition as of now. If you are using Zotero citation manager software, it can generate APA 7 bibliography. In ...
• 1
Accepted

### Tikz Graph: TeX capacity exceeded, sorry [input stack size=10000]

You are using \tikz inside a tikzpicture environment. The manual uses only \tikz. You'll have to choose one. This works for me using a tikzpicture environment: \documentclass[10pt]{article} \...
• 2,390

### LyX won't let me add flags to the converter

On the Windows version 2.3.6.1, this option is also "buried" in the settings of the document:
• 735

### Align works well everywhere but at plus sign

As @daleif comments, the problem could be solved easily by add a {} before & which could protect the space around symbols near &. By the way the codes could be simplified and rewritten as ...
• 2,747

### Align works well everywhere but at plus sign

Here is a solution using the IEEEeqnarraybox environment from the IEEEtrantools (Appendix F of the documentation) package. This tutorial on typesetting equations also demonstrates the usage of the ...
• 2,732
Accepted

### Align works well everywhere but at plus sign

No additional package is needed. The root of the issue is the way the columns are align in the aligned structure: rlrlrlr .... To synchronized the alignment two & are needed before the second + ...
• 24.4k

### PDFLatex producing absurdly large pdf when using axessibility package

Likely Overleaf has modified the structure of the package to set the \pdfcompresslevel=1 which produces a compressed version of the pdf. arXiv has not customized the behavior of this package in any ...
• 673

### Align works well everywhere but at plus sign

You can use alignedat instead, or \systeme. \documentclass{article} \usepackage{amsmath} \usepackage{systeme}% for the second solution \begin{document} \[ \left\{ \begin{alignedat}{3} a_{11}x_1 &...
• 984k

### Align works well everywhere but at plus sign

Depending on your desired look, you can just align once at the = signs and let the natural math spacing of LaTeX take care of the rest: \[\left\{ \begin{aligned} a_{11}x_1 + a_{12}x_2 + ...
• 19.8k

### Align works well everywhere but at plus sign

I have worked out a solution with the array package. \documentclass{scrarticle} \usepackage{amsmath} \usepackage{array} \begin{document} \begin{equation*} \left\{ \begin{array}{...
• 109

### eps figures with pdflatex

I tried many of the options cited in many posts. It is not epstopdf package, neither -shell-escape. For me, the solution was to install texlive-font-utils
1 vote

### How to give multiple authors same footnote?

acmart (now) supports this directly. From the documentation: Sometimes one may need to have the same footnote connected to several authors. The command \authornotemark[⟨number⟩] adds just the ...
• 138