Ah, I see. Thank you.
Looking into the log, I see there is indeed an error:

! Package inputenc Error: inputenc is not designed for xetex or luatex.
(inputenc)                only UTF-8 supported.

So presumably it is a bug in the preview mechanism - it should not try to
include "inputenc" if xetex/luatex are used, right?
Should I file a ticket about it?


> (Note: This is a repost from lyx-users, hoping this list will be more
> > helpful)
> >
> > Hello,
> >
> > I'm having a problem with math previews in lyx 2.1.2 - in certain documents
> > (possibly all documents set to be compiled with xelatex) there is no
> > preview for math.
> >
> > When running from terminal I get the error in the subject:
> >
> > Warning: xelatex had problems compiling lyxpreviews?????.tex
> >
> > repeating a few times for various files. Locating those files in
> > "/tmp/lyx_tmpdir..." I can see there is a valid PDF for each, and running
> > xelatex manually on them works without any error.
> > Note also that on the same machine lyx 2.1.0 does not have the same
> > problem, and the same documents have previews.
> >
> > What could be the problem, and how do I solve it?
>
> This is due to http://www.lyx.org/trac/changeset/64e0c558/lyxgit
>
> I don't think that was a good idea, because the document preamble
> is also used for producing the previews and, even if latex has
> some problem, it may be something unrelated to math and the correct
> result may still be produced (which I think is the case here).
>
> You could try deleting those couple of lines added in the changeset
> above by using a normal text editor for editing the scripts.
>
> --
> Enrico
>
>

Reply via email to