gbranden pushed a commit to branch master
in repository groff.

commit 015dc5dcec954938ca91f53c78c9379d54013d2f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Jun 14 07:49:37 2024 -0500

    [mm]: Add "memorandum.mm" example.
    
    * contrib/mm/examples/memorandum.mm: New file illustrates `MT`
      documents.
    
    * contrib/mm/groff_mm.7.man (Files): Document it.
---
 contrib/mm/ChangeLog              |  5 +++++
 contrib/mm/examples/memorandum.mm | 31 +++++++++++++++++++++++++++++++
 contrib/mm/groff_mm.7.man         |  7 +++++++
 3 files changed, 43 insertions(+)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index d5edbf353..a21a72e2d 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-14  G. Branden Robinson <[email protected]>
+
+       * examples/memorandum.mm: New file illustrates `MT` documents.
+       * groff_mm.7.man (Files): Document it.
+
 2024-06-14  G. Branden Robinson <[email protected]>
 
        * examples/letter.mm: Parameterize the letter in its `LT` type,
diff --git a/contrib/mm/examples/memorandum.mm 
b/contrib/mm/examples/memorandum.mm
new file mode 100644
index 000000000..999ed1bce
--- /dev/null
+++ b/contrib/mm/examples/memorandum.mm
@@ -0,0 +1,31 @@
+.\" To observe how the different `MT` memorandum types affect document
+.\" rendering, define the string `mT` to any integer from 0-5 inclusive
+.\" or arbitrarily when formatting it.  `1` is the implied default.
+.\"
+.\" For example...
+.\"   $ groff -mm -dmT=2 memorandum.mm > memorandum.ps
+.\"   $ groff -mm -dmT=SB memorandum.mm > memorandum.ps
+.do if !d mT .ds mT \" empty
+.if n .SA 1
+.AF "Yoyodyne, Inc."
+.TL 123 456
+A Blowdown Stack Modification to the Turbo Encabulator
+.AU "Art Vandelay" axv C D E F G H I
+.AT "President" "501(c)6 Convenor"
+.AU "H.\& E.\& Pennypacker" hep J K L M N O P
+.AT "Chairman" "Wealthy Industrialist"
+.TM 78-9-ABC 98-7-DEF
+.AS
+We're changing the world,
+one obsolescently planned gizmo at a time.
+.AE
+.ND 2024-06-12
+.MT \*(mT
+Successful leverage of our core competencies to achieve economies of
+scale has transformed our entire sector of industry with exciting new
+synergies in allocating more money to (already rich) people.
+.SG QRS
+.NS
+A.\& Pratt
+B.\& Sharpe
+.NE
diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
index e1cc0053e..5d7a073e4 100644
--- a/contrib/mm/groff_mm.7.man
+++ b/contrib/mm/groff_mm.7.man
@@ -5516,6 +5516,13 @@ illustrates features of the
 letter formats.
 .
 .
+.TP
+.I @DOCDIR@/examples/memorandum.mm
+illustrates features of the
+.B MT
+memorandum formats.
+.
+.
 .br
 .ne 5v \" 4v plus bigger type size for heading
 .\" ====================================================================

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

Reply via email to