From 71e0343fdf2a1936b07db0a5892155351c72d553 Mon Sep 17 00:00:00 2001 From: James Lowe Date: Thu, 7 Apr 2011 12:29:02 +0100 Subject: [PATCH] Added new Pagesize definition to paper.scm Added 'c9landscape' to allow a very small @lilypond to be defined for examples that need to show footers, taglines and the like without having to 1. Define the papersize within the actual @lilypond; and so make the example more complicated that it need be for users. 2. Avoid unnecessary white space between the content and footers/taglines etc. Chosen size is named c9landscape because the new papersize=x option for the @lilypond [] construct cannot take spaces or use the standard 'landscape option. Keeping a standard ISO size means we don't have 'custom' sizes in the scm file. --- input/regression/lilypond-book/papersize-docs.tely | 3 +-- scm/paper.scm | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/input/regression/lilypond-book/papersize-docs.tely b/input/regression/lilypond-book/papersize-docs.tely index 12c3dd9bac..d274ac0201 100644 --- a/input/regression/lilypond-book/papersize-docs.tely +++ b/input/regression/lilypond-book/papersize-docs.tely @@ -11,8 +11,7 @@ This is a sample of a small papersize, which is useful when you want to add a @code{\book@{@}} around some input. -@c @lilypond[verbatim,papersize=c9landscape] -@lilypond[verbatim,quote,papersize=c9] +@lilypond[verbatim,papersize=c9landscape] \book { \header { title = "A scale in LilyPond" diff --git a/scm/paper.scm b/scm/paper.scm index d00be0d190..fb753ba0cc 100644 --- a/scm/paper.scm +++ b/scm/paper.scm @@ -224,6 +224,9 @@ ("pa10" . (cons (* 26 mm) (* 35 mm))) ;; F4 used in southeast Asia and Australia ("f4" . (cons (* 210 mm) (* 330 mm))) + ;; Used for very small @lilypond examples in the Documentation + ;; based on c9 envelope size but landscape not portrait + ("c9landscape" . (cons (* 57 mm) (* 40 mm))) )) ;; todo: take dimension arguments. -- 2.39.2