Be careful when writing macros - the blank line at the top of \macboucle
will translate to a \par in the expansion. It's also a good idea to put a
"%" to prevent spaces in \def's. There's also no need to use \makeatletter
and \makeatother unless you're accessing internal macros containing the "@"
symbol. This gives:
\def\maboucle#1#2#3{%
\xpos=0pt
\ypos=0pt
\indice=1
\loop
\raise\xpos\hbox{\zcharnote\ypos{\kern\ypos #3}}%
\advance\xpos by \deltax
\advance\ypos by \deltay
\advance\indice by 1\relax
\ifnum\indice<#2\relax
\repeat}
Your problem is the \zcharnote\ypos - \ypos is a \dimen and not a note
specification. I don't know what you're trying to do there, but the error
then occurs is in MusiXTeX because you gave \zcharnote a weird argument. If
you meant to pass a dimension then you'd say {\the\ypos} but that's still
not a valid argument for \zcharnote...
David
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]
> On Behalf Of Jean-Pierre Coulon
> Sent: 08 December 2009 12:37
> To: 'Werner Icking Music Archive'
> Subject: [TeX-Music] "do loop" with \zcharnotes.
>
> I want to make a macro which repeats a number of \zcharnotes in sort of
> a "do loop".
>
> What causes TeX to say "! Dimension too large." with the attached TeX
> file?
> If I answer 'r' to the error message it seems my \zcharnotes are
> correctly executed.
>
> Regards,
>
> Jean-Pierre Coulon [email protected]
_______________________________________________
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music