Skip to content

Separate textual and code placeholders; use slanted font for the latter #1060

Closed
@tkoeppe

Description

@tkoeppe

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:

  1. 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.)

  2. 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.

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lwgIssue must be reviewed by LWG.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions