lilypond-user
[Top][All Lists]
Advanced

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

Re: Automatically insert a space before and after a lilypond, environmen


From: Marc Hohl
Subject: Re: Automatically insert a space before and after a lilypond, environment
Date: Fri, 06 Sep 2013 18:59:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8

Am 06.09.2013 16:45, schrieb Mats Bengtsson:

On 09/06/2013 03:57 PM, address@hidden wrote:
Hello to all. I quote from the file usage.pdf in the section about
lilypond-book:

"Each snippet will call the Following macros if they have been defined by
the user:
\preLilyPondExample [...]
\postLilyPondExample [...]
\betweenLilyPondSystem [...]
?

A few pages after this point, there is a concrete example of use of the
\betweenLilyPondSystem command:

\newcommand {\betweenLilyPondSystem}[1]{\vspace{<*length*>}\linebreak}

This command inserts a vertical space equal to <*length*> between a
system
of staves and the next one. And it works well in my document

I tried to use in the same way also the commands \pre- and
\postLilyPondSystem, but I did not see any results after compilation
of my
document. What should these two commands exactly? Maybe insert space
before
and after the example of music? How they must be used?
It's up to your own imagination to make up what to use them for, I guess
they were primarily included for completeness, when they were introduced
in some ancient history. Try for example
\newcommand{\preLilyPondExample}{Hello, here comes a score\\}
just to see what happens.

I use

\let\postLilyPondExample=\newpage

in a recent project to start each included score on a new page.

Just my 2ct.

Marc



     /Mats





reply via email to

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