summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/aeb-pro/examples
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-02-23 14:52:17 +0900
committerNorbert Preining <norbert@preining.info>2021-02-23 14:52:17 +0900
commitfb44baf77ae7cff9203e19612ea59cfe55f982bc (patch)
treebef700186a4d6626ac5374c0792ae5f7840f5d61 /texmf-dist/doc/latex/aeb-pro/examples
parent001d2f268370febe53928de6bd985ed75ee4b68c (diff)
aeb-pro update
Diffstat (limited to 'texmf-dist/doc/latex/aeb-pro/examples')
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex1.pdfbin70199 -> 0 bytes
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex1.tex18
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.pdfbin763806 -> 794029 bytes
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.tex63
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex4.tex26
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.pdfbin256560 -> 261015 bytes
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.tex24
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.pdfbin713378 -> 719343 bytes
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.tex2
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/aebpro_index_ex.pdfbin0 -> 26192 bytes
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/test_install.pdfbin19205 -> 26896 bytes
-rw-r--r--texmf-dist/doc/latex/aeb-pro/examples/test_install.tex11
12 files changed, 83 insertions, 61 deletions
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex1.pdf b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex1.pdf
deleted file mode 100644
index 4af04e42..00000000
--- a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex1.pdf
+++ /dev/null
Binary files differ
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex1.tex b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex1.tex
index 52404840..4123342c 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex1.tex
+++ b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex1.tex
@@ -2,13 +2,13 @@
% use nopro if you don't have acrobat
\documentclass{article}
\usepackage[%
- web={
- pro,
- designv,
- tight,
- centertitlepage,
- },
- aebxmp,
+ web={
+ pro,
+ designv,
+ tight,
+ centertitlepage,
+ },
+ aebxmp
]{aeb_pro}
@@ -222,12 +222,12 @@ Will the effects defined by these environments appear on this page or the next?
% of the same environment.
%
\begin{addJSToPageOpen}
-var str = "Local open action"
+var str = "Local open action";
console.println(str + ": page " + (this.pageNum+1));
\end{addJSToPageOpen}
\begin{addJSToPageClose}
-var str = "Local Close action!"
+var str = "Local Close action!";
console.println(str + ": page " + (this.pageNum+1));
\end{addJSToPageClose}
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.pdf b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.pdf
index e9b48043..0a5daae5 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.pdf
+++ b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.pdf
Binary files differ
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.tex b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.tex
index c20a15e0..26722e77 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.tex
+++ b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex3.tex
@@ -2,6 +2,8 @@
% use useacrobat option with pdftex and xetex if you have acrobat
\documentclass{article}
\usepackage{graphicx,fancyvrb}
+% Edit this command as needed
+\def\pthToExtras{../extras}
\usepackage[%
web={
pro,
@@ -13,7 +15,7 @@
},
eforms,
%
-% Attach source file, and the tex log (I've renamed \jobname.log
+% Attach source file, and the tex log (renamed \jobname.log
% to \jobname.tex.log to avoid the distiller from overwriting it.
% The distiller only creates the log if there some sort of error message; consequently,
% the log for distiller is not attached (no error), but the tex log is destroyed by distiller
@@ -21,7 +23,7 @@
%
% Just for laughs, let's include Robot Man.
%
- attachments={extras.zip.txt, ../extras/robot_man.pdf},
+ attachments={extras.zip.txt, \pthToExtras/robot_man.pdf},
aebxmp,
]{aeb_pro}
@@ -42,15 +44,13 @@
}
\DeclareInitView{layoutmag={navitab=UseAttachments},windowoptions=fit}
+\newbox\aebpbox
\newcommand{\cs}[1]{\texttt{\char`\\#1}}
\newcommand\newtopic{\par\ifdim\lastskip>0pt\relax\vskip-\lastskip\fi
\vskip\medskipamount\noindent}
-\newenvironment{sverbatim}
-{\par\footnotesize\verbatim}{\endverbatim}
%
% As you do not have the necessary background files, the \addWatermarkFromFile
% will silently fail.
-%
\begin{forpaper}
\begin{docassembly}
var pos=this.path.indexOf(this.documentFileName,"/");
@@ -58,15 +58,15 @@ var myPath=this.path.substring(0,pos);
try {
\addWatermarkFromFile({
bOnTop:false,
- cDIPath:myPath+"../extras/Manual_BG_Print_AeB.pdf"
+ cDIPath:myPath+"\pthToExtras/Manual_BG_Print_AeB.pdf"
}); } catch(e) { console.println(e.toString()) };
try {
- \importSound({cName: "StarTrek", cDIPath: "../extras/trek.wav" });
+ \importSound({cName: "StarTrek", cDIPath: "\pthToExtras/trek.wav" });
} catch(e) { console.println(e.toString()) };
try {
- \importIcon({cName: "logo", cDIPath: "../extras/AeB_Logo.pdf"});
- \importIcon({cName: "logopush", cDIPath: "../extras/AeB_Logo_bw15.pdf"});
- \importIcon({cName: "logorollover", cDIPath: "../extras/AeB_Logo_bw50.pdf"});
+ \importIcon({cName: "logo", cDIPath: "\pthToExtras/AeB_Logo.pdf"});
+ \importIcon({cName: "logopush", cDIPath: "\pthToExtras/AeB_Logo_bw15.pdf"});
+ \importIcon({cName: "logorollover", cDIPath: "\pthToExtras/AeB_Logo_bw50.pdf"});
var f = this.getField("cheesySound");
f.buttonPosition = position.iconOnly;
var oIcon = this.getIcon("logo");
@@ -76,7 +76,10 @@ try {
oIcon = this.getIcon("logorollover");
f.buttonSetIcon(oIcon,2);
} catch(e) { console.println(e.toString()) };
-try {\importDataObject({cName: "AeB Pro Example #2",cDIPath: "aebpro_ex2.pdf"});} catch(e){}
+try {
+ \importDataObject({cName: "AeBProEx2",cDIPath: "aebpro_ex2.pdf"});
+ this.getDataObject("AeBProEx2").description="AeB Pro Example #2";
+} catch(e){}
\end{docassembly}
\end{forpaper}
\begin{forscreen}
@@ -86,16 +89,16 @@ var myPath=this.path.substring(0,pos);
try {
\addWatermarkFromFile({
bOnTop:false,
- cDIPath:myPath+"../extras/Manual_BG_DesignV_AeB.pdf"
+ cDIPath:myPath+"\pthToExtras/Manual_BG_DesignV_AeB.pdf"
});
} catch(e) { console.println(e.toString()) };
try {
- \importSound({cName: "StarTrek", cDIPath: "../extras/trek.wav" });
+ \importSound({cName: "StarTrek", cDIPath: "\pthToExtras/trek.wav" });
} catch(e) { console.println(e.toString()) };
try {
- \importIcon({cName: "logo", cDIPath: "../extras/AeB_Logo.pdf"});
- \importIcon({cName: "logopush", cDIPath: "../extras/AeB_Logo_bw15.pdf"});
- \importIcon({cName: "logorollover", cDIPath: "../extras/AeB_Logo_bw50.pdf"});
+ \importIcon({cName: "logo", cDIPath: "\pthToExtras/AeB_Logo.pdf"});
+ \importIcon({cName: "logopush", cDIPath: "\pthToExtras/AeB_Logo_bw15.pdf"});
+ \importIcon({cName: "logorollover", cDIPath: "\pthToExtras/AeB_Logo_bw50.pdf"});
var f = this.getField("cheesySound");
f.buttonPosition = position.iconOnly;
var oIcon = this.getIcon("logo");
@@ -105,7 +108,10 @@ try {
oIcon = this.getIcon("logorollover");
f.buttonSetIcon(oIcon,2);
} catch(e) { console.println(e.toString()) };
-try {\importDataObject({cName: "AeB Pro Example #2",cDIPath: "aebpro_ex2.pdf"});} catch(e){}
+try {
+ \importDataObject({cName: "AeBProEx2",cDIPath: "aebpro_ex2.pdf"});
+ this.getDataObject("AeBProEx2").description="AeB Pro Example #2";
+} catch(e){}
\end{docassembly}
\end{forscreen}
@@ -175,7 +181,7 @@ relative paths to the file required to attach. For example,
\usepackage[%
driver=dvips,
web={pro,usesf,...},
- attachments={extras.zip.txt,../extras/robot_man.pdf,
+ attachments={extras.zip.txt,\pthToExtras/robot_man.pdf,
/C/Documents and Settings/dps/My Documents/My Pictures/birthday17.jpg},
...
]{aeb_pro}
@@ -244,7 +250,7 @@ var myPath=this.path.substring(0,pos);
\begin{docassembly}
\addWatermarkFromFile({
bOnTop:false,
- cDIPath:myPath+"../extras/Manual_BG_Print_AeB.pdf"
+ cDIPath:myPath+"\pthToExtras/Manual_BG_Print_AeB.pdf"
});
\end{docassembly}
\end{Verbatim}
@@ -265,12 +271,12 @@ re-inserts \verb!({! in a different location. (See the
For another cheesy demonstration, let's import a sound, associate it
with a button. I leave it to you to press the button at your
discretion.
-\begin{center}
-\setbox0=\hbox{\includegraphics[height=16bp]{extras/AeB_Logo.eps}}
+\begin{center}%\previewOn
+\setbox\aebpbox=\hbox{\includegraphics[height=16bp]{\pthToExtras/AeB_Logo.eps}}
\newtopic\pushButton[\S{S}\W{0}\A{\JS{%
var s = this.getSound("StarTrek");\r
s.play();
-}}]{cheesySound}{\the\wd0 }{\the\ht0 }
+}}]{cheesySound}{\wd\aebpbox}{\ht\aebpbox}
\end{center}
\begin{Verbatim}
@@ -278,11 +284,11 @@ discretion.
try {
\addWatermarkFromFile({
bOnTop:false,
- cDIPath:myPath+"../extras/Manual_BG_DesignV_AeB.pdf"
+ cDIPath:myPath+"\pthToExtras/Manual_BG_DesignV_AeB.pdf"
});
} catch(e) { console.println(e.toString()) };
try {
- \importSound({cName: "StarTrek", cDIPath: "../extras/trek.wav" });
+ \importSound({cName: "StarTrek", cDIPath: "\pthToExtras/trek.wav" });
} catch(e) { console.println(e.toString()) };
\end{docassembly}
\end{Verbatim}
@@ -303,9 +309,9 @@ code, with some comments added.
...
...
// Import the sounds into the document
-\importIcon({cName: "logo", cDIPath: "../extras/AeB_Logo.pdf"});
-\importIcon({cName: "logopush", cDIPath: "../extras/AeB_Logo_bw15.pdf"});
-\importIcon({cName: "logorollover", cDIPath: "../extras/AeB_Logo_bw50.pdf"});
+\importIcon({cName: "logo", cDIPath: "\pthToExtras/AeB_Logo.pdf"});
+\importIcon({cName: "logopush", cDIPath: "\pthToExtras/AeB_Logo_bw15.pdf"});
+\importIcon({cName: "logorollover", cDIPath: "\pthToExtras/AeB_Logo_bw50.pdf"});
var f = this.getField("cheesySound"); // get the field object of the button
f.buttonPosition = position.iconOnly; // set it to receive icon appearances
var oIcon = this.getIcon("logo"); // get the "logo" icon
@@ -326,7 +332,8 @@ your own files using the \texttt{docassembly} environment.
...
...
try {
- \importDataObject({cName: "AeB Pro Example #2",cDIPath: "aebpro_ex2.pdf"});
+ \importDataObject({cName: "AeBProEx2",cDIPath: "aebpro_ex2.pdf"});
+ this.getDataObject("AeBProEx2").description="AeB Pro Example #2";
} catch(e){}
\end{docassembly}
\end{Verbatim}
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex4.tex b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex4.tex
index 81c83709..b0df8c3e 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex4.tex
+++ b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex4.tex
@@ -2,18 +2,18 @@
\documentclass{article}
\usepackage{amsmath}
\usepackage[%
- web={
- pro,
- designv,
- tight,
-% forcolorpaper,
- centertitlepage,
- dvipsnames,
- usesf
- },
- uselayers,
- eforms,
- aebxmp,
+ web={
+ pro,
+ designv,
+ tight,
+% forcolorpaper,
+ centertitlepage,
+ dvipsnames,
+ usesf
+ },
+ uselayers,
+ eforms,
+ aebxmp
]{aeb_pro}
\usepackage{graphicx}
\usepackage[nomessages]{fp}
@@ -24,6 +24,8 @@
\usepackage{pstricks-add}
\usepackage[absolute,overlay]{textpos}
+\let\tops\texorpdfstring
+
\DeclareDocInfo
{
title=The AeB Pro Package\texorpdfstring{\\[1ex]}{: }Layers and Rollovers,
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.pdf b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.pdf
index 65ccfa04..2b1b3a0a 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.pdf
+++ b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.pdf
Binary files differ
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.tex b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.tex
index 66cbd350..bdcc080a 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.tex
+++ b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex6.tex
@@ -14,6 +14,9 @@
linktoattachments,
eforms
]{aeb_pro}
+\usepackage{fancyvrb}
+\usepackage[active]{srcltx}
+
\DeclareDocInfo
{
@@ -126,19 +129,18 @@ accessed through the menu item \texttt{View > Portfolio > Cover Sheet}.
\newtopic\textbf{\textcolor{red}{TIP:}} Use the \cs{autolabelNum*}
command to assign a more informative description of the attachments,
like so.
-\begin{sverbatim}
- \autolabelNum*{1}{European Currency \u20AC}
- \autolabelNum*{2}{\u0022$|e^\u007B\u005Cln(17)\u007D|$\u0022}
- \autolabelNum*[AeST]{3}{The AeBST Components}
- \autolabelNum*[atease]{4}{The @EASE Control Panel}
-\end{sverbatim}
-
+\begin{Verbatim}[xleftmargin=\parindent,fontsize=\small]
+\autolabelNum*{1}{European Currency \u20AC}
+\autolabelNum*{2}{\u0022$|e^\u007B\u005Cln(17)\u007D|$\u0022}
+\autolabelNum*[AeST]{3}{The AeBST Components}
+\autolabelNum*[atease]{4}{The @EASE Control Panel}
+\end{Verbatim}
Note that there is an alternative that is commented out to the assignment of the
second attachment, it is
-\begin{sverbatim}
- \autolabelNum*
- {2}{\u\DQUOTE$|e^\u\LBRACE\u005Cln(17)\u\RBRACE|$\u\DQUOTE}
-\end{sverbatim}
+\begin{Verbatim}[xleftmargin=\parindent,fontsize=\small]
+\autolabelNum*{2}
+ {\u\DQUOTE$|e^\u\LBRACE\u005Cln(17)\u\RBRACE|$\u\DQUOTE}
+\end{Verbatim}
One can use the ``helper'' commands, as described in \texttt{aeb\_pro.tex}; however,
there is a slight problem. Within the \texttt{<description>} argument, we obey spaces, so
if we were to say \verb!\u\LBRACE\u\BSLASH ln(17)\u\RBRACE! there would be a space
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.pdf b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.pdf
index 83ff4f23..54766e4d 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.pdf
+++ b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.pdf
Binary files differ
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.tex b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.tex
index 196eef6d..0f8941b5 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.tex
+++ b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_ex8.tex
@@ -33,7 +33,7 @@
\defUniStr{myCoolIV}{\u0022\u20AC|e^\u007B\u005Cln(17)\u007D|$\u0022}
\defUniStr{Reset myCoolIV}{Reset the \u0022\u20AC|e^\u007B\u005Cln(17)\u007D|$\u0022 field}
-\pdfSpacesOff
+%\pdfSpacesOff
\begin{document}
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/aebpro_index_ex.pdf b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_index_ex.pdf
new file mode 100644
index 00000000..e6667320
--- /dev/null
+++ b/texmf-dist/doc/latex/aeb-pro/examples/aebpro_index_ex.pdf
Binary files differ
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/test_install.pdf b/texmf-dist/doc/latex/aeb-pro/examples/test_install.pdf
index 48b4888c..0734eb43 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/test_install.pdf
+++ b/texmf-dist/doc/latex/aeb-pro/examples/test_install.pdf
Binary files differ
diff --git a/texmf-dist/doc/latex/aeb-pro/examples/test_install.tex b/texmf-dist/doc/latex/aeb-pro/examples/test_install.tex
index 20a2216f..6f2bbf79 100644
--- a/texmf-dist/doc/latex/aeb-pro/examples/test_install.tex
+++ b/texmf-dist/doc/latex/aeb-pro/examples/test_install.tex
@@ -24,4 +24,15 @@ haven't closed and opened \textsf{Acrobat} after you installed \texttt{aeb\_pro.
or the cover page document \texttt{myCoverPage.pdf} does not exist or has
been moved from this folder
+On failure, did you close \textsf{Acrobat} before opening this file? (The JS
+files are only read once when the \textsf{Acrobat} application is opened.)
+When all else fails, try rereading the installation instructions again
+(\texttt{install\_jsfiles.pdf}), found in the \texttt{doc} folder, but more
+carefully this time.
+
+Still failing? Do you have \textsf{Acrobat DC}? Perhaps your \textsf{Acrobat}
+needs to be configured. Try reading \texttt{acrobat-in-workflow.pdf}, found
+in the \texttt{doc} folder.
+
+
\end{document}