[XeTeX] Includegraphics and xetex

Stefan Pohl stefan.pohl at ish.de
Sun Jul 6 10:13:58 CEST 2008


Dear list,

I have problems displaying graphics if I use xetex.

If I use \includegraphics[height=5cm, width=7cm]{graphic.png} and
\usepackage{graphicx} the graphic is not visible.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%--- XeTeX-specific Code
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{fontspec}
\setmainfont[BoldFont={ScalaSansLF-Regular
Bold},ItalicFont={ScalaSansLF-Regular
Italic},Mapping=tex-text]{ScalaSansLF-Regular}

If I use and pdftex

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%--- Fontencoding
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[T1]{fontenc}
\usepackage{cmbright}

the graphic is displayed properly.

What can I do?

Thanks for your help.

Stefan.




More information about the XeTeX mailing list