I have another mystery at my firm since trying to move to using XeTeX rather than the standard PDFLaTeX with Lyx.
The reason I need XeTeX is that my firm wants to use the Calibri Opentype font in its technical documentation.
I have modified the custom class used to generate our document set to include the following packages:
Code: Select all
Code, edit and compile here:
\RequirePackage{ifthen}\RequirePackage{graphicx}\RequirePackage{fancyhdr}\RequirePackage{setspace}\RequirePackage{grffile}
Code: Select all
Code, edit and compile here:
\usepackage[T1]{fontenc}\usepackage{xcolor}\usepackage{graphics}\usepackage[cm-default]{fontspec}\usepackage[no-sscript]{xltxtra}\usepackage{xunicode}\setmainfont[Mapping=tex-text]{Calibri}\setsansfont{Calibri}% Make nomeclature items bold and sans-serif\def\nomlabel#1{\textsf{\textbf{#1}}\hfil}%Relase settings here. Do not remove this comment
But on a third machine, which is the one that serves our documentation and manages the versioning, we cannot generate the files. This is using exactly the same lyx sources, class and layout files with the same updates as we used on machine 2. Moreover, we have checked that the Calibri font is installed as on the other machines.
These are the errors we get:
Code: Select all
Undefined control sequence.LaTeX Error: Missing \begin{document}.Undefined control sequence.Undefined control sequence.Missing number, treated as zero.Undefined control sequence.Undefined control sequence.Undefined control sequence.Missing number, treated as zero.Missing number, treated as zero.
Code: Select all
Code, edit and compile here:
\setmainfont[Mapping=tex-text]Calibri}The control sequence at the end of the top lineof your error message was never \def'ed. If you havemisspelled it (e.g., '\hobx'), type 'I' and the correctspelling (e.g., 'I\hobx'). Otherwise just continue,and I'll forget about whatever was undefined.
Any help would be greatly appreciated. Many thanks,
EFR