diff options
Diffstat (limited to 'macros/latex/contrib/rmannot/examples/rma/tst_mp3.tex')
-rw-r--r-- | macros/latex/contrib/rmannot/examples/rma/tst_mp3.tex | 120 |
1 files changed, 30 insertions, 90 deletions
diff --git a/macros/latex/contrib/rmannot/examples/rma/tst_mp3.tex b/macros/latex/contrib/rmannot/examples/rma/tst_mp3.tex index 26b630eacc..434b509028 100644 --- a/macros/latex/contrib/rmannot/examples/rma/tst_mp3.tex +++ b/macros/latex/contrib/rmannot/examples/rma/tst_mp3.tex @@ -1,11 +1,7 @@ \documentclass{article} \usepackage{amsmath} -% -% the driver line is not necessary if you -% have aebpro.cfg configured to your driver. -% + \usepackage[% -% driver=dvips, web={pro,tight,usesf}, eforms,graphicxsp={showembeds} ]{aeb_pro} @@ -13,39 +9,33 @@ \usepackage{graphicxbox} \margins{.25in}{.25in}{24pt}{.25in} % left,right,top, bottom -\screensize{5in}{5.5in} % height, width +\screensize{5in}{5.5in} % web.sty dimensions \DeclareDocInfo { - title=The \texttt{rmannot} Package\texorpdfstring{\\[1ex]}{: } Demo of MP3 Player, + title=The \textsf{rmannot} Package\texorpdfstring{\\[1ex]}{: } MP3 Audio, author=D. P. Story, university=Acro\negthinspace\TeX.Net, email=dpstory@acrotex.net, - subject=Demo of the acroflex and the rmannot package, - keywords={Adobe Acrobat, JavaScript, Adobe FLEX 3, ActionScript}, + subject=Demo of the rmannot package, + keywords={Adobe Acrobat, MP3}, talksite=\url{http://www.acrotex.net}, - talkdate={July 2008}, + talkdate={Aug.\ 2020}, copyrightStatus=True, copyrightNotice={Copyright (C) \the\year, D. P. Story}, copyrightInfoURL=http://www.acrotex.net } \talkdateLabel{Published:} -% Place \AcroVer{11} in rmannot.cfg, or uncomment line below -%\AcroVer{11} -% The argument corresponds to the version of Acrobat you have - -% -% Convenience command pointing to the rich media files, this needs -% to be edited to point to its location on your system. -% -\newcommand{\myRMFiles}{% - C:/Users/Public/Documents/My TeX Files/% - tex/latex/aeb/aebpro/rmannot/RMfiles} -\saveNamedPath{tardis}{\myRMFiles/tardis1.mp3} +\newcommand{\myRMFiles}{C:/Users/Public/Documents/% + My TeX Files/tex/latex/aeb/aebpro/rmannot/RMfiles} +\saveNamedPath{summertime}{\myRMFiles/Summertime.mp3} +\makePoster[hiresbb]{aebmusic_poster}{aebmusic_poster} \parindent=0pt\parskip6pt\pagestyle{empty} +%\previewOn + \begin{document} \maketitle @@ -53,85 +43,35 @@ \null\vfil \begin{center} -\Large\bfseries\color{blue}The Tardis of Dr.\ Who\\[2ex] -\makebox[\linewidth][c]{% - \resizebox{!}{14bp}{\rmAnnot{268bp}{28bp}{tardis}% -}} +{\Large\bfseries\color{blue}Summertime}\\[2ex] + \rmAnnot[defaultposter,posternote=Summertime,width=.5\linewidth]{640bp}{480bp}{summertime} \end{center} -Above is the basic appearance of the MP3 file, basically, just the control -bar. +This annotation uses the default poster with a poster note. -On the next page is a fancy version, obtained by using a graphic background. +\begin{center}\setPosterProps{textSize=14,xPos=20,yPos=20} +{\Large\bfseries\color{blue}Summertime}\\[2ex] + \rmAnnot[defaultposter,width=.5\linewidth]{\cntrlbrWd}{\cntrlbrHt}{summertime} %posternote=Summertime, +\end{center} + +Default poster with poster note. Dimensions conform to those of the control bar of the legacy +audio player. \newpage \begin{center} +{\Large\bfseries\color{blue}Summertime}\\[2ex] + \rmAnnot[poster=aebmusic_poster,width=.5\linewidth]{640bp}{480bp}{summertime} +\end{center} -%%BoundingBox: 0 0 528 862 -%%HiResBoundingBox: 0 0 528 861.1200 - +This annotation uses the aeb music poster. -\resizebox{!}{.9\textheight}{\graphicxbox{tardis}{% - \begin{minipage}[b][861.12bp-2\fboxsep]{528bp-2\fboxsep} -\makebox[\linewidth][c]{% - \resizebox{.67\linewidth}{!}{\rmAnnot{268bp}{28bp}{tardis}}}% - \end{minipage}}} +\begin{center} + \rmAnnot[height=14bp]{\cntrlbrWd}{\cntrlbrHt}{summertime} \end{center} -\newpage - -Currently, a rich media annotation has no hidden property, you can, however, move it off the page -and control the play using a form button or link action. - -Here are examples:\makebox[0pt][r]{\resizebox{!}{5bp} -% -% We give this annot a particular name, so we can get the AnnotRichMedia -% object using the JavaScript method this.getAnnotRichMedia. -% -{\rmAnnot[name=TardisOfDrWho]{268bp}{28bp}{tardis}}\hspace{24in}} -A form field {\small\pushButton[\textSize{7}\CA{Play!}\S{S}\A{\JS{% - var rm=this.getAnnotRichMedia({nPage: this.pageNum, cName: "TardisOfDrWho"});\r - if (rm.activated) rm.callAS("multimedia_play");\r - else rm.activated=true; -}}]{tardisBtn}{}{9bp}} or a link -\setLinkText[\A{\JS{% - var rm=this.getAnnotRichMedia({nPage: this.pageNum, cName: "TardisOfDrWho"});\r - if (rm.activated) rm.callAS("multimedia_play");\r - else rm.activated=true; -}}]{play the tardis}! - -The verbatim listing is given below. - -\begingroup\footnotesize -\begin{verbatim} -Here are examples:\makebox[0pt][r]{\resizebox{!}{5bp} -{\rmAnnot[name=TardisOfDrWho]{268bp}{28bp}{tardis}}\hspace{24in}} -A form field {\small\pushButton[\textSize{7}\CA{Play!}\S{S}\A{\JS{% - var rm=this.getAnnotRichMedia({nPage: this.pageNum, cName: "TardisOfDrWho"});\r - if (rm.activated) rm.callAS("multimedia_play");\r - else rm.activated=true; -}}]{tardisBtn}{}{9bp}} or a link -\setLinkText[\A{\JS{% - var rm=this.getAnnotRichMedia({nPage: this.pageNum, cName: "TardisOfDrWho"});\r - if (rm.activated) rm.callAS("multimedia_play");\r - else rm.activated=true; -}}]{play the tardis}! -\end{verbatim} -\endgroup - -Using the above techniques, you can also place a link around, for example, a graphic that -plays the MP3 when clicked. See the demo file \texttt{tst\_flv\_asjs.tex} for a discussion -of using Acrobat JavaScript to play a rich media clip. +This annotation uses the legacy music poster, it is a screen shot of +the legacy control bar. \end{document} - - - -\setLinkText[\A{\JS{% - var rm=this.getAnnotRichMedia({nPage: this.pageNum, cName: "acrolimerick"});\r - if (rm.activated) rm.callAS("multimedia_play");\r - else rm.activated=true; -}}]{\includegraphics[width=2in]{AeB_Logo}}\\[1ex] -\resizebox{!}{14bp}{\rmAnnot[name=acrolimerick]\rmAnnot{268bp}{28bp}{tardis}} |