Am 2009-06-03 um 16:54 schrieb Mojca Miklavec:
pstopdf is part of the ConTeXt distribution and should give you something like: PsToPdf | version 2.0.1 - 2002-2006 - PRAGMA ADE/POD Yes, but pstopdf relies on existance of ghostscript in path. pstopdf is just a wrapper. If you don't have ghostscript installed, this is unlikely to work.
I know, but Vyatcheslav said, pstopdf would say "nothing", and that would be too less, even if GS isn't installed.
But ... I had some impression that lilypond is able to generate pdfs on the fly?
It has GS compiled in (or as a library or the like), but unfortunately it can't generate PDF snippets, only whole pages. And it generates always PostScript first (after a normal LP run you've a useless .ps file). EPS snippets (that we use here) were a special feature for the LaTeX "lilypond-book" process, that's why there were even more junk files created before v.12.2 Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
2009/6/4 Henning Hraban Ramm
Am 2009-06-03 um 16:54 schrieb Mojca Miklavec:
pstopdf is part of the ConTeXt distribution and should give you something
like: PsToPdf | version 2.0.1 - 2002-2006 - PRAGMA ADE/POD
Yes, but pstopdf relies on existance of ghostscript in path. pstopdf is just a wrapper. If you don't have ghostscript installed, this is unlikely to work.
I know, but Vyatcheslav said, pstopdf would say "nothing", and that would be too less, even if GS isn't installed.
But ... I had some impression that lilypond is able to generate pdfs on
the fly?
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. Lilypond writes: ... Systeme erstellen... Layout nach »lilytest-lilypond-1-1.eps« ausgeben... Konvertierung nach »./lilytest-lilypond-1-1.pdf«... Layout nach »lilytest-lilypond-1.eps« ausgeben... Konvertierung nach »./lilytest-lilypond-1.pdf«... ...
And it generates always PostScript first (after a normal LP run you've a useless .ps file).
I get two .eps: filename-lilypond-1.eps and filename-lilypond-1-1.eps.
EPS snippets (that we use here) were a special feature for the LaTeX "lilypond-book" process, that's why there were even more junk files created before v.12.2
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
___________________________________________________________________________________
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)
participants (2)
-
Henning Hraban Ramm
-
Lutz Haseloff