%% 
%%  An UIT Edition example
%%  
%%  1st edition
%% 
%%  Example 03-03-2 on page 61.
%% 
%%  Copyright (C) 2012 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1,3

\documentclass[style=simple]{exapd}
\pagestyle{empty}
\usepackage[utf8]{inputenc}
\pddefinetemplate{titleslide}{titlefont=\large\bfseries\raggedright,
  texthook=tl,textpos={.05\slidewidth,.83\slideheight},
  textwidth=.9\slidewidth,textfont=\tabcolsep0pt,textheight=.66\slideheight,
}{\pdsetup{rf=}}
\pddefinetemplate{basic}{%
  titlepos={15pt,.93\slideheight},titlewidth=.9\slidewidth,
  textheight=.66\slideheight,titlefont=\large\bfseries\raggedright,
  lfpos={15pt,.04\slideheight},rfpos={.97\slidewidth,.04\slideheight},
  tocslidesep=.6ex,textheight=.68\slideheight,
  textpos={15pt,.83\slideheight},textwidth=.8\slidewidth}{}
\pddefinetemplate[basic]{slide}{%
  ntocpos={.80\slidewidth,.99\slideheight},ntocwidth=.19\slidewidth,tocsecm=}{
  \psline[linewidth=.8pt,linecolor=blue](0,.9\slideheight)(.8\slidewidth,.9\slideheight)
  \psline[linewidth=1pt,linecolor=blue!60](0,.1\slideheight)(\slidewidth,.1\slideheight)}
\pddefinetemplate[slide]{sectionslide}{
  titlehook=c,titlefont=\bfseries\centering,titlepos={.5\slidewidth,.55\slideheight},
  titlewidth=.75\slidewidth}{}
\makeatletter
\def\pd@tocsimple#1#2{%
  \@tempdima\pd@@tocwidth
  \settowidth\@tempdimb{\normalsize\ensuremath\triangleright\hskip1mm}%
  \advance\@tempdima-\@tempdimb
  \ifnum\pd@toctype=\@ne\else
    #1{\normalsize\ensuremath\triangleright\hskip1mm}%
  \fi
  \begin{minipage}[t]\@tempdima
    \pd@usedtocfont#2%
  \end{minipage}%
  \ifnum\pd@toctype=\@ne
    #1{\hskip1mm\normalsize\ensuremath\triangleleft}%
  \fi}
\makeatother
%\StartShownPreambleCommands

%\StopShownPreambleCommands
\begin{document}
\title{Scientific writing}
\author{Dipl. Frank.-Wiss. Jana Voß
    \quad Dr.-Ing. Herbert Voß}
\date{\today}  \maketitle
\section{An introduction}
\subsection{The template}
\begin{slide}{The \LaTeX\ template for powerdot}
\begin{itemize}[type=1]
\item The template follows the style \texttt{simple}
\item Easy to extend in contrast to \texttt{PowerPoint}
\item Better control of table of contents
\end{itemize}
\end{slide}
\begin{slide}{The navigation}
It is now in the top right corner.
\end{slide}
\end{document}
