gbranden pushed a commit to branch master
in repository groff.

commit 69895ec202f07b48fb3ca2a95d6bb6e9fc66d815
Author: G. Branden Robinson <[email protected]>
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 <[email protected]>, tweaked by me.
        Fixes: https://bugs.debian.org/867123
 
+2019-09-22  G. Branden Robinson <[email protected]>
+
+       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  <[email protected]>
 
        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
 ..

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to