diff options
author | Karl Berry <karl@freefriends.org> | 2010-10-11 00:26:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-10-11 00:26:22 +0000 |
commit | 673509d3fab59a936420846d8e3264f45af1bc0d (patch) | |
tree | 1cfb4f6b6b19c7f4632232fe4b6c70e39f756dc7 /Master/texmf-dist/tex/latex/powerdot/powerdot.cls | |
parent | df4c7d3e395c9b22ace64dbbf61191ac43beea3f (diff) |
powerdot update (10oct10)
git-svn-id: svn://tug.org/texlive/trunk@20051 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/powerdot/powerdot.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/powerdot/powerdot.cls | 50 |
1 files changed, 32 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/powerdot/powerdot.cls b/Master/texmf-dist/tex/latex/powerdot/powerdot.cls index 758d9238805..a5976f8c826 100644 --- a/Master/texmf-dist/tex/latex/powerdot/powerdot.cls +++ b/Master/texmf-dist/tex/latex/powerdot/powerdot.cls @@ -7,9 +7,11 @@ %% powerdot.dtx (with options: `powerdot') %% %% --------------------------------------------------------------- -%% Copyright (C) 2005-2006, 2010 Hendri Adriaens and Christopher Ellison +%% Copyright (C) 2005-2010 Hendri Adriaens and Christopher Ellison %% --------------------------------------------------------------- %% +%% Version 1.4a 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 %% of this license or (at your option) any later version. @@ -26,7 +28,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{powerdot} - [2005/12/06 v1.3 powerdot presentation class (HA,CE)] + [2010/10/07 v1.4a powerdot presentation class (HA,CE)] \newif\ifpd@overlay \newif\ifpd@section \newif\ifpd@ifsetup @@ -139,6 +141,7 @@ \let\newcommand\def \input{size\pd@@size.clo} \let\newcommand\pd@tempa +\let\Gm@showparams\@empty \ifnum\pd@mode=2 \RequirePackage[margin=2cm,includefoot]{geometry} \else @@ -197,7 +200,6 @@ \immediate\write\@auxout{\string\newlabel{lastslide}% {{}{\the\c@slide}{\relax}{}{}}}% } -\define@cmdkeys[pd]{global}[pd@@]{lf,rf} \define@key[pd]{global}{theslide}{\def\theslide{#1}} \define@key[pd]{global}{thenote}{\def\thenote{#1}} \define@key[pd]{global}{enumerate}{% @@ -225,7 +227,7 @@ \XKV@addtolist@n\pd@@counters{#1}% } \def\pd@@counters{table,figure,equation,footnote,mpfootnote} -\define@cmdkey[pd]{glslide}[pd@@]{trans}{} +\define@cmdkeys[pd]{glslide}[pd@@]{lf,cf,rf,trans} \define@cmdkey[pd]{glslide}[pd@@]{palette}{% \ifnum\pd@mode<2 \XKV@ifundefined{pd@pe@\pd@@palette @colors}{% @@ -263,8 +265,8 @@ \sbox\pd@logobox{#1}% } \setkeys[pd]{glslide,global}{% - lf=,rf=,theslide=\arabic{slide}~/~\pageref*{lastslide},% - thenote=note~\arabic{note}~of~slide~\arabic{slide},% + lf=,cf=,rf=,theslide=\arabic{slide} / \pageref*{lastslide},% + thenote=note \arabic{note} of slide \arabic{slide},% trans=Replace,dminsize=5pt,dmaxsize=40pt,dminwidth=0pt,% dmaxwidth=\slidewidth,dminheight=0pt,dbright=60,% dmaxheight=\slideheight,dmindots=5,dmaxdots=40,dprop=,% @@ -273,7 +275,7 @@ \def\pdsetup{\setkeys[pd]{global,glslide}} \AtBeginDocument{% \disable@keys[pd]{global}{% - lf,rf,theslide,thenote,enumerate,itemize,list,counters% + theslide,thenote,enumerate,itemize,list,counters% }% } \define@cmdkeys[pd]{slide}[pd@@]{toc,bm} @@ -316,6 +318,7 @@ tocsecm,toctcolor,tochlcolor,tochltcolor,% tocsecindent,tocslideindent,% lfhook,lfpos,lffont,lftemp,% + cfhook,cfpos,cffont,cftemp,% rfhook,rfpos,rffont,rftemp,% iacolor,% clockhook,clockpos,clockwidth,clockheight,% @@ -351,8 +354,9 @@ tocsecm=,toctcolor=black,tochlcolor=black,tochltcolor=white,% tocsecindent=0pt,tocslideindent=0pt,% lfhook=Bl,lfpos=,lffont=\scriptsize,lftemp=\pd@@lf,% - rfhook=Br,rfpos=,rffont=\scriptsize,rftemp=\pd@@rf\ifx\pd@@rf\@empty - \else\ifx\theslide\@empty\else~--~\fi\fi\theslide,% + cfhook=B,cfpos=,cffont=\scriptsize,cftemp=\pd@@cf,% + rfhook=Br,rfpos=,rffont=\scriptsize,rftemp=\pd@@rf\ifx\pd@@rf + \@empty\else\ifx\theslide\@empty\else\ -- \fi\fi\theslide,% iacolor=lightgray,% clockhook=tr,clockpos=,clockwidth=3cm,clockheight=\baselineskip,% clockcharsize=14pt,clockalign=2,clockcolor=black% @@ -649,7 +653,10 @@ }% \fi \ifx\pd@@lfpos\@empty\else - \rput[\pd@@lfhook](\pd@@lfpos){\pd@@lffont\pd@@lf}% + \rput[\pd@@lfhook](\pd@@lfpos){\pd@@lffont\pd@@lftemp}% + \fi + \ifx\pd@@cfpos\@empty\else + \rput[\pd@@cfhook](\pd@@cfpos){\pd@@cffont\pd@@cftemp}% \fi \ifx\pd@@rfpos\@empty\else \rput[\pd@@rfhook](\pd@@rfpos){\pd@@rffont\pd@@rftemp}% @@ -659,7 +666,7 @@ \rput[\pd@@texthook](\pd@@textpos){% \pd@sl@d@ \ifnum\pd@method=\z@\the\pd@body\else - \input \jobname.vrb + \input\jobname.vrb \fi \end{pd@minipage}% }% @@ -685,10 +692,12 @@ textfont=\color{black},textwidth=.86\slidewidth,% lfpos={.04\slidewidth,.035\slideheight},% lffont=\color{black}\scriptsize,% + cfpos={.5\slidewidth,.035\slideheight},% + cffont=\color{black}\scriptsize,% rfpos={.96\slidewidth,.035\slideheight},% rffont=\color{black}\scriptsize,% rftemp=\pd@@rf\ifx\pd@@rf\@empty\else - \ifx\thenote\@empty\else~--~\fi\fi\thenote,% + \ifx\thenote\@empty\else\space--\space\fi\fi\thenote,% }{% \addtocounter{slide}\m@ne \ifnum\c@slide=\pd@notet @@ -794,7 +803,10 @@ \def\pd@tempa{0}% \InputIfFileExists{\jobname.toc}{}{}% \edef\pd@notocentries{\the\@tempcnta}% - \@tempcntb\pd@tempa + \ifx\r@lastslide\@undefined\@tempcntb\pd@tempa\else + \edef\pd@tempb{\expandafter\@secondoffive\r@lastslide}% + \@tempcntb\pd@tempb + \fi \advance\@tempcntb\@ne \@nameedef{pd@te@\the\@tempcnta @start}{\pd@tempa}% \@nameedef{pd@te@\the\@tempcnta @stop}{\the\@tempcntb}% @@ -1278,7 +1290,7 @@ \def\verbatim@processline{% \pd@lyxget@rgs@ndb@dy \ifin@ - \def\pd@tempa########1########2########3########4{}% + \let\pd@tempa\@gobblefour \def\next{% \endgroup\immediate\closeout\@inputcheck \let\verbatim@processline\pd@orig@verbatim@processline @@ -1380,6 +1392,7 @@ \pd@maketocbm0% \hyper@anchorstart{slide.\the\c@slide}\hyper@anchorend \fi + \gdef\lyxend{\gdef\lyxend{}\pd@slide}% \begin{lrbox}\pd@textbox \@tempdima\linewidth \advance\@tempdima-16pt @@ -1387,9 +1400,13 @@ \subsection*\pd@t@tle \pd@displaytrue\raggedright } +\let\pd@lyxget@rgsandbody\pd@get@rgsandbody \def\pd@slide{% + \end{minipage}\end{lrbox}% + \ifpd@display + \psframebox[framesep=7pt,linewidth=1pt]{\usebox\pd@textbox}% \par\smallskip - \pd@@lf\hfill\ifx\pd@@rf\@empty\else\pd@@rf~--~\fi + \pd@@lf\hfill\ifx\pd@@rf\@empty\else\pd@@rf\ -- \fi \def\pd@tempa{note}% \ifx\pd@resa\pd@tempa \ifnum\c@slide=\pd@notet @@ -1400,9 +1417,6 @@ \xdef\pd@notet{\the\c@slide}% \thenote \else\theslide\fi - \end{minipage}\end{lrbox}% - \ifpd@display - \psframebox[framesep=7pt,linewidth=1pt]{\usebox\pd@textbox}% \par\bigskip \ifpd@@nopagebreaks\else\vfill\pd@newpage\fi \fi |