[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

External sites
lilypond.org/stable
lilypond.org/development
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Page layout

The most basic settings influencing the spacing are indent and linewidth. They are set in the \paper block. They control the indentation of the first line of music, and the lengths of the lines. If linewidth set to a negative value, a single unjustified line is produced. A similar effect for scores that are longer than one line, can be produced by setting raggedright to true in the \paper block.

The page layout process happens outside lilypond. Ly2dvi sets page layout instructions. Ly2dvi responds to the following variables in the \paper block. The variable textheight sets the total height of the music on each page. The spacing between systems is controlled with interscoreline, its default is 16pt. The distance between the score lines will stretch in order to fill the full page interscorelinefill is set to a positive number. In that case interscoreline specifies the minimum spacing.

If the variable lastpagefill is defined (that is, it gets any value assigned in the \paper block), systems are evenly distributed vertically on the last page. This might produce ugly results in case there are not enough systems on the last page. Note that lilypond-book ignores lastpagefill. See Integrating text and music with lilypond-book for more information.

Page breaks are normally computed by TeX, so they are not under direct control of LilyPond. However, you can insert a commands into the .tex output to instruct TeX where to break pages. You can insert a \newpage from within lilypond. This is done by setting the between-systems-strings on the NonMusicalPaperColumn where the system is broken.

To change the paper size, you must first set the papersize paper variable variable. Set it to the strings a4, letter, or legal. After this specification, you must set the font as described above. If you want the default font, then use the 20 point font.

             \paper{ papersize = "a4" }
             \include "paper16.ly"
     

The file paper16.ly will now include a file named a4.ly, which will set the paper variables hsize and vsize (used by Lilypond and ly2dvi)

Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.7.14 (development-branch) by

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.