summaryrefslogtreecommitdiff
path: root/contrib/mom/om.tmac
diff options
context:
space:
mode:
authorPTPi <PTPi>2008-12-31 02:04:17 +0000
committerPTPi <PTPi>2008-12-31 02:04:17 +0000
commit4b74f4ff791ba0d4effe984648724100471bb7ac (patch)
tree9c916c900b6d2f88ec8888894dc3f593141882c6 /contrib/mom/om.tmac
parentaa8560c4bc39475c719b61fe8458f43d255d6d66 (diff)
downloadgroff-4b74f4ff791ba0d4effe984648724100471bb7ac.tar.gz
o Doc fixes in toc.html
o Control of null pagenumbering of covers passed to \n%; formerly handled by \n[#PAGE_NUM_ADJ]
Diffstat (limited to 'contrib/mom/om.tmac')
-rw-r--r--contrib/mom/om.tmac10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/mom/om.tmac b/contrib/mom/om.tmac
index 7d36cd81..4bb37e8f 100644
--- a/contrib/mom/om.tmac
+++ b/contrib/mom/om.tmac
@@ -48,6 +48,7 @@ to a macro means that any argument turns the feature off.
\# ====================================================================
\#
\# Check which version of groff is being run
+.if r#PAGINATE .ab
.if (\n[.x]\n[.y] < 118) \
. ab [mom]: You need GNU troff version 1.18 or higher to run this version of mom.
\# Check that GNU troff is being run
@@ -7409,22 +7410,27 @@ y\\R'#DESCENDER \\n[.cdp]'
. EOL
. TRAP
. NEWPAGE
+. if \\n[#PAGINATION_WAS_ON]=1 \{ .nr % +1 \}
. if \\n[#DOCCOVER_END]=1 \{\
. ie \\n[#DOCCOVER_BLANKPAGE]=1 \{\
. NEWPAGE
. rr #DOCCOVER_BLANKPAGE
+. if !\\n[#DOCCOVERS_COUNT]=1 \{ .nr % -2 \}
+. \}
+. el \{\
. if !\\n[#DOCCOVERS_COUNT]=1 \{ .nr #PAGE_NUM_ADJ -1 \}
. \}
-. el \{ . \}
. rr #DOCCOVER_END
. \}
. if \\n[#COVER_END]=1 \{\
. ie \\n[#COVER_BLANKPAGE]=1 \{\
. NEWPAGE
. rr #COVER_BLANKPAGE
+. if !\\n[#COVERS_COUNT]=1 \{ .nr % -2 \}
+. \}
+. el \{\
. if !\\n[#COVERS_COUNT]=1 \{ .nr #PAGE_NUM_ADJ -1 \}
. \}
-. el \{ . \}
. rr #COVER_END
. \}
. ev