Re: [NTG-context] Cannot run Lilypond
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) ___ 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 ___
Re: [NTG-context] Cannot run Lilypond
2009/6/4 Henning Hraban Ramm hra...@fiee.net 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 ___ ___ 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 ___
Re: [NTG-context] Cannot run Lilypond
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 -otest 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 ___
Re: [NTG-context] Cannot run Lilypond
Am 2009-06-02 um 17:25 schrieb Vyatcheslav Yatskovsky: I can run Lilypond from command line from any location. Also, I can run pstopdf, but the fact is that i didn't install GhostScript. But I'm not sure if it works, bacause when I run it it says nothing and exits. pstopdf is part of the ConTeXt distribution and should give you something like: hraban$ pstopdf PsToPdf | version 2.0.1 - 2002-2006 - PRAGMA ADE/POD PsToPdf | --convertconvert ps into pdf PsToPdf | --requesthandles exa request file PsToPdf | --watch watch folders for conversions (untested) When I compile my Lily example, lily1-lilypond-1.tmp is created in both document dir and lilytemp subfolder. But lilypdfs remains empty. Don't you get anything else, esp. EPS files? Then LilyPond isn't run. I don't know how to check for that OS-independently in my module. Please try the attached latest version. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) t-lilypond.tex Description: TeX document ___ 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 ___
Re: [NTG-context] Cannot run Lilypond
Hello Vyatcheslav and Lutz, I have just tested Lutz's test file and it compiles fine with luatex on linux-ppc. MTXrun | current version: 2009.05.29 15:44 LuaTeX, Version beta-0.40.1-2009051107 (Web2C 7.5.7) luatex.web = v2376 GNU LilyPond 2.12.2 Piotr 2009/6/2 Lutz Haseloff lutz.hasel...@googlemail.com: 2009/6/2 Henning Hraban Ramm hra...@fiee.net Am 2009-06-01 um 16:50 schrieb Lutz Haseloff: 1) I've installed LilyPond 2.12.2 on Windows 2) Ran a simple example Can you run lilypond on the command line? I.e. is it in your PATH? Yes. Is GhostScript installed and can you run pstopdf on the command line? Yes. 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 ___ ___ 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 ___ -- http://okle.pl ___ 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 ___
Re: [NTG-context] Cannot run Lilypond
Please excuse me, these questions were for Vyatcheslav. I answered in the wrong thread, sorry. Lutz 2009/6/2 Lutz Haseloff lutz.hasel...@googlemail.com 2009/6/2 Henning Hraban Ramm hra...@fiee.net Am 2009-06-01 um 16:50 schrieb Lutz Haseloff: 1) I've installed LilyPond 2.12.2 on Windows 2) Ran a simple example Can you run lilypond on the command line? I.e. is it in your PATH? Yes. Is GhostScript installed and can you run pstopdf on the command line? Yes. 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 ___ ___ 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 ___
Re: [NTG-context] Cannot run Lilypond
Am 2009-06-02 um 10:38 schrieb Lutz Haseloff: Can you run lilypond on the command line? I.e. is it in your PATH? Yes. Is GhostScript installed and can you run pstopdf on the command line? Yes. Please try the attachment (put it in your project directory and rename it to t-lilypond.tex). If you don't get LilyPond ERROR messages, the binaries are probably not found. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) t-lilypond-debug.tex Description: TeX document ___ 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 ___
Re: [NTG-context] Cannot run Lilypond
Thanks for the interest. I can run Lilypond from command line from any location. Also, I can run pstopdf, but the fact is that i didn't install GhostScript. But I'm not sure if it works, bacause when I run it it says nothing and exits. When I compile my Lily example, lily1-lilypond-1.tmp is created in both document dir and lilytemp subfolder. But lilypdfs remains empty. Best, Vyatccheslav ___ 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 ___
Re: [NTG-context] Cannot run Lilypond
Hi Vyatcheslav, Just a guess, I had a similar problem. I had to install ghostscript to get the pstopdf script working. Greetings Lutz -Original Message- From: Vyatcheslav Yatskovsky yatskov...@gmail.com Date: Sun, 31 May 2009 17:19:15 To: ntg-context@ntg.nl Subject: [NTG-context] Cannot run Lilypond Hello, I gave a try to LiliPond today, but it doesn't work for me. 1) I've installed LilyPond 2.12.2 on Windows 2) Ran a simple example \usemodule[lilypond] \starttext There are some notes \lilypond{ \relative{bes a c b} } embedded in this line. \stoptext 3) And got dummy image What's wrong? Details are attached. Regards, Vyatcheslav ___ 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 ___
[NTG-context] Cannot run Lilypond
Hello, I gave a try to LiliPond today, but it doesn't work for me. 1) I've installed LilyPond 2.12.2 on Windows 2) Ran a simple example \usemodule[lilypond] \starttext There are some notes \lilypond{ \relative{bes a c b} } embedded in this line. \stoptext 3) And got dummy image What's wrong? Details are attached. Regards, Vyatcheslav (lily1.tex color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is global activated ConTeXt ver: 2009.05.22 09:27 MKIV fmt: 2009.5.24 int: english/english system : cont-new loaded (c:/contextminimal/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/contextminimal/texmf-context/tex/context/base/cont-new.mkiv) (c:/contextminimal/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (c:/contextminimal/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/contextminimal/texmf-context/tex/context/user/cont-sys.rme (c:/contextminimal/texmf-context/tex/context/base/type-tmf.tex) (c:/contextminimal/texmf-context/tex/context/base/type-siz.tex (c:/contextminimal/texmf-context/tex/context/base/type-siz.mkiv)) (c:/contextminimal/texmf-context/tex/context/base/type-otf.tex (c:/contextminimal/texmf-context/tex/context/base/type-otf.mkiv))) system : lily1.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % special commands, mostly for the ctx development team % % feedback and basic job control % % handy for special styles % \startluacode % document = document or { } % document.arguments={ % } % document.files={ %lily1.tex, % } % \stopluacode % % process info % \setupsystem[\c!n=1,\c!m=1] % \setupsystem[\c!type=windows] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (lily1.top) fonts : preloading latin modern fonts bodyfont: 12pt rm is loaded language: language en is active system : module lilypond loaded (c:/contextminimal/texmf-context/tex/context/third/t-lilypond.tex loading : LilyPond module ) systems : begin file lily1 at line 3 LilyPond: lily1-lilypond-1 fonts : resetting map file list {c:/contextminimal/texmf-context/fonts/map/pdftex/context/original-empty.map} fonts : using map file: original-base {c:/contextminimal/texmf-context/fonts/map/pdftex/context/original-base.map} fonts : using map file: original-ams-base {c:/contextminimal/texmf-context/fonts/map/pdftex/context/original-ams-base.map} fonts : using map file: original-ams-euler {c:/contextminimal/texmf-context/fonts/map/pdftex/context/original-ams-euler.map} fonts : using map file: original-public-lm {c:/contextminimal/texmf-context/fonts/map/pdftex/context/original-public-lm.map} fonts : using map file: lm-math {c:/contextminimal/texmf/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {c:/contextminimal/texmf/fonts/map/dvips/lm/lm-rm.map}[1.1] systems : end file lily1 at line 7 system : cont-err loaded (c:/contextminimal/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) )c:/contextminimal/texmf/fonts/opentype/public/lm/lmmono8-regular.otfc:/contextminimal/texmf/fonts/opentype/public/lm/lmroman12-regular.otf mkiv lua stats : used config path - c:/contextminimal/texmf/web2c/texmf.cnf mkiv lua stats : used cache path - c:/contextminimal/texmf-cache mkiv lua stats : input load time - 0.016 seconds mkiv lua stats : stored bytecode data - 168 modules, 45 tables, 213 chunks mkiv lua stats : cleaned up reserved nodes - 23 nodes, 8 lists of 1411 mkiv lua stats : node memory usage - 19 glue_spec, 2 dir mkiv lua stats : loaded patterns - en:us:pat:exc:2 mkiv lua stats : startup time - 0.500 seconds (including runtime option file processing) mkiv lua stats : callbacks - direct: 171, indirect: 5079, total: 5250 mkiv lua stats : loaded fonts - 31 files: eufb10:tfm eufb7:tfm eufb9:tfm eufm10:tfm eufm7:tfm eufm9:tfm lmex10:tfm lmmi12:tfm lmmi7:tfm lmmi9:tfm lmmib10:tfm lmmib7:tfm lmmono12-regular:otf lmmono8-regular:otf lmmono9-regular:otf lmroman12-bold:otf lmroman12-regular:otf lmroman7-bold:otf lmroman7-regular:otf lmroman9-bold:otf lmroman9-regular:otf lmsans12-regular:otf lmsans8-regular:otf lmsans9-regular:otf lmsy10:tfm lmsy7:tfm