From: John Mandereau Date: Sat, 19 Apr 2008 16:36:29 +0000 (+0200) Subject: Merge branch 'master' of /home/lilycvs/git/lily/ X-Git-Tag: release/2.11.45-1~43 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b9c3fa6bdea9d17ef1e93d3595e1b3f69233a49a;hp=a4ef0d9d7b12478696619ec131e5113d2833648e;p=lilypond.git Merge branch 'master' of /home/lilycvs/git/lily/ * 'master' of /home/lilycvs/git/lily/: Add --latex lilypond-book option --- diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 292a7280df..7be0bc78b6 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -135,6 +135,12 @@ def get_option_parser (): action='store', dest='info_images_dir', default='') + p.add_option ('--latex', + help=_ ("Run executable PROG instead of latex"), + metavar=_ ("PROG"), + action='store', dest='latex_program', + default='latex') + p.add_option ('--left-padding', metavar=_ ("PAD"), dest="padding_mm", @@ -1572,7 +1578,8 @@ def get_latex_textwidth (source): tmp_handle.write (latex_document) tmp_handle.close () - ly.system ('latex %s' % tmpfile, be_verbose=global_options.verbose) + ly.system ('%s %s' % (global_options.latex_program, tmpfile), + be_verbose=global_options.verbose) parameter_string = file (logfile).read() os.unlink (tmpfile)