[XeTeX] Includegraphics and xetex

Stefan Pohl stefan.pohl at ish.de
Sun Jul 6 12:52:19 CEST 2008


> > Dear list,
> >
> > I have problems displaying graphics if I use xetex.

Using 

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

the two graphics are displayed.

Using

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

only the first graphic is displayed.

> >
> > If I use \includegraphics[height=5cm, width=7cm]{graphic.png} and 
> > \usepackage{graphicx} the graphic is not visible.
> 
> To help us understand this, please provide a complete, 
> minimal example of the input you're using (it should only 
> need a dozen lines or so), so that others can try to 
> reproduce the exact issue.  
> Eliminate extra packages, fonts, etc., to leave the simplest 
> file that tries to include a graphic, and fails.

Some sample code:

\documentclass[handout]
{beamer}

\mode<presentation> %{\usetheme{default}}

\usepackage[ngerman]{babel}

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

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

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%--- XeTeX-spezific Code
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

\usepackage{graphicx} 
\usepackage{float}

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}
\frametitle{Graphic I}

\begin{center}
\includegraphics[scale=0.5]{mrs_logo.png}
\end{center}

\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}

\frametitle{Graphic II}

\begin{center}
\includegraphics[scale=0.25]{basehazard.png}
\end{center}

\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\end{document}

> 
> Also, please specify the computer platform you're using,

MS Windows XP SP 3

> kind of TeX distribution (TeX Live? MikTeX? MacTeX? etc)

MikTeX 2.7 Beta 4
 
> the version of xetex.

XeTeX 3.141592-2.2-0.997

 What does "xetex --version" show?

No special error message

Thanks for help,

Stefan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mrs_logo.png
Type: image/png
Size: 15325 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080706/ce48b51a/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basehazard.png
Type: image/png
Size: 15401 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080706/ce48b51a/attachment-0003.png 


More information about the XeTeX mailing list