lilypond-devel
[Top][All Lists]

Re: vertical margins in lilypond-book

 From: Graham Percival Subject: Re: vertical margins in lilypond-book Date: Wed, 13 Jul 2005 18:43:59 -0700


On 7-Jul-05, at 3:48 AM, Mats Bengtsson wrote:


It's certainly possible to let lilypond-book automatically detect the
text height of the LaTeX document and set the vsize correspondingly.
However, it's not so much use since
1. It's only relevant when you explicitly have a \book{..} in
your .ly code (which it turn is mainly useful to be able to use
\pagebreak in the .ly code)


It also avoids some other problems -- the first few lines are shifted
to the left (relative to the other lines):

\documentclass[letterpaper]{article}
\usepackage{graphics}
\begin{document}

\begin{lilypond}
\score { \relative c' {
\repeat unfold 8 {c4 c c c } \break
\repeat unfold 8 {d4 d d d } \break
\repeat unfold 8 {e4 e e e } \break
\repeat unfold 8 {f4 f f f } \break
\repeat unfold 8 {g4 g g g } \break
}}
\end{lilypond}

\end{document}


Basically, lilypond-book without \book is only usable for single-line examples. That's ok; it's still useful for musicological documents. But as a mechanism
for publishing music, you need to use \book{}.


2. If you already have some commands in your .ly code that affects the

page size, then they will override the setting done by lilypond-book,
   since lilybook inserts the commands at the top of the code.


The only reason to have such commands is as a workaround for these
bugs.  :)

Cheers,
- Graham