gnu-music-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple score allignment


From: Han-Wen Nienhuys
Subject: Multiple score allignment
Date: Thu, 26 Apr 2001 22:26:49 +0200

address@hidden writes:
> If you have several scores with different linewidth, ly2dvi creates some very 
> faulty output.
> Seems like the left margin calculated for the first score is used for all the 
> other scores as well.
> You often need a small linewidth -1 introduction to your piece - in which 
> case ly2dvi is completely fooled.

try this:

--- ly2dvi.py~  Wed Apr 25 00:26:03 2001
+++ ly2dvi.py   Thu Apr 26 22:25:25 2001
@@ -500,10 +500,12 @@
                orientation = extra['orientation'][0]
 
        # set sane geometry width (a4-width) for linewidth = -1.
-       if not extra['linewidth'] or extra['linewidth'][0] < 0:
+       maxlw = max (extra['linewidth'] + [-1])
+       if maxlw < 0:
+               # who the hell is 597 ?
                linewidth = 597
        else:
-               linewidth = extra['linewidth'][0]
+               linewidth = maxlw
        s = s + 
'\geometry{width=%spt%s,headheight=2mm,headsep=12pt,footskip=2mm,%s}\n' % 
(linewidth, textheight, orientation)
 
        if extra['latexoptions']:



> Is there, by the way, a way to tell ly2dvi how much space to add
> between the scores? - The default is way too big for tinies like
> this.

no, but you could easily add some code to one_latex_definition () to
do this. Left to the reader as an excercise.

-- 

Han-Wen Nienhuys   |   address@hidden    | http://www.cs.uu.nl/~hanwen/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]