From: Mats Bengtsson Date: Fri, 20 Aug 2004 14:37:08 +0000 (+0000) Subject: * scripts/lilypond.py (ly_paper_to_latexpaper): Only set the X-Git-Tag: release/2.2.6~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5673ba4fae4d07bba9eced57044f07bb53ccc717;p=lilypond.git * scripts/lilypond.py (ly_paper_to_latexpaper): Only set the height of head and foot if textheight is not set, otherwise let the geometry package make evenly sized head and foot. --- diff --git a/ChangeLog b/ChangeLog index 3d67d128f7..e3a828c03f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-20 Mats Bengtsson + + * scripts/lilypond.py (ly_paper_to_latexpaper): Only set the + height of head and foot if textheight is not set, otherwise let + the geometry package make evenly sized head and foot. + 2004-08-18 Mats Bengtsson * lily/clef-engraver.cc: Add forceClef to list of read properties. diff --git a/scripts/lilypond.py b/scripts/lilypond.py index fb71ee72d4..f426f1a2a0 100644 --- a/scripts/lilypond.py +++ b/scripts/lilypond.py @@ -437,7 +437,8 @@ def global_latex_preamble (extra): ly.warning (_ ("invalid value: `%s'") % `extra['papersize'][0]`) pass - textheight = '' + # Default setting: textheight is determined implicitly: + textheight = ',bottom=11mm,top=12mm' if extra['textheight']: textheight = ',textheight=%f%s' % (extra['textheight'][0], unit) @@ -452,7 +453,7 @@ def global_latex_preamble (extra): linewidth = '597pt' else: linewidth = '%d%s' % (maxlw, unit) - s += '\geometry{%swidth=%s%s,bottom=11mm,headsep=2mm,top=12mm,headheight=2mm,footskip=5mm,%s}\n' % (papersize, linewidth, textheight, orientation) + s += '\geometry{%swidth=%s%s,headsep=2mm,headheight=2mm,footskip=5mm,%s}\n' % (papersize, linewidth, textheight, orientation) if 'twoside' in extra['latexoptions'] :