]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/ly2dvi.py
release: 1.5.47
[lilypond.git] / scripts / ly2dvi.py
index da78c42198d1a423f3d29f68970dc7bb5aff19e7..75d80b0657362f5cf37e6d8ff55a00feda072ae4 100644 (file)
@@ -552,15 +552,16 @@ lily output file in TFILES after that, and return the Latex file constructed.  '
                s = s + '\\include{%s}\n' \
                        % string.join (extra['latexheaders'], '}\n\\include{')
 
+       unit = extra['unit'][-1]
+
        textheight = ''
        if extra['textheight']:
-               textheight = ',textheight=%fpt' % extra['textheight'][0]
+               textheight = ',textheight=%f%s' % (extra['textheight'][0], unit)
 
        orientation = 'portrait'
        if extra['orientation']:
                orientation = extra['orientation'][0]
 
-       unit = extra['unit'][-1]
        # set sane geometry width (a4-width) for linewidth = -1.
        maxlw = max (extra['linewidth'] + [-1])
        if maxlw < 0: