Description
We currently use the \placeholder
macro (and its non-italic-correcting variant \placeholdernc
) for both textual and code placeholders, and we typeset both in "italic".
This has two problems:
-
Monospace italics don't always look that great. Slanted "faux-italics" would look better for meta-variables. (But true italics may still be nice for things like
see below
.) -
There is no bold italic monospace font, so a code placeholder in a heading, say, will fall back to bold slanted monospace.
My general idea here is that we should perhaps typeset all code placeholders in slanted, rather than true italics. Not only would that make placeholders look the same in headings and body text, but it is also generally nicer.
This raises a new problem: We use \placeholder
both in text and in code. Obviously, in normal text placeholders should still be decorated as true italics. So we need to distinguish the two use cases, either by laboriously replacing text placeholders with \textit
or some new macro, or by making \placeholder
smart and recognizing its context.