gbranden pushed a commit to branch master
in repository groff.

commit bed42a77cb6b5c35fd1ba0d06acc61e3bde05e47
Author: Peter Schaffter <pe...@schaffter.ca>
AuthorDate: Wed Nov 16 12:07:21 2022 -0500

    tmac/papersize.tmac: Integrate better with mom(7).
    
    * tmac/papersize.tmac: If a paper format has been selected, smuggle
      right margin setting to mom(7) if not overridden by the user.  See
      discussion in <https://lists.gnu.org/archive/html/groff/2022-11/\
      msg00081.html> and (some) follow-ups.
---
 ChangeLog           | 7 +++++++
 tmac/papersize.tmac | 5 ++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 35e5f6c03..7463a423e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-11-16  Peter Schaffter <pe...@schaffter.ca>
+
+       * tmac/papersize.tmac: If a paper format has been selected,
+       smuggle right margin setting to mom(7) if not overridden by the
+       user.  See discussion in <https://lists.gnu.org/archive/html/\
+       groff/2022-11/msg00081.html> and (some) follow-ups.
+
 2022-11-12  G. Branden Robinson <g.branden.robin...@gmail.com>
 
        * doc/doc.am (doc/groff-man-pages.pdf)
diff --git a/tmac/papersize.tmac b/tmac/papersize.tmac
index 51cae0553..c40473404 100644
--- a/tmac/papersize.tmac
+++ b/tmac/papersize.tmac
@@ -145,9 +145,12 @@
 .    tmc papersize.tmac: warning: ignoring unrecognized paper format
 .    tm1 " '\*[paper-arg]'
 .  \}
-.  el \
+.  el \{\
 .    if !r LL \
 .      nr LL \n[.l]u  \" for ms, mdoc, man
+.    if !r #R_MARGIN \
+.      nr R_MARGIN 1i \" for mom
+.  \}
 .\}
 .
 .cp \n[*groff_papersize_tmac_C]

_______________________________________________
Groff-commit mailing list
Groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to