Added Footers
authorCian Bagshaw <cian@cianb.xyz>
Tue, 1 Nov 2022 01:13:46 +0000 (01:13 +0000)
committerCian Bagshaw <cian@cianb.xyz>
Tue, 1 Nov 2022 01:13:46 +0000 (01:13 +0000)
Added footers, set via the FO string, which print centered at the bottom of
each page. Regardless of whether it is defined or not, a trap springs the .DF,
draw footer, macro, two lines from the bottom of each page, breaking it and
creating two lines on the beginning of the new page, appropriately, after
drawing a centered footer title, if there is one defined.

README.md
cv.tmac

index 1e04ae9..c04dc39 100644 (file)
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
 - section headings
 - columned lists
 - timelines/dates
-- (documentation in file!)
+- footers 
 
 ## Invocation 
 
diff --git a/cv.tmac b/cv.tmac
index 6f0d7bb..d245e0e 100644 (file)
--- a/cv.tmac
+++ b/cv.tmac
 .ll +1.2       \" reset line length
 .sp -1
 ..
+.\" .DF - draw footer and start new page
+.de DF
+'sp             \" newline, no text break
+.tl ''\s-2\\*(FO\s+2''  \" draw centered footer title, from FO string
+'sp 2           \" newlines, no text break
+..
+.\" set trap for .DF macro, 2m from bottom of each page
+.wh -2m DF