On Mon, Apr 27, 2015 at 07:36:31PM +0200, Kornel Benko wrote: > Am Montag, 27. April 2015 um 19:00:38, schrieb Enrico Forestieri > <for...@lyx.org> > > On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: > > > > > Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri > > > <for...@lyx.org> > > > > commit 691fdea346eb5643bff3f84017629d966a90af05 > > > > Author: Enrico Forestieri <for...@lyx.org> > > > > Date: Mon Apr 27 17:22:25 2015 +0200 > > > > > > > > Try hard to obtain an instant preview. > > > > > > > > When the dvipng route is selected and latex fails, the > > > > lyxpreview2bitmap.py > > > > script simply bails out. The failure may be due to using a specific > > > > pdf > > > > only feature in ERT (for example, the inclusion of a pdf image). > > > > In this case the procedure may succeed simply trying to use pdflatex > > > > and the legacy conversion method. > > > > > > As we are at it, there is also the possibility of having lua code in > > > previews. > > > In this case only (dvi)lualatex engine would work. > > > > > > But we cannot have everything. It is already nice as it is now. > > > > Why not? We can try in each method in turn until one of them succeeds. > > I am not good in python programming, so for me it would be more work than I > like.
It would simply boil down to a series of nested if..then stanzas. However, I think we should add them only if really needed. -- Enrico