From 9658f6769d1bded85f72e7b5b0f6a0841ef3604b Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Sun, 5 Nov 2023 15:49:38 -0600 Subject: [PATCH] doc/Guidebook.mn: Caption figures consistently On my system, the figure captions in Guidebook.ps were getting set in Courier roman. This was clearly unintentional. Here's why it didn't work. 1. Figures 1 and 2 selected the previous font, but only after a table had been set. But tbl(1) does not preserve identity of the previous font. I investigated, and none of GNU, Heirloom Doctools, nor Documenter's Workbench tbl implementations preserve it. So the user can't rely on it. See . 2. Figure 3 attempted to select the roman font (typically Times), but did so in a table cell that was empty of text. It therefore did not have any visible effect. * doc/Guidebook.mn: Explicitly select font `R` after setting tables. On typesetters, put half a vee of space between the table's box border and the figure caption. --- doc/Guidebook.mn | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/Guidebook.mn b/doc/Guidebook.mn index 495f2a0c6..942200775 100644 --- a/doc/Guidebook.mn +++ b/doc/Guidebook.mn @@ -277,8 +277,9 @@ The bat bites! Player the Rambler St:12 Dx:7 Co:18 In:11 Wi:9 Ch:15 Neutral Dlvl:1 $:993 HP:9(12) Pw:3(3) AC:10 Exp:1/19 T:752 Hungry Conf .TE -.ft \" revert to previous font +.ft R .ce 1 +.if t .sp 0.5v Figure 1 . .\" Figure 2 uses trailing spaces to force the same width as Figure 1. @@ -291,8 +292,9 @@ Player the Rambler St:12 Dx:7 Co:18 In:11 Wi:9 Ch:15 \" Neutral $:993 HP:9(12) Pw:3(3) AC:10 Exp:1/19 Hungry \" Dlvl:1 T:752 Conf \" .TE -.ft +.ft R .ce 1 +.if t .sp 0.5v Figure 2 . .hn 2 @@ -635,9 +637,11 @@ h\- . \-l \ 4\- . \-6\ \" / | \\ \ / | \\\ \" b j n \ 1 2 3\ \" \fR\ \ (if \fBnumber_pad\fR is set)\ \" -\fR\ Figure 3\ \ \" .TE -.ft +.ft R +.if t .sp 0.5v +.ce 1 +Figure 3 .ED . .lp [YUHJKLBN]