Am Sonntag, 26. April 2015 um 23:17:24, schrieb Enrico Forestieri <for...@lyx.org> > On Sun, Apr 26, 2015 at 08:07:47PM +0200, Kornel Benko wrote: > > Am Sonntag, 26. April 2015 um 16:21:51, schrieb Enrico Forestieri > > <for...@lyx.org> > > > On Sun, Apr 26, 2015 at 02:50:51PM +0200, Kornel Benko wrote: > > > > > > The reason for 0bb378ba/lyxgit was non-working preview of some tex > > > > macros > > > > not known by lyx, although the file compiles with e.g. lualatex. > > > > > > Sorry, this is very vague and doesn't tell me anything. The issue raised > > > on the bug tracker would have been solved by the one-liner patch I posted > > > there. Maybe other similar issues can be solved similarly. > > > > Attached a trivial example. > > (Yes, I know how to insert graphics) > > Are you kidding? This is the same issue raised at #9371. > Please, apply to branch the patch I posted there: > http://www.lyx.org/trac/raw-attachment/ticket/9371/9371-21x.diff > and you will see that there is no problem in previewing.
Sorry, my fault. The patch is working in case of lualatex (and non-tex-fonts), but not for pdflatex. > > > In this way, all previews were generated in the same way for all users. > > > But now, if the document doesn't set a default output, the overall > > > default output set in the preferences is used. This means that we may get > > > different results for different users, leading to seemingly mysterious > > > behaviours (see, for example, the discussions in #7850 and #8258). > > > > IMHO it should use the same latex engine as used for the desired pdf output. > > In principle, I would agree if there is a problem that cannot be (easily) > solved otherwise, but still I have to see this problem. I prefer having > good quality previews in a short time. They are previews, so the way > they are obtained is irrelevant. You want bad previews produced in a much > longer time for ... what? To follow the principle that the previews should > be obtained by running the same default latex engine set in the preferences? > > > > Still, I would see this as a palliative and think that reverting the > > > offending commit is better. Let's see what others think. > > > > Maybe a preference option? Something like > > Latex engine used for preview creation > > standard (means use the same engine as the document) > > latex > > pdflatex > > etc. > > ? > > No, please. There are already too much options. An acceptable compromise > would be using the old way for selecting the latex engine if the document > does not specify a default output format (disregarding the default output > format set in the preferences). > I agree. Kornel
signature.asc
Description: This is a digitally signed message part.