Dirk Laurie wrote:
> 
> Silvio Weiland skryf:
> >
> > Hi mutex-world,
> >
> > Could somebody explain the Preamble command "Space", because I don't
> > know how the settings for spacing exactly work. (The matter is
> > me...Sorry?) Also with a lot of trial and errors I cann't catch the
> > mechanism. Although with a little LUCK I got reasonable results, but
> > there's no sense. I think there's a logical prinzip, which I want to
> > understand.
> 
> It's like chess.  There is no LUCK, it is fully deterministic, but
> it may be just too hard to work out, so it feels like LUCK.
> 
> PMX does many little adjustments to vertical spacing to compensate
> for things that stick out from the staff.  Then it tells TeX to
> \eject, which means that the difference between what has already
> been set and the planned page height is distributed evenly on the
> page.  (Exception: if the page is less than about half full, the
> music remains at the exact height that it already has.)
> 
> You just can't predict manually what the exact distance between
> staves will be.
> 
> The "Space" command does further little adjustments on top of what
> PMX already has done, but the result is only predictable relative to
> what would happen by default.  E.g. in style "SATB4" I sometimes put
> Space: 1 1 1 -3
> to get more space between the staves at the expense of the interstaff
> distance.
> 
> As long as the total adjustments add up to 0, you should get precisely
> what you asked for, relative to a score that uses "Space: 0".  You have
> to take into account how many there are of each gap: in the above case
> the total adjustment in fact adds up to 3 because the last -3 will be
> ignored (whitespace below the last staff).  If there are four systems
> then
> Space: 1 1 1 -4
> adds to 0 over the whole page.
> 
> If the adjustments do not add to 0, it becomes much trickier to say
> exactly what will happen (but not impossible if you're good at math).
> If they add to more that the amount of whitespace available, you may even
> find that an extra page is made by MusiXTeX.  I get around this problem
> by supplying a larger \pageheight to MusiXTeX than what I tell PMX.
> 
> Hope (not very confidently) this helps.
> 
> Dirk

'With a little help from my friends' I found a way to get a little more
control over vertical spacings in my scores. The base trick is to add
something like this in a paragraph before the fist music paragraph

%% \raggedbottom
%% \parskip 3\Interligne plus 2\Interligne minus 2\Interligne

and then in the first music paragraph something like

%% \\let\interstaffsav\interstaff\def\interstaff#1{}\interstaffsav{11}\

Have a look at my typesettings, for example the madrigals by Mogens
Peders�n and their M-Tx sources published in the GMD archive to see
examples of the coding and how the result looks.

-- 
Christian Mondrup, Computer Programmer
Scandiatransplant, Skejby Hospital, University Hospital of Aarhus
Brendstrupgaardsvej, DK 8200 Aarhus N, Denmark
Phone: +45 89 49 53 01

Reply via email to