landscape.
(header): add landscape and papersize options.
+2004-10-10 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * scm/framework-tex.scm (convert-to-ps): invoke dvips with -t
+ landscape.
+ (header): add landscape and papersize options.
+
2004-10-09 Han-Wen Nienhuys <hanwen@xs4all.nl>
* lily/*.cc: use robust_scm2moment() where appropriate.
mod->set_variable (ly_symbol2scm ("scaled-fonts"), font_table);
}
-
SCM sizes = scm_hashq_ref (font_table, f->self_scm (), SCM_BOOL_F);
if (sizes != SCM_BOOL_F)
{
variance_penalty = variance_penalty >? 0.0;
variance_penalty *= state.parameters_.head_slur_distance_factor_;
}
+
#if DEBUG_SLUR_SCORING
score_card_ += to_string ("C%.2f", demerit);
score_card_ += to_string ("D%.2f", variance_penalty);
LILYPOND = $(builddir)/lily/$(outconfbase)/lilypond
LILYPOND_BOOK = $(script-dir)/lilypond-book.py
LILYPOND_BOOK_INCLUDES = -I $(pwd) -I $(outdir) -I$(input-dir) -I $(input-dir)/regression/ -I $(input-dir)/test/ -I $(input-dir)/tutorial/ -I $(builddir)/mf/$(outconfbase)/ -I $(builddir)/mf/out/
-LILYPOND_BOOK_FLAGS = --process="lilypond -f tex --tex --header=texidoc -I $(srcdir)/input/test -e '(ly:set-option (quote internal-type-checking) \#t)'"
+LILYPOND_BOOK_FLAGS = --process="lilypond -f tex --tex --header=texidoc -I $(srcdir)/input/test -e '(ly:set-option (quote internal-type-checking) \#t)'"
#texi-html for www only:
LILYPOND_BOOK_FORMAT=$(if $(subst out-www,,$(notdir $(outdir))),texi,texi-html)
"{" (sanitize-tex-string str) "}%\n")))
(define (header bookpaper page-count classic?)
- (let ((scale (ly:output-def-lookup bookpaper 'outputscale)))
-
+ (let ((scale (ly:output-def-lookup bookpaper 'outputscale))
+ (texpaper (string-append
+ (ly:output-def-lookup bookpaper 'papersizename)
+ "paper"))
+ (landscape? (eq? #t (ly:output-def-lookup bookpaper 'landscape)))
+ )
+
(string-append
"% Generated by LilyPond "
(lilypond-version) "\n"
(tex-string-def
"lilypondpaper" 'linewidth
(ly:number->string (* scale (ly:output-def-lookup bookpaper 'linewidth))))
-
+ "\\def\\lilyponddocumentclassoptions{"
+ texpaper
+ (if landscape? ",landscape" "")
+ "}%\n"
(tex-string-def
"lilypondpaper" 'interscoreline
(ly:number->string
(define-public (convert-to-ps book name)
(let*
- ((cmd (string-append "dvips -u+ec-mftrace.map -u+lilypond.map -Ppdf "
+ ((bookpaper (ly:paper-book-book-paper book))
+ (papersize (ly:output-def-lookup bookpaper 'papersizename))
+ (landscape? (eq? #t (ly:output-def-lookup bookpaper 'landscape)))
+ (cmd (string-append "dvips -t " papersize
+ (if landscape? " -t landscape " " ")
+ " -u+ec-mftrace.map -u+lilypond.map -Ppdf "
(basename name ".tex"))))
(display (format #f (_ "Invoking ~S") cmd) (current-error-port))
\def\lilypondfontencoding####1{
\fontencoding{####1}
\selectfont}
- \documentclass[a4paper]{article}
+ \documentclass[\lilyponddocumentclassoptions]{article}
%% safe-mode
\nofiles
\usepackage[\lilypondpaperinputencoding]{inputenc}