lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypondfile


From: David Kastrup
Subject: Re: lilypondfile
Date: Mon, 27 Aug 2012 18:07:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

pabuhr <address@hidden> writes:

> I cannot get the direct output from lilypond to match the output from
> lilypondfile with lilypond book. Below I have the source file and a PDF file
> where page 1 is the direct output from lilypond and page 2 is generated by
> lilypond book using:
>
> \lilypondfile{Mary_Lamb.ly}
>
> The problem is the vertical spacing is compressed in lilypond book.
> I'd like the output in lilypond book to look the same as the direct
> output.

The vertical spacing between systems in lilypond-book is established by
LaTeX, not LilyPond, so most spacing parameters will not be effective.

Intersystem spacing in lilypond-book is documented in the usage manual,
though possibly not really obvious:

   Each snippet will call the following macros if they have been
defined by the user:

   * `\preLilyPondExample' called before the music,

   * `\postLilyPondExample' called after the music,

   * `\betweenLilyPondSystem[1]' is called between systems if
     `lilypond-book' has split the snippet into several PostScript
     files.  It must be defined as taking one parameter and will be
     passed the number of files already included in this snippet.  The
     default is to simply insert a `\linebreak'.


So you need to define betweenLilyPondSystem to insert space, something
like

\newcommand\betweenLilyPondSystem[1]{\linebreak\vspace{5mm}}


-- 
David Kastrup




reply via email to

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