Skip to content

Instantly share code, notes, and snippets.

@cstroie
Created August 28, 2013 13:26
Show Gist options
  • Save cstroie/6366042 to your computer and use it in GitHub Desktop.
Save cstroie/6366042 to your computer and use it in GitHub Desktop.
Create A5 hardcopy books form GNU texinfo files
1. Add the @afivepaper command before the end of header.
2. Create the dvi file:
$ texi2dvi4a2ps FILE.texi
3. If needed, center the content:
$ dvips -t a5 -O -11mm,0mm -o FILE.ps FILE.dvi
4. Create the PostScript book:
$ cat FILE.ps | psbook -s4 | psnup -2 -Pa5 -m0 -d0 > FILE_book.ps
5. Create the PDF file:
$ ps2pdf -sPAPERSIZE=a4 -dPDFSETTINGS=/printer FILE_book.ps FILE_book.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment