2009/6/2 Henning Hraban Ramm <hraban@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...

This code (t-lilypond.tex at line 289) works now for me:


    \ctxlua{ buffers.save("lilypond-\lily!figures") }
    \directlua{ os.remove('\tmpdir/\lily!filename.tmp') } % new
    \directlua{ os.rename('\lily!filename.tmp', '\tmpdir/\lily!filename.tmp') }
    \writestatus{LilyPond}{\lily!filename}
    \executesystemcommand{\LP} % compile LilyPond
    \executesystemcommand{\PDF} % convert EPS to PDF
    \directlua{ os.remove('\lily!img') } % new
    \directlua{ os.rename('\tmpdir/\lily!filename.pdf', '\lily!img') }


Is it possible to get these two lines (or some better code) into t-lilypond.tex
to get it working for Windows?

Greetings Lutz


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
___________________________________________________________________________________