Re: [NTG-context] Lilypond
On Jun 11, 2014, at 1:51 AM, Henning Hraban Ramm te...@fiee.net wrote: Am 2014-06-11 um 00:26 schrieb David Wooten d...@trichotomic.net: Hi Hraban, thanks very much — yes I am able to get the first examples to work. Is there still a way to insert snippets/single lines of music between paragraphs? Between paragraphs should just work like that. Both examples (1st page multipage insertion) place the snippet on its own page, e.g. this gives me a 3 page document w/ snippet on page 2: \def\readPDFfile#1{\externalfigure[#1]} \usemodule[filter] \defineexternalfilter[lilypond] [continue=yes, readcommand=\readPDFfile, directory=lilytemp/, % directory for LilyPond's files output={\externalfilterbasefile.pdf}, filtercommand={lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts -ddelete-intermediate-files -olilytemp/\externalfilterbasefile \externalfilterinputfile}] \starttext \input zapf \inlinelilypond{c d e f g a b c} \input zapf \stoptext (same result for \startlilypond … \stoplilypond) OS X Mavericks If you’d like to avoid \startlilypond … \stoplilypond, try \inlinelilypond{…} If the one \include line is too much for your use case, you should look into how you can inject that automatically in the buffer file. If you don’t want to include your lilypond settings file every time, follow the advise in filter’s docs regarding LaTeX package „skak“ („Prepend and append text“): http://modules.contextgarden.net/dl/t-filter/doc/context/third/filter/filter.txt Please add your solution to the wiki! I certainly will, Thanks David Greetlings, 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
Am 2014-06-12 um 23:00 schrieb David Wooten da...@farwestmillwork.com: Both examples (1st page multipage insertion) place the snippet on its own page, e.g. this gives me a 3 page document w/ snippet on page 2: The LilyPond settings are essential, otherwise LP produces whole pages, that’s not a problem of ConTeXt. Please read and follow the wiki. Greetlings, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
Right! Got it. On Jun 12, 2014, at 10:37 AM, Henning Hraban Ramm te...@fiee.net wrote: Am 2014-06-12 um 23:00 schrieb David Wooten da...@farwestmillwork.com: Both examples (1st page multipage insertion) place the snippet on its own page, e.g. this gives me a 3 page document w/ snippet on page 2: The LilyPond settings are essential, otherwise LP produces whole pages, that’s not a problem of ConTeXt. Please read and follow the wiki. Greetlings, 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
Am 2014-06-11 um 00:26 schrieb David Wooten d...@trichotomic.net: Hi Hraban, thanks very much — yes I am able to get the first examples to work. Is there still a way to insert snippets/single lines of music between paragraphs? Between paragraphs should just work like that. If you’d like to avoid \startlilypond … \stoplilypond, try \inlinelilypond{…} If the one \include line is too much for your use case, you should look into how you can inject that automatically in the buffer file. If you don’t want to include your lilypond settings file every time, follow the advise in filter’s docs regarding LaTeX package „skak“ („Prepend and append text“): http://modules.contextgarden.net/dl/t-filter/doc/context/third/filter/filter.txt Please add your solution to the wiki! Greetlings, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
Am 2014-06-09 um 04:31 schrieb David Wooten d...@trichotomic.net: Greetings all, it’s been quite a while since I tried to use lilypond snippets in a context file. Looks like we’re now using the filter module… can someone post a small working example file to get me started? —there are a number of different some incomplete approaches to be found, none of which work :) There’s really just one approach, just different setups of the filter module: http://wiki.contextgarden.net/LilyPond Did the first example work at all? Do you have LilyPond installed, and calling „lilypond“ works? Greetlings, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
Hi Hraban, thanks very much — yes I am able to get the first examples to work. Is there still a way to insert snippets/single lines of music between paragraphs? Cheers, David On Jun 10, 2014, at 2:53 AM, Henning Hraban Ramm te...@fiee.net wrote: Am 2014-06-09 um 04:31 schrieb David Wooten d...@trichotomic.net: Greetings all, it’s been quite a while since I tried to use lilypond snippets in a context file. Looks like we’re now using the filter module… can someone post a small working example file to get me started? —there are a number of different some incomplete approaches to be found, none of which work :) There’s really just one approach, just different setups of the filter module: http://wiki.contextgarden.net/LilyPond Did the first example work at all? Do you have LilyPond installed, and calling „lilypond“ works? Greetlings, 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Lilypond
Greetings all, it’s been quite a while since I tried to use lilypond snippets in a context file. Looks like we’re now using the filter module… can someone post a small working example file to get me started? —there are a number of different some incomplete approaches to be found, none of which work :) Kind regards, David ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
Am 2011-08-22 um 03:53 schrieb Aditya Mahajan: @Hraban: Long story short, the filter module is working again. Can you test the dev branch from the latest git version? Thank you! LilyPond ist called, but your approach of including the LaTeX file fails, since you don’t define \linebreak from: \includegraphics{test1-temp-lilypond-0-1}% \ifx\betweenLilyPondSystem \undefined \linebreak \else \expandafter\betweenLilyPondSystem{1}% \fi In my test case (where I include the one system per file patch) I can \def\linebreak{\relax} and get a nice multi-page score. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
On Mon, 22 Aug 2011, Henning Hraban Ramm wrote: Am 2011-08-22 um 03:53 schrieb Aditya Mahajan: @Hraban: Long story short, the filter module is working again. Can you test the dev branch from the latest git version? Thank you! LilyPond ist called, but your approach of including the LaTeX file fails, since you don’t define \linebreak from: I need bigger test files :) I find creating TeX macros to parse the latex output easier than understanding what lilypond creates (there is very little documentation about what goes on behind the scenes). Even the generated latex output is horrible, but, at least, I understand what it does. \includegraphics{test1-temp-lilypond-0-1}% \ifx\betweenLilyPondSystem \undefined \linebreak \else \expandafter\betweenLilyPondSystem{1}% \fi Can you send me the complete example? In my test case (where I include the one system per file patch) I can \def\linebreak{\relax} and get a nice multi-page score. and also send the one system per file patch (is it just including lilypond-book-preamble.ly?). I'll add \let\linebreak\donothing to lilypond::setups. Aditya___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
Am 2011-08-20 um 10:19 schrieb Aditya Mahajan: The other thing is to be able to change linespace, papersize, offset, etc using parameters, so that one can say: \startlilypond[linespace=...] ... \stoplilypond This will require some lua side processing. You mean, translate ConTeXt-style settings to LilyPond settings, like we did with the old module? Yes. That wouldn’t make much sense. LilyPond just has too much settings. And most of them you can set in different ways. To fully support this, you’d need a complete LilyPond parser including Scheme. And a small set of settings is never the right set for everyone. OK. Or we support the same set of options as lilypond-book (the LaTeX module), see http://lilypond.org/doc/v2.14/Documentation/usage/music-fragment-options Ok, there are a few settings that we could translate, e.g. set ConTeXt’s main fonts also for LilyPond. Agreed. Does anyone know how to get the name of the current font in MkIV? We don’t need LilyPond's layout settings, as long as we go the \externalfigure path. But I think that at least automatic paper size settings (set paper size to be equal to text area) are needed. I wouldn’t try to adapt LilyPond’s paper size, but only set line width and use lilypond-book mode to get cropped scores. Otherwise we would need to account for margins and place the score with negative offset etc. At least for full scores it would make sense to synchronize: - line width to \textwidth - fonts: #(define fonts (make-pango-font-tree TeX Gyre Schola LMSans10 LMTypewriter10 Regular (/ 14 20))) I’d even suggest to set Schola as ConTeXt’s default font in t- lilypond. - staff size according to body font (staff size 14 matches bodyfont 8.5pt) General settings: - no point-and-click: #(ly:set-option (quote no-point-and-click)) - no headers/footers/titles/pagination - ragged bottom - no indents (but that might be a matter of taste, since it’s LilyPond default to indent the first line) - keep lyrics inside line: \override PaperColumn #'keep-inside-line = ##t Everything else is just a matter of taste and design, I guess. I don’t know a solution for line breaking of scores - if you’d set LilyPond’s page size to ConTeXt’s remaining space, it would stay the same for the second page. Perhaps we can get single lines (systems) and let ConTeXt to the page breaking. I’ll look into that. OK. I’m waiting for answers from the LP ML. But I don’t know how we can make it right WRT LilyPond snippets - I’d want to align a note systems’s base line with ConTeXt’s text baseline, but the height and clipping of a snippet depends on the visible elements. Without some picture analysis (or runtime data from LilyPond, that doesn’t exist AFAIK) you need to adjust your snippets manually. Does lilypond-book handle this at all? It does not appear to. Manually adjusting each inline snippet will be too much work, IMO. Probably. Do you know how lilypond numbers its output files. In some cases I get filename-1.pdf sometimes not. Can I force it to always give filename-1.pdf or always give filename.pdf LilyPond adds a number to EPS, if there’s more that one page. But in my songbook setup, I always get a filename-temp-lilypond- ##.eps plus an identical filename-temp-lilypond-##-1.eps When you order more than one \midi{} in several \score blocks, the first MIDI file is unnumbered, the second gets number 1 etc.; didn’t try with different \layout blocks yet. Seems like I must do some tests with multipage scores. Look at the current version on github. It should be able to handle multi-page snippets. Problem is, if a multi-page score starts somewhere mid-page, e.g. below a title, LilyPond doesn’t know to break early enough. Please use -dno-gs-load-fonts i.e. *don’t* let GhostScript load its own fonts, since all needed fonts are in the (E)PS anyway, that makes processing faster. Current version doesn’t work at all: - it writes the buffer with doubled filename and extension parts, i.e. from foo.tex foo-foo-temp-lilypond.tmp.tmp, but looks for foo-temp- lilypond.tmp. - even if I rename the buffer file, LilyPond isn’t run. t-filter current filter : lilypond t-filter base file : test1-temp-lilypond t-filter input file : test1-temp-lilypond.tmp t-filter output file : t-filter command : Greetlings from Lake Constance --- fiëé visuëlle Henning Hraban Ramm http://www.fiee.net http://angerweit.tikon.ch/lieder/ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
Re: [NTG-context] Lilypond
Am 2011-08-21 um 14:07 schrieb Henning Hraban Ramm: I don’t know a solution for line breaking of scores - if you’d set LilyPond’s page size to ConTeXt’s remaining space, it would stay the same for the second page. Perhaps we can get single lines (systems) and let ConTeXt to the page breaking. I’ll look into that. OK. I’m waiting for answers from the LP ML. Got an answer: If you include the scheme functions from share/lilypond/current/ly/ lilypond-book-preamble.ly, you get one file per system, if you don’t use a \book block within lilypond. The system count is in foo-systems.count, i.e. read the number from that file and use \externalfigure so often. This additional processing takes a lot of time, so we should only do it if we really need page breaking - best make it an option (split=yes). Do you know how lilypond numbers its output files. In some cases I get filename-1.pdf sometimes not. Can I force it to always give filename-1.pdf or always give filename.pdf IME there’s always a filename.pdf; you get filename-1.pdf for your first page; if you use the preamble quoted above, you’ll get filename-1.pdf etc. for every system. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
On Sun, 21 Aug 2011, Henning Hraban Ramm wrote: Current version doesn’t work at all: - it writes the buffer with doubled filename and extension parts, i.e. from foo.tex foo-foo-temp-lilypond.tmp.tmp, but looks for foo-temp-lilypond.tmp. The \savebuffer command has changed!!! \starttext \startbuffer[abc] test \stopbuffer \savebuffer[abc][name.ext] \stoptext now creates a file \jobname-name.ext, rather than name.ext. I'll provide a work around. - even if I rename the buffer file, LilyPond isn’t run. t-filter current filter : lilypond t-filter base file : test1-temp-lilypond t-filter input file : test1-temp-lilypond.tmp t-filter output file : t-filter command : With the latest version, I also get this. Strange. Aditya___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
On 22-8-2011 00:14, Aditya Mahajan wrote: On Sun, 21 Aug 2011, Henning Hraban Ramm wrote: Current version doesn’t work at all: - it writes the buffer with doubled filename and extension parts, i.e. from foo.tex foo-foo-temp-lilypond.tmp.tmp, but looks for foo-temp-lilypond.tmp. The \savebuffer command has changed!!! well, you wanted a jobname as prefix -) (in mkii that only happens with the \protectbuffers flag is set, in mkiv always) Just tell me what you expect Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
On Mon, 22 Aug 2011, Hans Hagen wrote: On 22-8-2011 00:14, Aditya Mahajan wrote: On Sun, 21 Aug 2011, Henning Hraban Ramm wrote: Current version doesn’t work at all: - it writes the buffer with doubled filename and extension parts, i.e. from foo.tex foo-foo-temp-lilypond.tmp.tmp, but looks for foo-temp-lilypond.tmp. The \savebuffer command has changed!!! well, you wanted a jobname as prefix -) In MkII, not MkIV :) (in mkii that only happens with the \protectbuffers flag is set, in mkiv always) Just tell me what you expect My preference is for \savebuffer[...][filename] to write contents in filename. No funny prefix or suffix. If you have to add prefix and suffixes, please make it configurable (like \bufferprefix and \f!temporaryfilenameextension in MkII). With the current MkIV implementation, I cannot directly write the buffer to a file in another directory. Of course, I can work around using file.move, but that is adding one extra step. Aditya ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
On Sun, 21 Aug 2011, Aditya Mahajan wrote: On Sun, 21 Aug 2011, Henning Hraban Ramm wrote: - even if I rename the buffer file, LilyPond isn’t run. t-filter current filter : lilypond t-filter base file : test1-temp-lilypond t-filter input file : test1-temp-lilypond.tmp t-filter output file : t-filter command : With the latest version, I also get this. Strange. This took a while to debug. The internal representation of the namespace macros has changed in MkIV. \definenamespace[whatever][...] \definewhatever[something][key=value] now defines a macro \whatever:something:key rather than \whateversomethingkey (note the extra colon). In the filter module, I had: \getparameters[\externalfilter::namespace#1][\s!parent=\externalfilter::namespace,#2] which fails in MkIV. To get a working solution in both MkII and MkIV I need: \setupexternalfilter[#1][\s!parent=\externalfilter::namespace,#2] @Hans and Wolfgang: Is it possible to change the internnal representation in mult-aux.mkii so that MkII and MkIV are consistent again? @Hraban: Long story short, the filter module is working again. Can you test the dev branch from the latest git version? Aditya___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
On Fri, 19 Aug 2011, Henning Hraban Ramm wrote: Am 2011-08-19 um 17:08 schrieb Aditya Mahajan: But - can you even support different setups, say \startlilypondpreamble global settings for everything \stoplilypondpreamble \startlilypondpreamble[snippet] global settings for snippets \stoplilypondpreamble \startlilypondpreamble[fullscore] global settings for full scores \stoplilypondpreamble \startlilypond[setup=fullscore] the score \stoplilypond etc. Yes. I can support the following syntax: \startbuffer[snippets] ... \stopbuffer \startbuffer[fullscore] ... \stopbuffer \startbuffer[common] ... \stopbuffer \startlilypond[bufferbefore={snippets,common}, bufferafter={}] \stoplilypond (In fact, provide similar support for anything defined using the filter module). The other thing is to be able to change linespace, papersize, offset, etc using parameters, so that one can say: \startlilypond[linespace=...] ... \stoplilypond This will require some lua side processing. You mean, translate ConTeXt-style settings to LilyPond settings, like we did with the old module? Yes. That wouldn’t make much sense. LilyPond just has too much settings. And most of them you can set in different ways. To fully support this, you’d need a complete LilyPond parser including Scheme. And a small set of settings is never the right set for everyone. OK. Ok, there are a few settings that we could translate, e.g. set ConTeXt’s main fonts also for LilyPond. Agreed. Does anyone know how to get the name of the current font in MkIV? We don’t need LilyPond's layout settings, as long as we go the \externalfigure path. But I think that at least automatic paper size settings (set paper size to be equal to text area) are needed. I don’t know a solution for line breaking of scores - if you’d set LilyPond’s page size to ConTeXt’s remaining space, it would stay the same for the second page. Perhaps we can get single lines (systems) and let ConTeXt to the page breaking. I’ll look into that. OK. But I don’t know how we can make it right WRT LilyPond snippets - I’d want to align a note systems’s base line with ConTeXt’s text baseline, but the height and clipping of a snippet depends on the visible elements. Without some picture analysis (or runtime data from LilyPond, that doesn’t exist AFAIK) you need to adjust your snippets manually. Does lilypond-book handle this at all? It does not appear to. Manually adjusting each inline snippet will be too much work, IMO. Do you know how lilypond numbers its output files. In some cases I get filename-1.pdf sometimes not. Can I force it to always give filename-1.pdf or always give filename.pdf LilyPond adds a number to EPS, if there’s more that one page. But in my songbook setup, I always get a filename-temp-lilypond-##.eps plus an identical filename-temp-lilypond-##-1.eps When you order more than one \midi{} in several \score blocks, the first MIDI file is unnumbered, the second gets number 1 etc.; didn’t try with different \layout blocks yet. Seems like I must do some tests with multipage scores. Look at the current version on github. It should be able to handle multi-page snippets. Aditya___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
Hi Aditya Hraban, I'm very glad to see improved Lilypond integration being discussed. I can't offer too much besides moral support, but would just point out one solution I've found for proper width/alignment of a snippet with extra-staff material (e.g. a piano staff marker { ): If the ConTeXt textwidth is equal to the Lilypond line-width, aligning the float to the right gives you a snippet nicely aligned with flush text (extra-staff material being pushed towards the left margin). Something like this (as in the example in the garden): \def\readlilypondoutput#1{\setupfloats[location=right,frame=off]\placefigure[]{}}{\externalfigure[#1]}} Regards, David On Aug 20, 2011, at 1:19 AM, Aditya Mahajan wrote: On Fri, 19 Aug 2011, Henning Hraban Ramm wrote: Am 2011-08-19 um 17:08 schrieb Aditya Mahajan: But - can you even support different setups, say \startlilypondpreamble global settings for everything \stoplilypondpreamble \startlilypondpreamble[snippet] global settings for snippets \stoplilypondpreamble \startlilypondpreamble[fullscore] global settings for full scores \stoplilypondpreamble \startlilypond[setup=fullscore] the score \stoplilypond etc. Yes. I can support the following syntax: \startbuffer[snippets] ... \stopbuffer \startbuffer[fullscore] ... \stopbuffer \startbuffer[common] ... \stopbuffer \startlilypond[bufferbefore={snippets,common}, bufferafter={}] \stoplilypond (In fact, provide similar support for anything defined using the filter module). The other thing is to be able to change linespace, papersize, offset, etc using parameters, so that one can say: \startlilypond[linespace=...] ... \stoplilypond This will require some lua side processing. You mean, translate ConTeXt-style settings to LilyPond settings, like we did with the old module? Yes. That wouldn’t make much sense. LilyPond just has too much settings. And most of them you can set in different ways. To fully support this, you’d need a complete LilyPond parser including Scheme. And a small set of settings is never the right set for everyone. OK. Ok, there are a few settings that we could translate, e.g. set ConTeXt’s main fonts also for LilyPond. Agreed. Does anyone know how to get the name of the current font in MkIV? We don’t need LilyPond's layout settings, as long as we go the \externalfigure path. But I think that at least automatic paper size settings (set paper size to be equal to text area) are needed. I don’t know a solution for line breaking of scores - if you’d set LilyPond’s page size to ConTeXt’s remaining space, it would stay the same for the second page. Perhaps we can get single lines (systems) and let ConTeXt to the page breaking. I’ll look into that. OK. But I don’t know how we can make it right WRT LilyPond snippets - I’d want to align a note systems’s base line with ConTeXt’s text baseline, but the height and clipping of a snippet depends on the visible elements. Without some picture analysis (or runtime data from LilyPond, that doesn’t exist AFAIK) you need to adjust your snippets manually. Does lilypond-book handle this at all? It does not appear to. Manually adjusting each inline snippet will be too much work, IMO. Do you know how lilypond numbers its output files. In some cases I get filename-1.pdf sometimes not. Can I force it to always give filename-1.pdf or always give filename.pdf LilyPond adds a number to EPS, if there’s more that one page. But in my songbook setup, I always get a filename-temp-lilypond-##.eps plus an identical filename-temp-lilypond-##-1.eps When you order more than one \midi{} in several \score blocks, the first MIDI file is unnumbered, the second gets number 1 etc.; didn’t try with different \layout blocks yet. Seems like I must do some tests with multipage scores. Look at the current version on github. It should be able to handle multi-page snippets. Aditya___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
[NTG-context] Lilypond (Re: buffer names in MKII)
Hi Hraban On Fri, 19 Aug 2011, Henning Hraban Ramm wrote: Am 2011-08-18 um 23:29 schrieb Aditya Mahajan: I am also thinking of providing an interface for parsing the buffer content at lua end. That will allow us to implement all the features of the gnuplot and lilypond module using the filter module. But I need some testers, as I don't use either of the programs. I don't understand what you're planning, I am planning to add features so that you can say: \startlilypondpreamble global settings \stoplilypondpreamble \startlilypond the score \stoplilypond and get a correct output (this is more or less possible right now). The other thing is to be able to change linespace, papersize, offset, etc using parameters, so that one can say: \startlilypond[linespace=...] ... \stoplilypond This will require some lua side processing. but I'll do the testing for LilyPond. Do you know how lilypond numbers its output files. In some cases I get filename-1.pdf sometimes not. Can I force it to always give filename-1.pdf or always give filename.pdf Which OSes do you have access to? Thanks, Aditya ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lilypond
Am 2011-08-19 um 17:08 schrieb Aditya Mahajan: I don't understand what you're planning, I am planning to add features so that you can say: \startlilypondpreamble global settings \stoplilypondpreamble Ah, that's great - at the moment I just import the same settings.ly file into every score of a songbook. But - can you even support different setups, say \startlilypondpreamble global settings for everything \stoplilypondpreamble \startlilypondpreamble[snippet] global settings for snippets \stoplilypondpreamble \startlilypondpreamble[fullscore] global settings for full scores \stoplilypondpreamble \startlilypond[setup=fullscore] the score \stoplilypond etc. The other thing is to be able to change linespace, papersize, offset, etc using parameters, so that one can say: \startlilypond[linespace=...] ... \stoplilypond This will require some lua side processing. You mean, translate ConTeXt-style settings to LilyPond settings, like we did with the old module? That wouldn’t make much sense. LilyPond just has too much settings. And most of them you can set in different ways. To fully support this, you’d need a complete LilyPond parser including Scheme. And a small set of settings is never the right set for everyone. Ok, there are a few settings that we could translate, e.g. set ConTeXt’s main fonts also for LilyPond. We don’t need LilyPond's layout settings, as long as we go the \externalfigure path. I don’t know a solution for line breaking of scores - if you’d set LilyPond’s page size to ConTeXt’s remaining space, it would stay the same for the second page. Perhaps we can get single lines (systems) and let ConTeXt to the page breaking. I’ll look into that. But I don’t know how we can make it right WRT LilyPond snippets - I’d want to align a note systems’s base line with ConTeXt’s text baseline, but the height and clipping of a snippet depends on the visible elements. Without some picture analysis (or runtime data from LilyPond, that doesn’t exist AFAIK) you need to adjust your snippets manually. Do you know how lilypond numbers its output files. In some cases I get filename-1.pdf sometimes not. Can I force it to always give filename-1.pdf or always give filename.pdf LilyPond adds a number to EPS, if there’s more that one page. But in my songbook setup, I always get a filename-temp-lilypond-##.eps plus an identical filename-temp-lilypond-##-1.eps When you order more than one \midi{} in several \score blocks, the first MIDI file is unnumbered, the second gets number 1 etc.; didn’t try with different \layout blocks yet. Seems like I must do some tests with multipage scores. Which OSes do you have access to? Normally I work on OSX Intel 10.5.8; I've access to Windows 7/64 and Ubuntu/Debian machines. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LilyPond nowadays
Am 2011-04-13 um 01:37 schrieb David Wooten: I've gotten back to tinkering with LilyPond, and wanted to ask if someone could send a small example of the new method of handling it, especially with some lilypond settings in the .ly file mentioned below. My initial trials make place the lilypond results on their own page. How would we get them placed in-line? Do you mean in-line music snippets (i.e. within a line of text)? I don’t know, never needed it - and it worked never properly with t- lilypond either. The setup I published in the wiki works for me, I made several songbooklets this way. The mentioned LilyPond settings file is nothing magic - just a LilyPond file, containing LilyPond or Scheme code. It has nothing to do with ConTeXt’s image placement. You don’t need it, if you don’t need it ;-) Find mine attached. Maybe you need the settings of the paper block. Aditya, LilyPond’s preview mode doesn’t help - it just makes a preview (first line) of your music. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) \version 2.13.38 #(ly:set-option (quote no-point-and-click)) #(ly:set-option (quote delete-intermediate-files)) #(set-global-staff-size 14) \paper { #(define dump-extents #t) #(define fonts (make-pango-font-tree TeX Gyre Schola LMSans9 LMTypewriter10 (/ 14 20))) indent = 0\mm ragged-bottom = ##t ragged-last-bottom = ##t print-page-number = ##f %left-margin = 20\mm line-width = 120\mm %top-margin = 10\mm %between-system-space = 30\mm % default: 20\mm oddFooterMarkup = ##f oddHeaderMarkup = ##f bookTitleMarkup = ##f scoreTitleMarkup = ##f } #(define (addBrackets grob) Place brackets round a text object. (let* ( ; Get current text (currentText (ly:grob-property grob 'text)) (bracketedText (markup ( currentText ; Store the bracketed text back (ly:grob-set-property! grob 'text bracketedText) ) ; and print it (ly:text-interface::print grob)) #(define (conditional-string-downcase str condition) (if condition (string-downcase str) str)) #(define (pitch-alteration-semitones pitch) (inexact-exact (round (* (ly:pitch-alteration pitch) 2 #(define ((chord-name-german-markup-text-alteration B-instead-of-Bb) pitch lowercase?) Return pitch markup for PITCH, using german note names. If B-instead-of-Bb is set to #t, real german names are returned. Otherwise, semi-german names (with Bb and below keeping the british names). Alterations are indicated with -es and -is instead of the flat and sharp symbols. (let* ((name (ly:pitch-notename pitch)) (alt-semitones (pitch-alteration-semitones pitch)) (n-a (if (member (cons name alt-semitones) `((6 . -1) (6 . -2))) (cons 7 (+ (if B-instead-of-Bb 1 0) alt-semitones)) (cons name alt-semitones (make-line-markup (list (make-simple-markup (conditional-string-downcase (vector-ref #(C D E F G A H B) (car n-a)) lowercase?)) (let ((alteration (/ (cdr n-a) 2))) (cond ((= alteration FLAT) (make-simple-markup es)) ((= alteration SHARP) (make-simple-markup is)) (else empty-markup))) smN = \override NoteHead #'font-size = #-3 smn = \once \override NoteHead #'font-size = #-3 nmN = \override NoteHead #'font-size = #0 opC = \once \override ChordNames.ChordName #'stencil = #addBrackets cnh = \once \override NoteHead #'style = #'cross ccJ = \set chordChanges = ##t ccN = \set chordChanges = ##f \layout { #(layout-set-staff-size 14) \context { \Score %\dynamicUp % geht so nicht %\override BarNumber #'break-visibility = #all-invisible \remove Bar_number_engraver %\override HeaderText #'font-name = #DelitschAntiqua \override PaperColumn #'keep-inside-line = ##t } \context { \Staff \override TimeSignature #'style = #'numbered %\override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3) % default= (-4 . 4) %\override DynamicLineSpanner #'staff-padding = #2.0 %\override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5) %\override TextScript #'Y-extent = #'(-1.5 . 1.5) } \context { \ChordNames chordChanges = ##t chordNameLowercaseMinor = ##t % patch! chordRootNamer = #(chord-name-german-markup-text-alteration #t) majorSevenSymbol = \markup{ 7+ } } } ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LilyPond nowadays
On Wed, 13 Apr 2011, Henning Hraban Ramm wrote: Aditya, LilyPond’s preview mode doesn’t help - it just makes a preview (first line) of your music. That should work for inline snippets, right? Aditya___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LilyPond nowadays
On Apr 13, 2011, at 2:18 AM, Henning Hraban Ramm wrote: Am 2011-04-13 um 01:37 schrieb David Wooten: I've gotten back to tinkering with LilyPond, and wanted to ask if someone could send a small example of the new method of handling it, especially with some lilypond settings in the .ly file mentioned below. My initial trials make place the lilypond results on their own page. How would we get them placed in-line? Do you mean in-line music snippets (i.e. within a line of text)? I don’t know, never needed it - and it worked never properly with t-lilypond either. Yes, I did mean snippets. I did have it working very well for me a few years ago, tinkering a bit with the module to get the snippets the correct width/placement in reference to the text. The mentioned LilyPond settings file is nothing magic - just a LilyPond file, containing LilyPond or Scheme code. It has nothing to do with ConTeXt’s image placement. You don’t need it, if you don’t need it ;-) Find mine attached. Maybe you need the settings of the paper block. Ah, I see. Thanks for the example. *** On Apr 13, 2011, at 8:13 AM, Aditya Mahajan wrote: On Wed, 13 Apr 2011, Henning Hraban Ramm wrote: Aditya, LilyPond’s preview mode doesn’t help - it just makes a preview (first line) of your music. That should work for inline snippets, right? I'd love to hear if so . . . Thanks, David ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] LilyPond nowadays
Hi all, I've gotten back to tinkering with LilyPond, and wanted to ask if someone could send a small example of the new method of handling it, especially with some lilypond settings in the .ly file mentioned below. My initial trials make place the lilypond results on their own page. How would we get them placed in-line? Thanks, David RE: From the garden: The LilyPond module doesn't work any more with recent versions of ConTeXt. You can simply replace it with the Filter module like this: \def\readPDFfile#1{\externalfigure[#1]} \usemodule[filter] \defineexternalfilter[lilypond] [continue=yes, readcommand=\readPDFfile, directory=lilytemp/, % directory for LilyPond's files output={\externalfilterbasefile.pdf}, filtercommand={lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts -ddelete-intermediate-files -olilytemp/\externalfilterbasefile \externalfilterinputfile}] You can't use \setuplilypond any more, but there is a better replacement: Collect your LilyPond settings in a .ly file, put it in your lilytemp directory and include it from within your lilypond block like this: \startlilypond \include mysettings.ly ... \stoplilypond ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LilyPond nowadays
On Tue, 12 Apr 2011, David Wooten wrote: Hi all, I've gotten back to tinkering with LilyPond, and wanted to ask if someone could send a small example of the new method of handling it, especially with some lilypond settings in the .ly file mentioned below. My initial trials make place the lilypond results on their own page. How would we get them placed in-line? Do you know what options to pass to lilypond so that it outputs a pdf trimmed to the size of the music snippet? Aditya ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LilyPond nowadays
On Tue, 12 Apr 2011, David Wooten wrote: Hi all, I've gotten back to tinkering with LilyPond, and wanted to ask if someone could send a small example of the new method of handling it, especially with some lilypond settings in the .ly file mentioned below. My initial trials make place the lilypond results on their own page. How would we get them placed in-line? Here is a working example. I don't understand lilypond, so I don't know what are the best options to pass to the program. https://github.com/adityam/filter/blob/dev/tests/lilypond-test.tex Aditya ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] lilypond module error with mkiv beta
Hi all, with newest ConTeXt MKIV beta from Minimals following file (from the doc) failes to compile: \usemodule[lilypond] \starttext \subject{Telemann, TWV 40:11} \startlilypond \relative c' { \set Staff.instrumentName = flute \key fis \minor \time 3/4 \partial 4 r8 fis'8 | fis4. cis8 a cis | fis, a cis fis a fis | b, d fis b d b | eis,, gis cis eis gis b, | a fis' gis, fis' cis eis | fis,4 r8 a' gis fis | e gis, a e' fis cis | d fis, gis b e d | cis4 \trill r8 cis b a | b dis e gis cis, b | a e' dis fis b, a | gis4 \trill r8 } \stoplilypond \stoptext The errormessage is: fontslatin modern fonts are not preloaded languageslanguage en is active resolversmodules loaded: 'lilypond' (C:/contextminimal/texmf-local/tex/context/third/lilypond/t-lilypond.tex loading LilyPond module ){C:/contextminimal/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (C:/contextminimal/texmf-context/tex/context/base/type-siz.mkiv) (C:/contextminimal/texmf-context/tex/context/base/type-otf.mkiv){C:/contextminimal/texmf/fonts/map/dvips/lm/lm-math.map}{C:/contextminimal/texmf/fonts/map/dvips/lm/lm-rm.map} fontsfallback modern rm 12pt is loaded system begin file lily.tex at line 3 structuresectioning subject @ level 3 : 0.0.0 - Telemann, TWV 40:11 ! Undefined control sequence. \dodostartlilypond ...ily!filename {\bufferprefix lilypond-\lily!figures }\e... l.19 \stoplilypond Is this a bug in the lilypond module? Greetings Lutz ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] lilypond module error with mkiv beta
Am 2011-02-24 um 14:22 schrieb Lutz Haseloff: Hi all, with newest ConTeXt MKIV beta from Minimals following file (from the doc) failes to compile: http://wiki.contextgarden.net/LilyPond#Deprecation_Warning 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] lilypond module error with mkiv beta
Thank you very much! 2011/2/24 Henning Hraban Ramm hra...@fiee.net: Am 2011-02-24 um 14:22 schrieb Lutz Haseloff: Hi all, with newest ConTeXt MKIV beta from Minimals following file (from the doc) failes to compile: http://wiki.contextgarden.net/LilyPond#Deprecation_Warning 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] LilyPond module 2009-06-05
Vyatcheslav, can you record all the output from your pdflualatex command, and add it to your e-mail? It may contain an error message that would clarify why Lilypond is not being invoked successfully. I had a similar problem on Linux, and had to update to the latest version of the ConTeXt lilypond module to get things working... and then I had to update ConTeXt... and to make that work, I had to update luatex... but eventually it worked. --RC From: Henning Hraban Ramm hra...@fiee.net To: mailing list for ConTeXt users ntg-context@ntg.nl Sent: Tuesday, June 9, 2009 12:35:00 AM Subject: Re: [NTG-context] LilyPond module 2009-06-05 Am 2009-06-05 um 16:13 schrieb Vyatcheslav Yatskovsky: But my problem (under Windows) persists: no eps or pdfs are created. Only lily1-lilypond-1.tmp and lily1-lilypond-1.tmp.md5 in lilytemp folder. Installing GhostScript didn't help. Sorry for the delay, and sorry, but I can't help you on Windows. Since others have it working it's probably a problem of your setup. 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] LilyPond module 2009-06-05
Am 2009-06-09 um 08:13 schrieb Richard Chonak: Vyatcheslav, can you record all the output from your pdflualatex command, and add it to your e-mail? It may contain an error message that would clarify why Lilypond is not being invoked successfully. Unfortunately there's normally no error message if a binary isn't found/called. I had a similar problem on Linux, and had to update to the latest version of the ConTeXt lilypond module to get things working... and then I had to update ConTeXt... and to make that work, I had to update luatex... but eventually it worked. That's normal with everything regarding ConTeXt MkIV. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) PGP.sig Description: Signierter Teil der Nachricht ___ 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] LilyPond module 2009-06-05
Am 2009-06-09 um 08:13 schrieb Richard Chonak: Vyatcheslav, can you record all the output from your pdflualatex command, and add it to your e-mail? It may contain an error message that would clarify why Lilypond is not being invoked successfully. und Henning schrieb: Unfortunately there's normally no error message if a binary isn't found/called. Of course; but in my case last week, lilypond was being found and called with an obsolete command-line switch, so it did produce an error message. --RC___ 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] LilyPond module 2009-06-05
Am 2009-06-05 um 16:13 schrieb Vyatcheslav Yatskovsky: But my problem (under Windows) persists: no eps or pdfs are created. Only lily1-lilypond-1.tmp and lily1-lilypond-1.tmp.md5 in lilytemp folder. Installing GhostScript didn't help. Sorry for the delay, and sorry, but I can't help you on Windows. Since others have it working it's probably a problem of your setup. 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 ___
[NTG-context] LilyPond module 2009-06-05
Just released the latest version with some fixes: - pstopdf is only called if there's no pdf created (seems like LilyPond creates PDFs by itself even in EPS mode now) - before trying to move a file, the target gets deleted if it already exists - some more code cleanup Is someone in need of a MkII version? (I could make that, but only without the file system features.) BTW Mojca is planning for a general tempdir feature for all modules; probably the setup syntax will change a bit if it's ready. 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] LilyPond module 2009-06-05
Thanks, Hraban But my problem (under Windows) persists: no eps or pdfs are created. Only lily1-lilypond-1.tmp and lily1-lilypond-1.tmp.md5 in lilytemp folder. Installing GhostScript didn't help. 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 ___
Re: [NTG-context] Lilypond module problem
Am 2009-06-03 um 09:08 schrieb Lutz Haseloff: \directlua{ os.remove('\tmpdir/\lily!filename.tmp') } % new Is it possible to get these two lines (or some better code) into t- lilypond.tex to get it working for Windows? Please try the attached 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] Lilypond module problem
2009/6/3 Henning Hraban Ramm hra...@fiee.net Am 2009-06-03 um 09:08 schrieb Lutz Haseloff: \directlua{ os.remove('\tmpdir/\lily!filename.tmp') } % new Is it possible to get these two lines (or some better code) into t-lilypond.tex to get it working for Windows? Please try the attached version. Works very well here, thanks! 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 ___
[NTG-context] Lilypond module problem
Hi Mojca, Christopher, Hraban, Wolfgang, the new lilypond module don't build new lilypond pdf files when I change the tex input file. In the log i get: system : module lilypond loaded (c:/contextminimal/texmf-local/tex/context/third/lilypond/t-lilypond.texMTXrun | file './lilytemp/lily1-lilypond-1.tmp' is unchanged MTXrun | file './lilytemp/lily1-lilypond-1.eps' is unchanged loading : LilyPond module My testfile lily1.tex adopted and slightly changed from Vyatcheslav \usemodule[lilypond] \starttext There are some notes \lower 8.2pt\hbox{\lilypond[fragment=true]{\relative c' {c d e f}}} embedded in this line. \stoptext Perhaps this is a feature? Greetings Lutz ___ 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] Lilypond module problem
Am 2009-06-02 um 08:45 schrieb Lutz Haseloff: the new lilypond module don't build new lilypond pdf files when I change the tex input file. Here it works with ConTeXt MkIV beta as of 2009.05.27 11:27. In the log i get: system : module lilypond loaded (c:/contextminimal/texmf-local/tex/context/third/lilypond/t- lilypond.texMTXrun | file './lilytemp/lily1-lilypond-1.tmp' is unchanged Is this file there at all? ConTeXt claims even non existing files as unchanged. Perhaps this is a feature? No, if you change the code, ConTeXt and the module must re-generate the temp file, eps and pdf. 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] Lilypond module problem
2009/6/2 Henning Hraban Ramm hra...@fiee.net Am 2009-06-02 um 08:45 schrieb Lutz Haseloff: the new lilypond module don't build new lilypond pdf files when I change the tex input file. Here it works with ConTeXt MkIV beta as of 2009.05.27 11:27. I use ConTeXt ver: 2009.06.02 09:30 MKIV. In the log i get: system : module lilypond loaded (c:/contextminimal/texmf-local/tex/context/third/lilypond/t-lilypond.texMTXrun | file './lilytemp/lily1-lilypond-1.tmp' is unchanged Is this file there at all? ConTeXt claims even non existing files as unchanged. This file exists twice. One in the working directory (the directory with the texfile) and one in ./lilytemp/ When i run the texfile with context a new lily1-lilypond-1.tmp is created but the other file in ./lilytemp/ is not changed. And only the file in ./lilytemp/ is checked. Perhaps this is a feature? No, if you change the code, ConTeXt and the module must re-generate the temp file, eps and pdf. 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] Lilypond module problem
Am 2009-06-02 um 13:07 schrieb Lutz Haseloff: Here it works with ConTeXt MkIV beta as of 2009.05.27 11:27. I use ConTeXt ver: 2009.06.02 09:30 MKIV. Works still with 2009.06.02 09:30 on MacOS X / Intel. So it seems it's only a Windows problem - probably calling the LilyPond binary, but could also be Lua's os.rename doesn't move? Or your flavour of Windows doesn't understand forwards slashes as directory delimiters any more... 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] Lilypond module problem
2009/6/2 Henning Hraban Ramm hra...@fiee.net Am 2009-06-02 um 13:07 schrieb Lutz Haseloff: Here it works with ConTeXt MkIV beta as of 2009.05.27 11:27. I use ConTeXt ver: 2009.06.02 09:30 MKIV. Works still with 2009.06.02 09:30 on MacOS X / Intel. So it seems it's only a Windows problem - probably calling the LilyPond binary, but could also be Lua's os.rename doesn't move? Or your flavour of Windows doesn't understand forwards slashes as directory delimiters any more... Yes you are right, os.rename() on Windows moves a file only if it not exists. That's why I had a filename-lilypond-1.tmp in my working directory. But perhaps is it possible to delete an existing targetfile with os.remove()? (my attempts to try so were not successful but I will try further) 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] Lilypond module problem
Am 2009-06-02 um 16:01 schrieb Mojca Miklavec: MTXrun | file './lilytemp/lily1-lilypond-1.eps' is unchanged So you now create a subfolder called lilytemp? The name is even configurable. And I create another subfolder for the completed pictures. I like the idea and would be really glad to have a global feature to create some context or context-tmp folder (or whatever) and put all the junk there ... The same wheel needs to be reinvented in every single module. (I have dozens of files lying in every single folder as well.) That's why I asked before, if there was some tempdir feature already in LuaTeX or ConTeXt. (I know there's io.tmpfile, but that's not useful here.) This wheel is really simple, and I guess it's better anyway to be able to use a different directory for each module, so I don't mind if it's re-implemented. 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] LilyPond module 2009-05-27
Am 2009-05-28 um 20:43 schrieb Mojca Miklavec: On Wed, May 27, 2009 at 15:30, Henning Hraban Ramm wrote: Download: http://modules.contextgarden.net/t-lilypond Documentation: http://wiki.contextgarden.net/LilyPond and, of course: http://lilypond.org/doc/v2.12/Documentation/ Changes: - Code cleanup (partly by Wolfgang) - Works with LuaTeX (ConTeXt MkIV) *only*! Also dropped support for EPS inclusion. Maybe you could create t-lilypond.mkii and t-lilypond.mkiv. That way you could keep the old functionality (even if completely weird code is needed) still there for a while. Maybe I could, but who uses MkII can still just take an old release, don't you think? I'm pretty sure the last two releases also didn't work with MkII any more... I won't be able to provide at least the subdirectory feature for MkII anyway. 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] LilyPond module 2009-05-27
On Wed, May 27, 2009 at 15:30, Henning Hraban Ramm wrote: I'm a bit proud to announce the latest version of the LilyPond bridge module. Download: http://modules.contextgarden.net/t-lilypond Documentation: http://wiki.contextgarden.net/LilyPond and, of course: http://lilypond.org/doc/v2.12/Documentation/ Changes: - Code cleanup (partly by Wolfgang) - Works with LuaTeX (ConTeXt MkIV) *only*! Also dropped support for EPS inclusion. Maybe you could create t-lilypond.mkii and t-lilypond.mkiv. That way you could keep the old functionality (even if completely weird code is needed) still there for a while. Mojca ___ 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] LilyPond module 2009-05-27
I'm a bit proud to announce the latest version of the LilyPond bridge module. Download: http://modules.contextgarden.net/t-lilypond Documentation: http://wiki.contextgarden.net/LilyPond and, of course: http://lilypond.org/doc/v2.12/Documentation/ Changes: - Code cleanup (partly by Wolfgang) - Works with LuaTeX (ConTeXt MkIV) *only*! Also dropped support for EPS inclusion. - Uses subdirectories for temporary and created files to keep your working directory clean The included PDF is still the old one, because ConTeXt's processing of modules is broken. It makes no big sense anyway. 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] LilyPond module, release 2009-05-19
2009/5/20 Lutz Haseloff lutz.hasel...@googlemail.com: Thank you very much for the module. I only care for it, I didn't write it, that was Christopher Creutzig, and it wouldn't work with MkIV without Mojca Miklavec. can you insert a line of code in ctxtools.rb? after the line: 430 $dontaskprefixes.push(Dir.glob(mpx-*)) I would like to have: 431 $dontaskprefixes.push(Dir.glob(*-lilypond-*)) that would purge the lilypond temporary files as well. I'm annoyed by LilyPond's garbage files as well, but don't you think, purging **-lilypond-** would be a bit too much? I guess it would be enough to purge the EPS files, we should keep .tmp, .md5 and .pdf, otherwise you must compile the LilyPond parts ever again. I'm using this module for songbooklets containing about 30 songs, calling LilyPond takes a lot of time - too much, if I'm only tweaking the lyrics. So I'd prefer a better solution than just cleaning everything - perhaps some temp dir? I guess the module could just write the tmp files (and thus everything else) to a temp dir -- is there a general ConTeXt configuration for temp stuff? -- and copy the completed pdf images so some image dir -- another ConTeXt config setting? Greetlings, Hraban ___ 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] LilyPond module, release 2009-05-19
Yes I'm just preparing a four volume popular music history which relies on that. Piotr 2009/5/19 Henning Hraban Ramm hra...@fiee.net: I just uploaded a version of the LilyPond module that works with ConTeXt MkIV latest beta (only a small fix). Documentation PDF is still the old one, since I couldn't compile it. Does anyone use this module at all, except me? 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 ___ -- 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] LilyPond module, release 2009-05-19
I've used it in the past, and have been hoping to use it again in MKIV. On May 19, 2009, at 1:24 PM, Henning Hraban Ramm wrote: I just uploaded a version of the LilyPond module that works with ConTeXt MkIV latest beta (only a small fix). Documentation PDF is still the old one, since I couldn't compile it. Does anyone use this module at all, except me? Greetlings from Lake Constance! Hraban ___ 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] LilyPond module, release 2009-05-19
Thank you all for your kind responses! Now I know it's not only for myself ;-) Wolfgang just provided me with a new version with simplified code - thank you very much! So I don't have to re-implement it in Lua too soon ;-) I'll test the new one over the weekend and will release it then. 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 ___
[NTG-context] LilyPond module, release 2009-05-19
I just uploaded a version of the LilyPond module that works with ConTeXt MkIV latest beta (only a small fix). Documentation PDF is still the old one, since I couldn't compile it. Does anyone use this module at all, except me? 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] LilyPond module, release 2009-05-19
I just uploaded a version of the LilyPond module that works with ConTeXt MkIV latest beta (only a small fix). Documentation PDF is still the old one, since I couldn't compile it. Does anyone use this module at all, except me? Yes. I use the module, for the old Context. I plan to upgrade at some point, though. -ERF ___ 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] LilyPond module, release 2009-05-19
Hi Hraban, I use your module since it worked with lilypond 2.12 and I ever used it with mkiv. I had never a problem using it except to get started with lilypond :-) Your new module works here with LuaTeX, Version beta-0.41.0-2009051922 (Web2C 7.5.7) and ConTeXt ver: 2009.05.20 00:02 MKIV very well. Thank you very much for the module. btw. Hi Hans, can you insert a line of code in ctxtools.rb? after the line: 430$dontaskprefixes.push(Dir.glob(mpx-*)) I would like to have: 431$dontaskprefixes.push(Dir.glob(*-lilypond-*)) that would purge the lilypond temporary files as well. Greetings Lutz 2009/5/19 Henning Hraban Ramm hra...@fiee.net I just uploaded a version of the LilyPond module that works with ConTeXt MkIV latest beta (only a small fix). Documentation PDF is still the old one, since I couldn't compile it. Does anyone use this module at all, except me? 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] lilypond results do not show.
2009/2/25 Wei-Wei Guo wrote: Hi everyone, I tried the tex file attached in this email, but the lily figure not shown. It works for me, but I have tried it with This is LuaTeX, Version snapshot-0.35.0 ConTeXt ver: 2009.02.25 14:43 MKIV fmt: 2009.2.28 int: english/english and the latest version of the module. If you use some old version of the module, it might not be adapted for mkiv yet. If the latest module doesn't work for you, then you have too old ConTeXt. There were some error reports, but those come from lilypond and despite the errors, code still works: GNU LilyPond 2.10.33 Processing `mytry-lilypond-1.tmp' Parsing... Interpreting music... [1] Preprocessing graphical objects... Writing mytry-lilypond-1-systems.tex... Writing mytry-lilypond-1-systems.texi... Layout output to `mytry-lilypond-1-1.eps'... Converting to `mytry-lilypond-1-1.pdf'... Layout output to `mytry-lilypond-1.eps'... Converting to `mytry-lilypond-1.pdf'...ERROR: In procedure delete-file: ERROR: No such file or directory PsToPdf | converting eps (ps) into pdf PsToPdf | conversion method 2 PsToPdf | converting mytry-lilypond-1.eps bounded Overfull \hbox (21.33833pt too wide) in paragraph at lines 6--7 [][][] \*modern12ptrmtfrm* em- GNU LilyPond 2.10.33 Processing `mytry-lilypond-2.tmp' Parsing... Interpreting music... [4] Preprocessing graphical objects... Writing mytry-lilypond-2-systems.tex... Writing mytry-lilypond-2-systems.texi... Layout output to `mytry-lilypond-2-1.eps'... Converting to `mytry-lilypond-2-1.pdf'... Layout output to `mytry-lilypond-2.eps'... Converting to `mytry-lilypond-2.pdf'...ERROR: In procedure delete-file: ERROR: No such file or directory PsToPdf | converting eps (ps) into pdf PsToPdf | conversion method 2 PsToPdf | converting mytry-lilypond-2.eps bounded Mojca ___ 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] lilypond results do not show.
Hi everyone, I tried the tex file attached in this email, but the lily figure not shown. The result pdf file and log file are also attached. I also find that there are two files, mytry-lilypond-l.tmp and mytry-lilypond-2.tmp, generated. Those two generated files contain codes for lilypond. I run command LILYPOND on them and get mytry-lilypond-1.pdf, but not mytry-lilypond-2.pdf. I run MTXRUN on mytry.tex again and can only get an error because of existence of mytry-lilypond-1.pdf. I searched in ntg-context mail list and found Olivier Gu??ry had the same problem before (http://www.ntg.nl/pipermail/ntg-context/2008/033582.html). It seems the problem solved in the new lilypond module. But the new module doesn't work here. Any help is appreciated! Best wishes, Wei-Wei (mytry.tex ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2009.2.25 int: english/english system : cont-new loaded (/usr/local/share/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/share/texmf/tex/context/base/cont-new.mkiv) (/usr/local/share/texmf/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (/usr/local/share/texmf/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/share/texmf/tex/context/user/cont-sys.rme (/usr/local/share/texmf/tex/context/base/type-tmf.tex) (/usr/local/share/texmf/tex/context/base/type-siz.tex) (/usr/local/share/texmf/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded specials : pdftex loaded language : language en is active system : mytry.top loaded (mytry.top) system : module lilypond loaded (/usr/local/share/texmf/tex/context/third/lilypond/t-lilypond.tex loading: LilyPond module ) (mytry.tuo) (mytry.tuo) systems: begin file mytry at line 4 color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated fonts : resetting map file list {/usr/local/share/texmf/fonts/map/pdftex/context/original-empty.map} fonts : using map file: original-base {/usr/local/share/texmf/fonts/map/pdftex/context/original-base.map} fonts : using map file: lm-math {/usr/share/texmf-dist/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {/usr/share/texmf-dist/fonts/map/dvips/lm/lm-rm.map} fonts : using map file: original-ams-base {/usr/local/share/texmf/fonts/map/pdftex/context/original-ams-base.map} fonts : using map file: original-ams-euler {/usr/local/share/texmf/fonts/map/pdftex/context/original-ams-euler.map} fonts : using map file: original-public-lm {/usr/local/share/texmf/fonts/map/pdftex/context/original-public-lm.map} [1.1] systems: end file mytry at line 18 system : cont-err loaded (/usr/local/share/texmf/tex/context/base/cont-err.tex systems: no file 'cont-sys.tex', using 'cont-sys.rme' instead ) )/usr/share/texmf-dist/fonts/opentype/public/lm/lmmono8-regular.otf/usr/share/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf mkiv lua stats : used config path - /etc/texmf/web2c/texmf.cnf mkiv lua stats : used cache path - /var/cache/texmf mkiv lua stats : modules/dumps/instances - 94/26/1 mkiv lua stats : input load time - 0.125 seconds mkiv lua stats : startup time - 2.121 seconds (including runtime option file processing) mkiv lua stats : jobdata time - 0.001 seconds saving, 0.000 seconds loading mkiv lua stats : fonts load time - 1.804 seconds mkiv lua stats : xml load time - 0.000 seconds, lpath calls: 0, cached calls: 0 mkiv lua stats : lxml load time- 0.000 seconds preparation, backreferences: 0 mkiv lua stats : mps conversion time - 0.000 seconds mkiv lua stats : node processing time - 0.001 seconds including kernel mkiv lua stats : kernel processing time- 0.001 seconds mkiv lua stats : attribute processing time - 0.004 seconds mkiv lua stats : language load time- 0.046 seconds, n=2 mkiv lua stats : graphics processing time - 0.090 seconds including tex, n=4 mkiv lua stats : metapost processing time - 0.000 seconds, loading: 0.000 seconds, execution: 0.000 seconds, n: 0 mkiv lua stats : current memory usage - 47 MB (ctx: 48 MB) mkiv lua stats : cleaned up reserved nodes - 22 nodes, 8 lists of 100 mkiv lua stats : node memory usage - 20 glue_spec, 2 dir mkiv
Re: [NTG-context] Lilypond module
Am 2008-09-07 um 17:41 schrieb Mojca Miklavec: Temporary solution: Can you please update the module on the garden? (All my mails used to bounce from you, and you have the rights to update the module.) It then automatically propagates to TeX Live. I removed the last anti-spam setting of my mail server that could cause bouncing, as far as I understand. New version of the LilyPond module is in the garden: http://modules.contextgarden.net/module/detail?name=t-lilypond I even finally managed to compile the documentation, that seems to depend from exactly right copyright lines... BTW context --module still doesn't work. 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] Lilypond module
Ok, let's come back to this unsolved mystery - I'm working at another songbook... LilyPond isn't called anymore, neither with MkII nor with MkIV. The buffer gets written, since I removed \the in \savebuffer, as Wolfgang told us at 2008-08-05. As far as I can track it down, \installprogram doesn't do anything. I tried it with different commands, so it's not a problem of the defined and expanded macro. write18 is enabled (at least \ifeof18 is true). Is \installprgram replaced with something different? 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] Lilypond module
Am 2008-09-06 um 21:43 schrieb Henning Hraban Ramm: Ok, let's come back to this unsolved mystery - I'm working at another songbook... LilyPond isn't called anymore, neither with MkII nor with MkIV. The buffer gets written, since I removed \the in \savebuffer, as Wolfgang told us at 2008-08-05. As far as I can track it down, \installprogram doesn't do anything. I tried it with different commands, so it's not a problem of the defined and expanded macro. write18 is enabled (at least \ifeof18 is true). Is \installprogram replaced with something different? Temporary solution: Use always the old executesystemcommand: Replace the whole \ifeof18 ... \fi block with: \executesystemcommand{\LP}% \doif\jobsuffix{pdf}{% \executesystemcommand{\PDF}% }% Don't forget to change the savebuffer line to: \ifx\directlua\undefined \else \savebuffer[lilypond-\lily!figures]\fi (i.e. delete \the) 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] Lilypond module
On Sat, Sep 6, 2008 at 9:58 PM, Henning Hraban Ramm wrote: Temporary solution: Can you please update the module on the garden? (All my mails used to bounce from you, and you have the rights to update the module.) It then automatically propagates to TeX Live. Thanks, Mojca ___ 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] Lilypond module
On Wed, Aug 6, 2008 at 8:51 PM, Olivier Guéry [EMAIL PROTECTED] wrote: Post the log file and the terminal messages. So, you can find the log file join to this mail, and here is the terminal output : No idea, what do you get with MkII or just lilypond on the command line without any TeX. Wolfgang ___ 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] Lilypond module
On Tue, Aug 5, 2008 at 7:55 PM, Olivier Guéry [EMAIL PROTECTED] wrote: 2008/8/5 Wolfgang Schuster [EMAIL PROTECTED]: On Tue, Aug 5, 2008 at 12:00 AM, Olivier Guéry [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, It seem's that the lilypond module don't work. See this minimal exemple : \usemodule[lilypond] \setuplilypond[staffsize=30, fragment=yes, time=no, clef=no] \starttext \lilypond{ \new RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big] \stoptext It failed with : (/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex loading: LilyPond module ) utilityfile | not present systems: begin file test-lilypond at line 6 ! You can't use `the character 1' after \the. \lily!figures -1 \dosavebuffer [#1]-\ctxlua {buffers.save(#1 )} \dodostartlilypond ...ilypond-\the \lily!figures ] \fi \ifeof 18 \expanded {\... l.8 ... RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big] My luatex is : This is LuaTeX, Version snapshot-0.28.0-2008071500 My context : MtxRun | main context file: /usr/share/texmf/tex/context/base/context.tex MtxRun | current version: 2008.07.31 16:30 Any idears ? Remove the \the before \lily!figures at line 259 in the module or use MkII. Thank's. No more error during the compilation, but no image. Look at the pdf ! Post the log file and the terminal messages. Wolfgang ___ 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] Lilypond module
Post the log file and the terminal messages. So, you can find the log file join to this mail, and here is the terminal output : # context test-lilypond.tex MtxRun | loading configuration for /usr/share/texmf/web2c from /home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da MtxRun | run 1: luatex --fmt=/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en --lua=/home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en.lua ./test-lilypond.tex (test-lilypond.tex ConTeXt ver: 2008.07.31 16:30 MKIV fmt: 2008.8.4 int: english/english language : language en is active system : cont-new loaded (/usr/share/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/share/texmf/tex/context/base/cont-new.mkiv lua: used config path - /usr/share/texmf/web2c/texmf.cnf lua: used cache path - /home/nemo/.context-tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028 ) (/usr/share/texmf/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/usr/share/texmf/tex/context/base/cont-old.tex loading: Context Old Macros ) system : cont-fil loaded (/usr/share/texmf/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys loaded (/usr/share/texmf/tex/context/user/cont-sys.tex (/usr/share/texmf/tex/context/base/type-tmf.tex) (/usr/share/texmf/tex/context/base/type-siz.tex) (/usr/share/texmf/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded specials : tex loaded system : test-lilypond.top loaded (test-lilypond.top specials : loading definition file tpd (/usr/share/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/share/texmf/tex/context/base/spec-fdf.tex (/usr/share/texmf/tex/context/base/spec-fdf.mkiv)) specials : fdf loaded (/usr/share/texmf/tex/context/base/spec-tpd.mkiv)) specials : fdf loaded ) system : module lilypond loaded (/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex loading: LilyPond module ) (test-lilypond.tuo) (test-lilypond.tuo) systems: begin file test-lilypond at line 6 color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated fonts : resetting map file list {/usr/share/texmf/fonts/map/pdftex/context/original-empty.map} fonts : using map file: original-base {/usr/share/texmf/fonts/map/pdftex/context/original-base.map} fonts : using map file: lm-math {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fonts : using map file: original-ams-base {/usr/share/texmf/fonts/map/pdftex/context/original-ams-base.map} fonts : using map file: original-ams-euler {/usr/share/texmf/fonts/map/pdftex/context/original-ams-euler.map} fonts : using map file: original-public-lm {/usr/share/texmf/fonts/map/pdftex/context/original-public-lm.map} [1.1] systems: end file test-lilypond at line 10 )/usr/share/texmf/fonts/opentype/public/lm/lmmono8-regular.otf/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf mkiv lua stats : used config path - /usr/share/texmf/web2c/texmf.cnf mkiv lua stats : used cache path - /home/nemo/.context-tmp mkiv lua stats : modules/dumps/instances - 89/23/1 mkiv lua stats : input load time - 0.096 seconds mkiv lua stats : fonts load time - 1.651 seconds mkiv lua stats : xml load time - 0.000 seconds, lpath calls: 0, cached calls: 0 mkiv lua stats : lxml load time- 0.000 seconds preparation, backreferences: 0 mkiv lua stats : mps conversion time - 0.000 seconds mkiv lua stats : node processing time - 0.000 seconds including kernel mkiv lua stats : kernel processing time- 0.000 seconds mkiv lua stats : attribute processing time - 0.002 seconds mkiv lua stats : language load time- 0.084 seconds, n=2 mkiv lua stats : graphics processing time - 0.220 seconds including tex, n=2 mkiv lua stats : metapost processing time - 0.000 seconds, loading: 0.000 seconds, execution: 0.000 seconds, n: 0 mkiv lua stats : current memory usage - 50047179 bytes mkiv lua stats : cleaned up reserved nodes - 21 nodes, 8 lists of 100 mkiv lua stats : node memory usage - 20 glue_spec, 2 dir mkiv lua stats : loaded patterns - us:us:pat:exc:2 mkiv lua stats : loaded fonts - file:lmmono12-regular:otf file:lmmono8-regular:otf file:lmroman10-bolditalic*default:otf file:lmroman10-italic*default:otf
Re: [NTG-context] Lilypond module
On Tue, Aug 5, 2008 at 12:00 AM, Olivier Guéry [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, It seem's that the lilypond module don't work. See this minimal exemple : \usemodule[lilypond] \setuplilypond[staffsize=30, fragment=yes, time=no, clef=no] \starttext \lilypond{ \new RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big] \stoptext It failed with : (/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex loading: LilyPond module ) utilityfile | not present systems: begin file test-lilypond at line 6 ! You can't use `the character 1' after \the. \lily!figures -1 \dosavebuffer [#1]-\ctxlua {buffers.save(#1 )} \dodostartlilypond ...ilypond-\the \lily!figures ] \fi \ifeof 18 \expanded {\... l.8 ... RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big] My luatex is : This is LuaTeX, Version snapshot-0.28.0-2008071500 My context : MtxRun | main context file: /usr/share/texmf/tex/context/base/context.tex MtxRun | current version: 2008.07.31 16:30 Any idears ? Remove the \the before \lily!figures at line 259 in the module or use MkII. Wolfgang ___ 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] Lilypond module
2008/8/5 Wolfgang Schuster [EMAIL PROTECTED]: On Tue, Aug 5, 2008 at 12:00 AM, Olivier Guéry [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, It seem's that the lilypond module don't work. See this minimal exemple : \usemodule[lilypond] \setuplilypond[staffsize=30, fragment=yes, time=no, clef=no] \starttext \lilypond{ \new RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big] \stoptext It failed with : (/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex loading: LilyPond module ) utilityfile | not present systems: begin file test-lilypond at line 6 ! You can't use `the character 1' after \the. \lily!figures -1 \dosavebuffer [#1]-\ctxlua {buffers.save(#1 )} \dodostartlilypond ...ilypond-\the \lily!figures ] \fi \ifeof 18 \expanded {\... l.8 ... RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big] My luatex is : This is LuaTeX, Version snapshot-0.28.0-2008071500 My context : MtxRun | main context file: /usr/share/texmf/tex/context/base/context.tex MtxRun | current version: 2008.07.31 16:30 Any idears ? Remove the \the before \lily!figures at line 259 in the module or use MkII. Thank's. No more error during the compilation, but no image. Look at the pdf ! Olivier. test-lilypond.pdf Description: Adobe PDF 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 ___
[NTG-context] Lilypond module
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, It seem's that the lilypond module don't work. See this minimal exemple : \usemodule[lilypond] \setuplilypond[staffsize=30, fragment=yes, time=no, clef=no] \starttext \lilypond{ \new RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big] \stoptext It failed with : (/usr/share/texmf/tex/context/third/lilypond/t-lilypond.tex loading: LilyPond module ) utilityfile | not present systems: begin file test-lilypond at line 6 ! You can't use `the character 1' after \the. \lily!figures -1 \dosavebuffer [#1]-\ctxlua {buffers.save(#1 )} \dodostartlilypond ...ilypond-\the \lily!figures ] \fi \ifeof 18 \expanded {\... l.8 ... RhythmicStaff {\time 3/4 c8 r4.. c8 r16} } \blank[1*big] My luatex is : This is LuaTeX, Version snapshot-0.28.0-2008071500 My context : MtxRun | main context file: /usr/share/texmf/tex/context/base/context.tex MtxRun | current version: 2008.07.31 16:30 Any idears ? Cheers, Olivier. - -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: http://getfiregpg.org iD8DBQFIl3qqDylEczeynX8RAg/hAJ9khkllpkL5WEwJWnDvS2AJH0uJXACfb4pF LYMgkWzkwUlyX4WjgEfbfSw= =W6YC -END PGP SIGNATURE- ___ 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] Lilypond MKIV, pstopdf, sysctl errors?
On 8/27/07, David Wooten wrote: On Aug. 26, 2007, at Aug 26, 6:44 PM, Mojca Miklavec wrote: On 8/27/07, David Wooten wrote: Greetings all, In trying to run Mojca's latest Lilypond extension with MKIV (on an Intel Mac), I've been receiving the errors after pstopdf is run, which I've never seen before: *** sysctlbyname_with_pid: sysctl failed:Operation not permitted is_pid_native: sysctlbyname_with_pid failed:Operation not permitted *** According to google this seems to be mac-specific problem, and the first think that comes to my mind are problems with GhostScript during conversion. (http://developer.apple.com/documentation/MacOSX/ Conceptual/universal_binary/universal_binary.pdf) How did you install GhostScript? Try which gs, gs --version and gs alone to check some more details about the version. It seems most likely that I installed GhostScript via Gerben's i- installer. From apple's Terminal.app: *** ~ $ which gs /usr/local/bin/gs ~ $ gs --version 8.57 ~ $ gs GPL Ghostscript 8.57 (2007-05-11) Copyright (C) 2007 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Hello, I use fink's ghostscript. I'm almost sure that the problem lies in GS; that report cannot come from ConTeXt (unless pstopdf does some nasty things with eps documents which then confuse gs - it does delete some portions from ps files, but I doubt that that could be the problem). I have no idea whom to report anything. (Gerben said he had stopped with user support, and he probably cannot reproduce the error if it's really inconsistent behaviour - that it works one time and not the other time.) Do you have fink already installed? (If yes, try to install ghostscript from there.) I would suggest you to try running pstopdf on some random postscript document once you spot the error, and see what happens. Perhaps you can try running pstopdf on that document after an unsuccesfull ConTeXt run ... Unless others have any better ideas ... Mojca ___ 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] lilypond
Hallo Wolfgang, ich hoffe es ist OK, dass ich mich direkt an Dich wende. Deinem E-Mail an die Liste entnehme ich, dass Du an sich das Modul zum Laufen bekommen hast. Bei mir kommt statt jedoch nur ein grauer Kasten mit dem Inhalt: name: dummy file: test-lilypond-1 state: unknown Irgendwie wird kein eps erzeugt, das Programm Lilpond.app nicht gefunden? Kannst Du mir einen Tipp geben, wie Du das ganze installiert hast? Danke! Steffen Am 03.07.2007 um 17:59 schrieb Wolfgang Werners-Lucchini: Hallo! I tryed the first wiki-example: There are some notes \lilypond{ \relative{bes a c b} } embedded in this line. With version 2.11.27 the lilypond option -b eps is unknown. With version 2.10.25 the above example is a 3-page output: (1) There are some notes (2) lilypond-output (3) embedded in this line Should I downgrad with lilypond? Or what else I am doing wrong? Wolfgang __ _ 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] lilypond
On 7/6/07, Henning Hraban Ramm wrote: Am 2007-07-03 um 17:59 schrieb Wolfgang Werners-Lucchini: Sorry, the publicly available LilyPond module is outdated. Try the attached one. I delayed the publishing of my latest version because Ruby texexec had a bug that prevented lilypond from being called, I guess that's gone, but I had no time to check yet. The module on the garden worked OK for me with lilypond 2.10.25, but it failed (only slightly) when called with LuaTeX, that's why you need an additional one-line patch. And I didn't adapt the module to LilyPond 2.11, too. (2.10.2x should work.) To Steffen: if you're working with Mac (I'm not sure), the easiest way is to install it with fink (of course you need to have fink installed first.) fink install lilypond Mojca ___ 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] Lilypond MKIV, pstopdf, sysctl errors?
I narrowed it down to my editor, in fact. Strange! The command line call for TextMate (mate) gives me the errors. I was compiling via the ConTeXt TextMate bundle and it must call mate for some reason at that point. pstopdf is off the hook ;) Dave On Aug. 27, 2007, at Aug 27, 3:54 AM, Mojca Miklavec wrote: On 8/27/07, David Wooten wrote: On Aug. 26, 2007, at Aug 26, 6:44 PM, Mojca Miklavec wrote: On 8/27/07, David Wooten wrote: Greetings all, In trying to run Mojca's latest Lilypond extension with MKIV (on an Intel Mac), I've been receiving the errors after pstopdf is run, which I've never seen before: *** sysctlbyname_with_pid: sysctl failed:Operation not permitted is_pid_native: sysctlbyname_with_pid failed:Operation not permitted *** According to google this seems to be mac-specific problem, and the first think that comes to my mind are problems with GhostScript during conversion. (http://developer.apple.com/documentation/MacOSX/ Conceptual/universal_binary/universal_binary.pdf) How did you install GhostScript? Try which gs, gs --version and gs alone to check some more details about the version. It seems most likely that I installed GhostScript via Gerben's i- installer. From apple's Terminal.app: *** ~ $ which gs /usr/local/bin/gs ~ $ gs --version 8.57 ~ $ gs GPL Ghostscript 8.57 (2007-05-11) Copyright (C) 2007 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Hello, I use fink's ghostscript. I'm almost sure that the problem lies in GS; that report cannot come from ConTeXt (unless pstopdf does some nasty things with eps documents which then confuse gs - it does delete some portions from ps files, but I doubt that that could be the problem). I have no idea whom to report anything. (Gerben said he had stopped with user support, and he probably cannot reproduce the error if it's really inconsistent behaviour - that it works one time and not the other time.) Do you have fink already installed? (If yes, try to install ghostscript from there.) I would suggest you to try running pstopdf on some random postscript document once you spot the error, and see what happens. Perhaps you can try running pstopdf on that document after an unsuccesfull ConTeXt run ... Unless others have any better ideas ... Mojca __ _ 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 ___
[NTG-context] lilypond
Mojca, cn you check this module for things like \leavevmode% \newdimen\FigWidth \FigWidth=\figurewidth \ifdim\FigWidth\localhsize \!!dimena=\localhsize \advance\!!dimena by-\FigWidth \noindent\hskip\!!dimena \fi (1) defining dimens this way will create new ones every time since registers are defined global (2) there is no need for the intermediate dimen anyway (3) use dontleavehmode instead of leavevmode (4) things can be simplified to: \ifdim\figurewidth\localhsize \dontleavehmode\hskip\dimexpr\localhsize-\figurewidth\relax \fi - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Lilypond MKIV, pstopdf, sysctl errors?
Greetings all, In trying to run Mojca's latest Lilypond extension with MKIV (on an Intel Mac), I've been receiving the errors after pstopdf is run, which I've never seen before: *** sysctlbyname_with_pid: sysctl failed:Operation not permitted is_pid_native: sysctlbyname_with_pid failed:Operation not permitted *** This is from near the bottom of the log file (included below). These errors do not always appear, but once they start, they don't go away. Furthermore, I receive the message: 2007-08-26 16:36:16.584 open[2988] No such file: /Users/wooten/ Desktop/Test/LilyLua-lilypond-1.pdf When it does actually exist, and I have to run texmfstart again to get a changed PDF. I can't find much on the sysctl errors. Anyone see a possible connection? Best, David *** texmfstart texexec --pass=\'-halt-on-error -file-line-error\' LilyLua.tex TeXExec | processing document 'LilyLua.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file LilyLua.top TeXExec | using randomseed 1137 TeXExec | tex engine: luatex TeXExec | tex format: cont-en This is luaTeX, Version 3.141592-beta-0.10.1-2007072304 (Web2C 7.5.6) (./LilyLua.texMissing script file ConTeXt ver: 2007.08.26 21:41 MKIV fmt: 2007.8.26 int: english/ english language: language en is active system : cont-new loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont- new.mkiv) (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/ cont-mtx.tex)) system : cont-old loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/user/cont-sys.tex) bodyfont: 12pt rm is loaded language: patterns nl-default:default-1-2:3 fr- default:default-2-2:3 de-default:default-3-2:3 it- default:default-4-2:3 pt-default:default-5-2:3 hr- default:default-6-2:3 pl-default:default-7-2:3 cz- default:default-8-2:3 sk-default:default-9-2:3 sl- default:default-10-2:3 ru-default:default-12-2:3 en- default:default-13-2:3 uk-default:default-14-2:3 us- default:default-[13]-2:3 agr-default:default-15-2:3 da- default:default-16-2:3 sv-default:default-17-2:3 af- default:default-[1]-2:3 no-default:default-18-2:3 deo- default:default-19-2:3 es-default:default-20-2:3 ca- default:default-21-2:3 la-default:default-22-2:3 ro- default:default-23-2:3 tr-default:default-24-2:3 fi- default:default-26-2:3 hu-default:default-27-2:3 loaded specials: tex,postscript,rokicki loaded system : LilyLua.top loaded (./LilyLua.top specials: loading definition file tpd (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/spec-tpd.tex specials: loading definition file fdf (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/spec-fdf.tex (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/spec-fdf.mkiv)) specials: fdf loaded ) specials: fdf,tpd loaded ) system : module lilypond loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/third/t- lilypond.tex) (./LilyLua.tuo) (./LilyLua.tuo) systems : begin file LilyLua at line 5 (/Users/wooten/conTeXt/tex/texmf-local/tex/context/sample/knuth.tex){/ Users/wooten/conTeXt/tex/texmf-local/fonts/map/pdftex/context/ original-empty.map}{/Users/wooten/conTeXt/tex/texmf/fonts/map/dvips/ lm/lm-texnansi.map}{/Users/wooten/conTeXt/tex/texmf-local/fonts/map/ pdftex/context/original-base.map}{/Users/wooten/conTeXt/tex/texmf/ fonts/map/dvips/lm/lm-ec.map}{/Users/wooten/conTeXt/tex/texmf/fonts/ map/dvips/lm/lm-math.map}{/Users/wooten/conTeXt/tex/texmf/fonts/map/ dvips/lm/lm-rm.map}{/Users/wooten/conTeXt/tex/texmf-local/fonts/map/ pdftex/context/original-ams-base.map}{/Users/wooten/conTeXt/tex/texmf- local/fonts/map/pdftex/context/original-ams-euler.map}{/Users/wooten/ conTeXt/tex/texmf-local/fonts/map/pdftex/context/original-public- lm.map} ./LilyLua-lilypond-1.pdf figures : dimensions of LilyLua-lilypond-1.pdf loaded from figurefile itself Overfull \hbox (6.83257pt too wide) in paragraph at lines 16--17 [][][] lua : input load time - 0.040 seconds lua : fonts load time - 1.030 seconds lua : mps conversion time - 0.000 seconds lua : node processing time - 0.000 seconds lua : attribute processing time - 0.010 seconds lua : used config path - /Users/wooten/conTeXt/tex/texmf{- local,}/web2c lua : used cache path - /Users/wooten/.conTeXt-temp/ luatex-cache/context/613f059707fe40567271dc8baeac0123 lua :
Re: [NTG-context] Lilypond MKIV, pstopdf, sysctl errors?
On 8/27/07, David Wooten wrote: Greetings all, In trying to run Mojca's latest Lilypond extension with MKIV (on an Intel Mac), I've been receiving the errors after pstopdf is run, which I've never seen before: *** sysctlbyname_with_pid: sysctl failed:Operation not permitted is_pid_native: sysctlbyname_with_pid failed:Operation not permitted *** According to google this seems to be mac-specific problem, and the first think that comes to my mind are problems with GhostScript during conversion. (http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary.pdf) How did you install GhostScript? Try which gs, gs --version and gs alone to check some more details about the version. Mojca ___ 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] Lilypond MKIV, pstopdf, sysctl errors?
On Aug. 26, 2007, at Aug 26, 6:44 PM, Mojca Miklavec wrote: On 8/27/07, David Wooten wrote: Greetings all, In trying to run Mojca's latest Lilypond extension with MKIV (on an Intel Mac), I've been receiving the errors after pstopdf is run, which I've never seen before: *** sysctlbyname_with_pid: sysctl failed:Operation not permitted is_pid_native: sysctlbyname_with_pid failed:Operation not permitted *** According to google this seems to be mac-specific problem, and the first think that comes to my mind are problems with GhostScript during conversion. (http://developer.apple.com/documentation/MacOSX/ Conceptual/universal_binary/universal_binary.pdf) How did you install GhostScript? Try which gs, gs --version and gs alone to check some more details about the version. It seems most likely that I installed GhostScript via Gerben's i- installer. From apple's Terminal.app: *** ~ $ which gs /usr/local/bin/gs ~ $ gs --version 8.57 ~ $ gs GPL Ghostscript 8.57 (2007-05-11) Copyright (C) 2007 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. *** Best, David ___ 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] Lilypond for a newbie
Am 2007-07-06 um 23:46 schrieb Vyatcheslav Yatskovsky: I saw some discussions of Lilypond here, but did not understand it. :) Please, tell me as for a newbie, how to use Lilypond with ConTeXt? I have some .ly files prepared and tested, but I know nothing better then to render them as .png and then include in a document as images. see http://wiki.contextgarden.net/LilyPond see also several other threads about LilyPond - I just posted the latest version of the lilypond module, but have no time for testing, bugfixing or enhancing at the moment. Of course you can simply use LilyPond's EPS or PDF output as images. NEVER use bitmaps (like PNGs) if you can get scalable data! 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] lilypond
Am 2007-07-03 um 17:59 schrieb Wolfgang Werners-Lucchini: I tryed the first wiki-example: There are some notes \lilypond{ \relative{bes a c b} } embedded in this line. With version 2.11.27 the lilypond option -b eps is unknown. With version 2.10.25 the above example is a 3-page output: (1) There are some notes (2) lilypond-output (3) embedded in this line Should I downgrad with lilypond? Or what else I am doing wrong? Sorry, the publicly available LilyPond module is outdated. Try the attached one. I delayed the publishing of my latest version because Ruby texexec had a bug that prevented lilypond from being called, I guess that's gone, but I had no time to check yet. And I didn't adapt the module to LilyPond 2.11, too. (2.10.2x should work.) I don't know if inline LilyPond worked at any time, though; I never needed it. 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: Binary data ___ 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] Lilypond for a newbie
Hello, I saw some discussions of Lilypond here, but did not understand it. :) Please, tell me as for a newbie, how to use Lilypond with ConTeXt? I have some .ly files prepared and tested, but I know nothing better then to render them as .png and then include in a document as images. Thanks and best regards, Vyatcheslav Yatskovsky ___ 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] lilypond
Hallo! I tryed the first wiki-example: There are some notes \lilypond{ \relative{bes a c b} } embedded in this line. With version 2.11.27 the lilypond option -b eps is unknown. With version 2.10.25 the above example is a 3-page output: (1) There are some notes (2) lilypond-output (3) embedded in this line Should I downgrad with lilypond? Or what else I am doing wrong? Wolfgang ___ 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] lilypond newbie
On Thu, May 10, 2007 at 09:36:15AM +0200, Steffen Wolfrum wrote: On Wed, 9 May 2007 23:31:00 +0200, Henning Hraban Ramm wrote: Am 2007-05-09 um 13:47 schrieb Steffen Wolfrum: \enableregime[utf] \usemodule[lilypond] \starttext \startlilypond % Telemann, TWV 40:11 \version 2.6.3 far tool old! use the latest LilyPond 2.10.x! (the module works only with LilyPond 2.8, as mentioned on the wiki page) \relative c? { You've always ? instead of ' -- that can't work! We need code, not typography! Pardon?! The example you refer to is from the recent version of t-lilypond.pdf from ctan as I wrote in my initial posting (see below). As I had to start somewhere, I thought it's a good start to use the most recent versions of lilypond-2.10.23-1.darwin-x86.tar.bz2 from lilypond.org, t-lilypond.pdf from ctan and t-lilypond.tex that you have posted here last week. I have no idea why this leads to statements like far tool old and We need code, not typography!. But it seems something is wrong here. Steffen I also had my first brush with the lilypond module recently and also started with the example included in the manual. I don't know if I'm right (having no idea about module's inner workings) but it seems that the offending command is \version 2.6.3 after removing it everything went surprisingly smooth. Piotr ___ 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] lilypond snippet in the wiki
Hello all the lilyponders on the list, When I run the snippet from the wiki in a slightly modified form: \usemodule[lilypond] \starttext There are some notes\lilypond[clef=no, time=no, staffsize=6]{ \relative{bes a c b} } embedded in this line. \stoptext I'm getting desired result except for the fact that the staff starts in the new line. Is it possible to obtain the staff in the same line as the words There are some notes followed immediately by embedded in this line? Piotr ___ 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] lilypond newbie
So, after extensive testing (with support from Arthur) using the lilypond-module (as described) just doesn't work at all. What to do now? As it seems to be a question of several parts working / not working together, who feels responsible? Steffen On Fri, 11 May 2007 18:31:10 +0200, Mojca Miklavec wrote: On 5/10/07, Henning Hraban Ramm wrote: I didn't even knew there was a version of t-lilypond on CTAN (overlooked that in Steffen's post). You cannot escape the big brother ;) (It's a known problem that ConTeXt versions on CTAN are often outdated, too.) If we're speaking about ConTeXt, that's partly intentional. (It gets updated only when Taco explicitely submits it - when he thinks the version is less buggy that on average.) If you're speaking about the modules: updates to CTAN are curretly manual. CTAN team asked for rsync access to the modules. Now they have it, but didn't respond yet. I guess it's not automatic yet ... but should become so sooner or later. Mojca ___ 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] lilypond newbie
Am 2007-05-14 um 09:45 schrieb Steffen Wolfrum: So, after extensive testing (with support from Arthur) using the lilypond-module (as described) just doesn't work at all. What to do now? As it seems to be a question of several parts working / not working together, who feels responsible? Did you try old Perl texexec? (As I wrote several times, LilyPond doesn't get called - or one time at max - with Ruby texexec.) But it seems to need one Ruby run afterwards. Sorry, I can't help you further, I just don't understand most of the TeX internals needed. 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] lilypond newbie
On 5/10/07, Henning Hraban Ramm wrote: I didn't even knew there was a version of t-lilypond on CTAN (overlooked that in Steffen's post). You cannot escape the big brother ;) (It's a known problem that ConTeXt versions on CTAN are often outdated, too.) If we're speaking about ConTeXt, that's partly intentional. (It gets updated only when Taco explicitely submits it - when he thinks the version is less buggy that on average.) If you're speaking about the modules: updates to CTAN are curretly manual. CTAN team asked for rsync access to the modules. Now they have it, but didn't respond yet. I guess it's not automatic yet ... but should become so sooner or later. Mojca ___ 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] lilypond newbie
On Wed, 9 May 2007 23:31:00 +0200, Henning Hraban Ramm wrote: Am 2007-05-09 um 13:47 schrieb Steffen Wolfrum: \enableregime[utf] \usemodule[lilypond] \starttext \startlilypond % Telemann, TWV 40:11 \version 2.6.3 far tool old! use the latest LilyPond 2.10.x! (the module works only with LilyPond 2.8, as mentioned on the wiki page) \relative c’ { You've always ’ instead of ' -- that can't work! We need code, not typography! Pardon?! The example you refer to is from the recent version of t-lilypond.pdf from ctan as I wrote in my initial posting (see below). As I had to start somewhere, I thought it's a good start to use the most recent versions of lilypond-2.10.23-1.darwin-x86.tar.bz2 from lilypond.org, t-lilypond.pdf from ctan and t-lilypond.tex that you have posted here last week. I have no idea why this leads to statements like far tool old and We need code, not typography!. But it seems something is wrong here. Steffen On Wed, 9 May 2007 13:47:53 +0200, Steffen Wolfrum wrote: ... I found lilypond mentioned on the list, downloaded lilypond-2.10.23-1.darwin-x86.tar.bz2 from lilypond.org, t-lilypond.pdf from ctan and t-lilypond.tex posted by Henning here. When I typeset texexec test.test this test file ... \usemodule[lilypond] \starttext \startlilypond % Telemann, TWV 40:11 \version 2.6.3 \relative c’ { \set Staff.instrument = flute \key fis \minor \time 3/4 \partial 4 r8 fis’8 | fis4. cis8 a cis | fis, a cis fis a fis | b, d fis b d b | eis,, gis cis eis gis b, | a fis’ gis, fis’ cis eis | fis,4 r8 a’ gis fis | e gis, a e’ fis cis | d fis, gis b e d | cis4 \trill r8 cis b a | b dis e gis cis, b | a e’ dis fis b, a | gis4 \trill r8 } \stoplilypond \stoptext Steffen ___ 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] lilypond newbie
Hallo Steffen, I have no idea why this leads to statements like far tool old and We need code, not typography!. You have two different problems: * The version of the Lilypond module on CTAN isn't actually that new since it dates back to September 2005 (according to the date of t-lilypond.pdf). Now even without that date, we can spot it in the code since it mentions the version of Lilypond it was typed for (this is a general request in Lilypond); in that case it's 2.6; so Hraban meant your code was old, not your executable (current version is 2.10). * You probably copypasted the code from the PDF, and the quotes were interpreted as a “nice quotes” from Unicode (U+2019 RIGHT SINGLE QUOTATION MARK), not a plain ASCII quote. This of course is a problem since the right single quotation mark isn't part of the Lilypond markup at all, but it's “typography”, so to say. In any case, just take the example from the file Hraban just posted and it should solve both problems (it does here). And Hraban should probably add a \version statement to his sample code ;-) ___ 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] lilypond newbie
Am 2007-05-10 um 15:44 schrieb Arthur Reutenauer: * The version of the Lilypond module on CTAN isn't actually that new since it dates back to September 2005 (according to the date of t-lilypond.pdf). Now even without that date, we can spot it in the code since it mentions the version of Lilypond it was typed for (this is a general request in Lilypond); in that case it's 2.6; so Hraban meant your code was old, not your executable (current version is 2.10). I meant both ;-) I didn't even knew there was a version of t-lilypond on CTAN (overlooked that in Steffen's post). (It's a known problem that ConTeXt versions on CTAN are often outdated, too.) I should update the contextgarden version, but I wanted to wait if Aditya could find the error with Ruby texexec and clean up the code a bit. In any case, just take the example from the file Hraban just posted and it should solve both problems (it does here). And Hraban should probably add a \version statement to his sample code ;-) I was tired of the version statements in every snippet, so I let the module add a version statement. It's impossible to take care of different LilyPond versions in one module, so I always try to stick with (and change syntax for) the latest - always meaning everytime I work at a songbook. LilyPond is a rather fast moving target, like ConTeXt, so some code becomes old very soon... 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 ___
[NTG-context] lilypond newbie
Hi, just out of curiosity I wanted to check whether my context could typeset music. I found lilypond mentioned on the list, downloaded lilypond-2.10.23-1.darwin-x86.tar.bz2 from lilypond.org, t-lilypond.pdf from ctan and t-lilypond.tex posted by Henning here. When I typeset texexec test.test this test file ... \usemodule[lilypond] \starttext \startlilypond % Telemann, TWV 40:11 \version 2.6.3 \relative c’ { \set Staff.instrument = flute \key fis \minor \time 3/4 \partial 4 r8 fis’8 | fis4. cis8 a cis | fis, a cis fis a fis | b, d fis b d b | eis,, gis cis eis gis b, | a fis’ gis, fis’ cis eis | fis,4 r8 a’ gis fis | e gis, a e’ fis cis | d fis, gis b e d | cis4 \trill r8 cis b a | b dis e gis cis, b | a e’ dis fis b, a | gis4 \trill r8 } \stoplilypond \stoptext ... the result is ... name: dummy file: lilypond_2-lilypond-1 state: unknown What is missing? Steffen [OSX 10.4.9, Intel; ConTeXt ver: 2007.01.12, TeX-Live2007] ___ 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] lilypond newbie
On Wed, 9 May 2007, Steffen Wolfrum wrote: Hi, just out of curiosity I wanted to check whether my context could typeset music. I found lilypond mentioned on the list, downloaded lilypond-2.10.23-1.darwin-x86.tar.bz2 from lilypond.org, t-lilypond.pdf from ctan and t-lilypond.tex posted by Henning here. When I typeset texexec test.test this test file ... ... the result is ... name: dummy file: lilypond_2-lilypond-1 state: unknown What is missing? Do you have write18 enabled? Check the wiki to see how to check if it is enabled, and how to enable it. Aditya ___ 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] lilypond newbie
On Wednesday 09 May 2007 09:19, Aditya Mahajan wrote: On Wed, 9 May 2007, Steffen Wolfrum wrote: Hi, just out of curiosity I wanted to check whether my context could typeset music. I found lilypond mentioned on the list, downloaded lilypond-2.10.23-1.darwin-x86.tar.bz2 from lilypond.org, t-lilypond.pdf from ctan and t-lilypond.tex posted by Henning here. When I typeset texexec test.test this test file ... ... the result is ... name: dummy file: lilypond_2-lilypond-1 state: unknown What is missing? Do you have write18 enabled? Check the wiki to see how to check if it is enabled, and how to enable it. Aditya I typeset music using mup available for about $29 USD at www.arkkra.com. The support from the authors is excellent and free updates occur once a year. I suppose it would be possible to embed a mup document source code in a tex document, write it to a file, and hte import the resulting ps file. But I use it as a pure stand alone creator. BTW it also will create a midi file from the same source. -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com _ Need personalized email and website? Look no further. It's easy with Doteasy $0 Web Hosting! Learn more at www.doteasy.com ___ 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] lilypond newbie
On Wed, 9 May 2007 09:19:19 -0400 (EDT), Aditya Mahajan wrote: On Wed, 9 May 2007, Steffen Wolfrum wrote: Hi, just out of curiosity I wanted to check whether my context could typeset music. I found lilypond mentioned on the list, downloaded lilypond-2.10.23-1.darwin-x86.tar.bz2 from lilypond.org, t-lilypond.pdf from ctan and t-lilypond.tex posted by Henning here. When I typeset texexec test.test this test file ... ... the result is ... name: dummy file: lilypond_2-lilypond-1 state: unknown What is missing? Do you have write18 enabled? Check the wiki to see how to check if it is enabled, and how to enable it. Yes, I do: TeXExec | processing document 'lilypond_2.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file lilypond_2.top TeXExec | using randomseed 870 TeXExec | tex engine: pdfetex TeXExec | tex format: cont-en This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) \write18 enabled. %-line parsing enabled. (/usr/local/texlive/2007/texmf/web2c/natural.tcx) entering extended mode (./lilypond_2.tex ConTeXt ver: 2007.01.12 15:56 MKII fmt: 2007.4.3 int: english/english ... systems : system commands are enabled system : module lilypond loaded (./t-lilypond.tex) (./lilypond_2.tuo) (./lilypond_2.tuo) (./lilypond_2.tuo) (./lilypond_2.tuo) (./lilypond_2.tuo) (./lilypond_2.tuo) (./lilypond_2.tuo) (./lilypond_2.tuo) (./lilypond_2.tuo) (./lilypond_2.tuo) (/usr/local/texlive/2007/texmf-dist/tex/context/base/sort-def.tex) (/usr/local/texlive/2007/texmf-dist/tex/context/base/sort-lan.tex) (./lilypond_2.tuo) (./lilypond_2.tuo) (/usr/local/texlive/2007/texmf-dist/tex/context/base/pdfr-def.tex)PsToPdf | file lilypond_2-lilypond-1.eps does not exist systems : begin file lilypond_2 at line 3 figures : figure lilypond_2-lilypond-1.pdf can not be found color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated ... systems : end file lilypond_2 at line 23 ){/usr/local/texlive/2007/texmf-dist/fonts/enc/dvips/lm/lm-ec.enc}/usr/local/ texlive/2007/texmf-dist/fonts/type1/public/lm/lmr12.pfb/usr/local/texlive/200 7/texmf-dist/fonts/type1/public/lm/lmtt8.pfb Output written on lilypond_2.pdf (1 page, 38475 bytes). Transcript written on lilypond_2.log. TeXUtil | parsing file lilypond_2.tui TeXUtil | shortcuts : 169 TeXUtil | expansions: 308 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 23 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 1.383958 ___ 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] lilypond newbie
Am 2007-05-09 um 13:47 schrieb Steffen Wolfrum: \enableregime[utf] \usemodule[lilypond] \starttext \startlilypond % Telemann, TWV 40:11 \version 2.6.3 far tool old! use the latest LilyPond 2.10.x! (the module works only with LilyPond 2.8, as mentioned on the wiki page) \relative c’ { You've always ’ instead of ' -- that can't work! We need code, not typography! \set Staff.instrument = flute \key fis \minor \time 3/4 \partial 4 r8 fis’8 | fis4. cis8 a cis | fis, a cis fis a fis | b, d fis b d b | eis,, gis cis eis gis b, | a fis’ gis, fis’ cis eis | fis,4 r8 a’ gis fis | e gis, a e’ fis cis | d fis, gis b e d | cis4 \trill r8 I'm not completely sure, but I think the \trills should be attached to the previous note. cis b a | b dis e gis cis, b | a e’ dis fis b, a | gis4 \trill r8 } \stoplilypond \stoptext Probably you will experience further problems as soon as you use more than one LilyPond snippet - at the moment the Ruby texexec doesn't process more than one, the old Perl texexec does, though. Aditya is hunting the bug (I hope). Please find attached my latest version of t-lilypond (has some more options). BTW I always check my LilyPond code with LilyPond first - the call via ConTeXt is far too slow for debugging! And you wouldn't blame ConTeXt or the poor module for your errorneous LP code. 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: Binary data ___ 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] LilyPond module for LilyPond 2.9.x
Hello again, I'm still stuck with the counter problem, unfortunately I got no response... ConTeXts writes out all the LilyPond pieces as myfile-lilypond- #.tmp, sequential numbered. Then it should run LilyPond and epstopdf on the snippets, but runs them always only on no.1 I.e. the counter doesn't behave like it should. Why? I think, these are the regarding code snippets (sorry, can't think of a minimal example for I don't understand the code by Christopher): \unprotect \def\??lily{lilypond-} %... \newcount\lily!figures %... \long\def\dodostartlilypond[#1]#2\stoplilypond{% \egroup% from \dostartlilypond \bgroup% %... \global\advance\lily!figures\plusone \startmode[*\v!first]% \def\obeyedlines{\string^^J}% \convertargument#2\to\ascii \expanded{% \setbuffer[lilypond-\the\lily!figures]% % here it works, all buffers are numbered % ... \ascii% \ifundefined{\??lily fragment}\else\lily!fragmentsuffix\fi }% expanded \endbuffer% \def\LP{texmfstart --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts } \def\PDF{texmfstart --ifchanged=} % here the counter is always 1 \ifeof18 \installprogram{\LP\bufferprefix lilypond-\the\lily!figures.tmp}% % can someone explain this installprogram? \doif\jobsuffix{pdf}{% \installprogram{\PDF\bufferprefix lilypond-\the\lily! figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}% }% \else \executesystemcommand{\LP\bufferprefix lilypond-\the\lily! figures.tmp}% \doif\jobsuffix{pdf}{% \executesystemcommand{\PDF\bufferprefix lilypond-\the\lily! figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}% }% \fi \stopmode% only first run \doifelse\jobsuffix{pdf} {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.pdf}}% {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.eps}}% \ifvmode \getfiguredimensions[\bufferprefix lilypond-\the\lily! figures.pdf]% % here it works again, image no.# is not found (besides no.1) \leavevmode% \newdimen\FigWidth \FigWidth=\figurewidth \ifdim\FigWidth\localhsize \!!dimena=\localhsize \advance\!!dimena by-\FigWidth \noindent\hskip\!!dimena \fi \fi \externalfigure[\lily!img]% \egroup% }% Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) smime.p7s Description: S/MIME cryptographic signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
On 10/3/06, Henning Hraban Ramm wrote: Hello again, I'm still stuck with the counter problem, unfortunately I got no response... ConTeXts writes out all the LilyPond pieces as myfile-lilypond- #.tmp, sequential numbered. Then it should run LilyPond and epstopdf on the snippets, but runs them always only on no.1 I.e. the counter doesn't behave like it should. Why? I think, these are the regarding code snippets (sorry, can't think of a minimal example for I don't understand the code by Christopher): \unprotect \def\??lily{lilypond-} %... \newcount\lily!figures %... \long\def\dodostartlilypond[#1]#2\stoplilypond{% \egroup% from \dostartlilypond \bgroup% %... \global\advance\lily!figures\plusone \startmode[*\v!first]% \def\obeyedlines{\string^^J}% \convertargument#2\to\ascii \expanded{% \setbuffer[lilypond-\the\lily!figures]% % here it works, all buffers are numbered % ... \ascii% \ifundefined{\??lily fragment}\else\lily!fragmentsuffix\fi }% expanded \endbuffer% \def\LP{texmfstart --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts } \def\PDF{texmfstart --ifchanged=} % here the counter is always 1 \ifeof18 \installprogram{\LP\bufferprefix lilypond-\the\lily!figures.tmp}% % can someone explain this installprogram? \doif\jobsuffix{pdf}{% \installprogram{\PDF\bufferprefix lilypond-\the\lily! figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}% }% \else \executesystemcommand{\LP\bufferprefix lilypond-\the\lily! figures.tmp}% \doif\jobsuffix{pdf}{% \executesystemcommand{\PDF\bufferprefix lilypond-\the\lily! figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}% }% \fi \stopmode% only first run \doifelse\jobsuffix{pdf} {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.pdf}}% {\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.eps}}% \ifvmode \getfiguredimensions[\bufferprefix lilypond-\the\lily! figures.pdf]% % here it works again, image no.# is not found (besides no.1) \leavevmode% \newdimen\FigWidth \FigWidth=\figurewidth \ifdim\FigWidth\localhsize \!!dimena=\localhsize \advance\!!dimena by-\FigWidth \noindent\hskip\!!dimena \fi \fi \externalfigure[\lily!img]% \egroup% }% I cannot test since lilypond is not working properly on my computer, but I get the proper numbers. Here's an excerpt from the log file (I changed lilypond to echo): systems : begin file test1 at line 2 test1-lilypond-1.tmp system(echo test1-lilypond-1.tmp)...executed. system(epstopdf test1-lilypond-1.eps)...executed. (C:\Programi\MikTeX\tex\context\base\pdfr-ec.tex) figures : figure test1-lilypond-1 can not be found color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated test1-lilypond-2.tmp system(echo test1-lilypond-2.tmp)...executed. system(epstopdf test1-lilypond-2.eps)...executed. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Am 2006-10-03 um 23:59 schrieb Mojca Miklavec: I cannot test since lilypond is not working properly on my computer, but I get the proper numbers. Here's an excerpt from the log file (I changed lilypond to echo): systems : begin file test1 at line 2 test1-lilypond-1.tmp system(echo test1-lilypond-1.tmp)...executed. system(epstopdf test1-lilypond-1.eps)...executed. (C:\Programi\MikTeX\tex\context\base\pdfr-ec.tex) figures : figure test1-lilypond-1 can not be found color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is local activated test1-lilypond-2.tmp system(echo test1-lilypond-2.tmp)...executed. system(epstopdf test1-lilypond-2.eps)...executed. I just updated my whole installation, but it's still the same: structure : begin of sectionblock bodymatter systems : begin file c_weihgeist at line 32 (./c_weihgeist.tex Titel : - Kom|m| nun|,| weihnachtlicher Geis|t.| prd_winternacht-lilypond-1.tmp figures : figure prd_winternacht-lilypond-1.pdf can not be found prd_winternacht-lilypond-2.tmp figures : figure prd_winternacht-lilypond-2.pdf can not be found ) systems : end file c_weihgeist at line 32 systems : begin file c_ansingen at line 33 (./c_ansingen.tex [3.1] Titel : - Winteransingen prd_winternacht-lilypond-3.tmp figures : figure prd_winternacht-lilypond-3.pdf can not be found ) ... TeXUtil | running texmfstart --ifchanged=prd_winternacht- lilypond-1.tmp --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts prd_winternacht-lilypond-1.tmp GNU LilyPond 2.9.18 Processing `prd_winternacht-lilypond-1.tmp' Parsing... Interpreting music... [8][13] Preprocessing graphical objects... Writing prd_winternacht-lilypond-1-systems.tex... Writing prd_winternacht-lilypond-1-systems.texi... Layout output to `prd_winternacht-lilypond-1-1.eps'... Converting to `prd_winternacht-lilypond-1-1.pdf'... Layout output to `prd_winternacht-lilypond-1.eps'... Converting to `prd_winternacht-lilypond-1.pdf'... TeXUtil | running texmfstart --ifchanged=prd_winternacht- lilypond-1.tmp --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts prd_winternacht-lilypond-1.tmp TeXUtil | running texmfstart --ifchanged=prd_winternacht- lilypond-1.tmp --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts prd_winternacht-lilypond-1.tmp ... My songbook has 24 songs at the moment, but the counter stays at 1 for the lilypond run (works with the tmp, as you can see). Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) t-lilypond.tex Description: Binary data ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Henning Hraban Ramm wrote: Am 2006-09-26 um 22:23 schrieb Hans Hagen: use texmfstart! texmfstart whateverscript whateverargs will free you from adding the path lilypond -b eps -f eps -dno-gs-load-fonts -dinclude-eps-fonts or texmfstart bin:lilypond conversion to pdf: texmfstart pdftops somefile.eps if may be worth using the -ifchanged cum suis features so that you don't get more runs than needed Thank you very much, that works! Now I have: \def\LP{texmfstart --exec bin:lilypond -b eps -dno-gs-load-fonts -dinclude-eps-fonts } \def\PDF{texmfstart --ifchanged pstopdf } with \executesystemcommand or \installprogram If I add --ifchanged to the lilypond call, it never does anything; without it's called twice (like before, I couldn't find out why). --ifchanged=filename ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Am 2006-09-27 um 09:55 schrieb Hans Hagen: If I add --ifchanged to the lilypond call, it never does anything; without it's called twice (like before, I couldn't find out why). --ifchanged=filename Ah, great! Here's the new version again (Willi, please try this, no need for patching any more!). I also updated the wiki: http://wiki.contextgarden.net/LilyPond Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) t-lilypond.tex Description: Binary data ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Aaargh! It still doesn't work right; I should have tested with more than one LilyPond snippet. \lily!figures is the image counter; if I use it in the definition of the command, it stays 1. If I use it like below, I get ! Use of \LP doesn't match its definition. --- code --- \def\LP#1{texmfstart --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts \bufferprefix lilypond-#1.tmp} \def\PDF#1{texmfstart --ifchanged=\bufferprefix lilypond-#1.eps pstopdf \bufferprefix lilypond-#1.eps} \ifeof18 \installprogram{\LP{\the\lily!figures}}% \doif\jobsuffix{pdf}{% \installprogram{\PDF{\the\lily!figures}}% }% \else \executesystemcommand{\LP{\the\lily!figures}}% \doif\jobsuffix{pdf}{% \executesystemcommand{\PDF{\the\lily!figures}}% }% \fi --- error --- ! Use of \LP doesn't match its definition. write e p {\LP { \the \lily!figures }} inserted text }\endwrite \installprogram ...mmediatewriteutility {e p {#1}} \dodostartlilypond ... {\LP {\the \lily!figures }} \doif \jobsuffix {pdf}{\in... l.71 \stoplilypond --- end --- Maybe the problem has nothing to do with this section. Would you please have a look at the file I posted before? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] LilyPond module for LilyPond 2.9.x
Yeah, I finally got it working with recent versions of LilyPond! (The most important change was from linewidth to line-width, and I overlooked that far too long...) The module still has lots of issues (e.g. paths for external command like lilypond are hardcoded), but it does what I want it to do. ;-) Could someone please exchange the module in the garden? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) t-lilypond.tex Description: Binary data ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Am 2006-09-26 um 20:34 schrieb Henning Hraban Ramm: Yeah, I finally got it working with recent versions of LilyPond! No, it doesn't. :-( And it's strange: the external command for lilypond gets called, but not that for epstopdf: % I tried different methods to convert the LilyPond EPS to PDF: \def\LP{/usr/local/bin/lilypond -b eps -f eps -dno-gs-load-fonts - dinclude-eps-fonts } %\def\TU{/usr/local/teTeX/bin/powerpc-apple-darwin-current/texutil } \def\TU{perl /usr/local/teTeX/share/texmf.local/scripts/context/perl/ texutil.pl } %\def\PDF{/usr/local/teTeX/bin/powerpc-apple-darwin-current/epstopdf } \def\PDF{\TU --figures --epstopdf } % --figures not yet in Ruby version \ifeof18 \installprogram{\LP \bufferprefix lilypond-\the\lily!figures.tmp}% \doif\jobsuffix{pdf}{% \installprogram{\PDF \bufferprefix lilypond-\the\lily! figures.eps}% }% \else \executesystemcommand{\LP \bufferprefix lilypond-\the\lily! figures.tmp}% \doif\jobsuffix{pdf}{% \executesystemcommand{\PDF \bufferprefix lilypond-\the\lily! figures.eps}% }% \fi I thought it would work, because I already had a PDF of my score EPS from a previous test. If I call one of the above epstopdf commands manually, it works, i.e. the notes appear in my PDF after the next texexec run. Somewhere in the output it says system commands are disabled - but the LilyPond call works, and write18 is enabled in my texexec.ini Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Henning Hraban Ramm wrote: % I tried different methods to convert the LilyPond EPS to PDF: \def\LP{/usr/local/bin/lilypond -b eps -f eps -dno-gs-load-fonts - dinclude-eps-fonts } %\def\TU{/usr/local/teTeX/bin/powerpc-apple-darwin-current/texutil } \def\TU{perl /usr/local/teTeX/share/texmf.local/scripts/context/perl/ texutil.pl } %\def\PDF{/usr/local/teTeX/bin/powerpc-apple-darwin-current/epstopdf } \def\PDF{\TU --figures --epstopdf } % --figures not yet in Ruby version use texmfstart! texmfstart whateverscript whateverargs will free you from adding the path lilypond -b eps -f eps -dno-gs-load-fonts -dinclude-eps-fonts or texmfstart bin:lilypond conversion to pdf: texmfstart pdftops somefile.eps if may be worth using the -ifchanged cum suis features so that you don't get more runs than needed Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Am 2006-09-26 um 22:23 schrieb Hans Hagen: use texmfstart! texmfstart whateverscript whateverargs will free you from adding the path lilypond -b eps -f eps -dno-gs-load-fonts -dinclude-eps-fonts or texmfstart bin:lilypond conversion to pdf: texmfstart pdftops somefile.eps if may be worth using the -ifchanged cum suis features so that you don't get more runs than needed Thank you very much, that works! Now I have: \def\LP{texmfstart --exec bin:lilypond -b eps -dno-gs-load-fonts - dinclude-eps-fonts } \def\PDF{texmfstart --ifchanged pstopdf } with \executesystemcommand or \installprogram If I add --ifchanged to the lilypond call, it never does anything; without it's called twice (like before, I couldn't find out why). Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) t-lilypond.tex Description: Binary data ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] LilyPond module for LilyPond 2.9.x
Hi Hraban! This is great! Recently I was trying Lilypond again and thought, that this music-typesetting environment should be used within ConTeXt. - Your module worked, after adapting the three path-defs under Windows! Thanks Hraban and Chritopher! Willi Henning Hraban Ramm wrote: Yeah, I finally got it working with recent versions of LilyPond! (The most important change was from linewidth to line-width, and I overlooked that far too long...) The module still has lots of issues (e.g. paths for external command like lilypond are hardcoded), but it does what I want it to do. ;-) Could someone please exchange the module in the garden? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context