diff options
Diffstat (limited to 'macros/latex/contrib/acrotex/insdljs.dtx')
-rw-r--r-- | macros/latex/contrib/acrotex/insdljs.dtx | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/macros/latex/contrib/acrotex/insdljs.dtx b/macros/latex/contrib/acrotex/insdljs.dtx index df525e1c2c..8df2498415 100644 --- a/macros/latex/contrib/acrotex/insdljs.dtx +++ b/macros/latex/contrib/acrotex/insdljs.dtx @@ -16,7 +16,7 @@ %</copyright> %<package>\NeedsTeXFormat{LaTeX2e} %<package>\ProvidesPackage{insdljs} -%<package> [2021/02/07 v2.5.2 Insert Document Level JavaScripts (dps)] +%<package> [2021/05/10 v2.5.3 Insert Document Level JavaScripts (dps)] %<*driver> \documentclass{ltxdoc} \usepackage[colorlinks,hyperindex=false]{hyperref} @@ -449,6 +449,16 @@ \let\dl@YES=y \let\dl@NO=n \let\dl@One=1 \let\dl@Zero=0 \let\dljs@YES=y \let\dljs@NO=n +\edef\dl@restoreCats{% + \catcode`\noexpand\"=\the\catcode`\"\relax + \catcode`\noexpand\'=\the\catcode`\'\relax + \catcode`\noexpand\,=\the\catcode`\,\relax + \catcode`\noexpand\(=\the\catcode`\(\relax + \catcode`\noexpand\!=\the\catcode`\!\relax + \catcode`\noexpand\_=\the\catcode`\_\relax +} +\@makeother\"\@makeother\'\@makeother\,% +\@makeother\(\@makeother\!\@makeother\_ % \end{macrocode} % \leavevmode\DescribeMacro{\dlpkgInfo} A command to identify package date % from within document level Javascript @@ -919,6 +929,12 @@ \newwrite\js@verbatim@out \def\iwvo#1{\immediate\write\js@verbatim@out{#1}} % \end{macrocode} +% \paragraph*{Convenience command\DescribeMacro{\dl@EForAF4} that support \opt{usealtadobe} option.} This helper +% command make it convenient to switch from the `AF' to the `EF' versions. +% \changes{v2.5.3}{2021/05/10} +% \begin{macrocode} +\def\dl@EForAF4#1_{\ifx\usedAdbFuncs\dl@YES EF\else AF\fi#1_} +% \end{macrocode} % \subsection{Some JavaScript Support} % % \begin{macro}{\flJSStr} @@ -2039,7 +2055,7 @@ % The macro \cs{dl@typesetthis} defined here, is the external version of the local command % \cs{typeset}. It globally sets the switch \cs{ifdlfortypeset} to true and defines the value % of \cs{dfnJSR} and the legacy command \cs{defineJSjsR}. For \cs{dfnJSCR}, we use only {\TeX} -% primitives to maintain compatibilty with the now defunct YandY System, which I still use. +% primitives to maintain compatibility with the now defunct YandY System, which I still use. % \begin{macrocode} \def\dl@typesetthis{\global\dlfortypesettrue \dfnJSCR{\hfil\break\null}} @@ -2955,6 +2971,7 @@ var EFMergeChange=AFMergeChange; % \begin{macrocode} %<*package> \inputAltAdbFncs +\dl@restoreCats %</package> % \end{macrocode} % \Finale |