Am 2009-06-04 um 11:06 schrieb Lutz Haseloff:

It has GS compiled in (or as a library or the like), but unfortunately it can't generate PDF snippets, only whole pages.

Not true on my Windows machine. After every run of LP there is a filename-lilypond-1-1.pdf with exactly the same size as the pstopdf generated.

Ok, you're right - a normal LP run (PDF backend) cannot create snippets, but the EPS-backend run does - *plus* it converts eps to pdf by itself. I didn't know the latter; I guess it was introduced only some versions before.

Try to compile the .tmp file with a normal LilyPond call, and you get a page-size PDF. The intermediate .ps file is deleted by LilyPond itself, but you can see it sometimes flash. LilyPond does the conversion to PDF in a second step, AFAIK with its build-in GhostScript.

This is a normal LilyPond run (in German); it mentions the intermediate .ps file and the conversion:

hraban$ lilypond test.ly
GNU LilyPond 2.12.2
»test.ly« wird verarbeitet
Analysieren...
Interpretation der Musik...
Vorverarbeitung der grafischen Elemente...
Ideale Seitenanzahl wird gefunden...
Musik wird auf eine Seite angepasst...
Systeme erstellen...
Layout nach »test.ps« ausgeben...
Konvertierung nach »./test.pdf«...


This is the LilyPond run as executed by t-lilypond:

hraban$ lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts - ddelete-intermediate-files -o"test" test.ly
GNU LilyPond 2.12.2
»test.ly« wird verarbeitet
Analysieren...
Interpretation der Musik...
Vorverarbeitung der grafischen Elemente...
Ideale Seitenanzahl wird gefunden...
Musik wird auf eine Seite angepasst...
Systeme erstellen...
Layout nach »test-1.eps« ausgeben...
Konvertierung nach »./test-1.pdf«...
Layout nach »test.eps« ausgeben...
Konvertierung nach »./test.pdf«...
.../LilyPond.app/Contents/Resources/share/lilypond/current/scm/backend- library.scm:149:21: In procedure delete-file in expression (delete- file (string-append base "." ...)): .../LilyPond.app/Contents/Resources/share/lilypond/current/scm/backend- library.scm:149:21: No such file or directory

You see it creates from the one input file two EPS and PDF files each, that seem exactly the same - I'll investigate and ask on the LilyPond mailing list. The error message isn't nice either, but it doesn't seem to hurt - maybe it's about the useless files, since it mentions "delete-file".



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to