[XeTeX] Includegraphics and xetex

Peter Dyballa Peter_Dyballa at Web.DE
Sun Jul 6 15:55:17 CEST 2008


Am 06.07.2008 um 12:52 schrieb Stefan Pohl:

> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
> %%%%%
> %--- 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}


You could "automate" this by first loading ifpdf and ifxetex (i.e.:  
\usepackage{ifpdf,ifxetex}) and then using:

\ifxetex
   %--- XeTeX-spezific Code
\else
   %--- pdfTeX-spezific Code, although DVI output also possible, so  
you could start another
   %--- \ifpdf
   %---   code for PDF output
   %--- \else
   %---   code for DVI output
   %--- \fi
\fi

--
Mit friedvollen Grüßen

   Pete

A blizzard is when it snows sideways.




More information about the XeTeX mailing list