summaryrefslogtreecommitdiff
path: root/tmac/doc.tmac
diff options
context:
space:
mode:
Diffstat (limited to 'tmac/doc.tmac')
-rw-r--r--tmac/doc.tmac18
1 files changed, 17 insertions, 1 deletions
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 8fd662c07..bab3df174 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -179,7 +179,23 @@
.
.\" TODO: Implement U register.
.
-.\" TODO: Implement X register.
+.\" page number after which to apply letter suffixes
+.\"
+.\" Unlike most of these parameters, we do not set a default for X; only
+.\" the macro an-footer uses it. Page numbers are not rendered at all
+.\" in continuous rendering mode.
+.if r X \{\
+. af doc-page-letter a
+. if \n[doc-is-output-html] \
+. ds doc-msg in HTML output\"
+. if \n[cR] \
+. ds doc-msg when continuously rendering
+.\}
+.if d doc-msg \{\
+. tm mdoc: ignoring page number suffix \*[doc-msg]
+. rr X
+. rm doc-msg
+.\}
.
.
.\" Load startup files.