KO wrote:
Hi,

I'm trying to make Xetex work with Lyx under Win XP.

I've tried to add the following to the preamble :

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}


But the Lyx PDF compiler answers :

"This package currently works only with xetex"
with some info about fonts which aren't "loadable"


What can I do to make the thing work ?


This happens because you use a package made for xetex (as the message points out) but you aren't actually using xetex. You use latex or pdflatex, and they can't use this xetex package.

Lyx is currently not able to invoke xetex on its own. It invokes latex or pdflatex.

What you can do, is to use export->latex. LyX will produce a file with the same name as the .lyx file, but the ending .tex. Then, run xetex on that file. The command will be something like:

xetex filename.tex

Also see http://wiki.lyx.org/ that has some information on using xetex with LyX

Helge Hafting

Reply via email to