lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(semi-OT) making tabloid-sized booklets


From: Graham Percival
Subject: (semi-OT) making tabloid-sized booklets
Date: Mon, 15 Aug 2005 21:48:18 -0700

After a few hours of frustration, I've succeeded in making tabloid-sized
music booklets (ie print music on a tabloid sheet, fold in half, and you get a booklet with letter-sized pages). In case anybody else is interested in this (either immediately or when they're searching the archives and/or google
in a few months), here's how to do it:

(use lilypond, lilypond-book, whatever; produce a .ps)

psbook example.ps book.ps
psnup -2 -ptabloid -Pletter example.ps tabbook.ps
ps2pdf -sPAPERSIZE=11x17 tabbook.ps tabbook.pdf

I found the basic usage of psbook/psnup in five minutes, but it took me
a few hours to figure out that psnup -ptabloid (and also psresize ) does
_NOT_ adjust the BoundayBox in the output.ps file.  (ie tabbook.ps in
this example).  (this is with psutils 1.17-2 in fink)
If you look at tabbook.ps with a postscript viewer like gv, you'll only
see a letter-sized portion of the tabloid-sized music, and a simple
ps2pdf tabbook.ps tabbook.pdf
will produce a similar letter-sized portion of the tabloid-sized music.

Anyway, as long as you specify the -sPAPERSIZE with ps2pdf,
all is well.  You can also chain the above commands together
into a shell script:

#!/bin/sh
psbook $1.ps | psnup -2 -ptabloid -Pletter | ps2pdf -sPAPERSIZE=11x17 - tab-$1.pdf


Hope this helps somebody,
- Graham





reply via email to

[Prev in Thread] Current Thread [Next in Thread]