3) The song files are run through lilypond to produce pdf files

4) The text information from the abc source is extracted and inserted into a 
book template, again using the config file, to produce a ”book document” in 
latex format, which also includes the individual song pdf files

5) The latex document is run through LuaLaTEX

Nice work, but your pdf includes many different subsets of the lilypond fonts 
and is several MB to big because of this.

Use the --bigpdfs option of lilypond  in step 3. The resulting pdfs are _much_ 
bigger because all glyphs from the fonts are included.

Proceed with steps 4 and 5.

Feed the pdf produced from lualatex in step 5 to ghostscript to produce a final pdf. This step 6 will produce a pdf significantly smaller than your current file because ghostscript sees several hundred identical fonts and is smart enough to produce one subset of a font that contains only the glyphs that are really used in your document.

Another topic:

A lot of pages contain a lot of white space. It would be possible to include 
every staff as a paragraph instead of including the whole pdfs ....

Knut

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

Reply via email to