Next: , Previous: Introduction to layout, Up: Page layout MOVED FROM LM


5.7.2 Global sizes

TODO Check all these examples

The default paper size which LilyPond assumes in laying out the music is A4. This may be changed in two ways:

#(set-default-paper-size "a6")

\paper {
#(set-paper-size "letter")
}

The first command sets the size of all pages. The second command sets the size of the pages to which the \paper block applies – if the \paper block is at the top of the file, then it will apply to all pages. Support for the following paper sizes is available: a6, a5, a4, a3, legal, letter, 11x17 (also known as tabloid). Setting the paper size automatically sets suitable margins and line length.

If the symbol landscape is supplied as an argument to set-default-paper-size, the pages will be rotated by 90 degrees, and wider line widths will be set correspondingly, e.g.

#(set-default-paper-size "a6" 'landscape)

The default staff size is set to 20 points. This may be changed in two ways:

#(set-global-staff-size 14)

\paper {
#(set-global-staff-size 16)
}

The first command sets the size in all pages. The second command sets the size in the pages to which the \paper block applies -– if the \paper block is at the top of the file, then it will apply to all pages. All the fonts are automatically scaled to suit the new value of the staff size.


Next: , Previous: Introduction to layout, Up: Page layout MOVED FROM LM

Cette page documente LilyPond-2.11.40 (branche de développement).

Rapportez toute anomalie en français à lilypond-user-fr@gnu.org ou en anglais à http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs

Vos suggestions à propos de la documentation sont les bienvenues.