+2003-09-22 Mats Bengtsson <mabe@drongo.s3.kth.se>
+
+ * scripts/lilypond.py: add support for 'legal' and 'tabloid' paper
+ sizes. Remove support for 'ledger'(=tabloid+landscape).
+
2003-09-22 Han-Wen Nienhuys <hanwen@cs.uu.nl>
* scm/font.scm (paper20-style-sheet-alist): add cmss entries.
'a4' : 'a4paper',
'a5' : 'a5paper',
'a6' : 'a6paper',
+ 'legal' : 'legalpaper',
+ 'tabloid' : 'papersize={11in,17in}',
}
#TODO: should set textheight (enlarge) depending on papersize.
options = ''
- if extra['papersize']:
- try:
- options = ly_paper_to_latexpaper[extra['papersize'][0]]
- except KeyError:
- ly.warning (_ ("invalid value: `%s'") % `extra['papersize'][0]`)
- pass
-
if extra['latexoptions']:
options = options + ',' + extra['latexoptions'][-1]
unit = extra['unit'][-1]
+
+ papersize = ''
+ if extra['papersize']:
+ try:
+ papersize = ly_paper_to_latexpaper[extra['papersize'][0]] + ','
+ except KeyError:
+ ly.warning (_ ("invalid value: `%s'") % `extra['papersize'][0]`)
+ pass
+
textheight = ''
if extra['textheight']:
textheight = ',textheight=%f%s' % (extra['textheight'][0], unit)
linewidth = '597pt'
else:
linewidth = '%d%s' % (maxlw, unit)
- s = s + '\geometry{width=%s%s,headheight=2mm,footskip=2mm,%s}\n' % (linewidth, textheight, orientation)
+ s = s + '\geometry{%swidth=%s%s,headheight=2mm,footskip=2mm,%s}\n' % (papersize, linewidth, textheight, orientation)
if 'twoside' in extra['latexoptions'] :