summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex')
-rw-r--r--macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex80
1 files changed, 80 insertions, 0 deletions
diff --git a/macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex b/macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex
new file mode 100644
index 0000000000..1419c8b297
--- /dev/null
+++ b/macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex
@@ -0,0 +1,80 @@
+%
+% dpstory@acrotex.net
+%
+\documentclass{article}
+% aeb_pro not required for pdflatex, lualatex, or xelatex
+% If you don't have acrobat, no harm done. For the
+% dvips -> distiller workflow, aeb_pro is required.
+\usepackage[%
+ web={designiii},
+ eforms,useacrobat
+]{aeb_pro}
+% for non-pdfmark workflow, and if you don't want to install aeb_pro,
+% the alternative is to use the following two packages instead.
+%\usepackage[designiii]{web}
+%\usepackage{eforms}
+\usepackage{acrosort}
+
+\university{Acro\negthinspace\TeX.Net}
+\title{The AcroSort Package}
+\author{D. P. Story}
+\email{dpstory@acrotex.net}
+\subject{Test file for the AcroSort Package}
+\keywords{Adobe Acrobat, JavaScript, LaTeX, JavaScript, sort, tiling}
+
+%\previewOn\pmpvOn
+
+\begin{embedding}
+\isPackage
+\asEmbedTiles{emj}{16}{emoji/myemoji}
+\isPackage
+\asEmbedTiles{choo}{20}{choo/choo}
+\end{embedding}
+
+\parskip6pt
+\parindent0pt
+\thispagestyle{empty}
+
+
+\customFinishJS{%
+ if(sortName=="choo") {
+ var f=this.getField("message");
+ f.value=("Starting the emj sort from the choo sort");
+ startSortAS("emj");
+ }
+}
+
+\begin{document}
+
+The new \textsf{acrosort} allows for multiple sorts of pictures.
+
+\appendClearSortJS{this.resetForm("message");}
+\appendStopSortJS{this.resetForm("message");}
+
+
+\begin{minipage}[t]{.5\linewidth-5pt}\kern0pt
+\begin{center}
+\insertTiles{choo}{\linewidth}{4}{5}
+\end{center}
+
+\smallskip\customStartJS{var f=this.getField("message"); f.value=("Starting the choo sort");}
+\appendStartSortJS{sortName=(event.modifier)?"choo":"";}
+\centering\StartSort[\TU{Click to sort the train, press Ctrl-Click to sort both}]{choo}{}{12bp}\quad\StopSort{}{12bp}\quad\ClearSort{choo}{}{12bp}\par\medskip
+\end{minipage}\hfill
+%
+\begin{minipage}[t]{.5\linewidth-5pt}\kern0pt
+\begin{center}
+\insertTiles{emj}{.5\linewidth}{4}{4}
+\end{center}
+
+\smallskip\customStartJS{var f=this.getField("message"); f.value=("Starting the emj sort");}
+\centering\StartSort{emj}{}{12bp}\quad\StopSort{}{12bp}\quad\ClearSort{emj}{}{12bp}
+\end{minipage}
+\vfill
+
+This demo file works when viewed in \textsf{Acrobat}, \textsf{Adobe Reader}, or \textsf{PDFX-Change Editor}.
+
+\vfill
+\textField{message}{\linewidth}{11bp}
+
+\end{document}