summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/aeb_pro
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-06-18 03:02:56 +0000
committerNorbert Preining <norbert@preining.info>2020-06-18 03:02:56 +0000
commit7a78c3b8b21b6842d27bb48f37197f8c380ccc5e (patch)
treeaaa0da455d5784ca3b21e12a88b6a739bb543e84 /macros/latex/contrib/aeb_pro
parentda248962ebaf9445ca3c9dde54c05c3baa8715ab (diff)
CTAN sync 202006180302
Diffstat (limited to 'macros/latex/contrib/aeb_pro')
-rw-r--r--macros/latex/contrib/aeb_pro/acrosort/README.md6
-rw-r--r--macros/latex/contrib/aeb_pro/acrosort/acrosort.dtx11
-rw-r--r--macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.pdfbin538637 -> 640143 bytes
-rw-r--r--macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.tex25
-rw-r--r--macros/latex/contrib/aeb_pro/acrosort/docs/acrosort.pdfbin1461109 -> 265324 bytes
-rw-r--r--macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex21
-rw-r--r--macros/latex/contrib/aeb_pro/acrosort/examples/choo/tg-choo.tex (renamed from macros/latex/contrib/aeb_pro/acrosort/examples/choo/create-tg.tex)0
-rw-r--r--macros/latex/contrib/aeb_pro/acrosort/examples/emoji/tg-emoji.tex (renamed from macros/latex/contrib/aeb_pro/acrosort/examples/emoji/create-tg.tex)0
8 files changed, 37 insertions, 26 deletions
diff --git a/macros/latex/contrib/aeb_pro/acrosort/README.md b/macros/latex/contrib/aeb_pro/acrosort/README.md
index 461e0657b7..7d2533f0c4 100644
--- a/macros/latex/contrib/aeb_pro/acrosort/README.md
+++ b/macros/latex/contrib/aeb_pro/acrosort/README.md
@@ -1,5 +1,5 @@
acrosort --- D. P. Story
-Dated: 2020-06-02
+Dated: 2020-06-17
The AcroSort is a novelty LaTeX package for importing a series
of tiled images of a picture. The tiled images are randomly
@@ -9,7 +9,9 @@ sort.
Images can be tiled using the tile-graphic package, also
available through CTAN.
-What new (2020-06-02): This is a complete rewrite of the
+What's New (2020-06-02): Minor suggested changes by CTAN maintainers
+
+What's New (2020-06-02): This is a complete rewrite of the
package. The package now supports all common PDF creators:
pdflatex, lualatex, xelatex, dvips->distiller. Multiple bubble
sort tiles images are now supported.
diff --git a/macros/latex/contrib/aeb_pro/acrosort/acrosort.dtx b/macros/latex/contrib/aeb_pro/acrosort/acrosort.dtx
index 894ee28258..083deea659 100644
--- a/macros/latex/contrib/aeb_pro/acrosort/acrosort.dtx
+++ b/macros/latex/contrib/aeb_pro/acrosort/acrosort.dtx
@@ -16,7 +16,7 @@
%</copyright>
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{acrosort}
-%<package> [2020/06/02 v1.6 AcroSort (dps)]
+%<package> [2020/06/17 v1.6.1 AcroSort (dps)]
%<*driver>
\documentclass{ltxdoc}
\usepackage[colorlinks,hyperindex=false]{hyperref}
@@ -66,6 +66,8 @@
% \MakeShortVerb{|}
% \InputIfFileExists{aebdonotindex.def}{\PackageInfo{web}{Inputting aebdonotindex.def}}
% {\PackageInfo{web}{cannot find aebdonotindex.def}}
+% \DoNotIndex{\DPSIndxList,\g@addto@macro,\divide,\box,\setbox,\x,\y,\z}
+%
% \section{Introduction}
% \pkg{acrosort} is a novelty {\LaTeX} package for embedding a series of tiled
% images of a picture. The tiled images are randomly arranged, then resorted
@@ -83,6 +85,7 @@
% though only one can be sorted at a time.
% \changes{v1.6}{2020/06/02}{Rewrite whole package to support \string\app{pdflatex},
% \string\app{lualatex}, and \string\app{xelatex} workflows.}
+% \changes{v1.6.1}{2020/06/17}{Minor changes to conform to CTAN requirements.}
% \section{Main Code}
% \begin{macrocode}
%<*package>
@@ -191,7 +194,7 @@
% named \texttt{mypic\_01}, \texttt{mypic\_02}, \texttt{mypic\_03}, \dots. It is assumed a single digit
% index has a leading 0. Use the command \DescribeMacro\isPackage
% \cs{isPackage} prior to \cs{asEmbedTiles}.
-% \changes{v1.5}{2020/08/06}{Embed graphics and support for packaged graphics}
+% \changes{v1.5}{2020/05/30}{Embed graphics and support for packaged graphics}
% \begin{macrocode}
\newcount\as@nCnt
\newif\if@isPackaged\@isPackagedfalse
@@ -203,14 +206,14 @@
\def\@Ext{#1}\ifx\@Ext\@empty\def\@Ext{.pdf}\else\def\@Ext{.#1}\fi
\@tempcnta\z@
\let\@embedList\@empty
- \let\DPSIndxList\@gobble
+% \let\DPSIndxList\@gobble
\edef\z{\noexpand\g@addto@macro\noexpand
\asIconObjs{,"#2":\asNumSideShowPics}}\z
\@whilenum \@tempcnta < \asNumSideShowPics \do{%
\as@nCnt\@tempcnta\advance\as@nCnt\@ne
\ifnum\as@nCnt<10\relax\edef\x{0\the\as@nCnt}\else
\edef\x{\the\as@nCnt}\fi
- \edef\z{\noexpand\g@addto@macro\noexpand\DPSIndxList{,"\x"}}\z
+% \edef\z{\noexpand\g@addto@macro\noexpand\DPSIndxList{,"\x"}}\z
\ifxetex\if@isPackaged
\PackageWarning{acrosort}
{There is no support for embedding packaged\MessageBreak
diff --git a/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.pdf b/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.pdf
index d6a8341144..8a3c63b30e 100644
--- a/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.pdf
+++ b/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.pdf
Binary files differ
diff --git a/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.tex b/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.tex
index 14fb507e1b..3db8c6f150 100644
--- a/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.tex
+++ b/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort-man.tex
@@ -36,21 +36,19 @@
email={dpstory@acrotex.net},
subject={Documentation for AcroSort},
talksite={\url{www.acrotex.net}},
- version={1.6}, %2020/06/02 v1.6
-versionLabel={Version},
-%version={2020/06/02},
-version={1.6},
-copyrightyears={2006-\the\year},
-prepared={2020/06/02},
-preparedLabel={Distribution Dated:},
- keywords={Adobe Acrobat, JavaScript, LaTeX, JavaScript, sort, slicing},
+ version={1.6.1},
+ versionLabel={Version},
+ copyrightyears={2006-\the\year},
+ prepared={2020/06/17},
+ preparedLabel={Distribution Dated:},
+ keywords={Adobe Acrobat, JavaScript, LaTeX, JavaScript, bubble sort, tiling},
copyrightStatus=True,
copyrightNotice={Copyright (C) \the\year, D. P. Story},
copyrightInfoURL={http://www.acrotex.net}
}
\nocopyright
\usepackage{acroman}
-\usepackage[active]{srcltx}
+%\usepackage[active]{srcltx}
\def\nhfootnote#1{\begin{NoHyper}\footnote{#1}\end{NoHyper}}
@@ -276,7 +274,7 @@ of \ameta{name}.\normalbaselines
Use \ameta{KV-pairs} to change the appearance of the fields, where
\ameta{KV-pairs} are \pkg{eforms} field key-value pairs. The \ameta{name} argument
(\cs{StartSort} and \cs{ClearSort}) is the name of the graphics to be controlled.
-(\ameta{name} must match up with the \ameta{name} argument of \cs{asEmbedTiles} and
+(\ameta{name} must match up with the \ameta{name} argument of \cs{asEmbedTiles} and
\cs{insertTiles}.) The \ameta{wd} and \ameta{ht} are the width and height of the push button fields.
If a caption is provided, set \ameta{wd} to \texttt{\darg{}} and \pkg{eforms} will automatically
calculate the width based on the value of the \cs{CA} key.
@@ -308,8 +306,8 @@ Some simple examples; assume there is a text field by the name of
f.value="Begin sorting choo";
}
\renewcommand{\customFinishJS}{%
- var f=this.getField("message");
- f.value="Finished sorting choo";
+ var f=this.getField("message");
+ f.value="Finished sorting choo";
}
\end{Verbatim}
@@ -326,7 +324,8 @@ commands they effect. The other command (\cs{customFinishJS}), which is marked a
Use the package \pkg{tile-graphic}\FmtMP{\pkg{tile-graphic} pkg} to tile a
graphics file. In the \texttt{examples} folder there are two demo files, \texttt{as1.tex}
and \texttt{as2.tex}, that use the graphics in the \texttt{emoji} and \texttt{choo} folders.
-In each of the two folders is a file named \texttt{create-tg.tex}. The one in the \texttt{emoji}
+These two folders contain files \texttt{tg-emoji.tex} and \texttt{tg-choo.tex} that were used to produce
+the tiled graphics. The one in the \texttt{emoji}
folder is reproduced
below.\FmtMP[-3\baselineskip]{\texttt{pdfcreator=\mbox{\hskip20pt}\\pdflatex\string|\\lualatex\string|\\xelatex\string|\\distiller}}
\begin{Verbatim}[fontsize=\small]
diff --git a/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort.pdf b/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort.pdf
index b3004a8eba..37113157d6 100644
--- a/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort.pdf
+++ b/macros/latex/contrib/aeb_pro/acrosort/docs/acrosort.pdf
Binary files differ
diff --git a/macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex b/macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex
index 1419c8b297..aef2616d3d 100644
--- a/macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex
+++ b/macros/latex/contrib/aeb_pro/acrosort/examples/as2.tex
@@ -35,7 +35,8 @@
\parindent0pt
\thispagestyle{empty}
-
+% sortName is the name of the active tiled sort. At the end of a sort
+% if it is the choo sort, we start the emj sort.
\customFinishJS{%
if(sortName=="choo") {
var f=this.getField("message");
@@ -46,27 +47,33 @@
\begin{document}
-The new \textsf{acrosort} allows for multiple sorts of pictures.
+The new \textsf{acrosort} allows for multiple tiled bubble sorts.
+% These apply to both tiled bubble sorts
\appendClearSortJS{this.resetForm("message");}
\appendStopSortJS{this.resetForm("message");}
-
\begin{minipage}[t]{.5\linewidth-5pt}\kern0pt
-\begin{center}
-\insertTiles{choo}{\linewidth}{4}{5}
+\begin{center}\fboxsep1bp\fboxrule2bp
+\fbox{\makebox[0pt][l]{\makebox[\linewidth][c]{The choo tiled sort}}%
+ \insertTiles{choo}{\linewidth}{4}{5}}%
\end{center}
+% the \customStartJS and \appendStartSortJS apply only to choo, since they are in a group (minipage)
\smallskip\customStartJS{var f=this.getField("message"); f.value=("Starting the choo sort");}
+% if Ctrl key is not down, we fool the \customFinishJS by renaming sortName, that way, simply
+% pressing the Press Me button does not activate the emj sort on finish.
\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}
+\begin{center}\fboxsep1bp\fboxrule2bp
+\fbox{\makebox[0pt][l]{\makebox[.5\linewidth]{The emj tiled sort}}%
+ \insertTiles{emj}{.5\linewidth}{4}{4}}
\end{center}
+% the \customStartJS and \appendStartSortJS apply only to emj, since they are in a group (minipage)
\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}
diff --git a/macros/latex/contrib/aeb_pro/acrosort/examples/choo/create-tg.tex b/macros/latex/contrib/aeb_pro/acrosort/examples/choo/tg-choo.tex
index c7c5e220b5..c7c5e220b5 100644
--- a/macros/latex/contrib/aeb_pro/acrosort/examples/choo/create-tg.tex
+++ b/macros/latex/contrib/aeb_pro/acrosort/examples/choo/tg-choo.tex
diff --git a/macros/latex/contrib/aeb_pro/acrosort/examples/emoji/create-tg.tex b/macros/latex/contrib/aeb_pro/acrosort/examples/emoji/tg-emoji.tex
index 7ab4175c2d..7ab4175c2d 100644
--- a/macros/latex/contrib/aeb_pro/acrosort/examples/emoji/create-tg.tex
+++ b/macros/latex/contrib/aeb_pro/acrosort/examples/emoji/tg-emoji.tex