On Tue, Apr 02, 2002 at 12:28:19PM +0200, [EMAIL PROTECTED] wrote:
> On Tue, 02 Apr 2002 09:27:41 +0200, Rainer Dunker
> This is a really elegant solution, Rainer! To prevent nasty line-break
> surprises if one specifies too narrow a width, one could include a
> \linegoal=1 statement in the macro as I've done below:

Thanks! I think even more adaptions like stafftopmarg or vertical
shifting are useful.

> Now, though, can anyone tell me why this macro begins to behave oddly
> when used in combination with (or more specifically, after an instance
> of) an adapted version that writes a clef? In the three examples
> below, the third one leaves extra white space before the first note,
> and the space is exactly as much as a clef would take up. How does one
> go about fixing this so that one can use both versions in a
> music-and-text document?

This seems to be due to MusiXTeX setting an internal clef width variable
globally as soon as you use a clef the first time, but not resetting it
to zero when you use \setclefsymbol<n>\empty. This amended version of
the \notesintext macro seems to work better:

\makeatletter
\def\notesintext#1#2{%
  \vbox{\hsize#1
        \setlines10\smallmusicsize \nobarnumbers \nostartrule
        \staffbotmarg0pt \setclefsymbol1\empty \global\clef@skip0pt
        \startpiece#2\linegoal=1\zstoppiece}}
\makeatother

Best regards,

Rainer
_______________________________________________
TeX-music mailing list
[EMAIL PROTECTED]
http://sunsite.dk/mailman/listinfo/tex-music

Reply via email to