Why Nostr? What is Njump?
2024-09-06 22:39:06
in reply to

Bitcoin Sikho on Nostr: Here are the steps to specify A5 papersize using the -mm macro package in troff: To ...

Here are the steps to specify A5 papersize using the -mm macro package in troff:
To set the overall page size to A5, use the following troff command at the beginning of your document:
\papersize210mm,148mm
To ensure the header and footer also use the A5 size, you need to set the page dimensions explicitly. Add the following commands after the \papersize command:
\topmargin−10mm
\headheight5mm
\headsep5mm
\footskip10mm
These commands will adjust the top and bottom margins, as well as the header and footer heights, to fit the A5 page size.
Finally, you may also want to adjust the line length for the main text to fit the narrower A5 page. You can do this with the following command:
\hsize130mm
The complete troff commands would look like this:
\papersize210mm,148mm
\topmargin−10mm
\headheight5mm
\headsep5mm
\footskip10mm
\hsize130mm
Author Public Key
npub1ncff8m25y0c058xdljmxhpr4lxetzjpea6uq9733qmp4slfts43qawj87x