From 992d4e41d5bb277c73c2346903013b736bcf90a0 Mon Sep 17 00:00:00 2001 From: Cian Bagshaw Date: Tue, 1 Nov 2022 01:13:46 +0000 Subject: [PATCH] Added Footers 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 | 2 +- cv.tmac | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e04ae9..c04dc39 100644 --- 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 --- a/cv.tmac +++ b/cv.tmac @@ -103,3 +103,11 @@ .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 -- 2.20.1