]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/lyxpreview2bitmap.py
Try hard to obtain an instant preview.
[lyx.git] / lib / scripts / lyxpreview2bitmap.py
index 5655bf36ca2e763c9a12db79ba8d275e521a7295..b387529189913db45b12b3271009052d6a29bfb3 100755 (executable)
@@ -413,7 +413,9 @@ def main(argv):
     # Compile the latex file.
     latex_status, latex_stdout = run_latex(latex, latex_file, bibtex)
     if latex_status:
-      return (latex_status, [])
+        progress("Using the legacy conversion method and pdflatex (latex failed)")
+        return legacy_conversion_step1(latex_file, dpi, output_format, fg_color,
+            bg_color, "pdflatex", True)
 
     # The dvi output file name
     dvi_file = latex_file_re.sub(".dvi", latex_file)