From 1c55d1fc773c44f2aa22730934aa2b2bd60ca250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Mon, 22 Oct 2007 23:55:13 +0000 Subject: [PATCH] configure.py, legacy_lyxpreview2ppm.py, lyxpreview2bitmap.py: check also for "platex" (Japanese variant of "latex"); patch by Koji git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21136 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/configure.py | 2 +- lib/scripts/legacy_lyxpreview2ppm.py | 2 +- lib/scripts/lyxpreview2bitmap.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/configure.py b/lib/configure.py index 38310e3a5d..196bfc13dd 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -202,7 +202,7 @@ def checkLatex(dtl_tools): \converter dvi2 dvi "python -tt $$s/scripts/clean_dvi.py $$i $$o" ""''' else: converter_entry = r'\converter latex dvi "%%" "latex"' - path, LATEX = checkProg('a Latex2e program', ['pplatex $$i', 'latex $$i', 'latex2e $$i'], + path, LATEX = checkProg('a Latex2e program', ['pplatex $$i', "platex", 'latex $$i', 'latex2e $$i'], rc_entry = [converter_entry]) # no latex if LATEX != '': diff --git a/lib/scripts/legacy_lyxpreview2ppm.py b/lib/scripts/legacy_lyxpreview2ppm.py index cb9ff4d08b..f4f13a9223 100644 --- a/lib/scripts/legacy_lyxpreview2ppm.py +++ b/lib/scripts/legacy_lyxpreview2ppm.py @@ -234,7 +234,7 @@ def legacy_conversion(argv): # External programs used by the script. path = string.split(os.environ["PATH"], os.pathsep) - latex = find_exe_or_terminate(["pplatex", "latex2e", "latex"], path) + latex = find_exe_or_terminate(["pplatex", "platex", "latex2e", "latex"], path) dvips = find_exe_or_terminate(["dvips"], path) gs = find_exe_or_terminate(["gswin32c", "gs"], path) pnmcrop = find_exe(["pnmcrop"], path) diff --git a/lib/scripts/lyxpreview2bitmap.py b/lib/scripts/lyxpreview2bitmap.py index aab7799759..b629b15231 100755 --- a/lib/scripts/lyxpreview2bitmap.py +++ b/lib/scripts/lyxpreview2bitmap.py @@ -150,7 +150,7 @@ def main(argv): # External programs used by the script. path = string.split(os.environ["PATH"], os.pathsep) - latex = find_exe_or_terminate(["pplatex", "latex2e", "latex"], path) + latex = find_exe_or_terminate(["pplatex", "platex", "latex2e", "latex"], path) # This can go once dvipng becomes widespread. dvipng = find_exe(["dvipng"], path)