summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-08-29 21:04:31 +0000
committerKarl Berry <karl@freefriends.org>2017-08-29 21:04:31 +0000
commitb180f86879660a6bbae8a3778b7bc92aa650026d (patch)
tree06ba3fe25f986374af9c42635aa03daf294021c5 /Master/texmf-dist/tex/latex
parent01156f021cb6a2f7163babffef5a297ede4574e7 (diff)
powerdot (29aug17)
git-svn-id: svn://tug.org/texlive/trunk@45165 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/powerdot/powerdot.cls65
1 files changed, 32 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/powerdot/powerdot.cls b/Master/texmf-dist/tex/latex/powerdot/powerdot.cls
index 083156287ca..58b2aa6f791 100644
--- a/Master/texmf-dist/tex/latex/powerdot/powerdot.cls
+++ b/Master/texmf-dist/tex/latex/powerdot/powerdot.cls
@@ -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@overlay
\newif\ifpd@section
\newif\ifpd@ifsetup
@@ -67,24 +67,15 @@
}[true]
\define@boolkey[pd]{class}[pd@@]{clock}[true]{%
\ifpd@@clock
- \AtBeginDocument{%
- \@Form[]%
- \ifnum\pd@orient=\z@
- \def\pd@clockrot{] /R 90\@gobble}%
- \else
- \let\pd@clockrot\@empty
- \fi
- }%
+ \newcount\pd@clockcnt
\def\pd@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@clockcnt").value=util.printd("##1",pdtime);%
+ this.dirty=false;%
+ }%
+ pdshowtime();%
+ var pdclock_\the\pd@clockcnt=app.setInterval("pdshowtime()",##2);%
}%
\fi
}
@@ -214,6 +205,14 @@
\orig@description[#2]%
}
\RequirePackage{verbatim}
+\ifpd@@clock
+ \RequirePackage{pdfbase}
+ \ExplSyntaxOn
+ \let\pd@PdfAnnot\pbs_pdfannot:nnnn
+ \let\pd@PdfLastAnn\pbs_pdflastann:
+ \let\pd@AppendToFields\pbs_appendtofields:n
+ \ExplSyntaxOff
+\fi
\ifnum\pd@mode<2
\pagestyle{empty}
\fi
@@ -640,27 +639,27 @@
\fi
\fi
\ifpd@@clock
- \ifnum\c@slide=\@ne
- \ifpd@overlay\else
- \rput(0,-1){%
- \TextField[%
- format=\pd@startclock\pd@@clockformat\pd@@clockrefresh,%
- name=pdstartclock,bordercolor={},backgroundcolor={},%
- height=0bp,width=0bp]{}%
- }%
- \fi
- \fi
\def\pd@tempa##1,##2,##3\@nil{##1 ##2 ##3}%
\extractcolorspec\pd@@clockcolor\pd@tempb
\expandafter\convertcolorspec\pd@tempb{rgb}\pd@tempb
\edef\pd@tempa{\expandafter\pd@tempa\pd@tempb\@nil}%
\ifx\pd@@clockpos\@empty\else
+ \@tempdima\pd@@clockcharsize
\rput[\pd@@clockhook](\pd@@clockpos){%
- \TextField[name=pdclock.time,bordercolor={},%
- rotation={\ifnum\pd@orient=\z@ 90\else 0\fi},%
- backgroundcolor={},align=\pd@@clockalign,color=\pd@tempa,%
- charsize=\pd@@clockcharsize,width=\pd@@clockwidth,%
- height=\pd@@clockheight]{}%
+ \makebox[\pd@@clockwidth][l]{\rule{0pt}{\pd@@clockheight}%
+ \pd@PdfAnnot{\pd@@clockwidth}{\pd@@clockheight}{0pt}{%
+ /Subtype/Widget/FT/Tx/T (pdclock.\the\pd@clockcnt) /Ff 1
+ /DA (/Helv \strip@pt\@tempdima\space Tf \pd@tempa\space rg)
+ /MK<</R \ifnum\pd@orient=\z@ 90\else 0\fi /BG []/BC []>>
+ /Q \pd@@clockalign\space
+ /AA <<
+ /PO << /S/JavaScript/JS(\pd@startclock\pd@@clockformat\pd@@clockrefresh) >>
+ /PC << /S/JavaScript/JS(app.clearInterval(pdclock_\the\pd@clockcnt);) >>
+ >>
+ }%
+ }%
+ \pd@AppendToFields{\pd@PdfLastAnn}%
+ \global\advance\pd@clockcnt\@ne
}%
\fi
\fi