Little LaTeX Pearls
11 hours ago
- #Academic Writing
- #LaTeX Tips
- #Formatting
- Maintaining correct LaTeX package order ensures compatibility; mathtools before unicode-math, thmtools before cleveref, hyperref before cleveref, and ottalt before undefining macros for enumitem.
- Improve abbreviation spacing with `\eg` macro using `\@` and `\xspace` to apply proper mid-sentence spacing in `\nonfrenchspacing` mode.
- Insert italic correction (`\/`) to prevent collision between italic text and following upright or mathematical characters.
- Create footnotes directly above punctuation with `\punctstack` macro, adjusting kerning to stack the footnote mark over punctuation.
- Adjust spacing around math environments by setting `\abovedisplayskip` and `\belowdisplayskip` after `\begin{document}` in acmart documents.
- Customize various spacing lengths like `jot`, `fboxsep`, and `floatsep` for layout adjustments, and use enumitem's `\setlist` for list spacing control.
- Place theorem statements on the next line using `\leavevmode \\` when theorem names are long, ensuring proper line breaks.
- Set a custom QED symbol (e.g., Unicode U+220E tombstone) with `\newfontfamily` and `\renewcommand{\qedsymbol}` in LuaLaTeX, requiring font support.
- Incorporate math and line breaks in titles using `\textorpdfstring` with macros like `\titlelinebreak` and `\titlealpha` for hyperref compatibility.
- Apply custom equation tags and delimiters using mathtools' `\newtagform` and `\usetagform`, with `showmanualtags` to enable manual tagging.
- Fix theorem environment issues in LLNCS class by redefining internal macros for `\nameref` compatibility and adding custom theorem definitions with `\spn@wtheorem`.
- Set `\pdfoutput=1` to satisfy arXiv's PDF generation requirements, simplifying the submission process by ensuring proper output format.