Writing Novellas with Groff
The author completed two novellas using groff, a typesetting system typically used for manual pages in Linux. The first novella took seven months, while the second, longer work was written in ten days. The author emphasizes groff’s speed and efficiency, producing high-quality output on an older PC. Custom macros (.SH, .PP, .LP) were created for formatting, with .SH handling chapter titles, .PP enabling hanging indents, and .LP adding paragraph spacing. The author also details implementing page numbers and headers/footers using groff’s trap and register features, noting challenges with page break calculations and asymmetry between header/footer sizes. The process involved defining macros in files like ‘macros.groff’ and compiling to PDF with commands like ‘groff -Tpdf -dpaper=a5’.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.