new CC macro for accurately centering a single character column key

This commit is contained in:
keni
2012-04-30 01:11:00 +00:00
parent 371eb4483c
commit 2dc1a2e21e
+24 -10
View File
@@ -38,6 +38,20 @@
.sn \\n(pdu \" tmac.n: inter-paragraph space .sn \\n(pdu \" tmac.n: inter-paragraph space
.. ..
.\" end of labeled paragrah .\" end of labeled paragrah
.\"
.\" aligned single character key with SHORT definition (if it overflows one
.\" line, all bets are off)
.\" Usage:
.\" .CC k "definition here"
.nr CZ \w'\fBW' \" width of the key character column
.nr CW \n(CZ/2 \" half the width of the key character column
.de CC
.nr CX \\w'\\fB\\$1'u/2 \" half the width of the key character
.nr CY \\n(CWu-\\n(CXu \" difference between the two half widths
.\" output: move right CR units, print the key letter, move right to
.\" the full width of the column, print " - " and the definition
\\h'|\\n(CYu'\\fB\\$1\\fP\\h'|\\n(CZu'\ -\ \\$2
..
.mt .mt
A Guide to the Mazes of Menace A Guide to the Mazes of Menace
(Guidebook for NetHack) (Guidebook for NetHack)
@@ -1947,22 +1961,22 @@ prompt with default response of `\fBn\fP' for each candidate).
The possibilities are: The possibilities are:
.sd .sd
.si .si
\fBi\fP - disclose your inventory; .CC i "disclose your inventory;"
\fBa\fP - disclose your attributes; .CC a "disclose your attributes;"
\fBv\fP - summarize monsters that have been vanquished; .CC v "summarize monsters that have been vanquished;"
\fBg\fP - list monster species that have been genocided; .CC g "list monster species that have been genocided;"
\fBc\fP - display your conduct; .CC c "display your conduct;"
\fBo\fP - display dungeon overview. .CC o "display dungeon overview."
.ei .ei
.ed .ed
Each disclosure possibility can optionally be preceded by a prefix which Each disclosure possibility can optionally be preceded by a prefix which
lets you refine how it behaves. Here are the valid prefixes: lets you refine how it behaves. Here are the valid prefixes:
.sd .sd
.si .si
\fBy\fP - prompt you and default to yes on the prompt; .CC y "prompt you and default to yes on the prompt;"
\fBn\fP - prompt you and default to no on the prompt; .CC n "prompt you and default to no on the prompt;"
\fB+\fP - disclose it without prompting; .CC + "disclose it without prompting;"
\fB-\fP - do not disclose it and do not prompt. .CC - "do not disclose it and do not prompt."
.ei .ei
.ed .ed
Omitted categories are implicitly added with `n' prefix. Omitted categories are implicitly added with `n' prefix.