From c40727bfbb25d5d072a3523d9d6fb3abb7197b5a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 3 Sep 2021 09:20:28 -0700 Subject: Man writer: use custom font V for inline code. The V font is defined conditionally, so that it renders like CB in output formats that support that, and like B in those that don't (e.g. the terminal). We could just redefine C, but this would affect code blocks, too, and putting them all in boldface looks ugly, I think. Possible drawback: fragments created by pandoc's man writer will presuppose a nonstandard V font. Closes #7506. Supersedes 253467a549dcc22384be96041fd6f886c4a7a935. --- data/templates/default.man | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'data') diff --git a/data/templates/default.man b/data/templates/default.man index 58e078914..c752757e7 100644 --- a/data/templates/default.man +++ b/data/templates/default.man @@ -5,6 +5,14 @@ $if(pandoc-version)$ .\" Automatically generated by Pandoc $pandoc-version$ .\" $endif$ +.\" Define V font for inline verbatim, using CB font in formats +.\" that render this, and otherwise B font. +.ie "\f[CB]x\f[]"x" \{\ +. ftr V B +.\} +.el \{\ +. ftr V CB +.\} $if(adjusting)$ .ad $adjusting$ $endif$ -- cgit v1.2.3