From 8e3d69a83919b4754f73c1ad99239938d157edb8 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Sun, 10 Jan 2010 16:38:12 +0100 Subject: [PATCH] Make lilypond-book call pdflatex by default if --pdf is given This fixes LaTeX crashes that happen for documents which declare packages with options not compatible with DVI mode. See dicussion on users list at http://lists.gnu.org/archive/html/lilypond-user/2010-01/msg00093.html --- scripts/lilypond-book.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 5dd263b6ac..202af65408 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -164,7 +164,8 @@ def get_option_parser (): default='') p.add_option ('--latex-program', - help=_ ("run executable PROG instead of latex"), + help=_ ("run executable PROG instead of latex, or in\n\ +case --pdf option is set instead of pdflatex"), metavar=_ ("PROG"), action='store', dest='latex_program', default='latex') @@ -2150,6 +2151,8 @@ def main (): global_options.process_cmd += ' --formats=eps ' if global_options.create_pdf: global_options.process_cmd += "--pdf -dinclude-eps-fonts -dgs-load-fonts " + if global_options.latex_program == 'latex': + global_options.latex_program = 'pdflatex' if global_options.verbose: global_options.process_cmd += " --verbose " -- 2.39.5