From acb02d19dc81a67401c0daa7e622398a1d252d3c Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 9 Jun 2019 11:34:27 +0900
Subject: aeb-pro update

---
 texmf-dist/source/latex/aeb-pro/aeb_pro.dtx | 94 ++++++++++++++++-------------
 1 file changed, 52 insertions(+), 42 deletions(-)

(limited to 'texmf-dist/source/latex/aeb-pro/aeb_pro.dtx')

diff --git a/texmf-dist/source/latex/aeb-pro/aeb_pro.dtx b/texmf-dist/source/latex/aeb-pro/aeb_pro.dtx
index 79c586f3..5ce34f64 100644
--- a/texmf-dist/source/latex/aeb-pro/aeb_pro.dtx
+++ b/texmf-dist/source/latex/aeb-pro/aeb_pro.dtx
@@ -2,7 +2,7 @@
 %<*copyright>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% aeb_pro.sty package,                                 %%
-%% Copyright (C) 2006--2018  D. P. Story                %%
+%% Copyright (C) 2006--2019  D. P. Story                %%
 %%   dpstory@acrotex.net                                %%
 %%                                                      %%
 %% This program can redistributed and/or modified under %%
@@ -14,7 +14,7 @@
 %</copyright>
 %<package>\NeedsTeXFormat{LaTeX2e}[1997/12/01]
 %<package>\ProvidesPackage{aeb_pro}
-%<package> [2018/02/17 v2.9b aeb_pro: A support package (dps)]
+%<package> [2019/03/21 v2.9.5 aeb_pro: A support package (dps)]
 %<*driver>
 \documentclass{ltxdoc}
 \usepackage[colorlinks,hyperindex=false]{hyperref}
@@ -538,15 +538,20 @@
 {%
     \@ifundefined{aeb@dljslib@opts}{}{\ap@RP{dljslib}}%
 }
-\@ifpackageloaded{insdljs}{\let\execjs\aebp@YES}
-{%
-    \ap@RP[execJS]{insdljs}[2016/07/31]% incls conv-xkv
-}
 \@ifpackageloaded{eforms}{\let\execjs\aebp@YES}
 {%
     \@ifundefined{aeb@eforms@opts}{}
     {\ap@RP[execJS]{eforms}[2017/01/03]}%
 }
+%    \end{macrocode}
+%    load \pkg{eforms} before \pkg{insdljs} so \pkg{eforms} can properly pass options
+%    to \pkg{insdljs}
+%    \changes{v2.9.5}{2019/03/21}{load \string\pkg{eforms} before \string\pkg{insdljs}}
+%    \begin{macrocode}
+\@ifpackageloaded{insdljs}{\let\execjs\aebp@YES}
+{%
+    \ap@RP[execJS]{insdljs}[2016/07/31]% incls conv-xkv
+}
 \@ifpackageloaded{aebxmp}{\aebp@PkgWarningi{aebxmp}}
 {%
     \@ifundefined{aeb@aebxmp@opts}{}
@@ -570,7 +575,10 @@
         \noexpand\aebp@PkgWarningii{rmannot}\fi}\temp@exp}
 }
 \let\execjs\aebp@YES
-\RequirePackage{comment}
+%    \end{macrocode}
+%\changes{v2.9.4}{2018/12/02}{Require aeb-comment (version 3.2 of comment)}
+%    \begin{macrocode}
+\RequirePackage{aeb-comment}
 \RequirePackage{calc}
 \RequirePackage{eso-pic}
 %    \end{macrocode}
@@ -711,22 +719,23 @@ function getLayerState(name) {
 \end{insDLJS}
 %    \end{macrocode}
 % \subsubsection{Macros for creating rollovers}
+%
 % The following commands were taken from the \textsf{APB}
-% package, and slightly modified.
+% package, and were slightly modified.
 % \changes{v1.3f}{2012/06/01}{Added controls for adding JS code to a
 % rollover; used for starting and stopping an anime.}
 % \changes{v2.9a}{2017/10/08}{Added \string\cs{texHelpIndicatorColor}}
 %    \begin{macrocode}
 \newcommand{\texHelpIndicatorColor}{webblue}
 \newcommand{\texHelpIndicator}[1]{#1\thinspace${}^{\mbox
-    {\footnotesize\negthinspace\ding{109}}\raisebox{.225ex}
-    {\llap{\color{\texHelpIndicatorColor}%
-    \tiny?\hspace{1.3ex}}}}$}
+  {\footnotesize\negthinspace\ding{109}}\raisebox{.225ex}
+  {\llap{\color{\texHelpIndicatorColor}%
+  \tiny?\hspace{1.3ex}}}}$}
 \newcommand{\addJStexHelpEnter}[1]{\def\aebp@addJStexHelpEnter{\r#1}}
 \newcommand{\addJStexHelpExit}[1]{\def\aebp@addJStexHelpExit{\r#1}}
 \newcommand{\resetaddJStexHelp}{%
-    \let\aebp@addJStexHelpEnter\@empty
-    \let\aebp@addJStexHelpExit\@empty
+  \let\aebp@addJStexHelpEnter\@empty
+  \let\aebp@addJStexHelpExit\@empty
 }
 \resetaddJStexHelp
 \newif\iftexhelptoggleOff \texhelptoggleOfftrue
@@ -737,19 +746,20 @@ function getLayerState(name) {
 \newcommand{\texHelp}{\@ifstar{\texhelptoggleOfffalse\texHelp@i}
   {\texhelptoggleOfftrue\texHelp@i}}
 \newcommand{\texHelp@i}[2]{%
-    \let\rollormargstring\texorpdfstring
-    \sbox{\aebsavehelp}{\texHelpIndicator{#2}}%
-    \makebox[0pt][l]{\pushButton[\S{S}\BG{}\BC{}\H{N}
-    \AA{\AAMouseEnter{\JS{toggleHelp("#1");\aebp@addJStexHelpEnter}}%
-    \AAMouseExit{\JS{\iftexhelptoggleOff toggleHelp("#1");\fi\aebp@addJStexHelpExit}}}]{#1}%
+  \let\rollormargstring\texorpdfstring
+  \sbox{\aebsavehelp}{\texHelpIndicator{#2}}%
+  \makebox[0pt][l]{\pushButton[\S{S}\BG{}\BC{}\H{N}
+  \AA{\AAMouseEnter{\JS{toggleHelp("#1");\aebp@addJStexHelpEnter}}%
+  \AAMouseExit{\JS{\iftexhelptoggleOff toggleHelp("#1");\fi
+  \aebp@addJStexHelpExit}}}]{#1}%
 %    \end{macrocode}
 %\changes{v1.3h}{2012/11/25}{Changed height calculation in \cs{texHelp}}
 % Changed height calculation in \cs{texHelp} to allow a rollover of more
 % than text.
 %    \begin{macrocode}
-        {\wd\aebsavehelp}{\ht\aebsavehelp+\dp\aebsavehelp}}%
-    \usebox{\aebsavehelp}\resetaddJStexHelp
-    \let\rollormargstring\@gobbletwo
+    {\wd\aebsavehelp}{\ht\aebsavehelp+\dp\aebsavehelp}}%
+  \usebox{\aebsavehelp}\resetaddJStexHelp
+  \let\rollormargstring\@gobbletwo
 }
 %    \end{macrocode}
 %
@@ -811,15 +821,15 @@ function getLayerState(name) {
 %    \begin{macrocode}
 \newif\ifAEBP@aebpxBld@print \AEBP@aebpxBld@printfalse
 \define@choicekey+{aebpxBld}{print}[\val\nr]{true,false,%
-    visible,always,never}[visible]{%
-        \ifcase\nr\relax
-            \def\aebpxBld@print{true}\AEBP@aebpxBld@printtrue\or
-            \def\aebpxBld@print{false}\AEBP@aebpxBld@printfalse\or
-            \let\aebpxBld@print\@empty\or
-            \def\aebpxBld@print{true}\AEBP@aebpxBld@printtrue\or
-            \def\aebpxBld@print{false}\AEBP@aebpxBld@printfalse\fi
+  visible,always,never}[visible]{%
+  \ifcase\nr\relax
+    \def\aebpxBld@print{true}\AEBP@aebpxBld@printtrue\or
+    \def\aebpxBld@print{false}\AEBP@aebpxBld@printfalse\or
+    \let\aebpxBld@print\@empty\or
+    \def\aebpxBld@print{true}\AEBP@aebpxBld@printtrue\or
+    \def\aebpxBld@print{false}\AEBP@aebpxBld@printfalse\fi
 }{\PackageWarning{aeb_pro}{Bad choice for initState, permissible values
-   are true, false, visible, always, and never. Try again}}
+  are true, false, visible, always, and never. Try again}}
 \let\aebpxBld@print\@empty
 \define@key{aebpxBld}{true}[true]{\def\aebpxBld@visible{#1}}
 \define@key{aebpxBld}{false}[false]{\def\aebpxBld@visible{#1}}
@@ -828,14 +838,14 @@ function getLayerState(name) {
 % default is \texttt{false}, meaning the layer is initially not shown.
 %    \begin{macrocode}
 \define@choicekey+{aebpxBld}{initState}[\val\nr]{on,off,%
-    true,false}[false]{%
-    \ifcase\nr\relax
-        \def\aebpxBld@visible{true}\or
-        \def\aebpxBld@visible{false}\or
-        \def\aebpxBld@visible{true}\or
-        \def\aebpxBld@visible{false}\fi
+  true,false}[false]{%
+  \ifcase\nr\relax
+    \def\aebpxBld@visible{true}\or
+    \def\aebpxBld@visible{false}\or
+    \def\aebpxBld@visible{true}\or
+    \def\aebpxBld@visible{false}\fi
 }{\PackageWarning{aeb_pro}{Bad choice for initState, permissible values
-   are on, off, true and false. Try again}}
+  are on, off, true and false. Try again}}
 %    \end{macrocode}
 % \subsubsection{The behavior of the rollovers}
 %    \begin{macro}{\defineRC}
@@ -851,14 +861,14 @@ function getLayerState(name) {
 \long\def\defineRC#1#2{\csarg\def{RC#1}{#2}}
 \def\insertRC#1{\@nameuse{RC#1}}
 \long\def\definePR#1#2{%
-    \ifeqforpaper\csarg\def{PR#1}{#2}\else
-    \ifeq@proofing\csarg\def{PR#1}{#2}\else
-    \csarg\let{PR#1}\relax\fi\fi
+  \ifeqforpaper\csarg\def{PR#1}{#2}\else
+  \ifeq@proofing\csarg\def{PR#1}{#2}\else
+  \csarg\let{PR#1}\relax\fi\fi
 }
 \def\insertPR#1{%
-    \ifeq@proofing\@nameuse{PR#1}\else
-    \csarg\let{insertPR}\@gobble\fi
-    \csarg\let{PR#1}\relax
+  \ifeq@proofing\@nameuse{PR#1}\else
+  \csarg\let{insertPR}\@gobble\fi
+  \csarg\let{PR#1}\relax
 }
 %    \end{macrocode}
 %    \end{macro}
-- 
cgit v1.2.3

