summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/powerdot/powerdot.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/powerdot/powerdot.cls')
-rw-r--r--Master/texmf-dist/tex/latex/powerdot/powerdot.cls52
1 files changed, 48 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/powerdot/powerdot.cls b/Master/texmf-dist/tex/latex/powerdot/powerdot.cls
index c6b69dfe0d1..50b93dc0d59 100644
--- a/Master/texmf-dist/tex/latex/powerdot/powerdot.cls
+++ b/Master/texmf-dist/tex/latex/powerdot/powerdot.cls
@@ -5,7 +5,7 @@
%% Copyright (C) 2005-2011 Hendri Adriaens and Christopher Ellison
%% ---------------------------------------------------------------
%%
-%% Version 1.4h prepared by Herbert Voss
+%% Version 1.4i prepared by Herbert Voss
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -18,7 +18,7 @@
%% This work has the LPPL maintenance status "unmaintained".
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{powerdot}[2011/09/15 v1.4h powerdot presentation class (HA,CE)]
+\ProvidesClass{powerdot}[2012/03/13 v1.4i powerdot presentation class (HA,CE,hv)]
\newif\ifpd@overlay
\newif\ifpd@section
\newif\ifpd@ifsetup
@@ -146,8 +146,41 @@
\RequirePackage[mag=2000,margin=0pt,voffset=-\pd@@size pt]{geometry}
\geometry{top=.5\paperheight}
\fi
-\RequirePackage[setpagesize=false,dvips,pdfstartview=Fit,%
- pageanchor=false,bookmarks=false]{hyperref}
+\RequirePackage{ifxetex}
+\ifxetex
+ \RequirePackage[setpagesize=false,pdfstartview=Fit,
+ pageanchor=false,bookmarks=false]{hyperref}[2009/12/14]
+\def\pd@pdftrans{%
+ \@expandtwoargs\in@{,\pd@@trans,}{%
+ ,Split,Blinds,Box,Wipe,Dissolve,Glitter,%
+ Replace,Fly,Push,Cover,Uncover,Fade,}%
+ \ifin@\else
+ \pd@warn{Transition `\pd@@trans' might not be understood by
+ your ps to pdf converter}%
+ \fi
+ \special{pdf:put @thispage %
+ <</Trans<</S/\pd@@trans>>>>%
+ }%
+}
+
+\def\pd@pdbookmark#1#2#3#4{%
+ \pdfstringdef\pd@tempa{#4}%
+ \special{pdf:outline
+ \pd@pdb@@kmark{#1}%
+ <<%
+ /Title(\pd@tempa)%
+ /A<<%
+ /S/GoTo
+ /D(slide.#3)%
+ >>%
+ >>%
+ }%
+}
+\else
+ \RequirePackage[setpagesize=false,dvips,
+ pdfstartview=Fit,
+ pageanchor=false,bookmarks=false]{hyperref}
+\fi
\AtBeginDocument{\def\@pdfborder{0 0 0}}
\RequirePackage{graphicx}
\RequirePackage{pstricks}[2004/05/12]
@@ -166,6 +199,13 @@
\def\itemize@ii[#1][#2]{%
\ifx\relax#1\relax\else\setkeys{enumitem}{#1}\fi%
\orig@itemize[#2]}
+%
+\let\orig@description\description
+\def\description{\@ifnextchar[\description@i{\description@i[]}}
+\def\description@i[#1]{\@ifnextchar[{\description@ii[#1]}{\description@ii[#1][]}}
+\def\description@ii[#1][#2]{%
+ \ifx\relax#1\relax\else\setkeys{enumitem}{#1}\fi%
+ \orig@description[#2]}
%% -------------------------------------------------------------------------
\RequirePackage{verbatim}
\ifnum\pd@mode<2
@@ -799,6 +839,7 @@
\def\pd@pdb@@kmark#1{%
\@ifundefined{pd@be@#1}0{\csname pd@be@#1\endcsname}%
}
+\ifxetex\else
\def\pd@pdbookmark#1#2#3#4{%
\pdfstringdef\pd@tempa{#4}%
\pdfmark{pdfmark=/OUT,%
@@ -806,6 +847,7 @@
View={/XYZ null null null},Title={\pd@tempa}%
}%
}
+\fi
\def\pdcontentsline#1#2#3{%
\ifnum\@tempcnta>\z@
\@nameedef{pd@te@\the\@tempcnta @start}{\pd@tempa}%
@@ -1197,6 +1239,7 @@
}
\define@cmdkey{enumitem}[pd@@]{type}{}
\setkeys{enumitem}{type=0}
+\ifxetex\else
\def\pd@pdftrans{%
\@expandtwoargs\in@{,\pd@@trans,}{%
,Split,Blinds,Box,Wipe,Dissolve,Glitter,%
@@ -1212,6 +1255,7 @@
}%
}%
}
+\fi
\define@cmdkeys[pd]{twocolumn}[pd@@]{%
lineheight,lfrheight,rfrheight,lcolwidth,rcolwidth,%
topsep,bottomsep,indent,lineprop,lfrprop,rfrprop%