diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/annot_pro/examples |
Initial commit
Diffstat (limited to 'macros/latex/contrib/annot_pro/examples')
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/annots.pdf | bin | 0 -> 113442 bytes | |||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/annots.tex | 198 | ||||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/graphics/APB_Logo_Sphere.eps | bin | 0 -> 354751 bytes | |||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/graphics/AdobeDon.eps | bin | 0 -> 827064 bytes | |||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/graphics/AdobeDon.pdf | bin | 0 -> 23264 bytes | |||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/graphics/AeST_Logo.eps | bin | 0 -> 298202 bytes | |||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/stamps.pdf | bin | 0 -> 459200 bytes | |||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/stamps.tex | 140 | ||||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/text-markup.pdf | bin | 0 -> 52901 bytes | |||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/text-markup.tex | 107 | ||||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/textbox.pdf | bin | 0 -> 48040 bytes | |||
-rw-r--r-- | macros/latex/contrib/annot_pro/examples/textbox.tex | 62 |
12 files changed, 507 insertions, 0 deletions
diff --git a/macros/latex/contrib/annot_pro/examples/annots.pdf b/macros/latex/contrib/annot_pro/examples/annots.pdf Binary files differnew file mode 100644 index 0000000000..b0c43b389d --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/annots.pdf diff --git a/macros/latex/contrib/annot_pro/examples/annots.tex b/macros/latex/contrib/annot_pro/examples/annots.tex new file mode 100644 index 0000000000..e8fa584c56 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/annots.tex @@ -0,0 +1,198 @@ +\documentclass{article} +\usepackage[% + web={tight,usesf,usetemplates}, +]{aeb_pro} +\usepackage[scandoc]{annot_pro} + +\title{The \textsf{annot\_pro} Package\texorpdfstring{\\[2ex]}{: }Text, Stamp, and File Attachment Annotations} +\author{D. P. Story} +\university{Acro\negthinspace\TeX.Net} +\email{dpstory@acrotex.net} +\subject{Acrobat text, stamp, and file attachment annotations} +\keywords{AcroTeX, AeB Pro, Acrobat annotations} + +\textBgColor{webyellow} + +\DeclareInitView +{% + layoutmag={mag=100}, + windowoptions={fit} +} + +\margins{.5in}{.5in}{24pt}{.25in} % left,right,top, bottom +\screensize{4.5in}{6in} % height, width + +\def\myNote{type=text,name=Note,color=webyellow} +\newcommand{\cs}[1]{\texttt{\char`\\#1}} + +% +% This needs to be set to the path to the graphics folder +% +\defineAPath{\graphicsPath}{C:/Users/Public/Documents/My TeX Files/% + tex/latex/aeb/aebpro/annot_pro/examples/graphics} + +\marginparsep=6pt +\marginparwidth=.25in +\parskip6pt +\parindent0pt + +\reversemarginpar + +\setAnnotOptions{subject={AcroTeX Communiqu\'e},title={D.P. Story}} + +\begin{document} + +\maketitle + +\section{Introduction} + +This is a brief demo package for the \textsf{annot\_pro} package. This package uses +Adobe Distiller to distill PostScript files created by dvips (or dvipsone) to produce +a selection of useful annotations, the ones for text (also called sticky notes), stamps, +and file attachments. We take up each of these annotation types in that order. The command +to create all types of supported annotation is \cs{annotpro}. The syntax is\dots +\begin{verbatim} + \annotpro[<key-values>]{<content>} +\end{verbatim} +There are several keys that are common to all annotations, among +these are \texttt{title} (whose value is usually the author of the +annotation), and \texttt{subject}. The \texttt{<content>} argument +is the text of the pop-up window (in the case of text and stamp +annotations), and the file attachment description (for file +attachment annotations).For example, \annotpro[title=Don Story,subject=AcroTeX.Net]{This is the content of the sticky note.}; the code is +\begin{verbatim} + \annotpro[title=Don Story,subject=AcroTeX.Net] + {This is the content of the sticky note.} +\end{verbatim} + +See the documentation for this package, \texttt{annotpro\_man.pdf}, for details +beyond what is presented here. + +\section{Text annotations} + +There are a number of difference text annotation icons that can be used. The default +is the \texttt{Note} annotation \annotpro{This is a Note annotation, or sticky note.}. The +type of annotation is selected using the \texttt{type} key, text +annotations are \texttt{type=text} (the default). An icon is selected using the \texttt{name} key. +The above annotation is the default \texttt{name=Note}; consequently, the syntax is very simple: +\begin{verbatim} + \annotpro{This is a Note annotation, or sticky note.} +\end{verbatim} +The default behavior is to leave the correct vertical and horizontal space in {\TeX} space to +place the icon. The icons of a text annotation do not re-scale, they remain the same size regardless +of the page magnification; consequently, they look best when the magnification is at 100\%. + +There are keys (\texttt{nohspace}, \texttt{novspace}, and \texttt{nospace}) for removing +space around the icon in {\TeX} space. + +This is a sticky note that takes that uses the \texttt{\texttt{nohspace}} key.\makebox[0pt][r]{\raisebox{10bp}{\annotpro[name=Comment,nohspace]{J\"{u}rgen is a cool guy!}}\hspace{6bp}} +The sticky note retains vertical space. For sticky notes, there are three keys for removing space, +\texttt{nohspace}, \texttt{novspace}, and \texttt{nospace}. Acrobat users can move these icons around +on the page, but users of Adobe Reader cannot; therefore, if an annot is to be used, it should not cover +any page content. You can see the additional space left between paragraphs, this space was created +by the vertical space of the note. Here,\annotpro[name=Comment,nospace,color=blue]{J\"{u}rgen is a cool guy!} the blue note, is the same note with the \texttt{nospace} key. + +Annots can be placed in the margin\annotpro[presets=\myNote,margin,readonly,margintext={Hi\\Mom!}]{This one appears in the margin of the document.} +using the \texttt{margin} key, with an optional ``caption.'' The core {\LaTeX} command \cs{marginpar} is used. This particular +annotation uses the \texttt{presets} key, this key allows you to predefine some options. The code for the margin note is +\begin{verbatim} + \annotpro[presets=\myNote,margin,readonly,margintext={Hi\\Mom!}] + {This one appears in the margin of the document.} +\end{verbatim} + +Here is another sticky note, the \texttt{Check} +\annotpro[color=yellowgreen,name=Check]{This is an example of a +note.\string\n\string\n We've created a blank line and started a new +paragraph.}. + +\section{Stamp Annotations} + + +The \textsl{PDF Reference} lists several stamps that are guaranteed to exist, by any conforming PDF viewer. +This stamp is one\smash{\raisebox{38pt}{\makebox[0pt][l]{\annotpro[type=stamp,name=Approved,widthTo=150bp,color=blue]{I give my stamp of approval!}}}} of +the standard stamps. A stamp is created by by putting \texttt{type=stamp} and by setting the +\texttt{name} key to the name of the stamp. + +The stamp annotation does not obey the \texttt{nospace} keys, the same effect can be obtains using +various combinations of \cs{smash} and \cs{makebox}. The code for the stamp above is +\begin{verbatim} + \smash{\makebox[0pt][l]{\raisebox{36pt}{ + \annotpro[type=stamp,name=Approved,widthTo=150bp, + color=blue]{I give my stamp of approval!}}}} +\end{verbatim} +Did I forget to mention \cs{raisebox}? I needed that command keep the stamp from covering page content. +The \textsf{annot\_pro} package has a \texttt{preview} option. If used, the bounding rectangles of +the annotations can be viewed in a dvi previewer. This helped me to place the stamp through my dvi previewer. + +Stamps can be re-scaled using \texttt{widthTo} (for re-scaling a stamp to a specified width), \texttt{heightTo} (for re-scaling to height), +or \texttt{scale} (for re-scaling using a re-scaling factor, for example, \texttt{scale=.5}). +For example, here is a stamp resize to 20bp width \annotpro[type=stamp,name=WordsTheBestJustGotBetter,widthTo=20bp,color=webbrown]{This package just got better!}. +This stamp is one of the ``extra'' stamps that are (sometimes) shipped with Acrobat, see the file \texttt{stamps.pdf} for a complete listing +of these extra stamps that ship with Acrobat. + +Stamps can be placed in the margins,\annotpro[type=stamp,name=WordsTheBestJustGotBetter,margin,widthTo=20bp,color=webbrown]{This package just got better!} +but they probably need to be re-scaled to make them smaller; there are several keys that can be used for this purpose. +A key I've used several times already is \texttt{widthTo} (for re-scaling a stamp to a specified width), \texttt{heightTo} (for re-scaling to height), +and \texttt{scale} (for re-scaling using a re-scaling factor, for example, \texttt{scale=.5}). +\begin{verbatim} + \annotpro[type=stamp,name=WordsTheBestJustGotBetter, + widthTo=20bp,color=webbrown]{This package + just got better!} +\end{verbatim} + +Stamps are shipped with Acrobat (and some with Adobe Reader) in the form of PDF files. The PDF consist of +a series of template pages with one graphical image of a stamp per page. The standard stamps +reside in the file \texttt{Standard.pdf}. + +Additional Stamps: The following stamps may be on your computer, when \textbf{Acrobat Pro} is installed. See the +file \texttt{stamps.pdf} for a complete listing of the stamps and their names. + + +\begin{itemize} +\item \texttt{StandardBusiness.pdf}: A \annotpro[type=stamp,name=SBApproved,color=webbrown]{This package just got better!} stamp +\item \texttt{SignHere.pdf}: A \annotpro[type=stamp,name=SHSignHere,color=webbrown]{This package just got better!} stamp +\item \texttt{Dynamic.pdf}: A \annotpro[type=stamp,name=\#DApproved,widthTo=2in,color=webbrown]{This package just got better!} stamp +\item \texttt{Words.pdf}: A \annotpro[type=stamp,name=WordsTheBestJustGotBetter,widthTo=30bp,color=webbrown]{This package just got better!} stamp +\item \texttt{Faces.pdf}: A \annotpro[type=stamp,name=FacesWow,widthTo=30bp,color=webbrown]{This package just got better!} stamp +\item \texttt{Pointers.pdf}: A \annotpro[type=stamp,name=PointersWhen,widthTo=100bp,color=webbrown]{This package just got better!} stamp +\end{itemize} +These stamps are representatives of the many stamps that reside in the referenced files. The dimensions of these +stamps are known by \textsf{annot\_pro} for these stamps. These can be resized using the \texttt{widthTo}, \texttt{heightTo}, or \texttt{scale} +keys. + +Note that the names in the \texttt{Dynamic.pdf} file begin with the `\texttt{\#}' symbol. To reference these stamps, use +\verb!\#!, like so, \verb!name=\#DApproved!. + +The bounding rectangle for the non-standard stamps---ones whose +dimensions are not known to this package---can be set using the +\texttt{width} and \texttt{height} keys, there are default values if +these keys are not specified. + +The stamps provided by Acrobat can be rotated using the rotate key. For example, the stamp named +\texttt{PointersWhen} shown above, can be rotated 30 degrees, the stamp and the code are shown below. +\smash{\makebox[0pt][l]{\put(125,-15){\annotpro[type=stamp,name=PointersWhen,widthTo=50bp,rotate=30,color=webbrown]{Here is the code for this stamp.}}}} +\begin{verbatim} + \smash{\makebox[0pt][l]{\put(130,-20){% + \annotpro[type=stamp,name=PointersWhen, + widthTo=50bp,rotate=30,color=webbrown + ]{Here is the code for this stamp.}}}} +\end{verbatim} +See the file \texttt{stamps.tex} (and \texttt{stamps.pdf}) for a +complete list of these stamps, and their names. + +\textbf{\textcolor{red}{Important:}} When using the stamps of +Acrobat, always perform a \textbf{SaveAs} on the file when you have finished +building the file. This imports the appearances of the stamps into +the document and saves them. + + +\section{File Attachment Annotations} + +This is a file attachment \annotpro[type=fileattachment,file={\graphicsPath/AdobeDon.pdf},name=Paperclip]{The author of annot\_pro (ho, ho).} +which depicts the image of an average man. A file attachment is created with \texttt{type=fileattachment}; in addition, +a value of the file key must be set, here \verb!file={\graphicsPath/AdobeDon.pdf}!, where \cs{graphicsPath} is a command +that expands to the path to the folder holding \texttt{AdobeDon.pdf}. The definition of the path was made using +a special command, \cs{defineAPath}, in \texttt{annot\_pro}. + +\end{document} + diff --git a/macros/latex/contrib/annot_pro/examples/graphics/APB_Logo_Sphere.eps b/macros/latex/contrib/annot_pro/examples/graphics/APB_Logo_Sphere.eps Binary files differnew file mode 100644 index 0000000000..80c8438b45 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/graphics/APB_Logo_Sphere.eps diff --git a/macros/latex/contrib/annot_pro/examples/graphics/AdobeDon.eps b/macros/latex/contrib/annot_pro/examples/graphics/AdobeDon.eps Binary files differnew file mode 100644 index 0000000000..1f4b8ffc03 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/graphics/AdobeDon.eps diff --git a/macros/latex/contrib/annot_pro/examples/graphics/AdobeDon.pdf b/macros/latex/contrib/annot_pro/examples/graphics/AdobeDon.pdf Binary files differnew file mode 100644 index 0000000000..ace1d19bb1 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/graphics/AdobeDon.pdf diff --git a/macros/latex/contrib/annot_pro/examples/graphics/AeST_Logo.eps b/macros/latex/contrib/annot_pro/examples/graphics/AeST_Logo.eps Binary files differnew file mode 100644 index 0000000000..e885af7f28 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/graphics/AeST_Logo.eps diff --git a/macros/latex/contrib/annot_pro/examples/stamps.pdf b/macros/latex/contrib/annot_pro/examples/stamps.pdf Binary files differnew file mode 100644 index 0000000000..0744239553 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/stamps.pdf diff --git a/macros/latex/contrib/annot_pro/examples/stamps.tex b/macros/latex/contrib/annot_pro/examples/stamps.tex new file mode 100644 index 0000000000..08c0173024 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/stamps.tex @@ -0,0 +1,140 @@ +\documentclass[12pt]{article} +\usepackage[forpaper]{web} +%\usepackage{graphicx} +\usepackage[scandoc]{annot_pro} +\usepackage{array} + +\setAnnotOptions{subject={annot\_pro by AcroTeX},title={D.P. Story}} +\useFullWidthForPaper + +\parindent0pt\parskip6pt + +%\previewtrue + +\def\stampW{1in} +\def\stampH{30pt} +\def\resizeW{1in} + +\newcommand{\showStamp}[2]{#1&\annotpro[type=stamp,name=#1,readonly,widthTo=\resizeW]{Stamp Name: #1}} +%\newcommand{\showStamp}[2]{#1&\resizebox{\resizeW}{!}{\annotpro[type=stamp,name=#1,readonly,widthTo=\resizeW]{Stamp Name: #1}}} + +\begin{document} + +The application will insert the largest possible stamp, while +preserving the aspect ratio. The stamp is centered in the bounding +box. + +The following stamps are shipped with Acrobat in recent years. + +\setlength{\extrarowheight}{15pt} + +\begin{center} +\begin{tabular}{>{\ttfamily}lll} +\multicolumn{3}{>{\Large}c}{Standard.pdf}\\ +\multicolumn{1}{l}{Name (value of \texttt{name} key)} & UI name & Stamp appearance \\ +\showStamp{Approved}{Approved}\\\showStamp{AsIs}{As Is}\\\showStamp{Confidential}{Confidential}\\\showStamp{Departmental}{Departmental}\\\showStamp{Draft}{Draft}\\\showStamp{Experimental}{Experimental}\\\showStamp{Expired}{Expired}\\\showStamp{Final}{Final}\\\showStamp{ForComment}{For Comment}\\\showStamp{ForPublicRelease}{For Public Release}\\\showStamp{NotApproved}{Not Approved}\\\showStamp{NotForPublicRelease}{Not For Public Release}\\\showStamp{Sold}{Sold}\\\showStamp{TopSecret}{Top Secret} +\end{tabular} +\end{center} + +\setlength{\extrarowheight}{18pt} + +\begin{center} +\begin{tabular}{>{\ttfamily}lll} +\multicolumn{3}{>{\Large}c}{StandardBusiness.pdf}\\ +\multicolumn{1}{l}{Name (value of \texttt{name} key)} & UI name & Stamp appearance \\ +\showStamp{SBApproved}{Approved}\\\showStamp{SBCompleted}{Completed}\\\showStamp{SBConfidential}{Confidential}\\\showStamp{SBDraft}{Draft}\\\showStamp{SBFinal}{Final}\\\showStamp{SBForComment}{For Comment}\\\showStamp{SBForPublicRelease}{For Public Release}\\\showStamp{SBInformationOnly}{Information Only}\\\showStamp{SBNotApproved}{Not Approved}\\\showStamp{SBNotForPublicRelease}{Not For Public Release}\\\showStamp{SBPreliminaryResults}{Preliminary Results}\\\showStamp{SBVoid}{Void} +\end{tabular} +\end{center} + + +\begin{center} +\begin{tabular}{>{\ttfamily}lll} +\multicolumn{3}{>{\Large}c}{SignHere.pdf}\\ +\multicolumn{1}{l}{Name (value of \texttt{name} key)} & UI name & Stamp appearance \\ +\showStamp{SBRejected}{Rejected}\\\showStamp{SHAccepted}{Accepted}\\\showStamp{SHInitialHere}{Initial Here}\\\showStamp{SHSignHere}{Sign Here}\\\showStamp{SHWitness}{Witness} +\end{tabular} +\end{center} + +\newpage + +\begin{center} +\begin{tabular}{>{\ttfamily}lll} +\multicolumn{3}{>{\Large}c}{Dynamic.pdf}\\ +\multicolumn{1}{l}{Name (value of \texttt{name} key)} & UI name & Stamp appearance \\ +\showStamp{\#DApproved}{Approved}\\\showStamp{\#DConfidential}{Confidential}\\\showStamp{\#DReceived}{Received}\\\showStamp{\#DReviewed}{Reviewed}\\\showStamp{\#DRevised}{Revised} +\end{tabular} +\end{center} + + +Each stamp in the above table has a name that begins with the \texttt{\#} character. When using +\textsf{annot\_pro}, use \verb!\#! instead of \texttt{\#}, like so, +\verb!name=\#DApproved!. + +\newpage + +The following three sets were at one time shipped with Acrobat, you may not have some of these. + +\begin{center} +\begin{tabular}{>{\ttfamily}lll} +\multicolumn{3}{>{\Large}c}{Pointers.pdf}\\ +\multicolumn{1}{l}{Name (value of \texttt{name} key)} & UI name & Stamp appearance \\ +\showStamp{PointersBogus}{Bogus}\\\showStamp{PointersBug}{Bug}\\\showStamp{PointersDOA}{DOA}\\\showStamp{PointersFYEO}{For Your Eyes Only}\\\showStamp{PointersFix}{Fix}\\\showStamp{PointersNuke}{Nuke This}\\\showStamp{PointersOptimize}{Optimize}\\\showStamp{PointersRedFlag}{Red Flag}\\\showStamp{PointersValidate}{Validate}\\\showStamp{PointersWarning}{Warning}\\\showStamp{PointersWhen}{When?} +\end{tabular} +\end{center} + +\def\resizeW{.5in} + +\begin{center} +\begin{tabular}{>{\ttfamily}lll} +\multicolumn{3}{>{\Large}c}{Faces.pdf}\\ +\multicolumn{1}{l}{Name (value of \texttt{name} key)} & UI name & Stamp appearance \\ +\showStamp{FacesEcstatic}{Ecstatic}\\\showStamp{FacesElectric}{Electric}\\\showStamp{FacesGrumpy}{Grumpy}\\\showStamp{FacesHappy}{Happy}\\\showStamp{FacesHurt}{Hurt}\\\showStamp{FacesNeutral}{Neutral}\\\showStamp{FacesSmirk}{Smirk}\\\showStamp{FacesSurprised}{Surprised}\\\showStamp{FacesWorried}{Worried}\\\showStamp{FacesWow}{Wow}\\\showStamp{FacesZippy}{Zippy} +\end{tabular} +\end{center} + +\def\resizeW{1in} + +\begin{center} +\begin{tabular}{>{\ttfamily}lll} +\multicolumn{3}{>{\Large}c}{Words.pdf}\\ +\multicolumn{1}{l}{Name (value of \texttt{name} key)} & UI name & Stamp appearance \\ +\showStamp{WordsAGenuineFind}{A Genuine Find}\\\showStamp{WordsBigSavings}{Big Savings!}\\\showStamp{WordsDeals}{Deals}\\\showStamp{WordsHappyBirthday}{Happy Birthday}\\\showStamp{WordsHot}{Hot}\\\showStamp{WordsLookWhatsNew}{Look What's New}\\\showStamp{WordsNeato}{Neato!}\\\showStamp{WordsTheBestJustGotBetter}{The Best Just Got Better} +\end{tabular} +\end{center} + +\def\resizeW{.5in} + +\begin{center} +\begin{tabular}{>{\ttfamily}lll} +\multicolumn{3}{>{\Large}c}{CompareMarkers.pdf (Acrobat DC)}\\ +\multicolumn{1}{l}{Name (value of \texttt{name} key)} & UI name & Stamp appearance \\ +\showStamp{CompareMarkerAdd}{Marker Add}\\ +\showStamp{CompareMarkerRemove}{Marker Remove}\\ +\showStamp{CompareMarkerChange}{Marker Change} +\end{tabular} +\end{center} + +Annot: \annotpro[type=stamp,name=\#AST,widthTo=2in,rotate=45]{Annot\_pro rocks!} + + +\end{document} + + +\showStamp{CompareMarkerAdd}{Marker Add} +\showStamp{CompareMarkerRemove}{Marker Remove} +\showStamp{CompareMarkerChange}{Marker Change} + +tightVNC +\begin{tooltip}[optional args]{arg1}{arg2} +\begin{equation} \label{eq1} +x=y +\end{equation} +\end{tooltip} + +typeset document ... +text... +x=y (1) +more text.... +more... + +Recall equation (1) (tool tip) diff --git a/macros/latex/contrib/annot_pro/examples/text-markup.pdf b/macros/latex/contrib/annot_pro/examples/text-markup.pdf Binary files differnew file mode 100644 index 0000000000..63584f73b0 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/text-markup.pdf diff --git a/macros/latex/contrib/annot_pro/examples/text-markup.tex b/macros/latex/contrib/annot_pro/examples/text-markup.tex new file mode 100644 index 0000000000..e903602910 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/text-markup.tex @@ -0,0 +1,107 @@ +\documentclass{article} +\usepackage[designiv,extended]{web} +\usepackage[richtext,dblevel=1]{annot_pro} + +\title{text markup annotations} +\author{D. P. Story} +\email{dpstory@acrotex.net} +\subject{text markup annotations} +\keywords{highlight, underline, squiggly, strikeout, pdf annotations, AcroTeX} +\university {Acro\TeX.NeT} +\version{1.0} + + + +%\usepackage{lucidbry} + +% we increase the right margin width to accommodate a margin note +\addtoWebWidth{.5in} +\resetmargins{}{\incby+.5in}{}{} +\setlength{\marginparsep}{4pt} + +% try uncommenting the first or second command below +%\mlMarksOn +%\turnSyllbCntOn + +\begin{textboxpara} +\rtpara{mypara}{\it{This is italic}, whereas \bf{this is bold}, but wait, we can do +\it{\bf{bold and italic}}. We can \sup{raise} or \sub{lower} text. + \br\spc\spc + This is a second paragraph. At your earliest convenience, go to the AcroTeX.Net web site: + \br\br\span{ulstyle=ul,color=0000FF}{http://www.acrotex.net} (URLs are not supported.) +} +\end{textboxpara} +\setRVVContent{mypara}{mypara} + +\setAnnotOptions{subject={An AcroTeX Communiqu\'e},title={D. P. Story}} + +\parindent0pt +\parskip4pt + +\begin{document} + +\makeinlinetitle % defined in web + +%\begin{center} +% Extending \textsf{annot\_pro} to include\\ +% text markup annotations +%\end{center} + +Syntax:\\ +\verb!\annotpro[type=<type>,<options>]{<content>}{<text>}!\\[3pt] +where, \verb~type=highlight|underline|squiggly|strikeout~ + +\textbf{Highlight:} + \annotpro[type=highlight]{Try to remember this, it's important}{A + \emph{highlight} text markup annotation: Let's extend this text to cross to + the next line.} + +\textbf{Underline:} + \annotpro[type=underline]{Memorize this passage}{An \emph{underline} text + \emph{markup} annotation: Let's extend this text to cross to the next + line.} + +\textbf{Squiggly:} + \annotpro[type=squiggly]{This needs revision}{An \emph{squiggly underline} + text markup annotation: Let's extend this text to cross to the next line.} + +\textbf{Strike-Out:} + \annotpro[type=strikeout]{Nonsense!}{An \emph{strikeout} text markup + annotation: Let's extend this text to cross to the next line.} + +% we are not breaking at an hyphenated word, too bad +\annotpro[type=underline,crackat=37,color=blue]{Memorize this passage}{An +\emph{underline} text \emph{markup} annotation: Let's extend this text to +cross to the next line. We are not near a page boundary, so we must simulate +cracking up the text markup annotation.} + +Here's the same example as above, but this time, we'll simulate a page break +and use the \texttt{copycontent} option. + +\begingroup % make the next definition local +\def\pb{\penalty-10 \rule{\linewidth}{.4pt}\makebox[0pt][l]{\hspace{\marginparsep}\small page break}\par\smallskip}%\turnSyllbCntOn +\annotpro[type=underline,crackat=37,copycontent,crackinsat=\pb]{Memorize this + passage}{An \emph{underline} text \emph{markup} annotation: Let's extend this + text to cross to the next line. We are not near a page boundary, so we must simulate + cracking up the text markup annotation.} +\endgroup + +\smallskip +\textbf{Rich text:} We use \texttt{richtext=mypara}. \annotpro[type=squiggly]{richtext=mypara}{An \emph{squiggly underline} + text markup annotation: Let's extend this text to cross to the next line.} + + +\smallskip +This next example uses the \texttt{hidden} option; this will hide the comment completely +as well as the underlining appearance. When the user presses the push button labeled `C', +the comment becomes visible. + +%\textbf{Underline:} + \annotpro[type=underline,hidden]{Memorize this passage}{An \emph{underline} + text \emph{markup} annotation: Let's extend this text to cross to the next + line.} \pushButton[\S{S}\textSize{0}\CA{C}\TU{Press to toggle visibility of this comment}\A{\JS{% var + annot=this.getAnnot({nPage:this.pageNum,cName:"\currentAnnotName"});\r + annot.hidden=!annot.hidden;}}]{btn}{}{9bp} This button will work in + \textsf{Acrobat Reader} and \textsf{PDF-Exchange Viewer}. + +\end{document} diff --git a/macros/latex/contrib/annot_pro/examples/textbox.pdf b/macros/latex/contrib/annot_pro/examples/textbox.pdf Binary files differnew file mode 100644 index 0000000000..a32925937f --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/textbox.pdf diff --git a/macros/latex/contrib/annot_pro/examples/textbox.tex b/macros/latex/contrib/annot_pro/examples/textbox.tex new file mode 100644 index 0000000000..9c2f460078 --- /dev/null +++ b/macros/latex/contrib/annot_pro/examples/textbox.tex @@ -0,0 +1,62 @@ +\documentclass[12pt]{article} +\usepackage[web={tight*,designiii}]{aeb_pro} +\usepackage[useTextBox]{annot-pro} + +\title{The \textsf{annot\_pro} Package\texorpdfstring{\\[2ex]}{: }The text box annotation} +\author{D. P. Story} +\university{Acro\negthinspace\TeX.Net} +\email{dpstory@acrotex.net} +\subject{Acrobat Text Box annotation} +\keywords{AcroTeX, AeB Pro, Acrobat annotations} + +\DeclareInitView +{% + layoutmag={mag=100}, + windowoptions={fit} +} + + +\newcommand{\cs}[1]{\texttt{\char`\\#1}} + +\parskip6pt +\parindent0pt + +\reversemarginpar + +\convertcolorspec{named}{webbrown}{HTML}{\htmlWebBrown} +\setAnnotOptions{subject={AcroTeX Communiqu\'e},title={D. P. Story}} + +\begin{textboxpara} +\rtpara[color=\htmlWebBrown]{para1}{\spc\spc\spc\spc Now is the time for + \span{style={strikeit,bold},color=ff0000}{\it{\bf{J\374rgen}}} and all + good men to come to the aid of \it{their} \bf{country}. Now is also the + \sup{time} for \span{style=italic}{all good} women to do the same.\br\spc\spc\spc\spc + This is a second paragraph. I hope we can all go to the AcroTeX.Net website at + \span{ulstyle=ul,color=0000FF}{http://www.acrotex.net}.\br\br + \span{size=14.5,color=000000}{\uHex{4EE4}}} +\end{textboxpara} +\setRVVContent{demo-para}{para1} + +\begin{document} + +\maketitle + +The \textsf{Text Box} annotation is a rectangular region into which the user +can type rich text content. It can be moved around easily. The \textsf{Text +Box} can also be pre-populated with rich text using the {\LaTeX} markup +described in the documentation of the \textsf{annot\_pro} package. The +\textsf{Text Box} below has a transparent background (move it on top of this +paragraph), a cloud border, and rich text including a unicode character not +normally available to {\LaTeX} users. The annotation version does not support +multiple paragraphs, so I `artificially' created several `paragraphs' using +\cs{br} and indented the `paragraphs' using the \cs{spc} command; this +paragraph simulation is, of course, optional. +\begin{center} +\annotpro[title=dpstory, + type=textbox,borderstyle=cloud1,borderwidth=1, + width=3in,height=16bp*9, + subject=Testing the Text Box (FreeText), + bgcolor,bcolor=red]{richtext=demo-para} +\end{center} + +\end{document} |