Has anyone written, or is anyone working on, a LaTeX cookbook? Specifically, a guide to writing intermediate/advanced LaTeX macros and solutions to other common tasks?
I found a handful of resources on the Web, but these were all brief and basic and appeared to be written for beginners. I also found a document called "Advanced LaTeX", which looks good, but is only 23 pages, and is actually only intermediate rather than advanced.
I would love to have on my shelf a thick book that covers hundreds of short practical topics, with lots of visual examples.
Things I have wondered how to do—and eventually learned thanks to folks here who have kindly answered my questions—include:
\ooalignto stack glyphs for finely-tuned custom symbols.
- Creating custom symbols with TikZ when a symbol can't easily be created by mixing existing symbols.
- Extracting a single glyph from a font without loading the font to use in a macro.
\verb*to override a symbol.
- Testing whether the current style is slant or italic.
\mathchoiceto ensure a macro displays properly in various math contexts.
\makeatotherfor internal sub-macros.
- Detecting an optional argument inside a macro.
- Extracting specific characters from a macro argument string.
\futureletto query the next token.
\ifthenelseto select different behaviors within a macro (I didn't even know about the
ifthenpackage until yesterday, and I wish I'd known about it weeks ago).
\fboxto debug heights, depths, and width issues.
- Custom vertical and horizontal spacing in the
- When and how to use
- Subtle differences between
- Right and wrong ways to suppress ligatures within a tricky word (such as "shelfful" or "cufflinks").
Many of these things turned out to be easy, but some (like
\futurelet) were difficult if not overwhelming at first attempt. Most common questions seem to have answers here on TeX.sx already, but the answers can be elusive when the magic word or phrase to search for is not known, or when the possibility itself is not known (I totally didn't know about TikZ/PGF, for example).