On 10/05/2009 01:36 PM, Daniel Owens wrote:
I am working on a dissertation class for my school, and I need to use
XeTeX. The class is working well using LaTeX, but when I create a
layout file for LyX to use the class, it ignores the commands for
using TrueType fonts, so Greek is not typeset. I don't have this
problem in LyX if I just use a *.sty file instead of a class. Then LyX
handles XeTeX very well. Does anyone have any theories about what is
going on? The only thing I can think of is that my layout file is
doing something to interfere with XeTeX. It compiles okay just without
the right fonts.
I have no idea what is happening, but here's how to find out. Construct
some simple test file that exhibits the behavior you mention, i.e., it
works with the sty and not with the cls. Now export both to LaTeX. Look
carefully at the preamble and in particular at the order in which things
are being loaded. Somewhere in there is probably the difference. If
not, then check the order in which things are being loaded in your class
and style files. Maybe it's there.
rh