groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 02/03: tmac/an-ext.tmac: Set PD to 1v in examples.


From: G. Branden Robinson
Subject: [groff] 02/03: tmac/an-ext.tmac: Set PD to 1v in examples.
Date: Thu, 16 Jan 2020 01:16:55 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 69895ec202f07b48fb3ca2a95d6bb6e9fc66d815
Author: G. Branden Robinson <address@hidden>
AuthorDate: Wed Jan 15 14:50:17 2020 +1100

    tmac/an-ext.tmac: Set PD to 1v in examples.
    
    Use a vertical spacing of 1v between paragraphs in man page examples.
    This looks better (on typesetter devices like PostScript and PDF) with
    the Courier font family also used in examples.  Typewriter devices (like
    the terminal) already used an inter-paragraph spacing of 1v.
    
    * tmac/an-ext.tmac (EX): Save the value of the PD number register
    (inter-paragraph distance), and set it to 1v.
    (EE): Restore previous value of the PD register.
---
 ChangeLog        | 12 ++++++++++++
 tmac/an-ext.tmac |  3 +++
 2 files changed, 15 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index b3946d3..da3f61c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -44,6 +44,18 @@
        via Colin Watson <address@hidden>, tweaked by me.
        Fixes: https://bugs.debian.org/867123
 
+2019-09-22  G. Branden Robinson <address@hidden>
+
+       Use a vertical spacing of 1v between paragraphs in man page
+       examples.  This looks better (on typesetter devices like
+       PostScript and PDF) with the Courier font family also used in
+       examples.  Typewriter devices (like the terminal) already used
+       an inter-paragraph spacing of 1v.
+
+       * tmac/an-ext.tmac (EX): Save the value of the PD number
+       register (inter-paragraph distance), and set it to 1v.
+       (EE): Restore previous value of the PD register.
+
 2019-09-21  Deri James  <address@hidden>
 
        Changes to allow configure to check for URW fonts
diff --git a/tmac/an-ext.tmac b/tmac/an-ext.tmac
index b8599e7..22916de 100644
--- a/tmac/an-ext.tmac
+++ b/tmac/an-ext.tmac
@@ -183,6 +183,8 @@
 .de EX
 .  do ds mF \\n[.fam]
 .  nr mE \\n(.f
+.  nr sP \\n(PD \" Save paragraph distance.
+.  nr PD 1v
 .  nf
 .  nh
 .  do fam C
@@ -194,6 +196,7 @@
 .de EE
 .  do fam \\*(mF
 .  ft \\n(mE
+.  nr PD \\n(sP \" Restore paragraph distance.
 .  fi
 .  hy \\n(HY
 ..



reply via email to

[Prev in Thread] Current Thread [Next in Thread]