summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/aebenvelope/custom
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2018-06-11 12:23:22 +0900
committerNorbert Preining <norbert@preining.info>2018-06-11 12:23:22 +0900
commit69aed6c627813afde6fb1983e8b673ed5b8ec0d5 (patch)
tree15ee93d167337a2629594c56e34cbf92d072d279 /texmf-dist/doc/latex/aebenvelope/custom
parent17e285e7733468f00b6e8d096fdd7ffe818f09c8 (diff)
add aebenvelope
Diffstat (limited to 'texmf-dist/doc/latex/aebenvelope/custom')
-rw-r--r--texmf-dist/doc/latex/aebenvelope/custom/AeST_Logo.epsbin0 -> 312594 bytes
-rw-r--r--texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.epsbin0 -> 447226 bytes
-rw-r--r--texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.pdfbin0 -> 63716 bytes
-rw-r--r--texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.tex108
-rw-r--r--texmf-dist/doc/latex/aebenvelope/custom/airmail_bg.epsbin0 -> 265470 bytes
-rw-r--r--texmf-dist/doc/latex/aebenvelope/custom/myEnv_demo.tex124
6 files changed, 232 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/aebenvelope/custom/AeST_Logo.eps b/texmf-dist/doc/latex/aebenvelope/custom/AeST_Logo.eps
new file mode 100644
index 00000000..ebe2d125
--- /dev/null
+++ b/texmf-dist/doc/latex/aebenvelope/custom/AeST_Logo.eps
Binary files differ
diff --git a/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.eps b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.eps
new file mode 100644
index 00000000..96fd2de7
--- /dev/null
+++ b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.eps
Binary files differ
diff --git a/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.pdf b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.pdf
new file mode 100644
index 00000000..39159576
--- /dev/null
+++ b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.pdf
Binary files differ
diff --git a/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.tex b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.tex
new file mode 100644
index 00000000..57322dd6
--- /dev/null
+++ b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.tex
@@ -0,0 +1,108 @@
+\documentclass{article}
+\usepackage{graphicx}
+\usepackage[
+ web={pro,usetemplates},
+]{aeb_pro}
+\usepackage{calc}
+
+\begin{comment}
+ This document was used to create the custom eEnvelope, aebMyEnv.pdf. Here
+ we record the steps taken.
+
+ 1. Found a "par avion" letter on Google and downloaded it
+ 2, Imported the par avion clip art into Acrobat and converted it to
+ pdf. Used the crop tool to crop the document show only the blue
+ background was showing. Did a "SaveAs" on the background as an
+ .eps file. Named the file airmail_bg.eps
+ 3. Found on the Internet the sizes of common envelopes and select
+ Monarch letter size: 7.5in x 3.875in.
+ 4. Created this document with the headers above, then set the page
+ size to
+ \margins{0pt}{0pt}{0pt}{0pt}
+ \screensize{3.875in}{7.5in} % height, width
+ which matches the size of the Monarch envelope.
+ 5. Use the airmail_bg.eps as a background, by inserting the
+ web command \template[hiresbb]{airmail_bg}. The background
+ did not quite fit due to rounding, so the highresbb was used.
+ The optional parameter for \template just passes the arguments
+ to the \includegraphics command.
+ 6. We use the \put command, which is part of the picture environment.
+ The picture environment is inserted by web package through the
+ usetemplates option.
+ 7. Using the "par avion" letter as a model---recalling that I have
+ little talent for design and no knowledge of colors---I used used LaTeX
+ commands to draw horizontal rules and vertical rules, leaving a 50pt x 50pt
+ box in the lower right corner. I also place some appropriate text on the
+ envelope, text that also appeared on the "par avion". My only original thought
+ was the little airplane that appears in the lower right corner.
+ 8. The file was compiled and converted to PDF. Now it is ready to be used as an
+ eEnvelope.
+ 9. Once in Acrobat, I saved the document, then did a SaveAs an .eps file. The
+ use of the file aebMyEnv.eps is explained in myEnv_demo.tex.
+ 10. The rest of the steps are contained in the demo file myEnv_demo.tex.
+\end{comment}
+
+
+\margins{0pt}{0pt}{0pt}{0pt} % left,right,top, bottom
+\screensize{3.875in}{7.5in} % height, width
+
+\DeclareDocInfo
+{
+ university={\AcroTeX.Net},
+ title={APES: Custom eEnvelope},
+ author={D. P. Story, J. Gilg, S. Singer},
+ email={dpstory@acrotex.net},
+ subject={Creating a custom eEnvelope for APES},
+ talksite={\url{www.acrotex.net}},
+ version={1.0},
+ keywords={Adobe Acrobat, JavaScript, eEnvelope, AcroTeX},
+ copyrightStatus=True,
+ copyrightNotice={Copyright (C) \the\year, D. P. Story},
+ copyrightInfoURL={http://www.acrotex.net}
+}
+
+\thispagestyle{empty}
+\makeatletter
+\let\strippt\strip@pt
+\makeatother
+
+\newlength{\envLeni}
+
+\setlength{\envLeni}{\paperwidth-10pt}
+\edef\myHorOffsetBlue{\strippt\envLeni}
+
+\setlength{\envLeni}{\paperwidth-18pt}
+\edef\myHorOffsetRed{\strippt\envLeni}
+
+\setlength{\envLeni}{\paperwidth-50pt}
+\edef\myHorRuleLenStrip{\strippt\envLeni}
+\edef\myHorRuleLen{\the\envLeni}
+
+\setlength{\envLeni}{\paperheight-50pt}
+\edef\myVertRuleLen{\the\envLeni}
+\edef\myVertRuleLenStrip{\strippt\envLeni}
+
+\newcommand{\letterDesign}
+{%
+ \noindent\put(415,228){\includegraphics[scale=.25]{AeST_Logo}}%
+ \put(0,0){\textcolor{red}{\rule{\myHorRuleLen}{10pt}}}
+ \put(0,14){\textcolor{webblue}{\rule{\myHorRuleLen}{4pt}}}
+ \put(\myHorOffsetBlue,50){\textcolor{webblue}{\rule{10pt}{\myVertRuleLen}}}
+ \put(\myHorOffsetRed,50){\textcolor{red}{\rule{4pt}{\myVertRuleLen}}}
+ \put(400,165){\sffamily\bfseries\large\textcolor{webblue}{VIA AIR MAIL}}
+ \put(400,145){\sffamily\bfseries\large\textcolor{red}{CORREO A\'{E}REO}}
+ \put(\myHorRuleLenStrip,0){\sffamily\bfseries\color{webblue}\kern10pt
+ \raisebox{15pt}{\shortstack[c]{PAR \textcolor{red}{\ding{040}}\\AVION}}}
+
+}
+%
+% Use airmail_bg for a background template
+%
+\template[hiresbb]{airmail_bg}
+%
+% use \letterDesign as an additional template. This template simply
+% places various letter elements on the envelope.
+%
+\AddToTemplate{letterDesign}
+
+\begin{document}\strut\end{document}
diff --git a/texmf-dist/doc/latex/aebenvelope/custom/airmail_bg.eps b/texmf-dist/doc/latex/aebenvelope/custom/airmail_bg.eps
new file mode 100644
index 00000000..1644ae25
--- /dev/null
+++ b/texmf-dist/doc/latex/aebenvelope/custom/airmail_bg.eps
Binary files differ
diff --git a/texmf-dist/doc/latex/aebenvelope/custom/myEnv_demo.tex b/texmf-dist/doc/latex/aebenvelope/custom/myEnv_demo.tex
new file mode 100644
index 00000000..3249e2b0
--- /dev/null
+++ b/texmf-dist/doc/latex/aebenvelope/custom/myEnv_demo.tex
@@ -0,0 +1,124 @@
+\documentclass{article}
+\usepackage[
+ web={pro,usetemplates},
+ attachsource={tex},
+ aebxmp
+]{aeb_pro}
+\usepackage[%
+ donotmail,
+ envelope=aebMyEnv.pdf,
+%
+% The path that follows needs to be edited to point to
+% the location of the aebMyEnv.pdf on your system.
+%
+ path2folder=/c/acrotex/acrotex/aebpro/aebenvelope/custom,
+]{aeb_envelope}
+
+\setEnvDimensions{7.5in}{3.875in}
+
+\begin{comment}
+ These comments continue the description of how to create and use a custom
+ eEnvelope. See the source file aebMyEnv.tex for the instructions on how
+ the eEnvelope aebMyEnv.pdf was created. Now, we learn how to use the
+ eEnvelope.
+ 1. Place the file aebMyEnv.pdf anywhere on your hard drive and make
+ note of its location. It is best to place it in the envelopes folder
+ of the AeB eEnvelopes distribution, but there are some out there who
+ want to use their own personal folder. You'll not above that we specify
+ the envelope and the path2folder options. Since we are not using one
+ of the standard eEnvelopes, we specify the file name of the eEnvelope,
+ aebMyEnv.pdf, in this case. We also specify the path to the folder as
+ /c/acrotex/acrotex/aebpro/acroenvelope.
+ \usepackage[%
+ donotmail,
+ envelope=aebMyEnv.pdf,
+ path2folder=/c/acrotex/acrotex/aebpro/acroenvelope,
+ ]{aeb_envelope}
+ If you had put this file in the envelopes folder, then it would
+ not be necessary to specify the path2folder option.
+ 2. Since you created the eEnvelope, you know its dimensions. Specify these
+ dimensions using the \setEnvDimensions command of aeb_envelope.
+ \setEnvDimensions{7.5in}{3.875in}
+ See the file aebMyEnv.tex for these dimensions. We need the papersize
+ to match exactly the eEnvelope dimensions.
+ 3. Done past the \DeclareDocInfo (optional) and the \mailTo (required) you'll
+ see
+ \setAddressEnv
+ {%
+ \put(50,250){%
+ \begin{minipage}[t]{2in}\parindent0pt\raggedright\sffamily\bfseries
+ \displayAddr{From}\mailtoFrom
+ \end{minipage}}%
+ \put(200,130){%
+ \begin{minipage}[t]{2in}\parindent0pt\raggedright\sffamily\bfseries
+ \displayAddr{To}\mailtoName\\[1ex]
+ \displayAddr{Message}\mailtoMessageEnvelope
+ \end{minipage}}%
+ }
+ \setAddressEnv is a command whose argument includes some picture commands, \put
+ in this case. This \put commands place the various elements entered through
+ the \mailTo command on the envelope and in the mail dialog box.
+
+ Where did the numbers in the \put commands come from? Well, that's where
+ \template{aebMyEnv} comes in. Down below, you'll see that this command is
+ commented out. I had this command uncommented, I latexed this file, and brought
+ the dvi file in my dvi previewer. Using my previewer's measuring device, I can
+ get rough numbers for the location of the address elements. That is what I did.
+ When I was happy with the placement, I commented it command out again.
+ 4. I believe that's about it. This is such a nice design, I should make it a
+ standard eEnvelope. What do you think?
+ 5. If you create an attractive eEnvelope, send it to me and, if it is worthy,
+ I'll incorporate it into this distribution.
+ 6. dpstory@acrotex.net
+\end{comment}
+
+\DeclareDocInfo
+{
+ university={\AcroTeX.Net},
+ title={The AeB Pro eEnvelope System (APES)},
+ author={D. P. Story, J. Gilg, S. Singer},
+ email={dpstory@acrotex.net},
+ subject={Demo APES: Using a custom eEnvelope},
+ talksite={\url{www.acrotex.net}},
+ version={1.0},
+ keywords={Adobe Acrobat, JavaScript, eEnvelope, AcroTeX},
+ copyrightStatus=True,
+ copyrightNotice={Copyright (C) \the\year, D. P. Story},
+ copyrightInfoURL={http://www.acrotex.net}
+}
+
+\mailTo
+{
+ UI=true,
+ ToName=J\"{u}rgen Gilg\\Member of the ASDT,
+ From={D. P. Story\\\href{http://www.acrotex.net}{AcroTeX.Net}\\\url{www.acrotex.net}},
+ To=gilg@acrotex.net,
+ CC=dpstory@acrotex.net,
+% BCC=gilg@acrotex.net,
+ Subject=Testing the AeB eEnvelope Delivery System,
+ MessageEnvelope={This is a custom envelope and is integrated into the AeB eEnvelope System.},
+ MessageBody={%
+ This document and its attachments test the AeB Envelope
+ system for a custom design. Seems to work. Will write
+ down the steps used to create the new templates.\n\n
+ Open the PDF attachment, the documents you ordered are attached to it.\n\n
+ dps, dpstory@acrotex.net
+ },
+}
+
+\setAddressEnv
+{%
+ \put(50,250){%
+ \begin{minipage}[t]{2in}\parindent0pt\raggedright\sffamily\bfseries
+ \displayAddr{From}\mailtoFrom
+ \end{minipage}}%
+ \put(200,130){%
+ \begin{minipage}[t]{2in}\parindent0pt\raggedright\sffamily\bfseries
+ \displayAddr{To}\mailtoName\\[1ex]
+ \displayAddr{Message}\mailtoMessageEnvelope
+ \end{minipage}}%
+}
+
+%\template{aebMyEnv}
+
+\assembleEnvelope