groff-commit
[Top][All Lists]
Advanced

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

[groff] 15/32: [mm]: Make `LT` letter example more flexible.


From: G. Branden Robinson
Subject: [groff] 15/32: [mm]: Make `LT` letter example more flexible.
Date: Fri, 14 Jun 2024 16:03:40 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit f2b6cbb0e062d51de4ee32c055d3e54baa834acc
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Jun 14 07:29:28 2024 -0500

    [mm]: Make `LT` letter example more flexible.
    
    * contrib/mm/examples/letter.mm: Parameterize the letter in its `LT`
      type, making it easy to render in any of the four supported styles by
      defining a *roff string on the command line.
---
 contrib/mm/ChangeLog          | 6 ++++++
 contrib/mm/examples/letter.mm | 9 ++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 0302790ba..d5edbf353 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-14  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * examples/letter.mm: Parameterize the letter in its `LT` type,
+       making it easy to render in any of the four supported styles by
+       defining a *roff string on the command line.
+
 2024-06-13  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * mm/5.MT: Revise to more closely approximate DWB 3.3 troff
diff --git a/contrib/mm/examples/letter.mm b/contrib/mm/examples/letter.mm
index 5df9a13ca..edb1cbddf 100644
--- a/contrib/mm/examples/letter.mm
+++ b/contrib/mm/examples/letter.mm
@@ -1,3 +1,10 @@
+.\" To observe how the different `LT` letter types affect document
+.\" rendering, define the string `lT` to any of `SB`, `FB`, or `SP`,
+.\" when formatting it.  `BL` is the implied default.
+.\"
+.\" For example...
+.\"   $ groff -mm -dlT=SB letter.mm > letter.ps
+.do if !d lT .ds lT \" empty
 .ND "17 May 2023"
 .WA "Epi G. Netic" "Head of Research"
 123 Main Street
@@ -7,7 +14,7 @@ Anytown, ST  10101
 456 Elsewhere Avenue
 Nirvana, PA  20406
 .IE
-.LT
+.LT \*(lT
 .P
 We have a research leak!
 The next person I catch embedding engineering samples of our Lightspeed



reply via email to

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