Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter headers font #4

Open
ohnekopf opened this issue Mar 29, 2023 · 0 comments
Open

chapter headers font #4

ohnekopf opened this issue Mar 29, 2023 · 0 comments
Assignees

Comments

@ohnekopf
Copy link

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

@larrykollar larrykollar self-assigned this Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants