I got the font problem cracked and felt triumphant, but ran into a separate problem. We are using a customized class to create the front matter for our documentation. This class calls two png images which are a colored bar and a company logo. The pdflatex compilation never had any problem with them, but the XeTeX will not work unless I comment them out in the cls file.
Here is the error that I get:
Code: Select all
Unable to load picture or PDF file 'C:/Users/me/Documents/filedirectory'.
Missing $ inserted
Extra }, or forgotten $.
Extra }, or forgotten $.
Package graphics Error: Division by 0.
and in the Descriptions pane it says:
Code: Select all
\selectlanguage
{english}%
The requested image couldn't be read because
it was not a recognized image format.
Here is the section of code in the class file that calls the images:
Code: Select all
% Define the header/footer page style for the title page.
\fancypagestyle{titlestyle}
{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}
\fancyhead[R]
{
\includegraphics[width=1\textwidth]{./template_gfx/head-bar.png}
}
\fancyfoot[R]
{
\raisebox{-2cm}{\includegraphics[height=2cm]{./template_gfx/Logo.png}}
}
\fancyfoot[C]{}
}
Code: Select all
\RequirePackage{graphicx}
Can anyone decipher what the problem here is? I'm a LaTeX newbie and the whole argument for using Lyx was that I wasn't supposed to trouble my pretty head with formatting issues, so I need to crack this quickly before my employers complain...
Cheers,
EFR