lilypond-user
[Top][All Lists]
Advanced

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

Re: Re:getting musical examples to an exact textwidth with a style file


From: Phil Holmes
Subject: Re: Re:getting musical examples to an exact textwidth with a style file
Date: Mon, 5 Aug 2013 09:32:29 +0100

Ah yes, I'd forgotten that. It's done in the Lilypond documentation either by setting paper as part of the lilypond call, or explicitly in the example. e.g:

@lilypond[verbatim,quote,ragged-right]
...
 \paper {
   paper-width = 100\mm
   paper-height = 100\mm
   tagline = ##f
 }
}
@end lilypond


@lilypond[papersize=c7landscape,verbatim,noragged-right]
@lilypond[papersize=a6landscape,quote,verbatim,noragged-right]


--
Phil Holmes


----- Original Message ----- From: Kevin Patrick Barry
To: Phil Holmes
Cc: lilypond-user
Sent: Sunday, August 04, 2013 11:51 PM
Subject: Re: Re:getting musical examples to an exact textwidth with a style file


If you put the examples inside a \book block, you can specify system spacing with normal lilypond commands, and the images are kept together on the page.


I tried that and ended up with a full page example instead of a cropped system. Does using \book mean I have to manually set the page size to the size of the example?


For example, the following fairly minimal example compiled to a pdf of 3 pages, even though it is only a single note. I can add a \paper block but it's not immediately obvious how to crop the whole example.

\documentclass{article}
\begin{document}
\begin{lilypond}
\book {
 \score {
   \new Staff {
     \relative f { c'1 }
   }
 }
}
\end{lilypond}
\end{document}



reply via email to

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