I've been trying to create a custom module but unfortunately is seems that
fontspec is not handled by a module at all, instead it is placed into the
preamble automatically when XeTeX mode is triggered. In the end the only thing
that did the job was modifying a local copy of the .cls, which is not too bad
actually. However, given the peculiarity of fontspec with a lot of
font-affecting packages there should be a way to override or customize this
kind of behavior (along with passing options to \setXfont) without resorting to
modifying classes and/or packages. Other than that I'm quite happy with the way
LyX handles XeTeX.

Thanks for the tips!

On 10/04/2011 06:49 PM, Julien Rioux wrote:
> On 04/10/2011 12:02 PM, Spyros Stathopoulos wrote:
>>>> Is there any (hackish?) way to tell LyX to load mathdesign (or any other
>>>> package) before fontspec? I'm using LyX 2.0.1 + TeXLive 2010 on ArchLinux.
> You could try your luck with the approach described in this thread:
> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg170949.html
> Alternatively you can modify your .cls file to load mathdesign for you.
> Cheers,
> Julien

Reply via email to