Micha Feigin wrote:
> > I'm trying to use LyX together with Xetex and thanks to strangers on the
> > internet, it actually works. I updated the wiki under
> > http://wiki.lyx.org/LyX/XeTeX so that it might work for other people,
> > too.
> >
> > There's one problem, though: As XeTeX must run through the xelatex, which
> > is a different lyx file format, the preview PDF button does not work
> > anymore (exporting using pdflatex gives an error, as you need to export
> > using xelatex). What is the best/quickest/working way to get the
> > "preview/update PDF" buttons to export using XeTeX instead of pdflatex?
> > (optimally, this would be a document setting).

Copy the buffer-view_pdf2.png and buffer-update_pdf2.png icons to buffer-
view_pdf4.png and buffer-update_pdf4.png in your LyX user directory (create a 
new icons folder, if not already there).

Then copy the stdtoolbars.ui file from the LyX System directory to your LyX 
user directory (new folder "ui"), and add the following lines to the 
"view/update" section:

Item "View PDF (XeTeX)" "buffer-view pdf4"
Item "Update PDF (XeTeX)" "buffer-update pdf4"

This will add two new buttons.

> > Thanks in advance for your help!
> >
> > Cheers,
> > Kosta
> It's a dirty hack that would work only if you always want to use xetex
> instead of pdflatex. You can go into
> preferences->converters->Latex(pdflatex) and change the converter from
> pdflatex to xetex

You will be pleased to hear that forthcoming LyX 2.0 comes with (basic) native 
XeTeX support, which handles the basic settings for you. If you click "use 
XeTeX", the right converter will be chosen, the toolbar and menu entries will 
be adapted, all the necessary preamble stuff will be inserted and you can even 
chose a system font from the document dialog.


Reply via email to