On Tue, Nov 15, 2022, G. Branden Robinson wrote:
> [adding Peter for a mom question]
> Peter, is there something "papersize.tmac" could be doing to help out
> mom(7) here? We'd then have that macro file wired up to all of our
> full-service macro packages.
The attached patch along with my most recent commit gets mom
and papersize working together. I'd apply it myself but I
observe a policy of not committing outside my comfy corner inside
groff/contrib.
Note that when a mom file is built with -Tpdf or pdfmom, there's no
need for -P flags on the command line. (Thanks, Deri!). The one
instance where papersize.tmac needs to be called is when .ps output
is desired and the file consists entirely of presentational
(bare-metal) macros. IOW, quite rare.
--
Peter Schaffter
https://www.schaffter.ca
--- papersize.tmac 2022-11-16 11:56:45.088890965 -0500
+++ papersize-mommified.tmac 2022-11-16 11:56:54.359054026 -0500
@@ -151,9 +151,12 @@
.
. ie \n[paper-w] \
. tm warning: Unknown paper size '\*[paper]'
-. el \
+. el \{\
. if !r LL \
. nr LL \n[.l]u \" for ms, mdoc, man
+. if !r #R_MARGIN \
+. R_MARGIN 1i \" for mom
+. \}
.\}
.
.cp \n[_C]