Hi all. I'm gingerly trying to switch over to LyX 2.0 (beta 1 2) and to start using XeTeX so I can more easily access additional fonts. I'm writing a thesis using the included thesis templates. Actually my current work uses the template set sent out on these lists earlier in 2010, so I created brand new sample files from the new 2.0 version to test the problems I'm about to describe.
1. conflict with AMS package I've found that simply activating XeTeX under *Document Settings – Fonts*will cause parsing errors on viewing if the document also has *Math Options – Use AMS math package* checked; eg, LaTeX Error: Command `\Finv' already defined, etc. I think this is a known conflict between XeTeX and the AMS package, is that right? By changing the setting to *Use AMS math package automatically* though, these particular errors go away. Note that this occurs in the generic default new document (*article* class) as well as the *KOMA-script book *class that the thesis uses. So for a 'simple' document — which has the automatic AMS math package option checked by default anyway — this seems to fix the problem. But is that a reasonable thing to do, or is the thesis template not initially configured to use the auto version for good reason? 2. conflict in thesis template Beyond that, changing to the automatic AMS math package in the thesis document introduces new errors. In a brand new, entirely unmodified chapter template file, XeTeX compilation now complains about the use of ' \addto \extrasenglish{' in the preamble (used to define cross reference identifiers). Is this another conflict between XeTeX and ... is it *hyperref * these overrides refer to? Would this be the appropriate moment to switch to using *refstyle* for customised cross referencing? And is doing so a case of going and reading that packages documentation? I can't find much in the LyX help files beyond the fact that the option exists. One of the benefits of the hyperref approach is not having to switch each cross ref instance to the *Formatted reference* type... 3. custom character-style error Finally, and this is more an annoyance than an impediment, my custom character style module (based on info from Rob Oakes<http://blog.oak-tree.us/index.php/2009/11/14/customize-lyx-character-styles>) generates an *Undefined flex inset *error: 'Flex inset TechnicalDefinition is undefined because of class conversion from article to article' (and the same occurs in scrbook). This only seems to get thrown if I save a change made within Document Settings, not on view, etc. Is there something in my module that might cause this? #\DeclareLyXModule{thesis styles} #DescriptionBegin #Adds character styles for PhD thesis #DescriptionEnd InsetLayout CharStyle:TechnicalDefinition LyxType charstyle LabelString techdefn LatexType command LatexName techdefn Font Family Sans EndFont Preamble \newcommand*{\techdefn}[1]{{\sffamily{\mdseries #1}}} EndPreamble End Thanks!