texlive[45165] Master/texmf-dist: powerdot (29aug17)
commits+karl at tug.org
commits+karl at tug.org
Tue Aug 29 23:04:31 CEST 2017
Revision: 45165
http://tug.org/svn/texlive?view=revision&revision=45165
Author: karl
Date: 2017-08-29 23:04:31 +0200 (Tue, 29 Aug 2017)
Log Message:
-----------
powerdot (29aug17)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/powerdot/README
trunk/Master/texmf-dist/doc/latex/powerdot/powerdot.pdf
trunk/Master/texmf-dist/source/latex/powerdot/powerdot.dtx
trunk/Master/texmf-dist/tex/latex/powerdot/powerdot.cls
Modified: trunk/Master/texmf-dist/doc/latex/powerdot/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/powerdot/README 2017-08-29 21:04:16 UTC (rev 45164)
+++ trunk/Master/texmf-dist/doc/latex/powerdot/README 2017-08-29 21:04:31 UTC (rev 45165)
@@ -1,4 +1,4 @@
-powerdot v1.5b
+powerdot v1.5c
--------------
powerdot is a presentation class for LaTeX that allows for the quick
Modified: trunk/Master/texmf-dist/doc/latex/powerdot/powerdot.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/powerdot/powerdot.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/powerdot/powerdot.dtx 2017-08-29 21:04:16 UTC (rev 45164)
+++ trunk/Master/texmf-dist/source/latex/powerdot/powerdot.dtx 2017-08-29 21:04:31 UTC (rev 45165)
@@ -87,8 +87,8 @@
\input{pdpream.ble}
\OnlyDescription
%\EnableCrossrefs
-\def\fileversion{v1.5b}
-\def\filedate{2017/07/22}
+\def\fileversion{v1.5c}
+\def\filedate{2017/08/28}
\begin{document}
\DocInput{powerdot.dtx}
\let\Section\section\def\section*#1{\Section*{#1}\addcontentsline{toc}{section}{#1}}
@@ -104,7 +104,7 @@
\hspace*{\stretch{1}}
\begin{minipage}{.9\linewidth}
Ramon van den Akker, David Carlisle, Pavel \v C\'i\v zek, Darren Dale, Hans Marius
-Eikseth, Morten H\o gholm, Andr\'as Horv\'ath, Laurent Jacques, Akira
+Eikseth, Alexander Grahn, Morten H\o gholm, Andr\'as Horv\'ath, Laurent Jacques, Akira
Kakuto, Uwe Kern, Kyanh, Theo Stewart, and Don P. Story.
\end{minipage}
@@ -163,6 +163,7 @@
% \changes{v1.5a}{2015/11/29}{Added requirement for \texttt{pst-ovl} to get overlays working after \texttt{pstricks} moved the code there}
% \changes{v1.5b}{2017/07/22}{Added requirement for latest \texttt{graphicx} to work with latest \texttt{dvips}}
% \changes{v1.5b}{2017/07/22}{Updated documentation with respect to handout options}
+% \changes{v1.5c}{2017/08/28}{Replaced clock code by the version by Alexander Grahn to achieve compatibility with the \pf{animate} package.}
%
% \CheckSum{3375}
%
@@ -2744,7 +2745,7 @@
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{powerdot}
- [2017/07/22 v1.5b powerdot presentation class (HA)]
+ [2017/08/28 v1.5c powerdot presentation class (HA)]
% \end{macrocode}
% Initializations.
% \begin{macrocode}
@@ -2808,39 +2809,19 @@
nopsheader,hlentries,hlsections,nohandoutpagebreaks,nohandoutframes%
}[true]
% \end{macrocode}
-% Clock definitions.
+% Clock definitions. Contributed by Alexander Grahn.
% \begin{macrocode}
\define at boolkey[pd]{class}[pd@@]{clock}[true]{%
\ifpd@@clock
- \AtBeginDocument{%
-% \end{macrocode}
-% Start a \pf{hyperref} form.
-% \begin{macrocode}
- \@Form[]%
-% \end{macrocode}
-% Trick to insert rotation into text field if in landscape orientation.
-% \begin{macrocode}
- \ifnum\pd at orient=\z@
- \def\pd at clockrot{] /R 90\@gobble}%
- \else
- \let\pd at clockrot\@empty
- \fi
- }%
-% \end{macrocode}
-% \begin{macro}{\pd at startclock}
-% Clock javascript.
-% \changes{v1.4}{2005/12/10}{Added arguments for \texttt{clockformat} and \texttt{clockrefresh} values.}
-% \begin{macrocode}
+ \newcount\pd at clockcnt
\def\pd at startclock##1##2{%
- function pdshowtime(){
- var pdtime=new Date();
- this.getField("pdclock.time").value=
- util.printd("##1",pdtime);
- }
- pdshowtime();
- var tempa=app.setInterval("pdshowtime()",##2);
- this.getField("pdstartclock").readonly=true;
- this.getField("pdclock.time").readonly=true;
+ function pdshowtime(){%
+ var pdtime=new Date();%
+ this.getField("pdclock.\the\pd at clockcnt").value=util.printd("##1",pdtime);%
+ this.dirty=false;%
+ }%
+ pdshowtime();%
+ var pdclock_\the\pd at clockcnt=app.setInterval("pdshowtime()",##2);%
}%
\fi
}
@@ -3056,6 +3037,17 @@
}
\RequirePackage{verbatim}
% \end{macrocode}
+% This is needed for the implementation of the clock.
+% \begin{macrocode}
+\ifpd@@clock
+ \RequirePackage{pdfbase}
+ \ExplSyntaxOn
+ \let\pd at PdfAnnot\pbs_pdfannot:nnnn
+ \let\pd at PdfLastAnn\pbs_pdflastann:
+ \let\pd at AppendToFields\pbs_appendtofields:n
+ \ExplSyntaxOff
+\fi
+% \end{macrocode}
% Here are some basic properties of the slides.
% \begin{macrocode}
\ifnum\pd at mode<2
@@ -3805,23 +3797,10 @@
\fi
\fi
% \end{macrocode}
-% Clock coding.
+% Clock coding. Contributed by Alexander Grahn.
% \begin{macrocode}
\ifpd@@clock
- \ifnum\c at slide=\@ne
- \ifpd at overlay\else
% \end{macrocode}
-% Insert invisible function to start the clock.
-% \begin{macrocode}
- \rput(0,-1){%
- \TextField[%
- format=\pd at startclock\pd@@clockformat\pd@@clockrefresh,%
- name=pdstartclock,bordercolor={},backgroundcolor={},%
- height=0bp,width=0bp]{}%
- }%
- \fi
- \fi
-% \end{macrocode}
% Extract the color specification, convert it to |rgb| and store it
% to be used for the clock. This uses some \pf{xcolor} macros.
% \begin{macrocode}
@@ -3831,14 +3810,25 @@
\edef\pd at tempa{\expandafter\pd at tempa\pd at tempb\@nil}%
% \end{macrocode}
% Insert the clock.
+% \changes{v1.4}{2005/12/10}{Added arguments for \texttt{clockformat} and \texttt{clockrefresh} values.}
% \begin{macrocode}
\ifx\pd@@clockpos\@empty\else
+ \@tempdima\pd@@clockcharsize
\rput[\pd@@clockhook](\pd@@clockpos){%
- \TextField[name=pdclock.time,bordercolor={},%
- rotation={\ifnum\pd at orient=\z@ 90\else 0\fi},%
- backgroundcolor={},align=\pd@@clockalign,color=\pd at tempa,%
- charsize=\pd@@clockcharsize,width=\pd@@clockwidth,%
- height=\pd@@clockheight]{}%
+ \makebox[\pd@@clockwidth][l]{\rule{0pt}{\pd@@clockheight}%
+ \pd at PdfAnnot{\pd@@clockwidth}{\pd@@clockheight}{0pt}{%
+ /Subtype/Widget/FT/Tx/T (pdclock.\the\pd at clockcnt) /Ff 1
+ /DA (/Helv \strip at pt\@tempdima\space Tf \pd at tempa\space rg)
+ /MK<</R \ifnum\pd at orient=\z@ 90\else 0\fi /BG []/BC []>>
+ /Q \pd@@clockalign\space
+ /AA <<
+ /PO << /S/JavaScript/JS(\pd at startclock\pd@@clockformat\pd@@clockrefresh) >>
+ /PC << /S/JavaScript/JS(app.clearInterval(pdclock_\the\pd at clockcnt);) >>
+ >>
+ }%
+ }%
+ \pd at AppendToFields{\pd at PdfLastAnn}%
+ \global\advance\pd at clockcnt\@ne
}%
\fi
\fi
Modified: trunk/Master/texmf-dist/tex/latex/powerdot/powerdot.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/powerdot/powerdot.cls 2017-08-29 21:04:16 UTC (rev 45164)
+++ trunk/Master/texmf-dist/tex/latex/powerdot/powerdot.cls 2017-08-29 21:04:31 UTC (rev 45165)
@@ -26,7 +26,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{powerdot}
- [2017/07/22 v1.5b powerdot presentation class (HA)]
+ [2017/08/28 v1.5c powerdot presentation class (HA)]
\newif\ifpd at overlay
\newif\ifpd at section
\newif\ifpd at ifsetup
@@ -67,24 +67,15 @@
}[true]
\define at boolkey[pd]{class}[pd@@]{clock}[true]{%
\ifpd@@clock
- \AtBeginDocument{%
- \@Form[]%
- \ifnum\pd at orient=\z@
- \def\pd at clockrot{] /R 90\@gobble}%
- \else
- \let\pd at clockrot\@empty
- \fi
- }%
+ \newcount\pd at clockcnt
\def\pd at startclock##1##2{%
- function pdshowtime(){
- var pdtime=new Date();
- this.getField("pdclock.time").value=
- util.printd("##1",pdtime);
- }
- pdshowtime();
- var tempa=app.setInterval("pdshowtime()",##2);
- this.getField("pdstartclock").readonly=true;
- this.getField("pdclock.time").readonly=true;
+ function pdshowtime(){%
+ var pdtime=new Date();%
+ this.getField("pdclock.\the\pd at clockcnt").value=util.printd("##1",pdtime);%
+ this.dirty=false;%
+ }%
+ pdshowtime();%
+ var pdclock_\the\pd at clockcnt=app.setInterval("pdshowtime()",##2);%
}%
\fi
}
@@ -214,6 +205,14 @@
\orig at description[#2]%
}
\RequirePackage{verbatim}
+\ifpd@@clock
+ \RequirePackage{pdfbase}
+ \ExplSyntaxOn
+ \let\pd at PdfAnnot\pbs_pdfannot:nnnn
+ \let\pd at PdfLastAnn\pbs_pdflastann:
+ \let\pd at AppendToFields\pbs_appendtofields:n
+ \ExplSyntaxOff
+\fi
\ifnum\pd at mode<2
\pagestyle{empty}
\fi
@@ -640,27 +639,27 @@
\fi
\fi
\ifpd@@clock
- \ifnum\c at slide=\@ne
- \ifpd at overlay\else
- \rput(0,-1){%
- \TextField[%
- format=\pd at startclock\pd@@clockformat\pd@@clockrefresh,%
- name=pdstartclock,bordercolor={},backgroundcolor={},%
- height=0bp,width=0bp]{}%
- }%
- \fi
- \fi
\def\pd at tempa##1,##2,##3\@nil{##1 ##2 ##3}%
\extractcolorspec\pd@@clockcolor\pd at tempb
\expandafter\convertcolorspec\pd at tempb{rgb}\pd at tempb
\edef\pd at tempa{\expandafter\pd at tempa\pd at tempb\@nil}%
\ifx\pd@@clockpos\@empty\else
+ \@tempdima\pd@@clockcharsize
\rput[\pd@@clockhook](\pd@@clockpos){%
- \TextField[name=pdclock.time,bordercolor={},%
- rotation={\ifnum\pd at orient=\z@ 90\else 0\fi},%
- backgroundcolor={},align=\pd@@clockalign,color=\pd at tempa,%
- charsize=\pd@@clockcharsize,width=\pd@@clockwidth,%
- height=\pd@@clockheight]{}%
+ \makebox[\pd@@clockwidth][l]{\rule{0pt}{\pd@@clockheight}%
+ \pd at PdfAnnot{\pd@@clockwidth}{\pd@@clockheight}{0pt}{%
+ /Subtype/Widget/FT/Tx/T (pdclock.\the\pd at clockcnt) /Ff 1
+ /DA (/Helv \strip at pt\@tempdima\space Tf \pd at tempa\space rg)
+ /MK<</R \ifnum\pd at orient=\z@ 90\else 0\fi /BG []/BC []>>
+ /Q \pd@@clockalign\space
+ /AA <<
+ /PO << /S/JavaScript/JS(\pd at startclock\pd@@clockformat\pd@@clockrefresh) >>
+ /PC << /S/JavaScript/JS(app.clearInterval(pdclock_\the\pd at clockcnt);) >>
+ >>
+ }%
+ }%
+ \pd at AppendToFields{\pd at PdfLastAnn}%
+ \global\advance\pd at clockcnt\@ne
}%
\fi
\fi
More information about the tex-live-commits
mailing list