On Mon, Apr 27, 2015 at 12:48:36PM +0200, Enrico Forestieri wrote:
> On Mon, Apr 27, 2015 at 11:40:13AM +0200, Kornel Benko wrote:
> 
> > Sorry, my fault. The patch is working in case of lualatex (and 
> > non-tex-fonts),
> > but not for pdflatex.
> 
> The standard answer is: if you use ERT, you are on your own.

BTW, using the attached patch, it also works for pdflatex.

-- 
Enrico
diff --git a/lib/scripts/lyxpreview2bitmap.py b/lib/scripts/lyxpreview2bitmap.py
index ace46d2..89c4173 100755
--- a/lib/scripts/lyxpreview2bitmap.py
+++ b/lib/scripts/lyxpreview2bitmap.py
@@ -410,7 +410,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)

Reply via email to