Jean-Pierre Coulon wrote:
> On Thu, 14 Oct 2010, David Allsopp wrote:
> 
> > Robin Fairbairns wrote:
> >> Jean-Pierre Coulon <[email protected]> wrote:
> >>
> >>> On Thu, 14 Oct 2010, Robin Fairbairns wrote:
> >>>
> >>>> what's the concept of "ugly" in a tex source?
> >>>
> >>> Simply the need for my calculating the half of the distance between
> >>> systems before I know this distance! IMO trial-and-error is even
> >>> uglier!
> >
> > That's what I was referring to! A hairy \output routine would break
> \box255 up and find the \skip's but analysing the \output of \vsplit is
> not fun.
> >
> > But TeX hacking to one side, I'm still not entirely clear what you're
> > after in layout terms - doesn't MusiXTeX already insert a *known*
> > amount of space between systems already (\staffbotmarg and
> > \stafftopmarg - the computed value \systemheight may be useful in
> calculations too)?
> 
> \staffbotmarg and \stafftopmarg need an argument (cm, in, \Interligne or
> other). Like \vskip, they won't calculate this argument for me!

No, \staffbotmarg and \stafftopmarg are both \dimen's... you can read them. Try 
saying \showthe\staffbotmarg in your source file. \Interligne is also a \dimen 
(but one you aren't supposed to touch).

When you say \staffbotmarg2cm you are simply setting the value of the \dimen 
(same with 3\Interligne - TeX offers free multiplication when assigning to a 
\dimen so \staffbotmarg3\Interligne means "multiply \Interligne by 3 and assign 
the result to \staffbotmarg"). It would be clearer if, as I do in my sources, 
people actually included the optional equals sign. \staffbotmarg3\Interligne 
can also be written \staffbotmarg=3\Interligne which would stop people thinking 
it was a macro... one of the (few) mistakes of TeX's grammar (and an artefact 
of a time when 100Kb and less was actually a user's storage quota!)

\staffbotmarg and \stafftopmarg are certainly correctly defined (at 15pt) just 
before \startpiece. 

> AFAIK MusiXTeX puts between systems the space it thinks is clever. If a
> system has a high, high symbol it adapts these spaces. Replace a \qa
> somewhere in the middle of my example with \qa{hce''z} and you will see
> what I mean.

And you want to take that into account?? That would create variable top-line 
spacing in your score which sounds like an odd idea. Those parameters are also 
available, line-by-line (see the MusiXTeX manual) but you would have to code 
macros to capture them yourself. Incidentally, why do you want fixed spacing at 
the bottom of the score?


David 

_______________________________________________
[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

Reply via email to