Skip to content

chapter headers font #4

@ohnekopf

Description

@ohnekopf

Hi! this is a pretty cool project. I am learning a bit of *roff so its really handy to see a full blown project's source.
Anyway, i was comparing the book with the output the source generates on my end, and noticed some slight discrepancies with the way page numbers and headers are typeset. Namely the font is Times Roman instead of Helvetica. Maybe this is a problem on my end? Anyway, my diff to make it look more like the original is:

diff --git a/src/utp.mac b/src/utp.mac
index b0b5bb2..bf64eff 100644
--- a/src/utp.mac
+++ b/src/utp.mac
@@ -643,8 +643,8 @@ Version of 16 November 2002
 .ev header_footer
 .nr PN \\n[%]
 .if !\\n[chapter_page2] \{.   \" if this page doesn't start a chapter
-.	ie o .tl ''\\*[chapter_name]'\\n[PN]'
-.	el .tl '\\n[PN]'\*[square]  Unix Text Processing  \*[square]''
+.	ie o .tl ''\\fH \\*[chapter_name]' \\n[PN]'
+.	el .tl '\\fH\\n[PN]'\*[square]  UNIX Text Processing  \*[square]''
 .\}
 .ev
 ..

Which I hope just changes the font to Helvetica and also capitalizes unix. And hopefully doesnt break everything.
cheers

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions