"{" (sanitize-tex-string str) "}%\n")))
(define (header creator time-stamp bookpaper page-count classic?)
+ (let*
+ ((scale (ly:output-def-lookup bookpaper 'outputscale)))
+
(string-append
"% Generated by " creator "\n"
"% at " time-stamp "\n"
(if classic?
(tex-string-def "lilypond" 'classic "1")
"")
- ;; FIXME: duplicated in every backend
- "\\def\\lilypondtagline{Engraved by LilyPond (version "
- (lilypond-version)")}\n"
- ;; FIXME
- ;; this is -of course- severely broken, (--hwn)
(tex-string-def "lilypondpaper" 'linewidth
- (ly:number->string (/ 18 0.175))) ; 18 cm.
+ (ly:number->string (* scale
+ (ly:output-def-lookup bookpaper 'linewidth))))
+
(tex-string-def "lilypondpaper" 'interscoreline
- (ly:number->string 0.0))
- ))
+ (ly:number->string
+ (* scale
+ (ly:output-def-lookup bookpaper 'interscoreline))))
+ )))
(define (header-end)
(string-append