Am 2007-05-24 um 13:41 schrieb Taco Hoekwater:
So I guess the command or counter or whatever in \installprogram is expanded at runtime. I tried \expanded, but it didn't help. You have to run \installprogram{} on each separate, expanded commandline. I thought that was what I do. \installcommand is run after every buffer. I also tried \expanded{\installcommand{\LP}} and \installcommand{\expanded{\LP}}, but neither did help. You probably should \edef \LP then?
You have to run \installprogram{} on each separate, expanded commandline.
With \expanded{} I always get "incomplete iffalse", \edef doesn't change anything. I tried to "outsource" the command and dropped the \ifeof18 (because \executesystemcommand doesn't seem to do anything anyway): \def\doprocesslilypond#1{% \edef\LPFN{#1}% \writestatus{DEBUG-w18}{\LPFN}% \installprogram{texmfstart --ifchanged=\LPFN.tmp --exec bin:lilypond -b eps -dno-gs-load-fonts -dinclude-eps-fonts \LPFN.tmp}% \doif\jobsuffix{pdf}{% \installprogram{texmfstart --ifchanged=\LPFN.eps pstopdf \LPFN.eps}% }% } Still the same: \writestatus writes the right filename (enumerated), but the latter is always called with no.1 Of course I first tried just using #1 and only \def\LPFN. As you wrote: perhaps you did overlook that, even if \installprogram is "run" after every buffer, the execution is postponed to the end of the texexec run - I'm rather sure the number get forgotten on the way of this postponing, but everything I tried to expand the number, failed. But I don't really know what I'm doing while I try to program in TeX... HELP! Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)