lilypond-user
[Top][All Lists]
Advanced

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

Re: Using Lilypond in LaTeX


From: David Stocker
Subject: Re: Using Lilypond in LaTeX
Date: Tue, 23 Mar 2010 17:51:16 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3

The difference is that ragged-right has to go in a \paper block and not a \layout block.

On 03/23/2010 05:36 PM, Keith Weintraub wrote:
Jon,
  That worked like a charm. I used 20 for my staff size but that is obviously not the game changer!

I thought I had tried the ragged-right fix but I must have done it wrong.

Thanks again,
KW

--

On Mar 23, 2010, at 4:27 PM, Jonathan Kulp wrote:

On Tue, Mar 23, 2010 at 1:58 PM, Keith Weintraub <address@hidden> wrote:
Folks,
   I am creating multiple piano staves with text between them for analysis
on a page.
I would like to make sure that all staves on one page be the same width.
Is there a way to force the line-width to be a certain size AND (sorry for
shouting) force the staves (across separate \begin{lilypond} \end{lilypond}
blocks) to fill the lines so they are the same width across the page?
I have done something like this:

\begin{lilypond}

\layout {
  line-width = #150
  ragged-last = ##f
  ragged-last-bottom = ##f
  ragged-right = ##f
  ragged-bottom = ##f
}

\score {
  \new PianoStaff \with {
 \override SpacingSpanner #'uniform-stretching = ##t
} <<
     \set Score.tempoHideNote = ##t
  ...
  ...
  ...
   \layout{}
   \midi{}
}

\end{lilypond}

I am sure that this is wrong and that I have cut and pasted a bunch of stuff
that I don't really need. Any help that you could give would be greatly
appreciated.
Thanks,
KW

In my counterpoint workbook I use included lilypond files for the
exercises, each of which has the following parameters defined:

\paper {
 ragged-right = ##f
}

global = {
 #(set-global-staff-size 24)
}

With only these two parameters defined, all of my exercises are the
same staffsize and fill the same width of page. If you're interested
you can see the source code and pdf here:

http://music2.louisiana.edu/Gratis/

HTH,

Jon
--
Jonathan Kulp
http://www.jonathankulp.com

_______________________________________________ lilypond-user mailing list address@hidden http://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
David Stocker
804-598-3762
http://notesettersinc.com

reply via email to

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