ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <hraban@fiee.net>
Subject: Re: LilyPond module for LilyPond 2.9.x
Date: Thu, 28 Sep 2006 00:22:12 +0200	[thread overview]
Message-ID: <2A33D7FE-54BC-4FBC-92E3-C0DD94FF0FE3@fiee.net> (raw)
In-Reply-To: <46A8585E-FD51-407F-BF80-542AC670FC23@fiee.net>

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)

  reply	other threads:[~2006-09-27 22:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-26 18:34 Henning Hraban Ramm
2006-09-26 20:12 ` Henning Hraban Ramm
2006-09-26 20:23   ` Hans Hagen
2006-09-26 20:52     ` Henning Hraban Ramm
2006-09-27  7:55       ` Hans Hagen
2006-09-27 20:26         ` Henning Hraban Ramm
2006-09-27 22:22           ` Henning Hraban Ramm [this message]
2006-10-03 21:37             ` Henning Hraban Ramm
2006-10-03 21:59               ` Mojca Miklavec
2006-10-04  0:18                 ` Henning Hraban Ramm
2006-09-26 21:41 ` Willi Egger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2A33D7FE-54BC-4FBC-92E3-C0DD94FF0FE3@fiee.net \
    --to=hraban@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).