aboutsummaryrefslogtreecommitdiff
path: root/example.t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-22 15:21:56 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-22 15:21:56 +0200
commit373a72a06939960180137813c8936afea8c7e60e (patch)
tree8d6fe363373ca1c306a14da5c63c05476f803f52 /example.t
parentd5c03c9d88143bb1fd803f25198b48f42ab9d9a7 (diff)
downloadmk-373a72a06939960180137813c8936afea8c7e60e.tar.gz
example.t: Make small addition
Diffstat (limited to 'example.t')
-rw-r--r--example.t26
1 files changed, 18 insertions, 8 deletions
diff --git a/example.t b/example.t
index 87f6bd0..ea1b653 100644
--- a/example.t
+++ b/example.t
@@ -1,17 +1,20 @@
.so g.tmac
.
+.\" configure header and footer
+.eo
.de @h
. sp |36p
-. tl ''-%-''
+. if \n%>1 .tl ''-%-''
. sp |1i
..
.
.de @f
-. sp |\\n(.pu-48p
-. tl ''\\*(%e''
+. sp |\n(.pu-48p
+. tl ''\*(%e''
..
+.ec
.
-. \" configure environments
+.\" configure environments
.@e p
. nr sq \n(sp
. nr sp 0
@@ -23,7 +26,7 @@
. ta 3n +3n +3n +3n
.@e
.
-. \" define macros
+.\" define macros
.eo
.de n
. if !'\$1'' \{\
@@ -41,7 +44,7 @@
..
.ec
.
-. \" start document
+.\" start document
.t
.x Mg ,
a simple macro package for troff
@@ -491,9 +494,11 @@ For example, if you wanted to write a document
with the New Century Schoolbook font
at 9 points
and a vertical spacing of 12 points,
-you would start the document like this:
+you would start the document like this
+(before you call any
+.i mg
+macros):
.l
-\&.so g.tmac \\" include mg
\&.fam N
\&.ps 9p
\&.vs 12p
@@ -523,6 +528,11 @@ How do I customize the default appearance of the margin text?
.l
\&.(e @m \\" margin environment
\&.ps +1p
+.p
+You can also set such settings in your redefinition of
+.c @h
+or
+.c @f .
.
.w s ll
.s