Jean-Marc Lasgouttes wrote: > > I finally decided to look why I cannot get previews to work here. The > answer is that uses "latex" in a hardcoded way (along with dvips and > gs). This is not good here where latex should be invoked as "babel" > (don't ask why, it is braindead). But it could be the case for other > people too. > > Would it be possible to make the script use the latex->dvi converter? > I know it does not seem easy to do, except maybe by passing this > converter as argument. People who have several ghostscript versions > installed would probably also appreciate to be able to select the one > to use too.
Ummmmm. The script currently requires 'latex', 'dvips' and 'gs'. I don't think that LyX should know too much about the details of how the conversion is performed. F.ex., some people might decide to try out the dvipng that is being developed by the preview-latex people. We could get lib/configure to generate a file lyxpreviewrc that contains: LATEX=latex DVIPS=dvips GS=gs and run this script from within lyxpreview2bitmap.sh to tell it about these definitions. I see that the RedHat init scripts do something similar and it works well for those. Would this be a plan? -- Angus