mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 09:16:43 +00:00
The aim here (see #9020) is to produce more standard and more portable man pages. To that end: - We revert the fanciness introduced in #7506, which employs a custom font name V and a macro that makes this act like boldface in a terminal and monospace in other formats. Unfortunately, this code uses a mechanism that is not portable (and does not work in mandoc). - Instead of using V for inline code, we simply use CR. Note that `\f[CR]` is emitted instead of plain `\f[C]`, because there is no C font in man. (This produces warnings in recent versions of groff.) - For code blocks, we now use the `.EX` and `.EE` macros, together with `.IP` for spacing and indentation. This gives more standard code that can be better interpreted e.g. by mandoc.
26 lines
473 B
Groff
26 lines
473 B
Groff
$if(has-tables)$
|
|
'\" t
|
|
$endif$
|
|
$if(pandoc-version)$
|
|
.\" Automatically generated by Pandoc $pandoc-version$
|
|
.\"
|
|
$endif$
|
|
$if(adjusting)$
|
|
.ad $adjusting$
|
|
$endif$
|
|
.TH "$title/nowrap$" "$section/nowrap$" "$date/nowrap$" "$footer/nowrap$" "$header/nowrap$"
|
|
$for(header-includes)$
|
|
$header-includes$
|
|
$endfor$
|
|
$for(include-before)$
|
|
$include-before$
|
|
$endfor$
|
|
$body$
|
|
$for(include-after)$
|
|
$include-after$
|
|
$endfor$
|
|
$if(author)$
|
|
.SH AUTHORS
|
|
$for(author)$$author$$sep$; $endfor$.
|
|
$endif$
|