* Lilypond module problem
@ 2009-06-02 6:45 Lutz Haseloff
2009-06-02 8:38 ` Henning Hraban Ramm
[not found] ` <6faad9f00906020701g327da21fs5d7967fbff6bef7d@mail.gmail.com>
0 siblings, 2 replies; 9+ messages in thread
From: Lutz Haseloff @ 2009-06-02 6:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 692 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 814 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lilypond module problem
2009-06-02 6:45 Lilypond module problem Lutz Haseloff
@ 2009-06-02 8:38 ` Henning Hraban Ramm
2009-06-02 11:07 ` Lutz Haseloff
[not found] ` <6faad9f00906020701g327da21fs5d7967fbff6bef7d@mail.gmail.com>
1 sibling, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2009-06-02 8:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lilypond module problem
2009-06-02 8:38 ` Henning Hraban Ramm
@ 2009-06-02 11:07 ` Lutz Haseloff
2009-06-02 12:50 ` Henning Hraban Ramm
0 siblings, 1 reply; 9+ messages in thread
From: Lutz Haseloff @ 2009-06-02 11:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1711 bytes --]
2009/6/2 Henning Hraban Ramm <hraban@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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 3576 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lilypond module problem
2009-06-02 11:07 ` Lutz Haseloff
@ 2009-06-02 12:50 ` Henning Hraban Ramm
2009-06-02 13:53 ` Lutz Haseloff
2009-06-03 7:08 ` Lutz Haseloff
0 siblings, 2 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2009-06-02 12:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lilypond module problem
2009-06-02 12:50 ` Henning Hraban Ramm
@ 2009-06-02 13:53 ` Lutz Haseloff
2009-06-03 7:08 ` Lutz Haseloff
1 sibling, 0 replies; 9+ messages in thread
From: Lutz Haseloff @ 2009-06-02 13:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1483 bytes --]
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...
>
>
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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2939 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Lilypond module problem
2009-06-02 12:50 ` Henning Hraban Ramm
2009-06-02 13:53 ` Lutz Haseloff
@ 2009-06-03 7:08 ` Lutz Haseloff
2009-06-03 9:01 ` Henning Hraban Ramm
1 sibling, 1 reply; 9+ messages in thread
From: Lutz Haseloff @ 2009-06-03 7:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1796 bytes --]
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
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 3233 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <6faad9f00906020701g327da21fs5d7967fbff6bef7d@mail.gmail.com>]
end of thread, other threads:[~2009-06-03 9:50 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-02 6:45 Lilypond module problem Lutz Haseloff
2009-06-02 8:38 ` Henning Hraban Ramm
2009-06-02 11:07 ` Lutz Haseloff
2009-06-02 12:50 ` Henning Hraban Ramm
2009-06-02 13:53 ` Lutz Haseloff
2009-06-03 7:08 ` Lutz Haseloff
2009-06-03 9:01 ` Henning Hraban Ramm
2009-06-03 9:50 ` Lutz Haseloff
[not found] ` <6faad9f00906020701g327da21fs5d7967fbff6bef7d@mail.gmail.com>
2009-06-02 14:43 ` Henning Hraban Ramm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).