lilypond-user
[Top][All Lists]
Advanced

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

Re: Producing postscript for custom paper size (9x12" manuscript paper)?


From: Graydon
Subject: Re: Producing postscript for custom paper size (9x12" manuscript paper)?
Date: Mon, 10 Apr 2006 13:01:09 -0400
User-agent: Mutt/1.4.2.1i

On Mon, Apr 10, 2006 at 09:15:59AM -0700, Rick Hansen (aka RickH)
scripsit:
> I really need to be able to print my work on standard 9x12 sheet music
> paper too.  But I dont understand how to make the code changes you've
> done without breaking my installation.  I'm presuming it works for you
> now and the PDF is behaving itself in Adobe Reader.

% lilypond paper default is A4
\layout {
  %#(set-default-paper-size "letter")
  #(set-default-paper-size "letter" 'landscape ) }

is what I do -- in the defaults.ly file included via 

\include "../defaults.ly"

in all the music I do to get letter, instead of A4 paper.  The
"'landscape" is to print across the width instead of 'portrait'.

If -- as I think is the case -- your problem is that you don't have a
"concert' to replace the "letter" with, in paper.scm -- which is in
/pathtotoplevel/lilypond/usr/share/lilypond/current/scm on linux -- you
need to add the 'concert' paper type, as below.

(define-public paper-alist

  ;; don't use decimals.
  ;; ISO 216 has a tolerance of +- 2mm

  '(("a7" . (cons (* 74 mm) (* 105 mm)))
    ("a6" . (cons (* 105 mm) (* 149 mm)))
    ("a5" . (cons (* 149 mm) (* 210 mm)))
    ("a4" . (cons (* 210 mm) (* 298 mm)))
    ("a3" . (cons (* 298 mm) (* 420 mm)))
    ("legal" . (cons (* 8.5 in) (* 14.0 in)))
    ("letter" . (cons (* 8.5 in) (* 11.0 in)))
    ("11x17" . (cons (* 11.0 in) (* 17.0 in)))
    ("concert" . (cons (* 9.0 in) (* 12.0 in)))
    ))

Once you've done that, 

\layout { #(set-default-paper-size "concert" ) }

in your defaults.ly file ought to do it.

-- Graydon






reply via email to

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