On Thu 05 May 2016 at 13:57:33 (+1000), Andrew Bernard wrote:
> David Nalesnik and various others I think have written scheme to allow you to 
> skip a range of numbers when page numbering, or to give a direct list of page 
> numbers to be used. I want to be able to specify something like this list to 
> only have the specified ranges printed, all in one continous score (yes, 
> there is a use case for this!).
> 
> ((1 24) (52 64) (70 80) (100 110))
> 
> Of course, alternatively you could have list of ranges to skip rather than 
> include.
> 
> Has anybody written something like this?
> 
> I case people are wondering, it’s for writing a score where the work is 
> incomplete, but the composer needs the page numbers of the completed sections 
> to correspond to the actual page numbers in his MS. I can’t use bookparts or 
> similar as the score sections start and stop midpage generally, not at 
> logical page breaks.

Nope. I can only suggest a workaround.

\pageBreak % skips to the next page...
\markup { " " }
\pageBreak % ...and that leaves a page blank (except the page number).

Skip all the pages you haven't yet written using that construction.
Run LP. Then
$ pdftk output-file.pdf burst
will give you a set of files called pg_0001.pdf, pg_0002.pdf etc.
The empty pages will be fairly obvious from the file sizes even
without opening them. Delete them manually or otherwise. Then
$ pdftk pg_*.pdf cat output decimated-output.pdf
will concatenate the remaining pages into a single file.

AFAICT the pdftk version distributed with linux (Debian) does
everything advertised for PDFtkPro on its webpage (though the
encryption is explained wrongly on the man page).

Cheers,
David.

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to