[XeTeX] XeTeX and Beamer Package

Stefan Pohl stefan.pohl at ish.de
Tue Nov 13 06:43:58 CET 2007


Hi list-members,

I use the beamer package, but there I have no option to choose the ScalaSans
LF-Regular font.
In XeTeX I can choose this type of font. But I don`t know which changes I
have to make in my code.
In the beamer package I have used cmbright. Here is my code. The resulting
pdf-file is attached.

Thanks for your help. Stefan.


\documentclass[handout]
{beamer}

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

\usepackage{multimedia,ifthen,eurosym}
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps}
\usepackage{amsmath,amssymb,natbib}
\usepackage{graphicx,xcolor}
\usepackage{enumerate}
\usepackage{float}
\usepackage{pifont}

% Choose font

\usepackage{cmbright} % Loads cmbright text + math

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

%\usepackage{fontspec}
%\setmainfont{ScalaSansLF-Regular}

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

\useinnertheme{rectangles}

\useoutertheme[left,width=1cm]{sidebar}

\title[Title \hspace{0.75cm} \insertpagenumber]
{Title}

\author{S. Pohl}

\institute {MRS}

\date[] % (optional)

\subject{Talks}

% Some graphics

\pgfdeclareimage[height=1.6cm, width=1cm]{MRS-Box1}{mrs_box1}
\pgfdeclareimage[height=1cm, width=1cm]{MRS-Box2}{mrs_box2}

% grey color in sidebar left
\setbeamercolor{sidebar left}{bg=grey}

% orange MRS-box with grey margine in sidebar left
\logo{\pgfuseimage{MRS-Box1}}

% Sidebar left with grey MRS-box
\setbeamertemplate{sidebar left}{%
    \vfill%
    \pgfuseimage{MRS-Box2}
    \vspace{-1cm}}%

% Footline

\setbeamertemplate{footline}[page number]

\setbeamertemplate{footline}
{
\begin{beamercolorbox}[dp=0.5cm, width=\textwidth]{title in foot}
\hspace*{3mm}
\parbox{12cm}{\hspace{0.8cm}
\includegraphics[height=0.4cm]{mrs_logo}
\hfill
\hspace{2cm}
11. und 12.10.2007, \copyright \, 2007 MRS, Köln \hfill
\insertframenumber\hfill}
\end{beamercolorbox}
}

\begin{document}

....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testvortrag.pdf
Type: application/pdf
Size: 45278 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20071113/51a83018/attachment-0001.pdf 


More information about the XeTeX mailing list