From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31076 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: LilyPond module for LilyPond 2.9.x Date: Thu, 28 Sep 2006 00:22:12 +0200 Message-ID: <2A33D7FE-54BC-4FBC-92E3-C0DD94FF0FE3@fiee.net> References: <670FE057-FCF8-45F7-AADC-B1B7C947DFF3@fiee.net> <45198C5C.90703@wxs.nl> <6A5E87EB-EBA4-4590-9E46-20812EB3EB36@fiee.net> <451A2E76.8040409@wxs.nl> <46A8585E-FD51-407F-BF80-542AC670FC23@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159395770 26728 80.91.229.2 (27 Sep 2006 22:22:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Sep 2006 22:22:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 28 00:22:47 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GShnd-0000Ia-HJ for gctc-ntg-context-518@m.gmane.org; Thu, 28 Sep 2006 00:22:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 489061FE4C; Thu, 28 Sep 2006 00:22:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14517-01; Thu, 28 Sep 2006 00:22:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 90A911FE4E; Thu, 28 Sep 2006 00:22:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D8161FE4E for ; Thu, 28 Sep 2006 00:22:24 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13790-05 for ; Thu, 28 Sep 2006 00:22:16 +0200 (CEST) Original-Received: from moutng.kundenserver.de (unknown [212.227.126.188]) by ronja.ntg.nl (Postfix) with SMTP id 759811FE4C for ; Thu, 28 Sep 2006 00:22:14 +0200 (CEST) Original-Received: from [83.76.50.65] (helo=[10.128.9.3]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1GShnC0Fql-0004Q8; Thu, 28 Sep 2006 00:22:14 +0200 In-Reply-To: <46A8585E-FD51-407F-BF80-542AC670FC23@fiee.net> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:71ece21a21b2fa6ef1812787a4eaee0e X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31076 Archived-At: 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. e p {\LP { \the \lily!figures }} }\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)