From: Henning Hraban Ramm <hraban@fiee.net>
Subject: Re: LilyPond module for LilyPond 2.9.x
Date: Tue, 3 Oct 2006 23:37:57 +0200 [thread overview]
Message-ID: <B08A725B-E76B-45A4-8115-85F76E889CAA@fiee.net> (raw)
In-Reply-To: <2A33D7FE-54BC-4FBC-92E3-C0DD94FF0FE3@fiee.net>
[-- Attachment #1.1: Type: text/plain, Size: 2529 bytes --]
Hello again, I'm still stuck with the counter problem, unfortunately
I got no response...
ConTeXts writes out all the LilyPond pieces as "myfile-lilypond-
#.tmp", sequential numbered.
Then it should run LilyPond and epstopdf on the snippets, but runs
them always only on no.1
I.e. the counter doesn't behave like it should. Why?
I think, these are the regarding code snippets (sorry, can't think of
a minimal example for I don't understand the code by Christopher):
\unprotect
\def\??lily{lilypond-}
%...
\newcount\lily!figures
%...
\long\def\dodostartlilypond[#1]#2\stoplilypond{%
\egroup% from \dostartlilypond
\bgroup%
%...
\global\advance\lily!figures\plusone
\startmode[*\v!first]%
\def\obeyedlines{\string^^J}%
\convertargument#2\to\ascii
\expanded{%
\setbuffer[lilypond-\the\lily!figures]%
%>> here it works, all buffers are numbered
% ...
\ascii%
\ifundefined{\??lily fragment}\else\lily!fragmentsuffix\fi
}% expanded
\endbuffer%
\def\LP{texmfstart --exec bin:lilypond -b eps -dno-gs-load-fonts -
dinclude-eps-fonts }
\def\PDF{texmfstart --ifchanged=}
%>> here the counter is always 1
\ifeof18
\installprogram{\LP\bufferprefix lilypond-\the\lily!figures.tmp}%
%>> can someone explain this "installprogram"?
\doif\jobsuffix{pdf}{%
\installprogram{\PDF\bufferprefix lilypond-\the\lily!
figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}%
}%
\else
\executesystemcommand{\LP\bufferprefix lilypond-\the\lily!
figures.tmp}%
\doif\jobsuffix{pdf}{%
\executesystemcommand{\PDF\bufferprefix lilypond-\the\lily!
figures.eps pstopdf \bufferprefix lilypond-\the\lily!figures.eps}%
}%
\fi
\stopmode% only first run
\doifelse\jobsuffix{pdf}
{\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.pdf}}%
{\edef\lily!img{\bufferprefix lilypond-\the\lily!figures.eps}}%
\ifvmode
\getfiguredimensions[\bufferprefix lilypond-\the\lily!
figures.pdf]%
%>> here it works again, image no.# is not found (besides no.1)
\leavevmode%
\newdimen\FigWidth
\FigWidth=\figurewidth
\ifdim\FigWidth>\localhsize
\!!dimena=\localhsize
\advance\!!dimena by-\FigWidth
\noindent\hskip\!!dimena
\fi
\fi
\externalfigure[\lily!img]%
\egroup%
}%
Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3574 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2006-10-03 21:37 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
2006-10-03 21:37 ` Henning Hraban Ramm [this message]
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=B08A725B-E76B-45A4-8115-85F76E889CAA@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).