Assorted LaTeX notes

Alt text for caption (e.g. for TOC)

\caption[Alt text]{Full text (\cite{source}) \label{fig:hello-world}}

Batch compilation in scripts, CI etc.

Use latexmk instead of calling latex directly

Bytefield broken (header disappearing)

instead of specifying a range of bits in the bitheader, enumerate them one by one

Bytefield nesting

https://tex.stackexchange.com/questions/155647/combining-packets-of-different-layers

EPS or PDF from Inkscape?

No reason to use EPS. No transparency support. Both formats seem to preserve text fine.

Extract range of pages from PDF

qpdf thesis.pdf --pages . 11-89 -- output.pdf

But, resultant file seems huge. Can also do Print to PDF.

Fonts

Catalogue: https://tug.org/FontCatalogue/seriffonts.html

Libertine really nice (ACM Proceedings)

How to type ~ (tilde)?

Math

Rendering formulas to PNG

https://quicklatex.com/

Tables that look good

booktabs

Two figures side-by-side

https://tex.stackexchange.com/a/282878

But captions broken in ctuthesis -> change estylefloat{figure} to estylefloat*{figure} in ctuth-pkg

URLs in bibliography

https://tex.stackexchange.com/questions/186235/in-bibtex-when-should-i-use-howpublished-and-when-url