summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pdfcomment
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/pdfcomment
Initial commit
Diffstat (limited to 'macros/latex/contrib/pdfcomment')
-rw-r--r--macros/latex/contrib/pdfcomment/README.md21
-rw-r--r--macros/latex/contrib/pdfcomment/doc/CHANGES317
-rw-r--r--macros/latex/contrib/pdfcomment/doc/INSTALL15
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example.pdfbin0 -> 131604 bytes
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example.tex185
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example_latex_dvipdfmx.pdfbin0 -> 34411 bytes
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example_latex_dvipdfmx.tex186
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example_latex_dvips_ps2pdf.pdfbin0 -> 556292 bytes
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example_latex_dvips_ps2pdf.tex184
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example_math_markup.pdfbin0 -> 196764 bytes
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example_math_markup.tex117
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example_xelatex.pdfbin0 -> 47838 bytes
-rw-r--r--macros/latex/contrib/pdfcomment/doc/example_xelatex.tex193
-rw-r--r--macros/latex/contrib/pdfcomment/doc/manifest.txt31
-rw-r--r--macros/latex/contrib/pdfcomment/doc/pdfcomment.pdfbin0 -> 171655 bytes
-rw-r--r--macros/latex/contrib/pdfcomment/doc/pdfcomment.tex684
-rw-r--r--macros/latex/contrib/pdfcomment/doc/pdfcomment_de.pdfbin0 -> 176048 bytes
-rw-r--r--macros/latex/contrib/pdfcomment/doc/pdfcomment_de.tex694
-rw-r--r--macros/latex/contrib/pdfcomment/pdfcomment.sty3263
19 files changed, 5890 insertions, 0 deletions
diff --git a/macros/latex/contrib/pdfcomment/README.md b/macros/latex/contrib/pdfcomment/README.md
new file mode 100644
index 0000000000..fb62926eed
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/README.md
@@ -0,0 +1,21 @@
+# README #
+
+For a long time pdflatex has offered the command `\pdfannot` for inserting
+arbitrary PDF annotations. However, the command is presented in
+a form where additional knowledge of the definition of the PDF format is
+indispensable. This package is an answer to the – occasional – questions
+in newsgroups, about how one could use the comment function of Adobe
+Reader. At least for the writer of LaTeX code, the package offers a
+convenient and user-friendly means of using `\pdfannot` to provide comments
+in PDF files. Since version v1.1, pdfcomment.sty also supports:
+
+ LaTeX -> dvips -> ps2pdf, LaTeX -> dvipdfmx, XeLaTeX and LuaLaTeX
+
+Unfortunately, support of PDF annotations by PDF viewers may vary.
+The reference viewer for the development of this package is Adobe Reader.
+
+License: **LPPL**
+
+Changes in v2.4a:
+
+* fix issue #22: fix "Wrong driver 'hpdftex.def'" warning when using `lualatex`
diff --git a/macros/latex/contrib/pdfcomment/doc/CHANGES b/macros/latex/contrib/pdfcomment/doc/CHANGES
new file mode 100644
index 0000000000..8cc5613aa0
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/CHANGES
@@ -0,0 +1,317 @@
+=== pdfcomment.sty ===
+
+-- pdfcomment.sty (v2.4a) (<- v2.4) (Commit: f467678cc1b5aaf7a008a31c29de2f55e98ecc17)
+
+2018/11/01 Bugfix: fix "Wrong driver `hpdftex.def'" warning when using lualatex [jk]
+
+
+
+-- pdfcomment.sty (v2.4) (<- v2.3.2dev 2016/06/13) (Commit: 0ce1f75284cf0cba7956076ebccac32c7f181f31)
+
+2016/05/29 compatibility fix for luatex v0.85+ [jk]
+ by loading the luatex85 package
+
+2016/05/29 upgraded obsolete datetime to datetime2 [jk]
+
+2016/06/13 Bugfix: incorrect positions of PDF text annotations with dvips [jk]
+ removed \vspace{\normalbaselineskip}
+
+
+
+-- pdfcomment.sty (v2.3b) (<- v2.3.1dev 2015/04/10) (Commit: 382b38b2e17e4853fbc537250aabc6c42160df2a)
+
+2012/09/30 added 'pdfencoding=auto' while loading hyperref [jk]
+ Needed for Unicode bookmarks in XeTeX and LuaTeX
+
+2015/04/10 Bugfix: incorrect vertical position of superscripts in \pdftooltip [jk]
+
+ reported and patched by Ross Moore
+
+2015/04/10 Bugfix: change zero width in \pdfcomment and \pdfmargincomment [jk]
+ to make the comments visible in both evince and the internal viewer of texstudio
+
+ reported by shaniaki (BitBucket #7)
+
+2015/04/23 improve appearance of tooltips with Mac Preview (at least)
+
+ feature request by Ross Moore
+
+2015/09/08 expand comment argument in \pdftooltip before pushing it through \pdfstringdef
+
+ feature request by Robert Terwilliger (BitBucket #18)
+
+2016/03/26 dropped support for \pdfreply
+
+
+-- pdfcomment.sty (v2.3a) (<- v2.3 2012/09/28) (Commit: 0752b119ceff2e866fb7a00331661bff57113bbd)
+
+2012/09/28 Bugfix: problem with boxes around tooltips [jk]
+ spurious backslash in "/Ff/65536\space%" in line 2967, see:
+ https://bitbucket.org/kleberj/pdfcomment/issue/8/pdftooltip-tooltip-area-is-displayed-like
+ http://tex.stackexchange.com/questions/34698/strange-appearance-of-tooltips-produced-by-pdfcomment
+
+ reported by: diabonas
+
+-- pdfcomment.sty (v2.3) (<- v2.2.16dev 2012/03/13) (Commit: ad8cf0b2bed753142c5f96bdc584e5a89c7285ea)
+
+2012/03/07 reimplemented \pdfmarkupcomment by using soulpos.sty [jk]
+ (old implementation of twocolumn mode dumped)
+ much better support of non standard text cases, like:
+ \twocolumn: feature request by: René Schwarz, Thomas Feller, Til Birnstiel
+ setspace.sty: feature request by: Andrew Dawson
+ enumerate, itemize, ...
+
+2012/08/11 added support for twocolumn mode in \pdfsidelinecomment [jk]
+
+2012/07/04 added option local to \pdfcommentsetup [jk]
+
+ feature request by: Florent Chervet
+
+-- pdfcomment.sty (v2.2a) (<- v2.2 2012/01/25)
+
+2012/01/25 revised documentation [jk]
+ project moved to https://bitbucket.org/kleberj/pdfcomment/
+
+-- pdfcomment.sty (v2.2) (<- v2.1.8dev 2011/05/21) -- (svn rev 16 (-> SVN repository BerliOS))
+
+2011/05/23 revised documentation [jk]
+ added information about escape commands in \pdfstringdef
+ used for conversion of comments to PDFDocEncoding/PDFUnicode
+
+ feature request by: Max Funk
+
+2011/05/21 added support for mathmode in \pdftooltip [jk]
+
+2011/05/19 added \pdftooltip which allows annotating objects with tooltips [jk]
+
+2011/05/01 revised automatic deleting of StrikeOut markup comments (option printSOfinal), [jk]
+ if final=true or disable=true.
+ Option SOSpace is no longer needed
+
+2011/03/22 allow setting of disable globally [jk]
+ \pdfcommentsetup{disable} + \pdfcomment[disable=false]{comment}
+ => will enable this single PDF annotation
+
+ feature request by: Zvi Gilboa
+
+2011/01/18 added options printSOfinal,SOspace [jk]
+ printSOfinal=false will not typeset the markup text in a StrikeOut annotation
+ if the option final or disable is used!
+ SOspace=false will not add a space in front of the markup text,
+ which is not wanted in some cases (e.g. start of a new paragraph)
+
+ feature request by: Marcel Dausend
+
+-- pdfcomment.sty (v2.1) (<- v2.02dev 2010/12/11) -- (svn rev 61)
+
+2010/12/11 added support for PDF reply system [jk]
+ \pdfcomment[avatar=Joe,id=1]{comment}
+ \pdfreply[avatar=Bob,id=2,replyto=1]{reply to comment}
+ works for pdflatex only!
+
+2010/11/25 added options id,date,timezone [jk]
+
+2010/11/25 added support for new icon CrossHairs (Adobe Reader X) [jk]
+
+2010/11/25 Bugfix: problem with \pdfmarkupcomment with page break [jk]
+
+-- pdfcomment.sty (v2.0) (<- v1.63dev 2010/11/08) -- (svn rev 56)
+
+2010/11/08 Bugfix: unwanted whitespace before comment commands [jk]
+ -> added \unskip
+ This removes whitespace before comment commands
+ and may change the reference point for hoffset
+ -> added global option version (1|2(default))
+ version=1 will preserve the old behavior
+ for old documents
+
+ reported by: Stefan Pinnow
+
+2010/11/05 added local option disable to all comment commands [jk]
+ to "switch off" single comments
+
+ feature request by: Stefan Pinnow
+
+2010/11/05 changed definitions of options open and disable [jk]
+ to choicekey* to check valid option values (true|false)
+
+ feature request by: Jannis von Buttlar
+
+-- pdfcomment.sty (v1.6) (<- v1.53dev 2010/08/07) -- (svn rev 51)
+
+2010/08/04 added support for using \pdfmarkupcomment in math mode [jk]
+
+ feature request by: Ross Moore (he also contributed ideas and code)
+
+-- pdfcomment.sty (v1.5e) (<- v1.5d 2010/06/01) -- (svn rev 48)
+
+2010/06/11 Bugfix: empty line, \pdfcomment, empty line produced two new [jk]
+ paragraphs even in final mode
+
+ reported by: Marc-André Michel
+
+2010/05/05 revision of option declaration (code clean up) [jk] (svn rev 47)
+
+-- pdfcomment.sty (v1.5d) (<- v1.5c 2010/03/09) -- (svn rev 46)
+
+2010/03/16 Bugfix: faulty expansion broke hyperref's auto corrected conversions [jk]
+ of LaTeX commands like \$ or \textCR to PDFDocEncoding or
+ PDFUnicode in comments
+
+ reported by: Guillaume Millet
+
+-- pdfcomment.sty (v1.5c) (<- v1.5b 2009/11/10) -- (svn rev 45)
+
+2010/03/09 Bugfix: \pdfsidelinecomment only worked on pages with arabic page numbers [jk]
+
+ reported by: Fritz Moore
+
+-- pdfcomment.sty (v1.5b) (<- v1.5a 2009/11/04) -- (svn rev 44)
+
+2009/11/10 new option deadline [jk]
+ -> new list styles with deadline
+
+ feature request by: Michael Niedermair
+
+-- pdfcomment.sty (v1.5a) (<- v1.5 2009/10/28) -- (svn rev 43)
+
+2009/11/04 added options liststyle and heading to command \listofpdfcomments [jk]
+ -> \setliststyle, \defineliststyle
+
+2009/11/04 added checks for undefined avatars, styles and liststyles [jk]
+
+-- pdfcomment.sty (v1.5) (<- v1.4c 2009/09/20) -- (svn rev 42)
+
+2009/10/28 new command \listofpdfcomments [jk]
+
+ feature request by: Michael Niedermair
+
+2009/10/28 revision of documentation [jk]
+
+-- pdfcomment.sty (v1.4c) (<- v1.4b 2009/09/20) -- (svn rev 41)
+
+2009/09/21 revision of documentation [jk]
+ added abbreviations for standard 14 fonts
+ clarification of font embedding in PDF free text annotations
+ minor bug fix
+
+-- pdfcomment.sty (v1.4b) (<- v1.4a 2009/07/13) -- (svn rev 40)
+
+2009/07/23 Bugfix: problem with different default values for page size [jk] (svn rev 40)
+ with pdflatex (dvi mode) and dvips/dvipdfmx
+ => better specify page size with an option like a4paper
+
+ Bugfix: changed procedure of loading hyperref to prevent warnings
+ with dvipdfmx
+
+ reported by: Jin-Hwan Cho
+
+-- pdfcomment.sty (v1.4a) (<- v1.4 2009/04/01) -- (svn rev 39)
+
+2009/07/13 Bugfix: (pdf}latex crashed with pdf text annoatations in tabulars [jk] (svn rev 39)
+ error with \vskip in hmode within \marginnote
+ changed to \vspace in \pdfcomment and \pdfmargincomment / deleted \vss [uf]
+ changed \baselineskip (=0 in tables) -> \normalbaselineskip [hv]
+ see Msg-ID: <h377a3$avp$1@kleberj.eternal-september.org> ff
+
+ reported by: Thomas König
+ fixed by: Ulrike Fischer, Herbert Voß
+
+-- pdfcomment.sty (v1.4) (<- v1.35dev 2009/04/01) -- (svn rev 36)
+
+2009/03/26 merged "line annotations" [jk] (svn rev 35)
+ \pdflinecomment, \pdfpolylinecomment
+ -> \pdflinecomment (type=line|polyline|polygon)
+
+2009/03/26 merged some options [jk] (svn rev 34)
+ line,calloutline,vertices -> line
+ type,polytype -> type
+
+2009/03/20 new annotation type: sideline [jk] (svn rev 33)
+ -> pdfsidelinecomment
+ new option: linesep
+
+ change from linend, lineends -> linebegin, lineend
+
+2009/03/18 new annotation types: line and polyline (polytype=polyline|polygon) [jk] (svn rev 31)
+ -> \pdflinecomment, pdfpolylinecomment
+ new options: line, lineends, caption, captionhoffset, captionvoffset,
+ vertices, polytpye
+
+2009/03/17 new annotation types: square and circle annotations [jk] (svn rev 30)
+ -> \pdfsquarecomment, \pdfcirclecomment
+ new option: icolor ("inner" color)
+
+2009/03/16 revision of \pdffreetextcomment [jk] (svn rev 28)
+ implementation of more features of pdf freetext annotations
+ -> new options: font, fontsize, fontcolor, justification,
+ borderstyle, dashstyle, linewidth, bse, bsei,
+ type, calloutline, lineend
+
+-- pdfcomment.sty (v1.3) (<- v1.25dev 2009/03/09) -- (svn rev 27)
+
+2009/03/05 new annotation type: text markup annotation [jk] (svn rev 24)
+ -> \pdfmarkupcomment, new option markup
+
+2009/02/24 Bugfix: avatar and style system [jk] (svn rev 13)
+ wrong key families (copy and paste)
+
+2009/02/21 code clean up [jk] (svn rev 13)
+ moved repeated code into commands
+
+
+-- pdfcomment.sty (v1.2) (<- v1.13dev 2009/02/19) -- (svn rev 12)
+
+2009/02/15 new annotation type FreeText [jk] (svn rev 11)
+ \pdffreetextcomment
+
+2009/02/15 added style system [jk]
+ for logical split in avatar system
+ personal options -> avatar
+ style options -> style
+ -> combination of avatar=Josef, style=MyComment
+
+2009/02/14 new global style and local command options: [jk] (svn rev 10)
+ voffset, hoffset, width, height, depth, opacity
+
+2009/02/13 added "/F 4" to all annotations to allow printing [jk] (svn rev 8)
+
+ contributed by Christian Feuersänger (pdfmarginpar.sty)
+
+2008/12/17 introduction of avatar system [jk] (svn rev 7)
+ - \defineavatar
+ - \avatar
+ - global and local options (avatar)
+
+
+-- pdfcomment.sty (v1.1) (<- v1.05dev 2008/12/12) -- (svn rev 6)
+
+2008/12/12 disabled global options draft, final, dvipdfmx at "\AtBeginDocument" [jk] (svn rev 5)
+ Using the options draft, final and dvipdfmx in \pdfcommentsetup
+ makes absolutely no sense! Therefore, they are switched off at
+ "\AtBeginDocument" and a warning is issued by xkeyval.sty, if used.
+
+2008/12/10 problems with too old versions of hyperref [jk] (svn rev 4)
+ no \HyColor@XZeroOneThreeFour (hycolor.sty)
+ Change: \RequirePackage{hyperref}[2007/04/09] (v6.76a)
+
+ reported by Gabriel Cardona
+
+2008/12/10 implementation of two new global options [jk] (svn rev 4)
+ draft: pdf annotations are typeset (default)
+ final: pdf annotations are not typeset
+
+2008/12/10 added code for the support of other drivers than pdflatex [jk] (svn rev 2)
+ various changes for the support of
+ latex->dvips->ps2pdf, latex->dvipdfmx, xelatex
+ new option dvipdfmx
+
+ contributed by Alexander Grahn
+
+
+=== pdfcomment bundle ===
+
+-- pdfcomment bundle --
+
+2008/12/07 IPO of pdfcomment on CTAN
+
diff --git a/macros/latex/contrib/pdfcomment/doc/INSTALL b/macros/latex/contrib/pdfcomment/doc/INSTALL
new file mode 100644
index 0000000000..5c491c77b1
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/INSTALL
@@ -0,0 +1,15 @@
+ pdfcomment.sty -- INSTALL
+=============================
+
+All the files ending with .sty have to be installed where TeX can
+find them. Please refer to your TeX distribution's manual for how
+to install additional packages.
+
+According to the TeX Directory Standard (TDS), the files should be
+installed in your local texmf/ tree as follows:
+
+-- *.sty -> localtexmf/tex/latex/pdfcomment/
+-- *.pdf -> localtexmf/doc/latex/pdfcomment/
+-- *.tex -> localtexmf/doc/latex/pdfcomment/
+
+Don't forget to update your FNDB (Filename database). (see: manual) \ No newline at end of file
diff --git a/macros/latex/contrib/pdfcomment/doc/example.pdf b/macros/latex/contrib/pdfcomment/doc/example.pdf
new file mode 100644
index 0000000000..16d2d019a6
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example.pdf
Binary files differ
diff --git a/macros/latex/contrib/pdfcomment/doc/example.tex b/macros/latex/contrib/pdfcomment/doc/example.tex
new file mode 100644
index 0000000000..dce20cbad9
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example.tex
@@ -0,0 +1,185 @@
+% example for pdflatex
+\documentclass{scrartcl}
+\usepackage[english]{babel}
+\usepackage[latin1]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage{microtype}
+\usepackage{lipsum}
+\usepackage[svgnames,rgb]{xcolor}
+\usepackage[absolute]{textpos}
+\usepackage{tikz}
+\usetikzlibrary{calc}
+\usepackage{amssymb,amsmath,array,bm}
+\usepackage[subject={Top1},author={\AA{}nsgar Lund},version=1]{pdfcomment}
+\begin{document}
+\defineavatar{Joe}{author=Joe,color=yellow}
+\defineavatar{Bob}{author=Bob,color=green}
+\definecolor{myblue}{rgb}{0.045,0.278,0.643}
+\colorlet{myorange}{red!30!yellow}
+A\pdfcomment[subject={Top2},author={Daisy Duck},color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{This is a comment.} little Test! \pdfcomment[id=1,color=myblue,subject={Comment2},icon=Note,open=true,hspace=100pt]{This is another comment.} test the hspace!%
+\defineavatar{CaptainJack}{color=myorange,author={Captain Jack}}%
+\definestyle{MyStar}{icon=Star,opacity=0.7,voffset=12pt}%
+\pdfcomment[avatar=CaptainJack,style=MyStar,subject={enough},deadline={2009/11/11 - Josef}]{It's enough now!}
+\pdffreetextcomment[avatar=CaptainJack,height=3cm,type=freetext,subject={freetext},width=4.5cm,voffset=-4.8cm,hoffset=-3.2cm,opacity=0.5,justification=right]{This is also a comment, but it's a FreeText annotation! Your, Captain Jack}
+\pdflinecomment[avatar=CaptainJack,subject={Line1},type=line,opacity=1,line={100 680 250 680},color=green,icolor=blue,caption=top,linebegin={/ROpenArrow},lineend={/OpenArrow},linewidth=2bp,captionhoffset=-5pt,captionvoffset=15pt]{This is a Line comment!}
+\pdffreetextcomment[avatar=CaptainJack,subject={typewriter},height=1.8cm,width=6.8cm,voffset=-7.2cm,hoffset=-1.2cm,opacity=1.0,justification=right,type=typewriter,font=LucidaConsole,fontsize=14pt,fontcolor=CornflowerBlue]{This is a typewriter FreeText annotation!}
+
+\marginnote{\begin{textblock*}{1cm}(7cm,14.5cm)
+\pdffreetextcomment[avatar=CaptainJack,subject={callout},height=1.9cm,width=9cm,opacity=0.5,voffset=0pt,hoffset=0pt,opacity=1.0,font=Georgia,fontsize=9pt,fontcolor=red,justification=left,linewidth=2bp,bse=cloudy,bsei=1.3,type=callout,line={170 515 120 460 200 460},lineend=/ClosedArrow]{This one was placed with absolute coordinates (textpos.sty) (font=Georgia, fontsize=9pt, fontcolor=red, linewidth=2bp, bse=cloudy, bsei=1.3, type=callout, line=\{170 515 120 460 200 460\}, lineend=/ClosedArrow)}
+\end{textblock*}}
+{\small
+\marginnote{\begin{textblock*}{2cm}(6cm,11.9cm){($x_1, y_1$)}\end{textblock*}}
+\marginnote{\begin{textblock*}{2cm}(3cm,13.3cm){($x_2, y_2$)}\end{textblock*}}
+\marginnote{\begin{textblock*}{2cm}(5.6cm,13.6cm){($x_3, y_3$)}\end{textblock*}}
+}
+\pdfmarkupcomment[author={Donald Duck},subject={Strikeout},color=red,markup=StrikeOut]{A little Test!}{Why is this repeated? This is a StrikeOut markup annotation}
+
+\colorlet{KernFarbe}{red}
+\colorlet{HuelleFarbe}{blue}
+\vspace{35mm}
+\begin{tikzpicture}[
+ Huelle/.style = {ball color=HuelleFarbe!25},
+ Kern/.style = {ball color=KernFarbe!25},
+ Proton/.style = {ball color=HuelleFarbe!80},
+ Elektron/.style = {ball color=KernFarbe!80},
+ ]
+
+ \shade[Huelle] (8,0) circle (2cm);
+ \shade[Kern] (8,0) circle (.7cm);
+
+ % Elektronen
+ \foreach \cx/\cy in {8/0,8/.3,8/-.3,8.2/.25,8.2/-.25,%
+ 8.3/.09,8.3/-.09,7.8/.25,7.8/.-.25,7.7/.09,%
+ 7.7/-.09,7.5/.09,8.5/-.09,7.6/-.3,8/-.5,8/.5,8.4/.4}{
+ \shade[Elektron] (\cx,\cy) circle (.6mm);
+ }
+ % Protonen
+ \foreach \cx/\cy in {6.9/-.1,7.4/1.2,7/.7,7.9/1.5,9.2/0.2,%
+ 9/1,7.5/-1.2,7/-0.8,9/-0.8,8.7/-1.2,7.7/-1.5,8.9/.5, %8.6,-1
+ 7/1.3,6.6/.4,9.6/-.31,9.6/.6,8.3/1.2}{
+ \shade[Proton] (\cx,\cy) circle (.6mm);
+ }
+
+ \draw[<-] (8.25,.55) -- +(1.4,1.4) node[above] {Atomkern};
+ \draw[<-] (7,.4) -- +(-1.3,1) node[above] {Atomhülle};
+ \draw[<-] (6.8,-.085) -- +(-1.6,.4) node[above] {Elektron};
+ \draw[<-] (7.5,-.35) -- +(-2,-.7) node[below] {Proton};
+\end{tikzpicture}
+\defineavatar{Newton}{color=lime,subject={Top2},icon=Check,author={Dr. Albertus Newton}}
+\pdfcommentsetup{avatar=Newton}
+\pdfcomment{Wow, that's nice!}
+\defineavatar{Dolittle}{color=NavyBlue,opacity=0.3,open=false,subject={Top1},icon=Circle,author={Prof. Dolittle}}
+\pdfcommentsetup{avatar=Dolittle}\pdfmargincomment{Yeah nice, but stolen from the pgf-Users mailing list!}
+
+\vspace{3cm}
+\pdfmarkupcomment[author={Donald Duck},subject={underline},color=Khaki,opacity=1.0,markup=Underline]{For a long time \texttt{pdflatex} offers the command \texttt{\textbackslash pdfannot} for inserting arbitrary pdf annotations. However, in a form where additional knowledge of the pdf reference is indispensable. \texttt{pdfcomment.sty} is an answer to the -- from time to time -- emerging questions in newsgroups, how one could use the comment function of \texttt{Adobe Reader}. At least out of the LaTeX code \texttt{pdfcomment.sty} offers a convenient and user-friendly possibility to use pdf annotations in pdf files.}{It's better to use dark colors for annotations with lines, as you see! This is a Underline markup annotations} \pdfmargincomment{Holy moly! Can anybody transfer that to real english!}
+
+\pdfmarkupcomment[author={Donald Duck},subject={squiggly},color=Teal,opacity=1.0,markup=Squiggly]{Unfortunately the support of pdf annotations by pdf viewers is only partly available to nonexistent. The reference viewer for the development of this package is \texttt{Adobe Reader}.}{This is a Squiggly markup annotation}
+
+\noindent\pdfsquarecomment[avatar=CaptainJack,subject={square},height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=1cm,opacity=1.0,justification=right,icolor=CornflowerBlue,bse=cloudy,bsei=2.5,linewidth=8pt]{This is a Square annotation!}
+\pdffreetextcomment[avatar=CaptainJack,subject={overlay},height=2.2cm,width=4.8cm,voffset=-2.8cm,hoffset=1.5cm,opacity=1.0,justification=right,type=typewriter,font=PalatinoLinotype,fontsize=13pt,fontcolor=black]{This typewriter annotation overlays the square!}
+\pdfcirclecomment[avatar=CaptainJack,color=blue,subject={circle},height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=8cm,opacity=1.0,justification=right,icolor={yellow},linewidth=12pt,borderstyle=dashed,dashstyle={10 5}]{This is a Circle annotation!}
+\pdflinecomment[type=polyline,avatar=CaptainJack,subject={polyline},opacity=1,line={150 120 260 120 300 150 400 80},color=green,icolor=blue,linebegin={/Slash},lineend={/Diamond},linewidth=3bp,bse=cloudy]{This is a Polyline comment!}
+
+\vspace{3.5cm}
+\pdfmarkupcomment[id=300,author={Donald Duck},subject={highlight},color=yellow,opacity=1.0,markup=Highlight]{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut,
+placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero,
+nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
+Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
+egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna
+fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est,
+iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum.
+Aeneanfaucibus.Morbidolornulla,malesuadaeu,pulvinarat,mollisac,nulla.Curabitur
+auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan
+eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.}{This is a Highlight markup annotations with page break}
+
+\vspace{5cm}
+\pdflinecomment[avatar=CaptainJack,subject={line2},type=line,opacity=1,line={110 620 220 530},color=green,icolor=blue,caption=none,linebegin={/RClosedArrow},lineend={/Circle},linewidth=2bp]{This is another Line comment! Just to show all possible arrows!}
+\pdflinecomment[type=polygon,avatar=CaptainJack,subject={polygon},opacity=1,line={275 590 355 600 400 570 350 530 270 540 276 590},color=green,icolor=CornflowerBlue,linewidth=5bp,bse=cloudy,bsei=2.2]{This is a Polygon comment!}
+
+\begin{pdfsidelinecomment}[avatar=CaptainJack,subject={sideline},opacity=1,color=red,icolor=yellow,caption=inline,linebegin={/Butt},lineend={/Square},linewidth=3bp,linesep=1cm]{ ! Delete ! }
+\lipsum[2-6]
+\end{pdfsidelinecomment}
+
+\vspace{2cm}
+\definestyle{mathpopup}{author={},subject={},color=NavajoWhite,markup=Highlight}
+\[
+\begin{array}{c>{\displaystyle}c}
+ \text{Bernoulli Trials} &
+ \pdfmarkupcomment[style=mathpopup]{P(E)}{Probability of event E: Get exactly k heads in n coin flips.}%
+ =
+ \pdfmarkupcomment[style=mathpopup]{\dbinom{n}{k}}{Number of ways to get exactly k heads in n coin flips}%
+ {\pdfmarkupcomment[style=mathpopup]{p}{Probability of getting heads in one flip}%
+}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{k}{Number of heads}
+ }%
+ \pdfmarkupcomment[style=mathpopup]{(1-p)}{Probability of getting tails in one flip}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{n-k}{Number of tails}%
+ }%
+\end{array}
+\]
+
+\begin{tikzpicture}
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3,0) node (xaxis) [right] {$x$};
+ \draw (0,0) coordinate (a_1) -- (2,1.8) coordinate (a_2);
+ \draw (0,1.5) coordinate (b_1) -- (2.5,0) coordinate (b_2);
+ \coordinate (c) at (intersection of a_1--a_2 and b_1--b_2);
+ \draw[dashed] (yaxis |- c) node[left] {$y'$}
+ -| (xaxis -| c) node[below] {$x'$};
+ %
+ \fill[red] (0,0) circle (2pt);
+ \draw (0,0) node {\pdftooltip{\rule{0pt}{0.5cm}\rule{0.5cm}{0pt}}{Origin}};
+ %
+ \draw[red] (1.5,2) node {\pdftooltip{\textbullet}{1.5,2.0}};
+ %
+ \fill[red] (c) circle (2pt)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {This is the intersection point\textCR of the two lines!}};
+\end{tikzpicture}
+\hspace{1cm}
+\begin{tikzpicture}
+ \draw (1.5,0) node[below] {countries};
+ \draw (0,1) node[left] {\pdftooltip{SCI}{Sausage Consumption Index}};
+ \fill[blue] (0.5,0) rectangle (1,1.2)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ % these calculations are based on scale factor 1 otherwise use:
+ % \dimexpr(scale factor)\dimexpr\x2-\x1\relax\relax
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {USA: 120}};
+ \fill[red] (1.5,0) rectangle (2,1.8)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {Germany: 180}};
+ \fill[green] (2.5,0) rectangle (3,0.65)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {South Africa: 65}};
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3.5,0) node (xaxis) [right] {$x$};
+\end{tikzpicture}
+
+\bigskip\bigskip
+You can use tooltips with simple \pdftooltip{\textcolor{red}{words}}{This is a tooltip!} or chemical notation like: $\pdftooltip{H_{2}SO_{4}}{Sulfuric acid}$
+
+\bigskip\bigskip
+It also works in equations: \[\pdftooltip[mathstyle=\displaystyle]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{little Gauß}\]
+\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/pdfcomment/doc/example_latex_dvipdfmx.pdf b/macros/latex/contrib/pdfcomment/doc/example_latex_dvipdfmx.pdf
new file mode 100644
index 0000000000..f50a141f08
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example_latex_dvipdfmx.pdf
Binary files differ
diff --git a/macros/latex/contrib/pdfcomment/doc/example_latex_dvipdfmx.tex b/macros/latex/contrib/pdfcomment/doc/example_latex_dvipdfmx.tex
new file mode 100644
index 0000000000..16c61a746b
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example_latex_dvipdfmx.tex
@@ -0,0 +1,186 @@
+\documentclass[pagesize]{scrartcl}
+\usepackage[english]{babel}
+\usepackage[latin1]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage{microtype}
+\usepackage{lipsum}
+\usepackage[absolute]{textpos}
+\usepackage[svgnames,dvipdfmx,rgb]{xcolor}
+% define \pgfsysdriver for dvipdfm(x) mode in tikz/pgf
+\def\pgfsysdriver{pgfsys-dvipdfm.def}
+\usepackage{tikz}
+\usetikzlibrary{calc}
+\usepackage{amssymb,amsmath,array,bm}
+\usepackage[subject={Top1},author={\AA{}nsgar Lund},dvipdfmx,version=1]{pdfcomment}
+\begin{document}
+\defineavatar{Joe}{author=Joe,color=yellow}
+\defineavatar{Bob}{author=Bob,color=green}
+\definecolor{myblue}{rgb}{0.045,0.278,0.643}
+\colorlet{myorange}{red!30!yellow}
+A\pdfcomment[subject={Top2},author={Daisy Duck},color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{This is a comment.} little Test! \pdfcomment[id=1,color=myblue,icon=Note,open=true,hspace=100pt]{This is another comment.} test the hspace!%
+\defineavatar{CaptainJack}{color=myorange,author={Captain Jack}}%
+\definestyle{MyStar}{icon=Star,opacity=0.7,voffset=12pt}%
+\pdfcomment[avatar=CaptainJack,style=MyStar]{It's enough now!}
+\pdffreetextcomment[avatar=CaptainJack,subject={Top2},height=3cm,type=freetext,width=4.5cm,voffset=-4.8cm,hoffset=-3.2cm,opacity=0.5,justification=right]{This is also a comment, but it's a FreeText annotation! Your, Captain Jack}
+\pdflinecomment[avatar=CaptainJack,subject={Top2},type=line,opacity=1,line={100 680 250 680},color=green,icolor=blue,caption=top,linebegin={/ROpenArrow},lineend={/OpenArrow},linewidth=2bp,captionhoffset=-5pt,captionvoffset=15pt]{This is a Line comment!}
+\pdffreetextcomment[avatar=CaptainJack,subject={typewriter},height=1.8cm,width=6.8cm,voffset=-7.2cm,hoffset=-1.2cm,opacity=1.0,justification=right,type=typewriter,font=LucidaConsole,fontsize=14pt,fontcolor=CornflowerBlue]{This is a typewriter FreeText annotation!}
+
+\marginnote{\begin{textblock*}{1cm}(7cm,14.5cm)
+\pdffreetextcomment[avatar=CaptainJack,height=1.9cm,width=9cm,opacity=0.5,voffset=0pt,hoffset=0pt,opacity=1.0,font=Georgia,fontsize=9pt,fontcolor=red,justification=left,linewidth=2bp,bse=cloudy,bsei=1.3,type=callout,line={170 515 120 460 200 460},lineend=/ClosedArrow]{This one was placed with absolute coordinates (textpos.sty) (font=Georgia, fontsize=9pt, fontcolor=red, linewidth=2bp, bse=cloudy, bsei=1.3, type=callout, line=\{170 515 120 460 200 460\}, lineend=/ClosedArrow)}
+\end{textblock*}}
+{\small
+\marginnote{\begin{textblock*}{2cm}(6cm,11.9cm){($x_1, y_1$)}\end{textblock*}}
+\marginnote{\begin{textblock*}{2cm}(3cm,13.3cm){($x_2, y_2$)}\end{textblock*}}
+\marginnote{\begin{textblock*}{2cm}(5.6cm,13.6cm){($x_3, y_3$)}\end{textblock*}}
+}
+\pdfmarkupcomment[author={Donald Duck},color=red,markup=StrikeOut]{A little Test!}{Why is this repeated? This is a StrikeOut markup annotation}
+
+\colorlet{KernFarbe}{red}
+\colorlet{HuelleFarbe}{blue}
+\vspace{35mm}
+\begin{tikzpicture}[
+ Huelle/.style = {ball color=HuelleFarbe!25},
+ Kern/.style = {ball color=KernFarbe!25},
+ Proton/.style = {ball color=HuelleFarbe!80},
+ Elektron/.style = {ball color=KernFarbe!80},
+ ]
+
+ \shade[Huelle] (8,0) circle (2cm);
+ \shade[Kern] (8,0) circle (.7cm);
+
+ % Elektronen
+ \foreach \cx/\cy in {8/0,8/.3,8/-.3,8.2/.25,8.2/-.25,%
+ 8.3/.09,8.3/-.09,7.8/.25,7.8/.-.25,7.7/.09,%
+ 7.7/-.09,7.5/.09,8.5/-.09,7.6/-.3,8/-.5,8/.5,8.4/.4}{
+ \shade[Elektron] (\cx,\cy) circle (.6mm);
+ }
+ % Protonen
+ \foreach \cx/\cy in {6.9/-.1,7.4/1.2,7/.7,7.9/1.5,9.2/0.2,%
+ 9/1,7.5/-1.2,7/-0.8,9/-0.8,8.7/-1.2,7.7/-1.5,8.9/.5, %8.6,-1
+ 7/1.3,6.6/.4,9.6/-.31,9.6/.6,8.3/1.2}{
+ \shade[Proton] (\cx,\cy) circle (.6mm);
+ }
+
+ \draw[<-] (8.25,.55) -- +(1.4,1.4) node[above] {Atomkern};
+ \draw[<-] (7,.4) -- +(-1.3,1) node[above] {Atomhülle};
+ \draw[<-] (6.8,-.085) -- +(-1.6,.4) node[above] {Elektron};
+ \draw[<-] (7.5,-.35) -- +(-2,-.7) node[below] {Proton};
+\end{tikzpicture}
+\defineavatar{Newton}{color=lime,subject={Top2},icon=Check,author={Dr. Albertus Newton}}
+\pdfcommentsetup{avatar=Newton}
+\pdfcomment{Wow, that's nice!}
+\defineavatar{Dolittle}{color=NavyBlue,opacity=0.3,open=false,subject={Top1},icon=Circle,author={Prof. Dolittle}}
+\pdfcommentsetup{avatar=Dolittle}\pdfmargincomment{Yeah nice, but stolen from the pgf-Users mailing list!}
+
+\vspace{3cm}
+\pdfmarkupcomment[author={Donald Duck},color=Khaki,opacity=1.0,markup=Underline]{For a long time \texttt{pdflatex} offers the command \texttt{\textbackslash pdfannot} for inserting arbitrary pdf annotations. However, in a form where additional knowledge of the pdf reference is indispensable. \texttt{pdfcomment.sty} is an answer to the -- from time to time -- emerging questions in newsgroups, how one could use the comment function of \texttt{Adobe Reader}. At least out of the \LaTeX{} code \texttt{pdfcomment.sty} offers a convenient and user-friendly possibility to use pdf annotations in pdf files}{It's better to use dark colors for annotations with lines, as you see! This is a Underline markup annotations}. \pdfmargincomment{Holy moly! Can anybody transfer that to real english!}
+
+\pdfmarkupcomment[author={Donald Duck},color=Teal,opacity=1.0,markup=Squiggly]{Unfortunately the support of pdf annotations by pdf viewers is only partly available to nonexistent. The reference viewer for the development of this package is \texttt{Adobe Reader}.}{This is a Squiggly markup annotation}
+
+\noindent\pdfsquarecomment[avatar=CaptainJack,subject={Top2},height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=1cm,opacity=1.0,justification=right,icolor=CornflowerBlue,bse=cloudy,bsei=2.5,linewidth=8pt]{This is a Square annotation!}
+\pdffreetextcomment[avatar=CaptainJack,subject={overlay},height=2.2cm,width=4.8cm,voffset=-2.8cm,hoffset=1.5cm,opacity=1.0,justification=right,type=typewriter,font=PalatinoLinotype,fontsize=13pt,fontcolor=black]{This typewriter annotation overlays the square!}
+\pdfcirclecomment[avatar=CaptainJack,color=blue,subject={Top2},height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=8cm,opacity=1.0,justification=right,icolor={yellow},linewidth=12pt,borderstyle=dashed,dashstyle={10 5}]{This is a Circle annotation!}
+\pdflinecomment[type=polyline,avatar=CaptainJack,subject={Top2},opacity=1,line={150 120 260 120 300 150 400 80},color=green,icolor=blue,linebegin={/Slash},lineend={/Diamond},linewidth=3bp,bse=cloudy]{This is a Polyline comment!}
+
+\vspace{3.5cm}
+\pdfmarkupcomment[author={Donald Duck},color=yellow,opacity=1.0,markup=Highlight]{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut,
+placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero,
+nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
+Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
+egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna
+fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est,
+iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum.
+Aeneanfaucibus.Morbidolornulla,malesuadaeu,pulvinarat,mollisac,nulla.Curabitur
+auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan
+eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.}{This is a Highlight markup annotations with page break}
+
+\vspace{5cm}
+\pdflinecomment[avatar=CaptainJack,subject={Top2},type=line,opacity=1,line={110 620 220 530},color=green,icolor=blue,caption=none,linebegin={/RClosedArrow},lineend={/Circle},linewidth=2bp]{This is another Line comment! Just to show all possible arrows!}
+\pdflinecomment[type=polygon,avatar=CaptainJack,subject={Top2},opacity=1,line={275 590 355 600 400 570 350 530 270 540 276 590},color=green,icolor=CornflowerBlue,linewidth=5bp,bse=cloudy,bsei=2.2]{This is a Polygon comment!}
+
+\begin{pdfsidelinecomment}[avatar=CaptainJack,subject={Top2},opacity=1,color=red,icolor=yellow,caption=inline,linebegin={/Butt},lineend={/Square},linewidth=3bp,linesep=1cm]{ ! Delete ! }
+\lipsum[2-6]
+\end{pdfsidelinecomment}
+
+\vspace{2cm}
+\definestyle{mathpopup}{author={},subject={},color=NavajoWhite,markup=Highlight}
+\[
+\begin{array}{c>{\displaystyle}c}
+ \text{Bernoulli Trials} &
+ \pdfmarkupcomment[style=mathpopup]{P(E)}{Probability of event E: Get exactly k heads in n coin flips.}%
+ =
+ \pdfmarkupcomment[style=mathpopup]{\dbinom{n}{k}}{Number of ways to get exactly k heads in n coin flips}%
+ {\pdfmarkupcomment[style=mathpopup]{p}{Probability of getting heads in one flip}%
+}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{k}{Number of heads}
+ }%
+ \pdfmarkupcomment[style=mathpopup]{(1-p)}{Probability of getting tails in one flip}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{n-k}{Number of tails}%
+ }%
+\end{array}
+\]
+
+\begin{tikzpicture}
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3,0) node (xaxis) [right] {$x$};
+ \draw (0,0) coordinate (a_1) -- (2,1.8) coordinate (a_2);
+ \draw (0,1.5) coordinate (b_1) -- (2.5,0) coordinate (b_2);
+ \coordinate (c) at (intersection of a_1--a_2 and b_1--b_2);
+ \draw[dashed] (yaxis |- c) node[left] {$y'$}
+ -| (xaxis -| c) node[below] {$x'$};
+ %
+ \fill[red] (0,0) circle (2pt);
+ \draw (0,0) node {\pdftooltip{\rule{0pt}{0.5cm}\rule{0.5cm}{0pt}}{Origin}};
+ %
+ \draw[red] (1.5,2) node {\pdftooltip{\textbullet}{1.5,2.0}};
+ %
+ \fill[red] (c) circle (2pt)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {This is the intersection point\textCR of the two lines!}};
+\end{tikzpicture}
+\hspace{1cm}
+\begin{tikzpicture}
+ \draw (1.5,0) node[below] {countries};
+ \draw (0,1) node[left] {\pdftooltip{SCI}{Sausage Consumption Index}};
+ \fill[blue] (0.5,0) rectangle (1,1.2)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ % these calculations are based on scale factor 1 otherwise use:
+ % \dimexpr(scale factor)\dimexpr\x2-\x1\relax\relax
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {USA: 120}};
+ \fill[red] (1.5,0) rectangle (2,1.8)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {Germany: 180}};
+ \fill[green] (2.5,0) rectangle (3,0.65)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {South Africa: 65}};
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3.5,0) node (xaxis) [right] {$x$};
+\end{tikzpicture}
+
+\bigskip\bigskip
+You can use tooltips with simple \pdftooltip{\textcolor{red}{words}}{This is a tooltip!} or chemical notation like: $\pdftooltip{H_{2}SO_{4}}{Sulfuric acid}$
+
+\bigskip\bigskip
+It also works in equations: \[\pdftooltip[mathstyle=\displaystyle]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{little Gauß}\]
+\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/pdfcomment/doc/example_latex_dvips_ps2pdf.pdf b/macros/latex/contrib/pdfcomment/doc/example_latex_dvips_ps2pdf.pdf
new file mode 100644
index 0000000000..f686e263e4
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example_latex_dvips_ps2pdf.pdf
Binary files differ
diff --git a/macros/latex/contrib/pdfcomment/doc/example_latex_dvips_ps2pdf.tex b/macros/latex/contrib/pdfcomment/doc/example_latex_dvips_ps2pdf.tex
new file mode 100644
index 0000000000..77b8e66f0b
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example_latex_dvips_ps2pdf.tex
@@ -0,0 +1,184 @@
+\documentclass{scrartcl}
+\usepackage[english]{babel}
+\usepackage[latin1]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage{microtype}
+\usepackage{lipsum}
+\usepackage[svgnames,rgb]{xcolor}
+\usepackage[absolute]{textpos}
+\usepackage{tikz}
+\usetikzlibrary{calc}
+\usepackage{amssymb,amsmath,array,bm}
+\usepackage[subject={Top1},author={\AA{}nsgar Lund},version=1]{pdfcomment}
+\begin{document}
+\defineavatar{Joe}{author=Joe,color=yellow}
+\defineavatar{Bob}{author=Bob,color=green}
+\definecolor{myblue}{rgb}{0.045,0.278,0.643}
+\colorlet{myorange}{red!30!yellow}
+A\pdfcomment[subject={Top2},author={Daisy Duck},color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{This is a comment.} little Test! \pdfcomment[id=1,color=myblue,icon=Note,open=true,hspace=100pt]{This is another comment.} test the hspace!%
+\defineavatar{CaptainJack}{color=myorange,author={Captain Jack}}%
+\definestyle{MyStar}{icon=Star,opacity=0.7,voffset=12pt}%
+\pdfcomment[avatar=CaptainJack,style=MyStar]{It's enough now!}%
+\pdffreetextcomment[avatar=CaptainJack,subject={Top2},height=3cm,type=freetext,width=4.5cm,voffset=-4.3cm,hoffset=-3.2cm,opacity=0.5,justification=right]{This is also a comment, but it's a FreeText annotation! Your, Captain Jack}%
+\pdflinecomment[avatar=CaptainJack,subject={Top2},type=line,opacity=1,line={100 680 250 680},color=green,icolor=blue,caption=top,linebegin={/ROpenArrow},lineend={/OpenArrow},linewidth=2bp,captionhoffset=-5pt,captionvoffset=15pt]{This is a Line comment!}%
+\pdffreetextcomment[avatar=CaptainJack,subject={typewriter},height=1.8cm,width=6.8cm,voffset=-7.2cm,hoffset=-1.2cm,opacity=1.0,justification=right,type=typewriter,font=LucidaConsole,fontsize=14pt,fontcolor=CornflowerBlue]{This is a typewriter FreeText annotation!}
+
+\marginnote{\begin{textblock*}{1cm}(7cm,14.5cm)%
+\pdffreetextcomment[avatar=CaptainJack,height=1.9cm,width=9cm,opacity=0.5,voffset=0pt,hoffset=0pt,opacity=1.0,font=Georgia,fontsize=9pt,fontcolor=red,justification=left,linewidth=2bp,bse=cloudy,bsei=1.3,type=callout,line={170 515 120 460 200 460},lineend=/ClosedArrow]{This one was placed with absolute coordinates (textpos.sty) (font=Georgia, fontsize=9pt, fontcolor=red, linewidth=2bp, bse=cloudy, bsei=1.3, type=callout, line=\{170 515 120 460 200 460\}, lineend=/ClosedArrow)}%
+\end{textblock*}}%
+{\small%
+\marginnote{\begin{textblock*}{2cm}(6cm,11.9cm){($x_1, y_1$)}\end{textblock*}}%
+\marginnote{\begin{textblock*}{2cm}(3cm,13.3cm){($x_2, y_2$)}\end{textblock*}}%
+\marginnote{\begin{textblock*}{2cm}(5.6cm,13.6cm){($x_3, y_3$)}\end{textblock*}}%
+}%
+\pdfmarkupcomment[author={Donald Duck},color=red,markup=StrikeOut]{A little Test!}{Why is this repeated? This is a StrikeOut markup annotation}%
+
+\colorlet{KernFarbe}{red}
+\colorlet{HuelleFarbe}{blue}
+\vspace{30mm}
+\begin{tikzpicture}[
+ Huelle/.style = {ball color=HuelleFarbe!25},
+ Kern/.style = {ball color=KernFarbe!25},
+ Proton/.style = {ball color=HuelleFarbe!80},
+ Elektron/.style = {ball color=KernFarbe!80},
+ ]
+
+ \shade[Huelle] (8,0) circle (2cm);
+ \shade[Kern] (8,0) circle (.7cm);
+
+ % Elektronen
+ \foreach \cx/\cy in {8/0,8/.3,8/-.3,8.2/.25,8.2/-.25,%
+ 8.3/.09,8.3/-.09,7.8/.25,7.8/.-.25,7.7/.09,%
+ 7.7/-.09,7.5/.09,8.5/-.09,7.6/-.3,8/-.5,8/.5,8.4/.4}{
+ \shade[Elektron] (\cx,\cy) circle (.6mm);
+ }
+ % Protonen
+ \foreach \cx/\cy in {6.9/-.1,7.4/1.2,7/.7,7.9/1.5,9.2/0.2,%
+ 9/1,7.5/-1.2,7/-0.8,9/-0.8,8.7/-1.2,7.7/-1.5,8.9/.5, %8.6,-1
+ 7/1.3,6.6/.4,9.6/-.31,9.6/.6,8.3/1.2}{
+ \shade[Proton] (\cx,\cy) circle (.6mm);
+ }
+
+ \draw[<-] (8.25,.55) -- +(1.4,1.4) node[above] {Atomkern};
+ \draw[<-] (7,.4) -- +(-1.3,1) node[above] {Atomhülle};
+ \draw[<-] (6.8,-.085) -- +(-1.6,.4) node[above] {Elektron};
+ \draw[<-] (7.5,-.35) -- +(-2,-.7) node[below] {Proton};
+\end{tikzpicture}
+\defineavatar{Newton}{color=lime,subject={Top2},icon=Check,author={Dr. Albertus Newton}}
+\pdfcommentsetup{avatar=Newton}
+\pdfcomment{Wow, that's nice!}
+\defineavatar{Dolittle}{color=NavyBlue,opacity=0.3,open=false,subject={Top1},icon=Circle,author={Prof. Dolittle}}
+\pdfcommentsetup{avatar=Dolittle}\pdfmargincomment{Yeah nice, but stolen from the pgf-Users mailing list!}
+
+\vspace{3cm}
+\pdfmarkupcomment[author={Donald Duck},color=Khaki,opacity=1.0,markup=Underline]{For a long time \texttt{pdflatex} offers the command \texttt{\textbackslash pdfannot} for inserting arbitrary pdf annotations. However, in a form where additional knowledge of the pdf reference is indispensable. \texttt{pdfcomment.sty} is an answer to the -- from time to time -- emerging questions in newsgroups, how one could use the comment function of \texttt{Adobe Reader}. At least out of the \LaTeX{} code \texttt{pdfcomment.sty} offers a convenient and user-friendly possibility to use pdf annotations in pdf files}{It's better to use dark colors for annotations with lines, as you see! This is a Underline markup annotations}. \pdfmargincomment{Holy moly! Can anybody transfer that to real english!}
+
+\pdfmarkupcomment[author={Donald Duck},color=Teal,opacity=1.0,markup=Squiggly]{Unfortunately the support of pdf annotations by pdf viewers is only partly available to nonexistent. The reference viewer for the development of this package is \texttt{Adobe Reader}.}{This is a Squiggly markup annotation}
+
+\noindent\pdfsquarecomment[avatar=CaptainJack,subject={Top2},height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=1cm,opacity=1.0,justification=right,icolor=CornflowerBlue,bse=cloudy,bsei=2.5,linewidth=8pt]{This is a Square annotation!}
+\pdffreetextcomment[avatar=CaptainJack,subject={overlay},height=2.2cm,width=4.8cm,voffset=-2.8cm,hoffset=1.5cm,opacity=1.0,justification=right,type=typewriter,font=PalatinoLinotype,fontsize=13pt,fontcolor=black]{This typewriter annotation overlays the square!}
+\pdfcirclecomment[avatar=CaptainJack,color=blue,subject={Top2},height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=8cm,opacity=1.0,justification=right,icolor={yellow},linewidth=12pt,borderstyle=dashed,dashstyle={10 5}]{This is a Circle annotation!}
+\pdflinecomment[type=polyline,avatar=CaptainJack,subject={Top2},opacity=1,line={150 120 260 120 300 150 400 80},color=green,icolor=blue,linebegin={/Slash},lineend={/Diamond},linewidth=3bp,bse=cloudy]{This is a Polyline comment!}
+
+\vspace{3.5cm}
+\pdfmarkupcomment[author={Donald Duck},color=yellow,opacity=1.0,markup=Highlight]{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut,
+placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero,
+nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
+Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
+egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna
+fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est,
+iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum.
+Aeneanfaucibus.Morbidolornulla,malesuadaeu,pulvinarat,mollisac,nulla.Curabitur
+auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan
+eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.}{This is a Highlight markup annotations with page break}
+
+\vspace{5cm}
+\pdflinecomment[avatar=CaptainJack,subject={Top2},type=line,opacity=1,line={110 620 220 530},color=green,icolor=blue,caption=none,linebegin={/RClosedArrow},lineend={/Circle},linewidth=2bp]{This is another Line comment! Just to show all possible arrows!}
+\pdflinecomment[type=polygon,avatar=CaptainJack,subject={Top2},opacity=1,line={275 590 355 600 400 570 350 530 270 540 276 590},color=green,icolor=CornflowerBlue,linewidth=5bp,bse=cloudy,bsei=2.2]{This is a Polygon comment!}
+
+\begin{pdfsidelinecomment}[avatar=CaptainJack,subject={Top2},opacity=1,color=red,icolor=yellow,caption=inline,linebegin={/Butt},lineend={/Square},linewidth=3bp,linesep=1cm]{ ! Delete ! }
+\lipsum[2-6]
+\end{pdfsidelinecomment}
+
+\vspace{2cm}
+\definestyle{mathpopup}{author={},subject={},color=NavajoWhite,markup=Highlight}
+\[
+\begin{array}{c>{\displaystyle}c}
+ \text{Bernoulli Trials} &
+ \pdfmarkupcomment[style=mathpopup]{P(E)}{Probability of event E: Get exactly k heads in n coin flips.}%
+ =
+ \pdfmarkupcomment[style=mathpopup]{\dbinom{n}{k}}{Number of ways to get exactly k heads in n coin flips}%
+ {\pdfmarkupcomment[style=mathpopup]{p}{Probability of getting heads in one flip}%
+}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{k}{Number of heads}
+ }%
+ \pdfmarkupcomment[style=mathpopup]{(1-p)}{Probability of getting tails in one flip}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{n-k}{Number of tails}%
+ }%
+\end{array}
+\]
+
+\begin{tikzpicture}
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3,0) node (xaxis) [right] {$x$};
+ \draw (0,0) coordinate (a_1) -- (2,1.8) coordinate (a_2);
+ \draw (0,1.5) coordinate (b_1) -- (2.5,0) coordinate (b_2);
+ \coordinate (c) at (intersection of a_1--a_2 and b_1--b_2);
+ \draw[dashed] (yaxis |- c) node[left] {$y'$}
+ -| (xaxis -| c) node[below] {$x'$};
+ %
+ \fill[red] (0,0) circle (2pt);
+ \draw (0,0) node {\pdftooltip{\rule{0pt}{0.5cm}\rule{0.5cm}{0pt}}{Origin}};
+ %
+ \draw[red] (1.5,2) node {\pdftooltip{\textcolor{red}{\textbullet}}{1.5,2.0}};
+ %
+ \fill[red] (c) circle (2pt)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {This is the intersection point\textCR of the two lines!}};
+\end{tikzpicture}
+\hspace{1cm}
+\begin{tikzpicture}
+ \draw (1.5,0) node[below] {countries};
+ \draw (0,1) node[left] {\pdftooltip{SCI}{Sausage Consumption Index}};
+ \fill[blue] (0.5,0) rectangle (1,1.2)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ % these calculations are based on scale factor 1 otherwise use:
+ % \dimexpr(scale factor)\dimexpr\x2-\x1\relax\relax
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {USA: 120}};
+ \fill[red] (1.5,0) rectangle (2,1.8)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {Germany: 180}};
+ \fill[green] (2.5,0) rectangle (3,0.65)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {South Africa: 65}};
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3.5,0) node (xaxis) [right] {$x$};
+\end{tikzpicture}
+
+\bigskip\bigskip
+You can use tooltips with simple \pdftooltip{\textcolor{red}{words}}{This is a tooltip!} or chemical notation like: $\pdftooltip{H_{2}SO_{4}}{Sulfuric acid}$
+
+\bigskip\bigskip
+It also works in equations: \[\pdftooltip[mathstyle=\displaystyle]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{little Gauß}\]
+\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/pdfcomment/doc/example_math_markup.pdf b/macros/latex/contrib/pdfcomment/doc/example_math_markup.pdf
new file mode 100644
index 0000000000..c99f94cb87
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example_math_markup.pdf
Binary files differ
diff --git a/macros/latex/contrib/pdfcomment/doc/example_math_markup.tex b/macros/latex/contrib/pdfcomment/doc/example_math_markup.tex
new file mode 100644
index 0000000000..4b1bb9018c
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example_math_markup.tex
@@ -0,0 +1,117 @@
+\documentclass[pagesize,11pt,leqno]{scrartcl}
+\usepackage[english]{babel}
+\usepackage[latin1]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage[svgnames,rgb]{xcolor}
+\usepackage{listings}
+\usepackage[author={Josef Kleber},subject={Math test},color=Khaki]{pdfcomment}
+\begin{document}
+\defineavatar{Joe}{author=Joe,color=yellow}
+\defineavatar{Bob}{author=Bob,color=green}
+\setlength{\parindent}{0pt}
+\addtokomafont{section}{\normalfont\normalcolor\bfseries}
+\setkomafont{title}{\normalfont\normalcolor\bfseries}
+\author{Josef Kleber}
+\title{Using \texttt{\string\pdfmarkupcomment}\ in math mode}
+\lstset{language=[LaTeX]TeX,numbers=left,numberstyle=\tiny,basicstyle=\ttfamily\small,frame=single,backgroundcolor=\color{LightGoldenrodYellow},keywordstyle=\color{Blue},emph={mathstyle,style}, emphstyle=\color{Tomato},emph={[2]mathpopup},emphstyle={[2]\color{SeaGreen}},morekeywords={pdfmarkupcomment,[,]}}
+\definestyle{mathpopup}{author={},subject={},color=NavajoWhite,markup=Highlight}
+\hypersetup{pdfauthor={Josef Kleber},pdftitle={Using \textbackslash{}pdfmarkupcomment in math mode},pdfsubject={An example file for demonstrating the usage of \textbackslash{}pdfmarkupcomment in math mode},pdfborder={0 0 0},linkcolor=blue,citecolor=blue}%
+\maketitle
+\section{Simple formulas}
+PDF annotations work in inline formula ($\pdfmarkupcomment[style=mathpopup]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{comment}$), as well as in display mode:
+
+\[\pdfmarkupcomment[id=1,style=mathpopup,mathstyle=\displaystyle,open=true]{f(x)=\prod_{i=1}^{n}\left(i-\frac{1}{2i}\right)}{comment}\]
+
+\bigskip
+Of course, you can only comment parts of a formula:
+
+\bigskip
+\begin{tabular}{cc}
+\begin{minipage}{0.26\linewidth}
+\[(a+b=c)^{\pdfmarkupcomment[style=mathpopup]{d+e}{comment}}\]
+\end{minipage} &
+\begin{minipage}{0.68\linewidth}
+\begin{lstlisting}
+\[(a+b=c)^{\pdfmarkupcomment[style=mathpopup]
+{d+e}{comment}}\]
+\end{lstlisting}
+\end{minipage}
+\end{tabular}
+
+\bigskip
+As you can see the size of the PDF annoation is too big! The math content is set into a box to measure the size. Unfortunately, the math context gets lost, which results in a wrong size, as the math snippets are set as inline formula into the box by default. You can correct this with the option \texttt{mathstyle} (\texttt{\string\textstyle, \string\displaystyle, \string\scriptstyle, \string\scriptscriptstyle})
+
+\bigskip
+\begin{tabular}{cc}
+\begin{minipage}{0.25\linewidth}
+\[(a+b=c)^{\pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{d+e}{comment}}\]
+\end{minipage} &
+\begin{minipage}{0.68\linewidth}
+\begin{lstlisting}
+\[(a+b=c)^{\pdfmarkupcomment[style=mathpopup,
+mathstyle=\scriptstyle]{d+e}{comment}}\]
+\end{lstlisting}
+\end{minipage}
+\end{tabular}
+
+\bigskip
+Of course, it also works with equations:
+
+\bigskip
+\begin{tabular}{cc}
+\begin{minipage}{0.41\linewidth}
+\begin{equation}
+\pdfmarkupcomment[style=mathpopup,mathstyle=\displaystyle]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{comment}
+\end{equation}\label{eq:display}
+\end{minipage} &
+\begin{minipage}{0.52\linewidth}
+\begin{lstlisting}
+\begin{equation}
+\pdfmarkupcomment[style=mathpopup,
+mathstyle=\displaystyle]
+{\sum_{i=1}^{n}i=\frac{1}{2}n
+\cdot(n+1)}{comment}
+\end{equation}\label{eq:display}
+\end{lstlisting}
+\end{minipage}
+\end{tabular}
+
+\bigskip
+In formula \ref{eq:display} \texttt{mathsytle=\string\displaystyle} was used.
+
+\section{Complex formulas}
+If you use more complex environments like \texttt{eqnarry*}, you can no longer comment the complete formula, as this would break the internals of the environment. Remember that you can only comment, what you can put into a math box (\${}math stuff\${}). Therefore, you can only comment parts of the complex formula:
+
+\bigskip
+\begin{tabular}{cc}
+\begin{minipage}{0.4\linewidth}
+\begin{eqnarray*}
+\pdfmarkupcomment[style=mathpopup]{\mathrm{left}}{comment} &
+\pdfmarkupcomment[style=mathpopup]{\mathrm{middle}}{comment} & \pdfmarkupcomment[style=mathpopup]{\mathrm{right}}{comment}\\
+\pdfmarkupcomment[style=mathpopup,mathstyle=\displaystyle]{\frac{1}{\sqrt{n}}}{comment} = & \pdfmarkupcomment[style=mathpopup,mathstyle=\displaystyle]{\frac{\sqrt{n}}{n}}{comment} = & \pdfmarkupcomment[style=mathpopup,mathstyle=\displaystyle]{\frac{n}{n\sqrt{n}}}{comment}
+\end{eqnarray*}
+\end{minipage} &
+\begin{minipage}{0.53\linewidth}
+\begin{lstlisting}
+\begin{eqnarray*}
+\pdfmarkupcomment[style=mathpopup]
+{\mathrm{left}}{comment} &
+\pdfmarkupcomment[style=mathpopup]
+{\mathrm{middle}}{comment} &
+\pdfmarkupcomment[style=mathpopup]
+{\mathrm{right}}{comment}\\
+\pdfmarkupcomment[style=mathpopup,
+mathstyle=\displaystyle]
+{\frac{1}{\sqrt{n}}}{comment} = &
+\pdfmarkupcomment[style=mathpopup,
+mathstyle=\displaystyle]
+{\frac{\sqrt{n}}{n}}{comment} = &
+\pdfmarkupcomment[style=mathpopup,
+mathstyle=\displaystyle]
+{\frac{n}{n\sqrt{n}}}{comment}
+\end{eqnarray*}
+\end{lstlisting}
+\end{minipage}
+\end{tabular}
+\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/pdfcomment/doc/example_xelatex.pdf b/macros/latex/contrib/pdfcomment/doc/example_xelatex.pdf
new file mode 100644
index 0000000000..0c2fd61ba7
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example_xelatex.pdf
Binary files differ
diff --git a/macros/latex/contrib/pdfcomment/doc/example_xelatex.tex b/macros/latex/contrib/pdfcomment/doc/example_xelatex.tex
new file mode 100644
index 0000000000..f3830ba6a8
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/example_xelatex.tex
@@ -0,0 +1,193 @@
+% This file works with lualatex as well!
+% Make sure to write the page size into the dvi file!
+% That's possible with the pagesize option of KoMa-Script
+% Otherwise the positioning of the annotations will fail!
+\documentclass[pagesize]{scrartcl}
+% for other classes use, e.g. the pagesize option
+% of package typearea
+%\documentclass{article}
+%\usepackage[pagesize]{typearea}
+%
+\usepackage[no-math]{fontspec}
+%\usepackage{xunicode}
+%\usepackage{xltxtra}
+\usepackage{lipsum}
+\usepackage[svgnames,rgb]{xcolor}
+\usepackage{tikz}
+\usetikzlibrary{calc}
+\usepackage{amsmath,array,bm}
+\usepackage[absolute]{textpos}
+\usepackage[subject={Top1},author={Ã…nsgar Lund},version=1]{pdfcomment}
+\setmainfont[Mapping=tex-text]{Tahoma}
+\begin{document}
+\defineavatar{Joe}{author=Joe,color=yellow}
+\defineavatar{Bob}{author=Bob,color=green}
+\definecolor{myblue}{rgb}{0.045,0.278,0.643}
+\colorlet{myorange}{red!30!yellow}
+\pdfcommentsetup{timezone={+01'00'}}
+A\pdfcomment[subject={Top2},author={Daisy Duck},color={0.234 0.867 0.211},voffset=8pt,opacity=0.5]{This is a comment.} little Test! \pdfcomment[color=myblue,icon=Note,open=true,hspace=100pt]{This is another comment.} test the hspace!%
+\defineavatar{CaptainJack}{color=myorange,author={Captain Jack}}%
+\definestyle{MyStar}{icon=Star,opacity=0.7,voffset=12pt}%
+\pdfcomment[avatar=CaptainJack,style=MyStar,date={}]{It's enough now!}
+\pdffreetextcomment[avatar=CaptainJack,subject={Top2},height=3cm,type=freetext,width=4.5cm,voffset=-4.8cm,hoffset=-2.7cm,opacity=0.5,justification=right]{This is also a comment, but it's a FreeText annotation! Your, Captain Jack}
+\pdflinecomment[avatar=CaptainJack,subject={Top2},type=line,opacity=1,line={100 680 250 680},color=green,icolor=blue,caption=top,linebegin={/ROpenArrow},lineend={/OpenArrow},linewidth=2bp,captionhoffset=-5pt,captionvoffset=15pt]{This is a Line comment!}
+\pdffreetextcomment[avatar=CaptainJack,subject={typewriter},height=1.8cm,width=6.8cm,voffset=-7.2cm,hoffset=-1.2cm,opacity=1.0,justification=right,type=typewriter,font=LucidaConsole,fontsize=14pt,fontcolor=CornflowerBlue]{This is a typewriter FreeText annotation!}
+
+\marginnote{\begin{textblock*}{1cm}(7cm,14.5cm)
+\pdffreetextcomment[avatar=CaptainJack,height=1.9cm,width=9cm,opacity=0.5,voffset=0pt,hoffset=0pt,opacity=1.0,font=Georgia,fontsize=9pt,fontcolor=red,justification=left,linewidth=2bp,bse=cloudy,bsei=1.3,type=callout,line={170 515 120 460 200 460},lineend=/ClosedArrow]{This one was placed with absolute coordinates (textpos.sty) (font=Georgia, fontsize=9pt, fontcolor=red, linewidth=2bp, bse=cloudy, bsei=1.3, type=callout, line=\{170 515 120 460 200 460\}, lineend=/ClosedArrow)}
+\end{textblock*}}
+{\small
+\marginnote{\begin{textblock*}{2cm}(6cm,11.9cm){($x_1, y_1$)}\end{textblock*}}
+\marginnote{\begin{textblock*}{2cm}(3cm,13.3cm){($x_2, y_2$)}\end{textblock*}}
+\marginnote{\begin{textblock*}{2cm}(5.6cm,13.6cm){($x_3, y_3$)}\end{textblock*}}
+}
+\pdfmarkupcomment[author={Donald Duck},color=red,markup=StrikeOut]{A little Test!}{Why is this repeated? This is a StrikeOut markup annotation}
+
+\colorlet{KernFarbe}{red}
+\colorlet{HuelleFarbe}{blue}
+\vspace{35mm}
+\begin{tikzpicture}[
+ Huelle/.style = {ball color=HuelleFarbe!25},
+ Kern/.style = {ball color=KernFarbe!25},
+ Proton/.style = {ball color=HuelleFarbe!80},
+ Elektron/.style = {ball color=KernFarbe!80},
+ ]
+
+ \shade[Huelle] (8,0) circle (2cm);
+ \shade[Kern] (8,0) circle (.7cm);
+
+ % Elektronen
+ \foreach \cx/\cy in {8/0,8/.3,8/-.3,8.2/.25,8.2/-.25,%
+ 8.3/.09,8.3/-.09,7.8/.25,7.8/.-.25,7.7/.09,%
+ 7.7/-.09,7.5/.09,8.5/-.09,7.6/-.3,8/-.5,8/.5,8.4/.4}{
+ \shade[Elektron] (\cx,\cy) circle (.6mm);
+ }
+ % Protonen
+ \foreach \cx/\cy in {6.9/-.1,7.4/1.2,7/.7,7.9/1.5,9.2/0.2,%
+ 9/1,7.5/-1.2,7/-0.8,9/-0.8,8.7/-1.2,7.7/-1.5,8.9/.5, %8.6,-1
+ 7/1.3,6.6/.4,9.6/-.31,9.6/.6,8.3/1.2}{
+ \shade[Proton] (\cx,\cy) circle (.6mm);
+ }
+
+ \draw[<-] (8.25,.55) -- +(1.4,1.4) node[above] {Atomkern};
+ \draw[<-] (7,.4) -- +(-1.3,1) node[above] {Atomhülle};
+ \draw[<-] (6.8,-.085) -- +(-1.6,.4) node[above] {Elektron};
+ \draw[<-] (7.5,-.35) -- +(-2,-.7) node[below] {Proton};
+\end{tikzpicture}
+\defineavatar{Newton}{color=lime,subject={Top2},icon=Check,author={Dr. Albertus Newton}}
+\pdfcommentsetup{avatar=Newton}
+\pdfcomment{Wow, that's nice!}
+\defineavatar{Dolittle}{color=NavyBlue,opacity=0.3,open=false,subject={Top1},icon=Circle,author={Prof. Dolittle}}
+\pdfcommentsetup{avatar=Dolittle}\pdfmargincomment{Yeah nice, but stolen from the pgf-Users mailing list!}
+
+\vspace{3cm}
+\pdfmarkupcomment[author={Donald Duck},color=Khaki,opacity=1.0,markup=Underline]{For a long time \texttt{pdflatex} offers the command \texttt{\textbackslash pdfannot} for inserting arbitrary pdf annotations. However, in a form where additional knowledge of the pdf reference is indispensable. \texttt{pdfcomment.sty} is an answer to the -- from time to time -- emerging questions in newsgroups, how one could use the comment function of \texttt{Adobe Reader}. At least out of the \LaTeX{} code \texttt{pdfcomment.sty} offers a convenient and user-friendly possibility to use pdf annotations in pdf files}{It's better to use dark colors for annotations with lines, as you see! This is a Underline markup annotations}. \pdfmargincomment{Holy moly! Can anybody transfer that to real english!}
+
+\pdfmarkupcomment[author={Donald Duck},color=Teal,opacity=1.0,markup=Squiggly]{Unfortunately the support of pdf annotations by pdf viewers is only partly available to nonexistent. The reference viewer for the development of this package is \texttt{Adobe Reader}.}{This is a Squiggly markup annotation}
+
+\noindent\pdfsquarecomment[avatar=CaptainJack,subject={Top2},height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=1cm,opacity=1.0,justification=right,icolor=CornflowerBlue,bse=cloudy,bsei=2.5,linewidth=8pt]{This is a Square annotation!}
+\pdffreetextcomment[avatar=CaptainJack,subject={overlay},height=2.2cm,width=4.8cm,voffset=-2.8cm,hoffset=1.5cm,opacity=1.0,justification=right,type=typewriter,font=PalatinoLinotype,fontsize=13pt,fontcolor=black]{This typewriter annotation overlays the square!}
+\pdfcirclecomment[avatar=CaptainJack,color=blue,subject={Top2},height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=8cm,opacity=1.0,justification=right,icolor={yellow},linewidth=12pt,borderstyle=dashed,dashstyle={10 5}]{This is a Circle annotation!}
+\pdflinecomment[type=polyline,avatar=CaptainJack,subject={Top2},opacity=1,line={150 120 260 120 300 150 400 80},color=green,icolor=blue,linebegin={/Slash},lineend={/Diamond},linewidth=3bp,bse=cloudy]{This is a Polyline comment!}
+
+\vspace{3.5cm}
+\pdfmarkupcomment[author={Donald Duck},color=yellow,opacity=1.0,markup=Highlight]{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut,
+placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero,
+nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
+Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
+egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna
+fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est,
+iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum.
+Aeneanfaucibus.Morbidolornulla, malesuadaeu, pulvinarat, mollisac, nulla. Curabitur
+auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan
+eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.}{This is a Highlight markup annotations with page break}
+
+\vspace{5cm}
+\pdflinecomment[avatar=CaptainJack,subject={Top2},type=line,opacity=1,line={110 620 220 530},color=green,icolor=blue,caption=none,linebegin={/RClosedArrow},lineend={/Circle},linewidth=2bp]{This is another Line comment! Just to show all possible arrows!}
+\pdflinecomment[type=polygon,avatar=CaptainJack,subject={Top2},opacity=1,line={275 590 355 600 400 570 350 530 270 540 276 590},color=green,icolor=CornflowerBlue,linewidth=5bp,bse=cloudy,bsei=2.2]{This is a Polygon comment!}
+
+\begin{pdfsidelinecomment}[avatar=CaptainJack,subject={Top2},opacity=1,color=red,icolor=yellow,caption=inline,linebegin={/Butt},lineend={/Square},linewidth=3bp,linesep=1cm]{ ! Delete ! }
+\lipsum[2-6]
+\end{pdfsidelinecomment}
+
+\vspace{2cm}
+\definestyle{mathpopup}{author={},subject={},color=NavajoWhite,markup=Highlight}
+\[
+\begin{array}{c>{\displaystyle}c}
+ \text{Bernoulli Trials} &
+ \pdfmarkupcomment[style=mathpopup]{P(E)}{Probability of event E: Get exactly k heads in n coin flips.}%
+ =
+ \pdfmarkupcomment[style=mathpopup]{\dbinom{n}{k}}{Number of ways to get exactly k heads in n coin flips}%
+ {\pdfmarkupcomment[style=mathpopup]{p}{Probability of getting heads in one flip}%
+}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{k}{Number of heads}
+ }%
+ \pdfmarkupcomment[style=mathpopup]{(1-p)}{Probability of getting tails in one flip}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{n-k}{Number of tails}%
+ }%
+\end{array}
+\]
+
+\begin{tikzpicture}
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3,0) node (xaxis) [right] {$x$};
+ \draw (0,0) coordinate (a_1) -- (2,1.8) coordinate (a_2);
+ \draw (0,1.5) coordinate (b_1) -- (2.5,0) coordinate (b_2);
+ \coordinate (c) at (intersection of a_1--a_2 and b_1--b_2);
+ \draw[dashed] (yaxis |- c) node[left] {$y'$}
+ -| (xaxis -| c) node[below] {$x'$};
+ %
+ \fill[red] (0,0) circle (2pt);
+ \draw (0,0) node {\pdftooltip{\rule{0pt}{0.5cm}\rule{0.5cm}{0pt}}{Origin}};
+ %
+ \draw[red] (1.5,2) node {\pdftooltip{\textbullet}{1.5,2.0}};
+ %
+ \fill[red] (c) circle (2pt)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {This is the intersection point\textCR of the two lines!}};
+\end{tikzpicture}
+\hspace{1cm}
+\begin{tikzpicture}
+ \draw (1.5,0) node[below] {countries};
+ \draw (0,1) node[left] {\pdftooltip{SCI}{Sausage Consumption Index}};
+ \fill[blue] (0.5,0) rectangle (1,1.2)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ % these calculations are based on scale factor 1 otherwise use:
+ % \dimexpr(scale factor)\dimexpr\x2-\x1\relax\relax
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {USA: 120}};
+ \fill[red] (1.5,0) rectangle (2,1.8)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {Germany: 180}};
+ \fill[green] (2.5,0) rectangle (3,0.65)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {South Africa: 65}};
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3.5,0) node (xaxis) [right] {$x$};
+\end{tikzpicture}
+
+\bigskip\bigskip
+You can use tooltips with simple \pdftooltip{\textcolor{red}{words}}{This is a tooltip!} or chemical notation like: $\pdftooltip{H_{2}SO_{4}}{Sulfuric acid}$
+
+\bigskip\bigskip
+It also works in equations: \[\pdftooltip[mathstyle=\displaystyle]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{little Gauß}\]
+\end{document}
diff --git a/macros/latex/contrib/pdfcomment/doc/manifest.txt b/macros/latex/contrib/pdfcomment/doc/manifest.txt
new file mode 100644
index 0000000000..2e839c41d6
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/manifest.txt
@@ -0,0 +1,31 @@
+This work consists of the following files:
+
+
+-- Styles --
+
+pdfcomment.sty
+
+
+-- Documentation --
+
+pdfcomment.pdf
+pdfcomment.tex
+pdfcomment_de.pdf
+pdfcomment_de.tex
+example.tex
+example.pdf
+example_latex_dvips_ps2pdf.tex
+example_latex_dvips_ps2pdf.pdf
+example_latex_dvipdfmx.tex
+example_latex_dvipdfmx.pdf
+example_math_markup.tex
+example_math_markup.pdf
+example_xelatex.tex
+example_xelatex.pdf
+
+-- Misc. Files --
+
+README.md
+manifest.txt
+INSTALL
+CHANGES \ No newline at end of file
diff --git a/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf b/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf
new file mode 100644
index 0000000000..6fb318747e
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf
Binary files differ
diff --git a/macros/latex/contrib/pdfcomment/doc/pdfcomment.tex b/macros/latex/contrib/pdfcomment/doc/pdfcomment.tex
new file mode 100644
index 0000000000..702e76c583
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/pdfcomment.tex
@@ -0,0 +1,684 @@
+\documentclass[a4paper]{ltxdoc}%
+\usepackage[english]{babel}%
+\usepackage[latin1]{inputenc}%
+\usepackage[T1]{fontenc}%
+\usepackage{textcomp}%
+\usepackage{lmodern}%
+\usepackage{bera}%
+\usepackage{microtype}%
+\usepackage{attachfile}%
+\usepackage{ltxdocext}%
+\usepackage{marginnote}%
+\usepackage{metalogo}%
+\usepackage[svgnames,rgb]{xcolor}%
+\usepackage{amsmath,array}%
+\usepackage{tikz}%
+\usetikzlibrary{calc}%
+\usepackage{ragged2e}%
+\usepackage{url}%
+\usepackage[automark,nouppercase]{scrpage2}
+\usepackage{pdfcomment}%
+%
+\makeatletter
+\setlength{\headheight}{1.1\baselineskip}%
+%
+\hypersetup{colorlinks=true,urlcolor=NavyBlue,linkcolor=NavyBlue,citecolor=CornflowerBlue,naturalnames=true,hypertexnames=false}%
+\renewcommand{\maketitle}%
+{%
+ \thispagestyle{empty}%
+ \pagecolor{Ivory}%
+ \begin{titlepage}%
+ \begin{tikzpicture}[remember picture,overlay]%
+ \node[yshift=-2cm] at (current page.north west)%
+ {%
+ \begin{tikzpicture}[remember picture, overlay]%
+ \draw[fill=CornflowerBlue,color=CornflowerBlue] (0,0) rectangle%
+ (\paperwidth,2cm);%
+ \draw[anchor=west,yshift=-4cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\RaggedRight\Huge\sffamily\textbf{\@title}}};%
+ \draw[anchor=west,yshift=-6cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\huge\sffamily\textbf{\@fileversion}}};%
+ \draw[anchor=west,yshift=-9cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\RaggedRight\huge\sffamily\textbf{\@subtitle}}};%
+ \draw[anchor=west,yshift=-14cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\huge\sffamily\textbf{\@date}}};%
+ \draw[anchor=west,yshift=-20cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\Large\sffamily{\@authorline\\\textbf{\@author}}}};%
+ \end{tikzpicture}%
+ };%
+ \node[yshift=0cm] at (current page.south west)%
+ {%
+ \begin{tikzpicture}[remember picture, overlay]%
+ \draw[fill=NavyBlue,color=NavyBlue,yshift=6cm,xshift=2cm] (0,0) rectangle (0.2cm,19cm);%
+ \draw[fill=CornflowerBlue,color=CornflowerBlue] (0,0) rectangle (\paperwidth,2cm);%
+ \draw[anchor=west,yshift=1cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\large\sffamily{\@refline}}};%
+ \end{tikzpicture}%
+ };%
+ \end{tikzpicture}%
+ \end{titlepage}%
+ \pagecolor{white}%
+}%
+%
+\newcommand*{\@tikzhead}[1]%
+{%
+ \begin{tikzpicture}[remember picture,overlay]%
+ \node[yshift=-2cm] at (current page.north west)%
+ {%
+ \begin{tikzpicture}[remember picture, overlay]%
+ \draw[fill=CornflowerBlue] (0,0) rectangle (\paperwidth,2cm);%
+ \draw[anchor=west,yshift=1cm,xshift=1.5cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\LARGE\sffamily\textbf{\@title}}};%
+ \node[anchor=east,xshift=.9\paperwidth,rectangle,%
+ rounded corners=15pt,inner sep=11pt,fill=NavyBlue]%
+ {\color{white}\textsc{#1}};%
+ \end{tikzpicture}%
+ };%
+ \end{tikzpicture}%
+}%
+\clearscrheadings%
+\ihead{\@tikzhead{\headmark}}%
+\cfoot{\upshape\thepage}%
+\pagestyle{scrheadings}%
+%
+%\newcommand*{\headline}[1]{\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}%
+\newcommand*{\Headline}[1]{\@mkboth{#1}{#1}}%
+%
+\renewcommand{\headfont}{\normalfont\mdseries\scshape}
+%
+\gdef\@subtitle{}%
+\providecommand*{\Subtitle}[1]{\gdef\@subtitle{#1}}%
+\gdef\@fileversion{}%
+\providecommand*{\Fileversion}[1]{\gdef\@fileversion{#1}}%
+\gdef\@author{}%
+\providecommand*{\Author}[1]{\gdef\@author{#1}}%
+\gdef\@authorline{Package author:}%
+\providecommand*{\Authorline}[1]{\gdef\@authorline{#1}}%
+\gdef\@refline{}%
+\providecommand*{\Refline}[1]{\gdef\@refline{#1}}%
+\gdef\and{\unskip{}, }%
+\newcommand\doubledash{-\kern0.5pt-}
+\def\enoteformat{\rightskip\z@ \leftskip\z@ \parindent=1em\leavevmode\llap{\makeenmark}}
+\makeatother
+%
+\def\LinkExMath{\href{http://mirror.ctan.org/macros/latex/contrib/pdfcomment/doc/example_math_markup.pdf}{\texttt{example\_math\_markup.pdf}}}
+\def\LinkEx{\href{http://mirror.ctan.org/macros/latex/contrib/pdfcomment/doc/example.pdf}{\texttt{example.pdf}}}
+\def\filename{pdfcomment.sty}%
+\def\XeLaTeX{Xe\LaTeX}%
+%
+\makeatletter%
+\renewcommand\tableofcontents%
+{%
+ %\section*{\contentsname}%
+ \@mkboth{%
+ \MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
+ \@starttoc{toc}%
+}%
+%
+\newcommand\styleoption{\name@idx{style option}}%
+\newcommand\stylename{\name@idx{document style}}%
+\def\name@idx#1#2{%
+ {\ttfamily#2}%
+ \index{#2\space#1=\string\ttt{#2}\space#1}\index{#1>#2=\string\ttt{#2}}%
+}%
+\newcommand*\margcs[1]{\marginnote{\raggedleft\scriptsize #1}}%
+\newcommand*\package[1]{\texttt{#1}\index{#1=\string\ttt{#1}}}%
+\newcommand*\mco[1]{\mbox{\LANGLE\itshape#1\RANGLE}\index{#1, class option value}\index{class option value>#1}}%
+%
+\renewcommand\@biblabel[1]{\makebox[1.5cm][l]{[#1]}}
+\renewcommand*\l@subsection{\@dottedtocline{2}{1.2em}{2.3em}}
+\renewcommand*\l@subsubsection{\@dottedtocline{3}{2.4em}{3.7em}}
+\makeatother
+%
+\setlength\parindent{0pt}%
+\hypersetup{pdfauthor={Josef Kleber},pdftitle={A user-friendly interface to PDF annotations},pdfsubject={Documentation for LaTeX style \filename}}%
+%
+\begin{document}
+%\pdfcommentsetup{date=D:20101212153723+01'00'}
+\date{2018/11/01}
+\bibliographystyle{alphadin}
+\title{\filename}%
+\Subtitle{A user-friendly interface to PDF annotations}%
+\author{Josef Kleber}
+\Fileversion{v2.4a}
+\Refline{\href{mailto:pdfcomment@jklatex.de}{\texttt{pdfcomment@jklatex.de}}\\\href{http://pdfcomment.jklatex.de}{\texttt{http://pdfcomment.jklatex.de}}}
+\maketitle
+\Headline{Abstract}
+\begin{abstract}
+For a long time \texttt{pdflatex} has offered the command \cmd\pdfannot{} for inserting arbitrary PDF annotations. However, the command is presented in a form where additional knowledge of the definition of the PDF format is indispensable. This package is an answer to the -- occasional -- questions in newsgroups, about how one could use the comment function of \texttt{Adobe Reader}. At least for the writer of \LaTeX{} code, the package offers a convenient and user-friendly means of using \cmd\pdfannot{} to provide comments in PDF files. Since version v1.1, \texttt{\filename{}} also supports:
+
+\medskip
+\noindent\hfill\texttt{\LaTeX{} $\rightarrow$ \texttt{dvips} $\rightarrow$ \texttt{ps2pdf}, \LaTeX{} $\rightarrow$ \texttt{dvipdfmx}\footnote{only with style option \texttt{dvipdfmx}} \XeLaTeX\ and \LuaLaTeX}.\hfill
+\medskip
+
+Unfortunately, support of PDF annotations by PDF viewers may vary. The reference viewer for the development of this package is \texttt{Adobe Reader}.
+
+If you can't see this annotation \pdfcomment[author={Josef Kleber},subject={Test annotation},color=lime,hspace=20pt]{This is an annotation} you are definitely using the wrong PDF viewer!
+\end{abstract}
+\vfill
+\begin{center}
+\subsubsection*{Required packages for using \substyle{\filename}}
+\fbox{\parbox[t]{.8\linewidth}{\small \package{hyperref} (v6.76a [2007/04/09]), \package{zref} (v1.8 [2007/04/22]), \package{xkeyval}, \package{etoolbox}, \package{luatex85}, \package{ifpdf}, \package{iflatex}, \package{ifthen}, \package{calc}, \package{marginnote}, \package{datetime2}, \package{refcount}, \package{soulpos} and the packages loaded by them.}}
+\end{center}
+\vfill
+\clearpage
+\begin{multicols}{2}
+[\section*{\contentsname}
+\setlength{\columnseprule}{.5pt}
+\setlength{\columnsep}{30pt}\small]
+\tableofcontents
+\end{multicols}
+\clearpage
+\Headline{Acknowledgment}
+\section*{Acknowledgment}
+I want to thank the following persons for contributions to the development of this package:
+
+\begin{itemize}
+\item \textbf{Javier Bezos} for the development of \package{soulpos}, which allows much better support of non standard text cases in \cs{pdfmarkupcomment}.
+
+\item \textbf{Alexander Grahn} for contributing a patch for other drivers
+
+\medskip
+\noindent\hfill\texttt{\LaTeX{} $\rightarrow$ \texttt{dvips} $\rightarrow$ \texttt{ps2pdf}, \LaTeX{} $\rightarrow$ \texttt{dvipdfmx} and \XeLaTeX}.\hfill
+\medskip
+
+\item \textbf{Ulrike Fischer} for answering my stupid questions on d.c.t.t. for making the avatar and style system possible and much more.
+
+\item \textbf{Christian Feuersänger} for contributing new ideas in form of his package \package{pdfmarginpar.sty} and for solving the printing problem\footnote{see section \ref{sec:print}} of PDF annotations and popups.
+
+\item \textbf{Ross Moore} for contributing ideas and code for his own feature request to support \texttt{\string\pdfmarkupcomment} in math mode.
+
+\item \textbf{Heiko Oberdiek} also for answering my stupid questions on d.c.t.t., as well as for the development of dozens of very usefull packages, especially \file{hyperref.sty}, \file{hycolor.sty} and \file{zref.sty}, which made this package possible.
+
+\item \textbf{Herbert Voß} also for answering my stupid questions on d.c.t.t.
+\end{itemize}
+
+I also want to thank the following persons for bug reports, feature requests, ...: Til Birnstiel, Jannis von Buttlar, Gabriel Cardona, Thomas Feller, Florent Chervet, Jin-Hwan Cho, Marcel Dausend, Andrew Dawson, diabonas, Max Funk, Zvi Gilboa, Thomas König, Marc-André Michel, Guillaume Millet, Fritz Moore, Michael Niedermair, Stefan Pinnow, René Schwarz
+\clearpage
+\section{Options}
+\subsection{Global options}
+\subsubsection[\texttt{final}]{\styleoption{final}}\label{sec:final}
+The option \styleoption{final} will set the package to final mode. The PDF annotations will not be typeset and will not influence line breaking. Use the local option \styleoption{disable} if you want to disable single PDF annotations. (see: \ref{sec:disable})
+\subsubsection[\texttt{draft}]{\styleoption{draft}}\label{sec:draft}
+The option \styleoption{draft} (default) will set the package to draft mode. Therefore, the PDF annotations will be typeset.
+\subsubsection[\texttt{dvipdfmx}]{\styleoption{dvipdfmx}}\label{sec:dvipdfmx}
+If you want to use the driver \texttt{dvipdfmx} for creating your documents, you have to use the option \styleoption{dvipdfmx}. The other drivers are recognized automatically.
+\subsubsection[\texttt{version}]{\styleoption{version}}\label{sec:version}
+Version v2.0 of \texttt{pdfcomment.sty} introduced a bugfix that removes unwanted whitespace before the comment commands. This may also change the reference point for options like \styleoption{hoffset}. If you want to preserve the old behavior for older documents simply use \texttt{version=1}. Otherwise \texttt{version=2} is used by default!
+\subsection{Local options}
+The following options are useable as options for the commands presented in sections \ref{sec:umgebungen} and \ref{sec:befehle}, as well as style options. As style options they have global effect, whereas they have only local effect when used in commands.
+
+\subsubsection[\texttt{subject}]{\styleoption{subject}}\label{sec:subject}
+You can use the option \styleoption{subject} for defining the subject of the PDF popup annotations.
+
+\subsubsection[\texttt{author}]{\styleoption{author}}\label{sec:author}
+You can use the option \styleoption{author} for defining the author of the PDF popup annotations.
+
+\subsubsection[\texttt{opacity}]{\styleoption{opacity} (\underline{\texttt{1.0}})}\label{sec:opacity}
+You can use the option \styleoption{opacity} for defining the opacity of PDF annotations with values between 0 (transparent) and 1 (not transparent). If you want to print PDF popup annotations with transparency you will have to use the option \styleoption{open}\texttt{=true}.
+
+\subsubsection[\texttt{icon}]{\styleoption{icon} (\underline{\texttt{Comment}})}\label{sec:icon}
+You can use the option \styleoption{icon} for defining the graphic used for the PDF text annotations. The following icons are defined as mandatory by the PDF reference:
+
+\pdfcommentsetup{author={Josef Kleber},subject={Icon Übersicht},width=17mm}
+{\renewcommand{\arraystretch}{2.5}
+\begin{center}
+\begin{tabular}{rlrlrl}
+\texttt{Comment} & \pdfcomment[icon=Comment,color=Ivory,hspace=1.5cm]{options: icon=Comment,color=Ivory} &
+\texttt{Key} & \pdfcomment[icon=Key,color=Khaki,hspace=1.5cm]{options: icon=Key,color=Khaki} &
+\texttt{Note} & \pdfcomment[icon=Note,color=LavenderBlush,hspace=1.5cm]{options: icon=Note,color=LavenderBlush}\\
+\texttt{Help} & \pdfcomment[icon=Help,color=CornflowerBlue,hspace=1.5cm]{options: icon=Help,color=CornflowerBlue} &
+\texttt{NewParagraph} & \pdfcomment[icon=NewParagraph,color=SkyBlue,hspace=1.5cm]{options: icon=NewParagraph,color=SkyBlue}\\
+\texttt{Paragraph} & \pdfcomment[icon=Paragraph,color=SpringGreen,hspace=1.5cm]{options: icon=Paragraph,color=SpringGreen} &
+\texttt{Insert} & \pdfcomment[icon=Insert,color=PaleTurquoise,hspace=1.5cm]{options: Insert,color=PaleTurquoise} &
+ & \\
+\end{tabular}
+\end{center}
+}
+
+\begin{samepage}
+Furthermore the following icons are also supported by \texttt{Adobe Reader} and some other PDF viewers:
+
+{\renewcommand{\arraystretch}{2.5}
+\begin{center}
+\begin{tabular}{rlrlrl}
+\texttt{Check} & \pdfcomment[icon=Check,color=Orchid,hspace=1cm]{options: icon=Check,color=Orchid} &
+\texttt{Circle} & \pdfcomment[icon=Circle,color=LightCyan,hspace=1cm]{options: icon=Circle,color=LightCyan} &
+\texttt{Cross} & \pdfcomment[icon=Cross,color=Bisque,hspace=1cm]{options: icon=Cross,color=Bisque}\\
+\texttt{Star} & \pdfcomment[icon=Star,color=Aquamarine,hspace=1cm]{options: icon=Star,color=Aquamarine} &
+\texttt{RightArrow} & \pdfcomment[icon=RightArrow,color=Gainsboro,hspace=1cm]{options: icon=RightArrow,color=Gainsboro} &
+\texttt{RightPointer} & \pdfcomment[icon=RightPointer,color=Salmon,hspace=1cm]{options: icon=RightPointer,color=Salmon}\\
+\texttt{UpArrow} & \pdfcomment[icon=UpArrow,color=Teal,hspace=1cm]{options: icon=UpArrow,color=Teal} &
+\texttt{UpLeftArrow} & \pdfcomment[icon=UpLeftArrow,color=Magenta,hspace=1cm]{options: icon=UpLeftArrow,color=Magenta} &
+\texttt{CrossHairs (AR X)} & \pdfcomment[icon=CrossHairs,color=green,hspace=1cm]{options: icon=CrossHairs,color=green}
+\end{tabular}
+\end{center}
+}
+\end{samepage}
+
+\subsubsection[\texttt{deadline}]{\styleoption{deadline}}\label{sec:deadline}
+You can use the option \styleoption{deadline} for defining a time limit until a problem has to be solved. The deadline will be added at the end of the comment, as well as in the list of comments, if an appropriate list style is chosen.
+
+\subsubsection[\texttt{color}]{\styleoption{color} (\underline{\texttt{\lbrack 0 0 1\rbrack}} (blue))}\label{sec:color}
+You can use the option \styleoption{color} for defining the color of PDF annotations in the form \{0.34 0.56 0.12\} (RGB). If you are using the additional package \package{xcolor} you can use predefined color names, as well as the available optional color names. Furthermore you can use the command \cmd\definecolor{} to define your own named colors. Please take a look at the attached example \file{example.tex}.\marginnote{\attachfile[author={Josef Kleber},subject={example.tex},description={source code: example.tex} ,mimetype={text/plain}, icon={Tag}]{example.tex}} It shows the different possibilities of defining colors.
+
+By definition the PDF specification allows four different color spaces with different numbers of color values:
+
+\begin{center}
+\begin{tabular}{cl}
+\# & color space\\
+\hline
+0 & transparent \\
+1 & grey scale \\
+3 & RGB\\
+4 & CMYK\\
+\end{tabular}
+\end{center}
+
+\subsubsection[\texttt{icolor}]{\styleoption{icolor}}\label{sec:icolor}
+You can use the option \styleoption{icolor} for defining the so called 'inner color', which is used by some PDF annotations, like arrowheads or the inner area of PDF circle annotation. For the rest, the provisions of the option \styleoption{color} shall apply.
+
+\subsubsection[\texttt{open}]{\styleoption{open} (\texttt{true},\underline{\texttt{false}})}\label{sec:open}
+You can use the option \styleoption{open} for defining the opening status of the PDF popup annotations.
+
+If you want to print the PDF popup annotations (with transparency) you will have to use the option \styleoption{open}\texttt{=true}.
+
+\subsubsection[\texttt{hspace}]{\styleoption{hspace} (\underline{\texttt{0pt}})}\label{sec:hspace}
+You can use the option \styleoption{hspace} for defining the horizontal space after the PDF text annotations, otherwise the PDF text annoations will overlay the text.
+
+\subsubsection[\texttt{type}]{\styleoption{type}}\label{sec:type}
+You can use the option \styleoption{type} for defining the type of PDF annotation, if a comment command supports more than one PDF annotations:
+
+{\renewcommand{\arraystretch}{1.2}
+\begin{center}
+\begin{tabular}{ll}
+\multicolumn{1}{c}{comment command} & \multicolumn{1}{c}{possible types}\\
+\hline
+\cs{pdffreetextcomment} & \underline{freetext}, callout, typewriter \\
+\cs{pdflinecomment} & \underline{line}, polyline, polygon \\
+\end{tabular}
+\end{center}}
+
+
+\subsubsection[\texttt{font}]{\styleoption{font} (\underline{\texttt{Helv}})}\label{sec:font}
+You can use the option \styleoption{font} for defining the font of PDF freetext annotations, like all fonts installed in the system, which don't contain a space in their name. Although \texttt{Adobe Reader} shows these fonts as embedded, they are not embedded in reality, but the PDF file just contains a reference\footnote{Adobe Acrobat offers the possibility to embed the fonts in the PS $\rightarrow$ PDF conversion} to the font (default: Helvetica)! Therefore you should use this option quite carefully. In the case of document exchange between several authors you should just use fonts, which are available on all computer systems, like the so called 'standard 14 fonts'. \pdfcomment[icon=Help,color=blue,open=true,subject={standard 14 fonts}]{Times-Roman (TiRo), Times-Bold (TiBo), Times-Italic (TiIt), Times-BoldItalic (TiBI), Helvetica (Helv), Helvetica-Bold (HeBo), Helvetica-Oblique (HeOb), Helvetica-BoldOblique (HeBO), Courier (Cour), Courier-Bold (CoBo), Courier-Oblique (CoOb), Courier-BoldOblique (CoBO), ZapfDingbats (ZaDb), Symbol (Symb)}
+
+\subsubsection[\texttt{fontsize}]{\styleoption{fontsize} (\underline{\texttt{12bp}})}\label{sec:fontsize}
+You can use the option \styleoption{fontsize} for defining the fontsize of PDF freetext annotations.
+
+\subsubsection[\texttt{fontcolor}]{\styleoption{fontcolor} (\underline{\texttt{\lbrack 0 0 0\rbrack}} (black))}\label{sec:fontcolor}
+You can use the option \styleoption{fontcolor} for defining the font color in PDF freetext annotations, which must be a RGB color.
+
+\subsubsection[\texttt{line}]{\styleoption{line}}\label{sec:line}
+You can use the option \styleoption{line} for defining the coordinates of lines in certain PDF annotations, e.\,g. in the form \{$x_1$\space$y_1$\space$x_2$\space$y_2$\}. The origin is in the bottom left page corner. The given numbers will be interpreted as Postscript points (\LaTeX{} unit: bp (big points)), as usual in PDF documents.
+
+{\renewcommand{\arraystretch}{1.2}
+\begin{center}
+\begin{tabular}{ll}
+\multicolumn{1}{c}{type of line} & \multicolumn{1}{c}{\# points}\\
+\hline
+line & $n = 2$ \\
+polyline, polygon & $n > 2$ \\
+callout line & $n = 3$ \\
+\end{tabular}
+\end{center}}
+
+In general, the points must be given from line begin to line end. For callout lines the points must be given from line end to line begin. Please note the example file \LinkEx!
+
+To avoid the method 'trail and error' you can load the PDF file with the Ghostscript viewer, which is capable of showing the cursor position in its status line.
+
+\subsubsection[\texttt{linewidth}]{\styleoption{linewidth} (\underline{\texttt{1bp}})}\label{sec:linewidth}
+You can use the option \styleoption{linewidth} for defining the line width of PDF annoations.
+
+\subsubsection[\texttt{linebegin}]{\styleoption{linebegin} (\underline{\texttt{/None})}}\label{sec:linebegin}
+You can use the option \styleoption{linebegin} for defining the arrow type at the line begin. The example file \LinkEx{} shows all possible types of arrows. \pdfcomment[icon=Help,color=blue,open=true,subject={arrow types}]{/None, /Square, /Circle, /Diamond, /OpenArrow, /ClosedArrow, /Butt (PDF1.5), /ROpenArrow (PDF1.5), /RClosedArrow (PDF1.5), /Slash (PDF1.6)}
+
+
+\subsubsection[\texttt{lineend}]{\styleoption{lineend} (\underline{\texttt{/OpenArrow}})}\label{sec:lineend}
+You can use the option \styleoption{lineend} for defining the arrow type at the line end.
+
+\subsubsection[\texttt{linesep}]{\styleoption{linesep} (\underline{\texttt{0.5cm}})}\label{sec:linesep}
+You can use the option \styleoption{linesep} for defining the horizontal space between text and line in the command \cs{pdfsidelinecomment}.
+
+\subsubsection[\texttt{borderstyle}]{\styleoption{borderstyle} (\underline{\texttt{solid}},\texttt{dashed})}\label{sec:borderstyle}
+You can use the option \styleoption{borderstyle} for defining the line style.
+
+\subsubsection[\texttt{dashstyle}]{\styleoption{dashstyle} (\underline{\texttt{\{3 3\}}})}\label{sec:dashstyle}
+You can use the option \styleoption{dashstyle} for defining the dash style, e.\,g. \{5 3\} (5 points line, 3 points space).
+
+\subsubsection[\texttt{bse}]{\styleoption{bse} (\underline{\texttt{none}},\texttt{cloudy})}\label{sec:bse}
+You can use the option \styleoption{bse} for defining the 'border style effect'.
+
+\subsubsection[\texttt{bsei}]{\styleoption{bsei} (\underline{\texttt{1}})}\label{sec:bsei}
+You can use the option \styleoption{bsei} for defining the 'border style effect intensity' (size of cloud elements). The PDF reference suggests values between 1 and 2.
+
+\subsubsection[\texttt{caption}]{\styleoption{caption} (\texttt{none},\underline{\texttt{inline}},\texttt{top})}\label{sec:caption}
+You can use the option \styleoption{caption} for defining the caption type of lines.
+
+The options \styleoption{inline} and \styleoption{top} shows the comment 'inline' and on top of the line. While using \styleoption{none} the comment will be shown in a PDF popup annotation.
+
+\subsubsection[\texttt{captionhoffset}]{\styleoption{captionhoffset} (\underline{\texttt{0pt}})}\label{sec:captionhoffset}
+You can use the option \styleoption{captionhoffset} for defining a horizontal offset, that is a horizontal shift of the line caption.
+
+\subsubsection[\texttt{captionvoffset}]{\styleoption{captionvoffset} (\underline{\texttt{0pt}})}\label{sec:captionvoffset}
+You can use the option \styleoption{captionvoffset} for definig a vertical offset of the line caption.
+
+\subsubsection[\texttt{voffset}]{\styleoption{voffset} (\underline{\texttt{0pt}})}\label{sec:voffset}
+You can use the option \styleoption{voffset} for defining a vertical offset of the PDF annotations, that is a vertical shift for the given length.
+
+\subsubsection[\texttt{hoffset}]{\styleoption{hoffset} (\underline{\texttt{0pt}})}\label{sec:hoffset}
+You can use the option \styleoption{hoffset} for defining a horizontal offset of the PDF annotations.
+
+\subsubsection[\texttt{width}]{\styleoption{width} (\underline{\texttt{0pt}})}\label{sec:width}
+You can use the option \styleoption{width} for defining the width of PDF annotations, e.\,g. the width of FreeText annotations. PDF text annatations have a width of 0pt by definition.
+
+\subsubsection[\texttt{height}]{\styleoption{height} (\underline{\texttt{0pt}})}\label{sec:height}
+You can use the option \styleoption{height} for definig the height of PDF annotations. PDF text annatations have a height of \cmd\normalbaselineskip{} by definition.
+
+\subsubsection[\texttt{markup}]{\styleoption{markup} (\underline{\texttt{Highlight}},\texttt{Underline},\texttt{Squiggly},\texttt{StrikeOut})}\label{sec:markup}
+You can use the option \styleoption{markup} for defining the type of the PDF text markup annotation.
+
+\subsubsection[\texttt{disable}]{\styleoption{disable} (\texttt{true},\underline{\texttt{false})}}\label{sec:disable}
+You can use the option \styleoption{disable} for switching off single PDF annotation. For switching off all PDF annotations use the global option \styleoption{final}.
+
+\subsubsection[\texttt{date}]{\styleoption{date}}\label{sec:date}
+You can use the option \styleoption{date} to assign a date to PDF annotations. If no explicit date is assigned the date and time of the creation of the PDF document is used. The input has to be in PDF date format, e.g.:
+
+\begin{center}
+\begin{tabular}{l}
+\texttt{D:YYYYMMDDhhmmss+TZ}\\
+\texttt{D:20101224153657+01'00'}
+\end{tabular}
+\end{center}
+
+\subsubsection[\texttt{timezone}]{\styleoption{timezone} (\underline{\texttt{+00'00'}})}\label{sec:timezone}
+You only have to use the option \styleoption{timezone}, if you are using automatic date setting and \XeLaTeX. Otherwise the \texttt{pdflatex} primitive \string\pdfcreationdate\ will be used. \styleoption{timezone}=+01'00' sets the timezone to central european time CET (default: +00'00' (GMT)).
+
+\subsubsection[\texttt{avatar}]{\styleoption{avatar}}\label{sec:avatar}
+With the option \styleoption{avatar} you can load the option lists, that were predefined with the command \cmd\defineavatar{} to avoid annoying typing.
+
+\subsubsection[\texttt{style}]{\styleoption{style}}\label{sec:style}
+With the option \styleoption{style} you can also load predefined option lists for spliting personal and stylistic options, e.\,g. \texttt{avatar=Josef, style=MyComment}.
+
+\subsubsection[\texttt{mathstyle}]{\styleoption{mathstyle} (\underline{\texttt{\string\textstyle}})}\label{sec:mathstyle}
+With the option \styleoption{mathstyle} you can correct the wrong size of PDF annotations produced with \texttt{\string\pdfmarkupcomment} or \texttt{\string\pdftooltip} in math mode by setting the math style to \texttt{\string\textstyle}, \texttt{\string\displaystyle}, \texttt{\string\scriptstyle} or \texttt{\string\scriptscriptstyle}. This option is only defined for \texttt{\string\pdfmarkupcomment} and \texttt{\string\pdftooltip}, so you can not set it globally!
+
+\subsubsection[\texttt{printSOfinal}]{\styleoption{printSOfinal} (\underline{\texttt{true}},\texttt{false})}\label{sec:printSOfinal}
+With the option \styleoption{printSOfinal} you can automatically delete PDF StrikeOut markup annotations including the text while using one of the options \styleoption{final} or \styleoption{disable}.
+
+\section{Environments}\label{sec:umgebungen}
+
+\subsection{Comment environments}\label{sec:kommentarumgebungen}
+
+\subsubsection{\texorpdfstring{\cs{pdfsidelinecomment}}{\textbackslash pdfsidelinecomment}}
+\label{sec:sidelinecomment}
+Possible \marginnote{\raggedleft\scriptsize\envb{pdfsidelinecomment}\\\oarg{options}\marg{comment}\\\dots\\\enve{pdfsidelinecomment}}options: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{icolor}, \styleoption{opacity}, \styleoption{linewidth}, \styleoption{linebegin}, \styleoption{lineend}, \styleoption{linesep}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{caption}, \styleoption{captionhoffset}, \styleoption{captionvoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+With the environment \env{pdfsidelinecomment} you can comment complete parts of a page in the form of two lines in the margins.
+
+\hspace*{0pt}\newline
+\begin{pdfsidelinecomment}[color=red,icolor=yellow,linebegin=/Circle,lineend=/Circle,linewidth=3bp,linesep=1cm]{ Please note }
+Limitations:
+
+\begin{itemize}
+\item The PDF sideline annotation must not be longer than one page, otherwise the recognition of the page break will fail.
+\item While using dvi files in the meantime you have to use a \LaTeX{} distribution, which is using \texttt{pdf(e)latex} as engine in a version $\geq$ v1.40.0\footnote{older versions are not capable of providing x/y coordinates of the current position in dvi mode.}!
+\item While using \XeLaTeX{} you have to make sure that page dimensions are written to the xdvi file, e.\,g. with the option \styleoption{pagesize} of the KoMa-Script classes, or as option of the package \package{typearea.sty} respectively.
+\end{itemize}
+\end{pdfsidelinecomment}
+
+\section{Commands}\label{sec:befehle}
+
+\subsection{Comment commands}\label{sec:kommentarbefehle}
+
+You can use the following commands for commenting your documents.
+
+\subsubsection{\texorpdfstring{\cs{pdfcomment}}{\textbackslash pdfcomment}}
+\label{sec:pdfcomment}
+Possible \margcs{\cmd\pdfcomment\\\oarg{options}\marg{comment}}options: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{icon}, \styleoption{color}, \styleoption{opacity}, \styleoption{open}, \styleoption{hspace}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfcomment{} will typeset an annotation into the text at the current \pdfcommentsetup{subject={\textbackslash pdfcomment test},hspace=18pt}\pdfcomment[icon=Star,color=YellowGreen]{This is a comment in the text} position.
+
+Internally, the argument \marg{comment} needs to be converted to PDFDocEncoding/PDFUnicode\footnote{\cmd\hypersetup\{unicode\}}. Some chars with special meaning in \LaTeX{} (\texttt{\&}, \texttt{\%,} ...) must be escaped or replaced with their command form, e.\,g. \texttt{\string\_} or \texttt{\string\textunderscore}. Furthermore there are some commands for formatting:
+
+\begin{center}
+\begin{tabular}{cl}
+\hline
+\cmd\textHT & horizontal tab \\
+\cmd\textLF & line feed \\
+\cmd\textCR & carriage return \\
+\hline
+\end{tabular}
+\end{center}
+
+\subsubsection{\texorpdfstring{\cs{pdfmargincomment}}{\textbackslash pdfmargincomment}}
+\label{sec:pdfmargincomment}
+Possible \margcs{\cmd\pdfmargincomment\\\oarg{options}\marg{comment}}options: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{icon}, \styleoption{color}, \styleoption{opacity}, \styleoption{open}, \styleoption{hspace}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfmargincomment{} will typeset an annotation into the margin. Please note the positioning of the annotation in this example. This documentation was written with the \LaTeX{} class \texttt{ltxdoc}\pdfcommentsetup{subject={\textbackslash pdfmargincomment test}}\pdfmargincomment[icon=Help,color=DeepPink,hspace=-30pt]{This is a comment in the margin}. Therefore the annotation is typeset into the left margin.
+
+\subsubsection{\texorpdfstring{\cs{pdfmarkupcomment}}{\textbackslash pdfmarkupcomment}}
+\label{sec:pdfmarkupcomment}
+Possible \margcs{\cmd\pdfmarkupcomment\oarg{options}\\\marg{markup text}\marg{comment}}options: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{opacity}, \styleoption{markup}, \styleoption{mathstyle}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfmarkupcomment{} will typeset so called PDF text markup annotations over the text specified in the argument \marg{markup text}. Possible types for the option \styleoption{markup} are: \pdfcommentsetup{subject={\textbackslash pdfmarkupcomment test}}\pdfmarkupcomment[color=yellow,markup=Highlight]{Highlight}{This is a Highlight markup annotation!}, \pdfmarkupcomment[color=red,markup=Underline]{Underline}{This is a Underline markup annotation!}, \pdfmarkupcomment[color=Teal,markup=Squiggly]{Squiggly}{This is a Squiggly markup annotation!} and \pdfmarkupcomment[color=red,markup=StrikeOut]{StrikeOut}{This is a StrikeOut markup annotation!}
+
+\hspace*{0pt}\newline
+Limitations:
+
+\begin{itemize}
+\item As the name PDF text markup annotation might lead to suggest, this form of comment is suitable for text only.
+\item The specified text with the argument \marg{markup text} must not be longer than one paragraph.
+\item The PDF text markup annotation must not be longer than one page, otherwise the recognition of the page break will fail.
+\item While using dvi files in the meantime you have to use a \LaTeX{} distribution, which is using \texttt{pdf(e)latex} as engine in a version $\geq$ v1.40.0\footnote{older versions are not capable of providing x/y coordinates of the current position in dvi mode.}!
+\item While using \XeLaTeX{} you have to make sure that page dimensions are written to the xdvi file, e.\,g. with the option \styleoption{pagesize} of the KoMa-Script classes, or as option of the package \package{typearea.sty} respectively.
+\end{itemize}
+
+Since version v1.6, \texttt{\string\pdfmarkupcomment} is also supported in math mode. So you can also comment formula like:
+
+\definestyle{mathpopup}{author={},subject={},color=NavajoWhite,markup=Highlight}
+
+\[
+\begin{array}{c>{\displaystyle}c}
+ \text{ Bernoulli Trials: } &
+ \pdfmarkupcomment[style=mathpopup]{P(E)}{Probability of event E: Get exactly k heads in n coin flips.}%
+ =
+ \pdfmarkupcomment[style=mathpopup]{\dbinom{n}{k}}{Number of ways to get exactly k heads in n coin flips}%
+ {\pdfmarkupcomment[style=mathpopup]{p}{Probability of getting heads in one flip}%
+}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{k}{Number of heads}
+ }%
+ \pdfmarkupcomment[style=mathpopup]{(1-p)}{Probability of getting tails in one flip}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{n-k}{Number of tails}%
+ }%
+\end{array}
+\]
+
+Also see \LinkExMath{} for a more detailed explanation of the possibilities!
+
+\subsubsection{\texorpdfstring{\cs{pdffreetextcomment}}{\textbackslash pdffreetextcomment}}
+\label{sec:pdffreetextcomment}
+Possible \margcs{\cmd\pdffreetextcomment\\\oarg{options}\marg{comment}} options: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{font}, \styleoption{fontsize}, \styleoption{fontcolor}, \styleoption{opacity}, \styleoption{line}, \styleoption{linewidth}, \styleoption{lineend}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{bse}, \styleoption{bsei}, \styleoption{type}, \styleoption{height}, \styleoption{width}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdffreetextcomment{} (\texttt{type=freetext}) will typeset a comment in form of a freely positioned box on the wished spot of the page.\pdffreetextcomment[subject={\textbackslash pdffreetextcomment Test},height=1.2cm,width=4cm,voffset=-3.7cm,hoffset=-2.2cm,opacity=0.5,color=yellow]{This is a FreeText annotation} By using the option \styleoption{type}\texttt{=callout} the box will have an additional so called callout line, to bind the box to a certain element of the page. With the option \styleoption{type}\texttt{=typewriter} you can write a comment everywhere on the page with a virtual 'typewriter'. These PDF freetext annotation don't have a frame but a transparent background for 'overwriting' arbitrary parts of the page. Please note the example file \LinkEx!
+
+\subsubsection{\texorpdfstring{\cs{pdfsquarecomment}}{\textbackslash pdfsquarecomment}}
+\label{sec:pdfsquarecomment}
+Possible \margcs{\cmd\pdfsquarecomment\\\oarg{options}\marg{comment}} options: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{icolor}, \styleoption{opacity}, \styleoption{linewidth}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{bse}, \styleoption{bsei}, \styleoption{height}, \styleoption{width}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfsquarecomment{} will typeset a rectangular box at the wished spot of a page (see: \LinkEx).
+
+
+\subsubsection{\texorpdfstring{\cs{pdfcirclecomment}}{\textbackslash pdfcirclecomment}}
+\label{sec:pdfcirclecomment}
+Possible \margcs{\cmd\pdfcirclecomment\\\oarg{options}\marg{comment}} options: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{icolor}, \styleoption{opacity}, \styleoption{linewidth}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{bse}, \styleoption{bsei}, \styleoption{height}, \styleoption{width}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfsquarecomment{} will typeset a comment in form of a circle or ellipse at the wished spot of the page (see: \LinkEx).
+
+\subsubsection{\texorpdfstring{\cs{pdflinecomment}}{\textbackslash pdflinecomment}}
+\label{sec:pdflinecomment}
+Possible \margcs{\cmd\pdfsidelinecomment\\\oarg{options}\marg{comment}}options: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{type}, \styleoption{color}, \styleoption{icolor}, \styleoption{opacity}, \styleoption{caption}, \styleoption{captionhoffset}, \styleoption{captionvoffset}, \styleoption{linewidth}, \styleoption{linebegin}, \styleoption{lineend}, \styleoption{line}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdflinecomment{} will typeset a comment in form of a line, polyline or polygon at the wished spot of the page (see: \LinkEx).
+
+\clearpage
+\subsection{Tooltips}
+
+\subsubsection{\texorpdfstring{\cs{pdftooltip}}{\textbackslash pdftooltip}}
+\label{sec:pdftooltip}
+Possible \margcs{\cmd\pdftooltip\oarg{options}\\\marg{object}\marg{comment}}options: \styleoption{disable}, \styleoption{mathstyle}
+
+\bigskip
+With the command \cmd\pdftooltip{} you can annotate any object with a tooltip - provided the the object can be set into a box to measure its size. Therefore you can smoothly use tooltips with \pdftooltip{\textcolor{red}{words}}{This is a tooltip!} or in a chemical notation: $\pdftooltip{H_{2}SO_{4}}{Sulfuric acid}$
+
+Of course, it also works in equations: \[\pdftooltip[mathstyle=\displaystyle]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{little Gauß}\]
+
+Please notice the comments about usage in math mode in section \ref{sec:pdfmarkupcomment}.
+
+If you want to annotate parts of a graphic with tooltips, special methods are needed, because \cmd\pdftooltip{} can not measure the size (see: \LinkEx).
+
+\texttt{\cmd\pdftooltip} can not be influenced with the \styleoption{final} option, as most users certainly want to have the tooltips in the final document. But they can be switched off with the \styleoption{disable} option.
+
+\bigskip
+\begin{tikzpicture}
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3,0) node (xaxis) [right] {$x$};
+ \draw (0,0) coordinate (a_1) -- (2,1.8) coordinate (a_2);
+ \draw (0,1.5) coordinate (b_1) -- (2.5,0) coordinate (b_2);
+ \coordinate (c) at (intersection of a_1--a_2 and b_1--b_2);
+ \draw[dashed] (yaxis |- c) node[left] {$y'$}
+ -| (xaxis -| c) node[below] {$x'$};
+ %
+ \fill[red] (0,0) circle (2pt);
+ \draw (0,0) node {\pdftooltip{\rule{0pt}{0.5cm}\rule{0.5cm}{0pt}}{Origin}};
+ %
+ \draw[red] (1.5,2) node {\pdftooltip{\textbullet}{1.5,2.0}};
+ %
+ \fill[red] (c) circle (2pt)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {This is the intersection point\textCR of the two lines!}};
+\end{tikzpicture}
+\hspace{1cm}
+\begin{tikzpicture}
+ \draw (1.5,0) node[below] {countries};
+ \draw (0,1) node[left] {\pdftooltip{SCI}{Sausage Consumption Index}};
+ \fill[blue] (0.5,0) rectangle (1,1.2)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ % these calculations are based on scale factor 1 otherwise use:
+ % \dimexpr(scale factor)\dimexpr\x2-\x1\relax\relax
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {USA: 120}};
+ \fill[red] (1.5,0) rectangle (2,1.8)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {Germany: 180}};
+ \fill[green] (2.5,0) rectangle (3,0.65)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {South Africa: 65}};
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3.5,0) node (xaxis) [right] {$x$};
+\end{tikzpicture}
+
+\subsection{Misc. commands}
+
+\subsubsection{\texorpdfstring{\cs{pdfcommentsetup}}{\textbackslash pdfcommentsetup}}
+\label{sec:commentsetup}
+With the command \cmd\pdfcommentsetup \margcs{\cmd\pdfcommentsetup\\\oarg{options}\marg{options}} you can reset the global options at any time. By using the optional option \styleoption{local} you can keep the reset local within a \LaTeX\ group.
+
+\subsubsection{\texorpdfstring{\cs{listofpdfcomments}}{\textbackslash listofpdfcomments}}
+\label{sec:listofpdfcomments}
+The command \cmd\listofpdfcomments\margcs{\cmd\listofpdfcomments\oarg{options}} creates a list of the PDF comments to ease finding them. The command offers the following options:
+
+\begin{itemize}
+\item \styleoption{liststyle} specifies the list style. Possible option values are:
+\begin{itemize}
+\item \mco{AuthorSubject} (default)
+\item \mco{AuthorSubjectDeadline}
+\item \mco{SubjectAuthorComment}
+\item \mco{SubjectAuthorCommentDeadline}
+\item \mco{AuthorComment}
+\item \mco{AuthorCommentDeadline}
+\item \mco{SubjectComment}
+\item \mco{SubjectCommentDeadline}
+\item \mco{Comment}
+\item \mco{CommentDeadline}
+\end{itemize}
+
+
+\item \styleoption{heading} specifies an alternative heading, e.\,g. \styleoption{heading}=\{List of comments\}.
+\end{itemize}
+
+\subsubsection{\texorpdfstring{\cs{setliststyle}}{\textbackslash setliststyle}}
+\label{sec:setliststyle}
+The command \cmd\setliststyle\margcs{\cmd\setliststyle\marg{name}} is necessary, if comments are used before \cmd\listofpdfcomments\ and you wish to have an alternative list style.
+
+\subsubsection{\texorpdfstring{\cs{defineliststyle}}{\textbackslash defineliststyle}}
+\label{sec:defineliststyle}
+With the command \cmd\defineliststyle\margcs{\cmd\defineliststyle\\\marg{name}\marg{definition}} you can define new list styles, e.\,g.:
+
+\medskip
+\cmd\makeatletter\\
+\cmd\defineliststyle\{MyListstyle\}\{\cmd\pc@lopt@subject\texttt{\textbackslash}\ \cmd\textcolor\{green\}\\\{(\cmd\pc@lopt@author)\}:\texttt{\textbackslash}\ \cmd\pc@lopt@comment\texttt{\textbackslash}\ \cmd\textcolor\{red\}\\\{(\cmd\pc@lopt@deadline)\}\}\\
+\cmd\makeatother
+
+\subsubsection{\texorpdfstring{\cs{defineavatar}}{\textbackslash defineavatar}}
+\label{sec:defineavatar}
+With the command \cmd\defineavatar \margcs{\cmd\defineavatar\marg{name}\marg{options}} you can create named predefined option lists, which can be later used in the comment commands with the option \styleoption{avatar}. With this option, it's easy for several authors of the same document to switch between different avatars, that is their graphical representation.
+
+\subsubsection{\texorpdfstring{\cs{definestyle}}{\textbackslash definestyle}}
+\label{sec:definestyle}
+With the command \cmd\definestyle \margcs{\cmd\definestyle\marg{name}\marg{options}} you can split up lists in personal and stylistic option lists (see \LinkEx). This option list can be loaded with the option \styleoption{style}.
+
+\section{Printing comments and popups}
+\label{sec:print}
+Basically, \texttt{Adobe Reader} is able to print PDF annotations. Therefore, you have to choose 'Document and Markups' in the field 'Comments and Forms' of the print dialog. Additionally, you have to configure the menu 'Edit $\rightarrow$ Preferences... $\rightarrow$ Commenting $\rightarrow$ Print notes and pop-ups'. This entry exists since the release of \texttt{Adobe Reader X}. For older versions, the only possibility is to edit the configuration files itself.
+
+\begin{description}
+\item[Windows:] the registry needs to be changed (on your own risk!)
+
+Start the registry editor (\file{regedit.exe}) and open the following key, e.\,g. for \texttt{Adobe Reader 9.0}:
+
+\texttt{HKEY\_CURRENT\_USER/Software/Adobe/Acrobat Reader/9.0/Annots/\newline cPrefs}
+
+The key for other version will be similar, except version number and some letters in lower- or uppercase!
+
+Open or create (with closed \texttt{Adobe Reader}) the key \newline\texttt{bprintCommentPopups} and change the value to 1 (dword).
+
+\item[Linux:] open the configuration file:
+
+\nolinkurl{~/.adobe/Acrobat/8.0/Preferences/reader_prefs}
+
+with a text editor and change the entry
+
+{\texttt{/printCommentPopups\,[/b false]} to \texttt{/printCommentPopups\,[/b true]}}
+\end{description}
+
+Please note that only opened popups will be printed!
+
+\end{document}
diff --git a/macros/latex/contrib/pdfcomment/doc/pdfcomment_de.pdf b/macros/latex/contrib/pdfcomment/doc/pdfcomment_de.pdf
new file mode 100644
index 0000000000..ed71626a26
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/pdfcomment_de.pdf
Binary files differ
diff --git a/macros/latex/contrib/pdfcomment/doc/pdfcomment_de.tex b/macros/latex/contrib/pdfcomment/doc/pdfcomment_de.tex
new file mode 100644
index 0000000000..e9e378ca9a
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/doc/pdfcomment_de.tex
@@ -0,0 +1,694 @@
+\documentclass[a4paper]{ltxdoc}%
+\usepackage[german]{babel}%
+\usepackage[latin1]{inputenc}%
+\usepackage[T1]{fontenc}%
+\usepackage{lmodern}%
+\usepackage{bera}%
+\usepackage{textcomp}%
+\usepackage{microtype}%
+\usepackage{attachfile}%
+\usepackage{ltxdocext}%
+\usepackage{marginnote}%
+\usepackage{metalogo}%
+\usepackage[svgnames,rgb]{xcolor}%
+\usepackage{amsmath,array}%
+\usepackage{tikz}%
+\usetikzlibrary{calc}%
+\usepackage{ragged2e}%
+\usepackage{url}%
+\usepackage[automark,nouppercase]{scrpage2}
+\usepackage{pdfcomment}%
+%
+\def\LinkExMath{\href{http://mirror.ctan.org/macros/latex/contrib/pdfcomment/doc/example_math_markup.pdf}{\texttt{example\_math\_markup.pdf}}}
+\def\LinkEx{\href{http://mirror.ctan.org/macros/latex/contrib/pdfcomment/doc/example.pdf}{\texttt{example.pdf}}}
+\def\filename{pdfcomment.sty}%
+\def\XeLaTeX{Xe\LaTeX}%
+%
+\makeatletter%
+\hypersetup{colorlinks=true,urlcolor=NavyBlue,linkcolor=NavyBlue,citecolor=CornflowerBlue,naturalnames=true,hypertexnames=false}%
+\setlength{\headheight}{1.1\baselineskip}%
+%
+\renewcommand{\maketitle}%
+{%
+ \thispagestyle{empty}%
+ \pagecolor{Ivory}%
+ \begin{titlepage}%
+ \begin{tikzpicture}[remember picture,overlay]%
+ \node[yshift=-2cm] at (current page.north west)%
+ {%
+ \begin{tikzpicture}[remember picture, overlay]%
+ \draw[fill=CornflowerBlue,color=CornflowerBlue] (0,0) rectangle%
+ (\paperwidth,2cm);%
+ \draw[anchor=west,yshift=-4cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\RaggedRight\Huge\sffamily\textbf{\@title}}};%
+ \draw[anchor=west,yshift=-6cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\huge\sffamily\textbf{\@fileversion}}};%
+ \draw[anchor=west,yshift=-9cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\RaggedRight\huge\sffamily\textbf{\@subtitle}}};%
+ \draw[anchor=west,yshift=-14cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\huge\sffamily\textbf{\@date}}};%
+ \draw[anchor=west,yshift=-20cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\Large\sffamily{\@authorline\\\textbf{\@author}}}};%
+ \end{tikzpicture}%
+ };%
+ \node[yshift=0cm] at (current page.south west)%
+ {%
+ \begin{tikzpicture}[remember picture, overlay]%
+ \draw[fill=NavyBlue,color=NavyBlue,yshift=6cm,xshift=2cm] (0,0) rectangle (0.2cm,19cm);%
+ \draw[fill=CornflowerBlue,color=CornflowerBlue] (0,0) rectangle (\paperwidth,2cm);%
+ \draw[anchor=west,yshift=1cm,xshift=3cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\large\sffamily{\@refline}}};%
+ \end{tikzpicture}%
+ };%
+ \end{tikzpicture}%
+ \end{titlepage}%
+ \pagecolor{white}%
+}%
+%
+\newcommand*{\@tikzhead}[1]%
+{%
+ \begin{tikzpicture}[remember picture,overlay]%
+ \node[yshift=-2cm] at (current page.north west)%
+ {%
+ \begin{tikzpicture}[remember picture, overlay]%
+ \draw[fill=CornflowerBlue] (0,0) rectangle (\paperwidth,2cm);%
+ \draw[anchor=west,yshift=1cm,xshift=1.5cm,color=NavyBlue] (0,0) node%
+ {\parbox{15cm}{\LARGE\sffamily\textbf{\@title}}};%
+ \node[anchor=east,xshift=.9\paperwidth,rectangle,%
+ rounded corners=15pt,inner sep=11pt,fill=NavyBlue]%
+ {\color{white}\textsc{#1}};%
+ \end{tikzpicture}%
+ };%
+ \end{tikzpicture}%
+}%
+\clearscrheadings%
+\ihead{\@tikzhead{\headmark}}%
+\cfoot{\thepage}%
+\pagestyle{scrheadings}%
+%
+\renewcommand{\headfont}{\normalfont\mdseries\scshape}
+%
+%\newcommand*{\Headline}[1]{\@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}%
+\newcommand*{\Headline}[1]{\@mkboth{#1}{#1}}%
+%
+\gdef\@subtitle{}%
+\providecommand*{\Subtitle}[1]{\gdef\@subtitle{#1}}%
+\gdef\@fileversion{}%
+\providecommand*{\Fileversion}[1]{\gdef\@fileversion{#1}}%
+\gdef\@authorline{Package Autor:}%
+\providecommand*{\Authorline}[1]{\gdef\@authorline{#1}}%
+\gdef\@refline{}%
+\providecommand*{\Refline}[1]{\gdef\@refline{#1}}%
+\gdef\and{\unskip{}, }%
+%
+\renewcommand\tableofcontents%
+{%
+ %\section*{\contentsname}%
+ \@mkboth{%
+ \MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
+ \@starttoc{toc}%
+}%
+%
+\CodelineIndex%
+\renewcommand{\arg}[1]%
+{%
+ {\ttfamily\string{}\meta{#1}{\ttfamily\string}}%
+ \index{#1=\string\ttt{#1}, Argument}\index{Argument>#1=\string\ttt{#1}}%
+}%
+\renewcommand{\oarg}[1]%
+{%
+ {\ttfamily[%]
+ }\meta{#1}{\ttfamily%[
+ ]}%
+ \index{#1=\string\ttt{#1}, optionales Argument}%
+ \index{Argument, optional>#1=\string\ttt{#1}}%
+}%
+\renewcommand\env{\name@idx{Umgebung}}%
+\renewcommand*{\file}[1]{%
+ {\ttfamily#1}%
+ \index{#1=\string\ttt{#1}}\index{Datei>#1=\string\ttt{#1}}%
+}%
+\newcommand\styleoption{\name@idx{Styleoption}}%
+\newcommand\stylename{\name@idx{Dokumentenstyle}}%
+\def\name@idx#1#2{%
+ {\ttfamily#2}%
+ \index{#2\space#1=\string\ttt{#2}\space#1}\index{#1>#2=\string\ttt{#2}}%
+}%
+\newcommand*\margcs[1]{\marginnote{\raggedleft\scriptsize #1}}%
+\newcommand*\package[1]{\texttt{#1}\index{#1=\string\ttt{#1}}}%
+\newcommand*\mco[1]{\mbox{\LANGLE\itshape#1\RANGLE}\index{#1, Klassenoptionwert}\index{Klassenoptionwert>#1}}%
+%
+\renewcommand\@biblabel[1]{\makebox[1.5cm][l]{[#1]}}%
+\renewcommand*\l@subsection{\@dottedtocline{2}{1.2em}{2.3em}}%
+\renewcommand*\l@subsubsection{\@dottedtocline{3}{2.4em}{3.7em}}%
+\makeatother%
+%
+\setlength\parindent{0pt}%
+%
+\hypersetup{pdfauthor={Josef Kleber},pdftitle={Ein benutzerfreundliches Interface zu PDF-Kommentaren},pdfsubject={Dokumentation für den LaTeX style \filename}}
+%
+\begin{document}
+%\pdfcommentsetup{date=D:20101212153723+01'00'}
+\date{2018/11/01}
+\bibliographystyle{alphadin}
+\title{\filename}%
+\Subtitle{Ein benutzerfreundliches Interface zu PDF-Kommentaren}%
+\author{Josef Kleber}
+\Fileversion{v2.4a}
+\Refline{\href{mailto:pdfcomment@jklatex.de}{\texttt{pdfcomment@jklatex.de}}\\\href{http://pdfcomment.jklatex.de}{\texttt{http://pdfcomment.jklatex.de}}}
+\maketitle
+\Headline{Zusammenfassung}%
+\begin{abstract}
+\texttt{pdflatex}\index{pdflatex} bietet seit jeher den Befehl \cmd\pdfannot{} für das Einfügen beliebiger PDF annotations. Allerdings in einer Form, in der zusätzliche Kenntnisse der PDF-Referenz unabdingbar sind. \substyle{\filename} ist eine Antwort auf die in Newsgroups -- von Zeit zu Zeit -- auftauchende Frage, wie man die Kommentarfunktion des \texttt{Adobe Reader} nutzen könnte. Zumindest aus dem \LaTeX{}-Code heraus, bietet \substyle{\filename} eine bequeme und nutzerfreundliche Möglichkeit PDF annotations in PDF-Dateien zu nutzen. Seit Version v1.1 unterstützt \texttt{\filename{}} auch:
+
+\medskip
+\noindent\hfill\texttt{\LaTeX{} $\rightarrow$ \texttt{dvips} $\rightarrow$ \texttt{ps2pdf}, \LaTeX{} $\rightarrow$ \texttt{dvipdfmx}\footnote{nur mit der Styleoption \texttt{dvipdfmx}}, \XeLaTeX\ und \LuaLaTeX}.\hfill
+\medskip
+
+Leider ist die Unterstützung der PDF annotations durch die PDF-Viewer teilweise nur sehr eingeschränkt bzw. gar nicht vorhanden. Der Referenz-Viewer für die Entwicklung dieses Pakets ist \texttt{Adobe Reader}.
+
+Falls Sie diesen Kommentar \pdfcomment[author={Josef Kleber},subject={Test Kommentar},color=lime,hspace=20pt]{Das ist ein Kommentar} nicht sehen, benutzen Sie definitiv den falschen PDF-Viewer!
+\end{abstract}
+\vfill
+\begin{center}
+\subsubsection*{Benötigte Pakete für die Nutzung von \substyle{\filename}}
+\fbox{\parbox[t]{.8\linewidth}{\small \package{hyperref} (v6.76a [2007/04/09]), \package{zref} (v1.8 [2007/04/22]), \package{xkeyval}, \package{etoolbox}, \package{luatex85}, \package{ifpdf}, \package{iflatex}, \package{ifthen}, \package{calc}, \package{marginnote}, \package{datetime2}, \package{refcount}, \package{soulpos} und die von diesen Paketen aufgerufenen Dateien.}}
+\end{center}
+\vfill
+\clearpage
+\begin{multicols}{2}
+[\section*{\contentsname}
+\setlength{\columnseprule}{.5pt}
+\setlength{\columnsep}{30pt}\small]
+\tableofcontents
+\end{multicols}
+\clearpage
+\section*{Danksagung}
+\Headline{Danksagung}%
+Für Beiträge zur Entwicklung dieses Pakets möchte ich folgenden Personen danken:
+
+\begin{itemize}
+\item \textbf{Javier Bezos} für die Entwicklung von \package{soulpos}, das eine bessere Unterstützung von Nicht-Standardtext-Fällen in \cs{pdfmarkupcomment} möglich macht.
+
+\item \textbf{Alexander Grahn} für das Bereitstellen eines Patchs für andere Treiber
+
+\medskip
+\noindent\hfill\texttt{\LaTeX{} $\rightarrow$ \texttt{dvips} $\rightarrow$ \texttt{ps2pdf}, \LaTeX{} $\rightarrow$ \texttt{dvipdfmx} und \XeLaTeX}.\hfill
+\medskip
+
+\item \textbf{Ulrike Fischer} für das Beantworten meiner dummen Fragen in d.c.t.t. zur Verwirklichung des Avatar- und Style-Systems und vieles mehr.
+
+\item \textbf{Christian Feuersänger} für das Einbringen neuer Ideen in Form von \package{pdfmarginpar.sty} und die Lösung des Druckproblems\footnote{siehe Abschnitt \ref{sec:print}} der PDF annotations und popups.
+
+\item \textbf{Ross Moore} für das Einbringen von Ideen und Code zur Umsetzung seines eigenen feature requests zur Unterstützung von \texttt{\string\pdfmarkupcomment} im math mode.
+
+\item \textbf{Heiko Oberdiek} ebenfalls für das Beantworten meiner dummen Fragen in d.c.t.t., sowie die Entwicklung dutzender nützlicher Pakete, speziell \file{hyperref.sty}, \file{hycolor.sty} und \file{zref.sty}, die dieses Paket erst ermöglichten.
+
+\item \textbf{Herbert Voß} ebenfalls für das Beantworten meiner dummen Fragen in d.c.t.t.
+\end{itemize}
+
+Außerdem möchte ich folgenden Personen danken für bug reports, feature requests, ...: Til Birnstiel, Jannis von Buttlar, Gabriel Cardona, Thomas Feller, Florent Chervet, Jin-Hwan Cho, Marcel Dausend, Andrew Dawson, diabonas, Max Funk, Zvi Gilboa, Thomas König, Marc-André Michel, Guillaume Millet, Fritz Moore, Michael Niedermair, Stefan Pinnow, René Schwarz
+\clearpage
+\section{Optionen}
+\subsection{Globale Styleoptionen}
+\subsubsection[\texttt{final}]{\styleoption{final}}\label{sec:final}
+Mit der Option \texttt{final} versetzt man das Paket in den Final-Modus. Die PDF annotations werden nicht gesetzt und beeinflussen daher auch nicht den Zeilen\-umbruch. Benutzen Sie die lokale Option \styleoption{disable}, falls Sie nur einzelne PDF annotations abschalten möchten. (siehe: \ref{sec:disable})
+\subsubsection[\texttt{draft}]{\styleoption{draft}}\label{sec:draft}
+Mit der Option \texttt{draft} (default) versetzt man das Paket in den Draft-Modus. Die PDF annotations werden daher gesetzt.
+\subsubsection[\texttt{dvipdfmx}]{\styleoption{dvipdfmx}}\label{sec:dvipdfmx}
+Falls Sie für die Erstellung Ihrer Dokumente den Treiber \texttt{dvipdfmx} einsetzen möchten, müssen Sie die Option \texttt{dvipdfmx} benutzen. Die anderen bereits erwähnten Treiber werden automatisch erkannt.
+\subsubsection[\texttt{version}]{\styleoption{version}}\label{sec:version}
+Mit der Version v2.0 von \texttt{pdfcomment.sty} wurde ein Bugfix hinzugefügt, der ungewollten Whitespace vor den Kommentarbefehlen entfernt. Das ändert u.\,U. auch den Referenzpunkt für Optionen wie \styleoption{hoffset}. Möchten Sie das ursprüngliche Verhalten erhalten - etwa für alte Dokumente - verwenden Sie die Option \texttt{version=1}. Ansonsten wird die Option \texttt{version=2} als Default verwendet!
+\subsection{Lokale Optionen}
+Die anschließend vorgestellten Optionen sind für die in den Abschnitten \ref{sec:umgebungen} und \ref{sec:befehle} vorgestellten Befehle anwendbar, allerdings können sie auch als Styleoptionen benutzt werden. Als Styleoptionen besitzen sie globale Wirkung, während sie in Befehlen nur eine lokale Wirkung besitzen und die globalen Optionen nicht überschreiben.
+
+\subsubsection[\texttt{subject}]{\styleoption{subject}}\label{sec:subject}
+Die Option \styleoption{subject} dient der Festlegung der Überschriften der PDF popup annotations.
+
+\subsubsection[\texttt{author}]{\styleoption{author}}\label{sec:author}
+Die Option \styleoption{author} dient der Festlegung des Verfassers der PDF popup annotations.
+
+\subsubsection[\texttt{opacity}]{\styleoption{opacity} (\underline{\texttt{1.0}})}\label{sec:opacity}
+Die Option \styleoption{opacity} dient der Festlegung der Transparenz der PDF annotations. Die Werte liegen dabei zwischen 0 (transparent) und 1 (nicht transparent). Möchten Sie die PDF popup annotations mit Transparenz drucken, funktioniert das nur zuverlässig, falls sie mit der Option \styleoption{open}\texttt{=true} erstellt werden.
+
+\subsubsection[\texttt{icon}]{\styleoption{icon} (\underline{\texttt{Comment}})}\label{sec:icon}
+Die Option \styleoption{icon} dient der Festlegung der Grafik, die für die PDF text annotations benutzt werden sollen. Die folgenden Icons werden in der PDF-Referenz als verbindlich festgelegt:
+
+\pdfcommentsetup{author={Josef Kleber},subject={Icon Übersicht},width=17mm}
+{\renewcommand{\arraystretch}{2.5}
+\begin{center}
+\begin{tabular}{rlrlrl}
+\texttt{Comment} & \pdfcomment[icon=Comment,color=Ivory,hspace=1.5cm]{Optionen: icon=Comment,color=Ivory} &
+\texttt{Key} & \pdfcomment[icon=Key,color=Khaki,hspace=1.5cm]{Optionen: icon=Key,color=Khaki} &
+\texttt{Note} & \pdfcomment[icon=Note,color=LavenderBlush,hspace=1.5cm]{Optionen: icon=Note,color=LavenderBlush}\\
+\texttt{Help} & \pdfcomment[icon=Help,color=CornflowerBlue,hspace=1.5cm]{Optionen: icon=Help,color=CornflowerBlue} &
+\texttt{NewParagraph} & \pdfcomment[icon=NewParagraph,color=SkyBlue,hspace=1.5cm]{Optionen: icon=NewParagraph,color=SkyBlue}\\
+\texttt{Paragraph} & \pdfcomment[icon=Paragraph,color=SpringGreen,hspace=1.5cm]{Optionen: icon=Paragraph,color=SpringGreen} &
+\texttt{Insert} & \pdfcomment[icon=Insert,color=PaleTurquoise,hspace=1.5cm]{Optionen: Insert,color=PaleTurquoise} &
+ & \\
+\end{tabular}
+\end{center}
+}
+
+\begin{samepage}
+Außerdem werden vom \texttt{Adobe Reader} und einigen anderen Viewern auch diese Icons unterstützt:
+
+{\renewcommand{\arraystretch}{2.5}
+\begin{center}
+\begin{tabular}{rlrlrl}
+\texttt{Check} & \pdfcomment[icon=Check,color=Orchid,hspace=1cm]{Optionen: icon=Check,color=Orchid} &
+\texttt{Circle} & \pdfcomment[icon=Circle,color=LightCyan,hspace=1cm]{Optionen: icon=Circle,color=LightCyan} &
+\texttt{Cross} & \pdfcomment[icon=Cross,color=Bisque,hspace=1cm]{Optionen: icon=Cross,color=Bisque}\\
+\texttt{Star} & \pdfcomment[icon=Star,color=Aquamarine,hspace=1cm]{Optionen: icon=Star,color=Aquamarine} &
+\texttt{RightArrow} & \pdfcomment[icon=RightArrow,color=Gainsboro,hspace=1cm]{Optionen: icon=RightArrow,color=Gainsboro} &
+\texttt{RightPointer} & \pdfcomment[icon=RightPointer,color=Salmon,hspace=1cm]{Optionen: icon=RightPointer,color=Salmon}\\
+\texttt{UpArrow} & \pdfcomment[icon=UpArrow,color=Teal,hspace=1cm]{Optionen: icon=UpArrow,color=Teal} &
+\texttt{UpLeftArrow} & \pdfcomment[icon=UpLeftArrow,color=Magenta,hspace=1cm]{Optionen: icon=UpLeftArrow,color=Magenta} &
+\texttt{CrossHairs (AR X)} & \pdfcomment[icon=CrossHairs,color=green,hspace=1cm]{Optionen: icon=CrossHairs,color=green}
+\end{tabular}
+\end{center}
+}
+\end{samepage}
+
+\subsubsection[\texttt{deadline}]{\styleoption{deadline}}\label{sec:deadline}
+Die Option \styleoption{deadline} dient der Festlegung einer Frist zur Behebung eines Problems. Die Frist wird an das Ende des Kommentars angefügt, sowie gegebenenfalls - bei entsprechendem Listenstil - auch in die Liste der Kommentare aufgenommen.
+
+\subsubsection[\texttt{color}]{\styleoption{color} (\underline{\texttt{\lbrack 0 0 1\rbrack}} (blau))}\label{sec:color}
+Die Option \styleoption{color} dient der Festlegung der Farbe der PDF annotations z.\,B. in der Form \{0.34 0.56 0.12\} (RGB). Bei Verwendung des Zusatzpakets \package{xcolor} kann man auch vordefinierte Basisfarbnamen, sowie die zusätzlich verfügbaren optionalen Farbnamen verwenden. Außerdem kann man mit dem Befehl \cmd\definecolor{} eigene benannte Farben definieren. Bitte beachten Sie das beigefügte Beispiel \file{example.tex}.\marginnote{\attachfile[author={Josef Kleber},subject={example.tex},description={Sourcecode: example.tex} ,mimetype={text/plain}, icon={Tag}]{example.tex}} Es bietet einen Überblick über die unterschiedlichen Möglichkeiten zur Festlegung der Farbe.
+
+Grundsätzlich erlaubt die PDF Spezifikation vier unterschiedliche Farbräume, die sich in der Anzahl der Farbwertangaben unterscheiden:
+
+\begin{center}
+\begin{tabular}{cl}
+\# & Farbraum\\
+\hline
+0 & transparent \\
+1 & Grauwert \\
+3 & RGB\\
+4 & CMYK\\
+\end{tabular}
+\end{center}
+
+\subsubsection[\texttt{icolor}]{\styleoption{icolor}}\label{sec:icolor}
+Die Option \styleoption{icolor} dient der Festlegung der bei einigen PDF annotations genutzten sogenannten 'inner color', etwa in Pfeilspitzen oder die Innenfläche der PDF circle annotation. Im Übrigen gelten dieselben Bestimmungen wie bei der Option \styleoption{color}.
+
+\subsubsection[\texttt{open}]{\styleoption{open} (\texttt{true},\underline{\texttt{false}})}\label{sec:open}
+Die Option \styleoption{open} dient der Festlegung des Öffnungsstatus der PDF popup annotations.
+
+Möchten Sie die PDF popup annotations (mit Transparenz) drucken, funktioniert das nur mit PDF annotations, die mit der Option \styleoption{open} = \texttt{true} erstellt wurden.
+
+\subsubsection[\texttt{hspace}]{\styleoption{hspace} (\underline{\texttt{0pt}})}\label{sec:hspace}
+Die Option \styleoption{hspace} dient der Anpassung des horizontalen Abstands hinter den PDF text annotations, falls der Text nicht durch die PDF text annotations überschrieben werden sollen.
+
+\subsubsection[\texttt{type}]{\styleoption{type}}\label{sec:type}
+Die Option \styleoption{type} dient der Festlegung des jeweiligen Typs der PDF annotation, falls ein Kommentarbefehl mehrere PDF annotations unterstützt:
+
+{\renewcommand{\arraystretch}{1.2}
+\begin{center}
+\begin{tabular}{ll}
+\multicolumn{1}{c}{Kommentarbefehl} & \multicolumn{1}{c}{mögliche Typen}\\
+\hline
+\cs{pdffreetextcomment} & \underline{freetext}, callout, typewriter \\
+\cs{pdflinecomment} & \underline{line}, polyline, polygon \\
+\end{tabular}
+\end{center}}
+
+\subsubsection[\texttt{font}]{\styleoption{font} (\underline{\texttt{Helv}})}\label{sec:font}
+Die Option \styleoption{font} dient der Festlegung der Schriftart in PDF freetext annotations. Möglich sind dabei alle im System installierten Schriften, die keine Leerzeichen im Namen enthalten. Obwohl \texttt{Adobe Reader} diese Schrift als eingebettet kennzeichnet, ist sie das in der Realität nicht und die PDF-Datei enthält nur eine Referenz\footnote{Adobe Acrobat bietet die Möglichkeit Schriften bei der Konvertierung PS $\rightarrow$ PDF nachträglich einzubetten} auf die Schrift (default: Helvetica)! Daher sollte man diese Option nur sehr vorsichtig nutzen und z.\,B. beim Austausch des Dokuments unter mehreren Autoren nur Schriften nutzen, die auf allen beteiligten Computersystemen vorhanden sind. Das sind etwa die sogenannten 'standard 14 fonts'. \pdfcomment[icon=Help,color=blue,open=true,subject={Standard 14 fonts}]{Times-Roman (TiRo), Times-Bold (TiBo), Times-Italic (TiIt), Times-BoldItalic (TiBI), Helvetica (Helv), Helvetica-Bold (HeBo), Helvetica-Oblique (HeOb), Helvetica-BoldOblique (HeBO), Courier (Cour), Courier-Bold (CoBo), Courier-Oblique (CoOb), Courier-BoldOblique (CoBO), ZapfDingbats (ZaDb), Symbol (Symb)}
+
+\subsubsection[\texttt{fontsize}]{\styleoption{fontsize} (\underline{\texttt{12bp}})}\label{sec:fontsize}
+Die Option \styleoption{fontsize} dient der Festlegung der Schriftgröße in PDF freetext annotations.
+
+\subsubsection[\texttt{fontcolor}]{\styleoption{fontcolor} (\underline{\texttt{\lbrack 0 0 0\rbrack}} (schwarz))}\label{sec:fontcolor}
+Die Option \styleoption{fontcolor} dient der Festlegung der Schriftfarbe in PDF freetext annotations und erwartet dabei zwingend eine RGB-Farbe.
+
+\subsubsection[\texttt{line}]{\styleoption{line}}\label{sec:line}
+Die Option \styleoption{line} dient der Festlegung der Koordinaten der Linien bei bestimmten PDF annotations, z.\,B. in der Form \{$x_1$\space$y_1$\space$x_2$\space$y_2$\}. Der Koordinatenursprung liegt dabei in der linken unteren Seitenecke, wobei die angegebenen Zahlen, als die in PDF-Dokumenten üblichen PostScript-Punkte (\LaTeX{}-Einheit: bp (big points)) interpretiert werden.
+
+{\renewcommand{\arraystretch}{1.2}
+\begin{center}
+\begin{tabular}{ll}
+\multicolumn{1}{c}{Linientyp} & \multicolumn{1}{c}{\# Punkte}\\
+\hline
+Linie & $n = 2$ \\
+Polyline, Polygon & $n > 2$ \\
+Callout Linie & $n = 3$ \\
+\end{tabular}
+\end{center}}
+
+Üblicherweise erfolgt die Angabe der Koordinaten vom Linienanfang zum Linienende. Bei der Callout Linie müssen die Koordinaten vom Linienende bis zum Linienanfang angegeben werden. Beachten Sie dazu bitte das Beispiel \LinkEx!
+
+Zur Vermeidung der Methode 'Versuch und Irrtum' kann man die PDF-Datei mit dem Ghostscript Viewer laden, der in der Lage ist die aktuelle Position des Cursors in der Statuszeile anzuzeigen.
+
+\subsubsection[\texttt{linewidth}]{\styleoption{linewidth} (\underline{\texttt{1bp}})}\label{sec:linewidth}
+Die Option \styleoption{linewidth} dient der Festlegung der Liniendicke in PDF annoations.
+
+\subsubsection[\texttt{linebegin}]{\styleoption{linebegin} (\underline{\texttt{/None})}}\label{sec:linebegin}
+Die Option \styleoption{linebegin} dient der Festlegung des Pfeiltyps am Linienanfang. Die Beispieldatei \LinkEx{} zeigt alle möglichen Pfeiltypen. \pdfcomment[icon=Help,color=blue,open=true,subject={Pfeiltypen}]{/None, /Square, /Circle, /Diamond, /OpenArrow, /ClosedArrow, /Butt (PDF1.5), /ROpenArrow (PDF1.5), /RClosedArrow (PDF1.5), /Slash (PDF1.6)}
+
+\subsubsection[\texttt{lineend}]{\styleoption{lineend} (\underline{\texttt{/OpenArrow}})}\label{sec:lineend}
+Die Option \styleoption{lineend} dient der Festlegung des Pfeiltyps am Linienende.
+
+\subsubsection[\texttt{linesep}]{\styleoption{linesep} (\underline{\texttt{0.5cm}})}\label{sec:linesep}
+Die Option \styleoption{linesep} dient der Festlegung des horizontalen Abstands der Linie beim Befehl \cs{pdfsidelinecomment}.
+
+\subsubsection[\texttt{borderstyle}]{\styleoption{borderstyle} (\underline{\texttt{solid}},\texttt{dashed})}\label{sec:borderstyle}
+Die Option \styleoption{borderstyle} dient der Festlegung des Linienstils.
+
+\subsubsection[\texttt{dashstyle}]{\styleoption{dashstyle} (\underline{\texttt{\{3 3\}}})}\label{sec:dashstyle}
+Die Option \styleoption{dashstyle} dient der Festlegung des Strichlinienstils, z.\,B. \{5 3\} (5 Punkte Linie, 3 Punkte Abstand).
+
+\subsubsection[\texttt{bse}]{\styleoption{bse} (\underline{\texttt{none}},\texttt{cloudy})}\label{sec:bse}
+Die Option \styleoption{bse} dient der Festlegung des 'border style effect'.
+
+\subsubsection[\texttt{bsei}]{\styleoption{bsei} (\underline{\texttt{1}})}\label{sec:bsei}
+Die Option \styleoption{bsei} dient der Festlegung der 'border style effect intensity' (Größe der Wolkenelemente). Die PDF-Referenz empfiehlt dabei Werte zwischen 1 und 2.
+
+\subsubsection[\texttt{caption}]{\styleoption{caption} (\texttt{none},\underline{\texttt{inline}},\texttt{top})}\label{sec:caption}
+Die Option \styleoption{caption} dient der Festlegung des Typs der Linienüberschriften.
+
+Die beiden Optionen \styleoption{inline} und \styleoption{top} zeigen den Kommentar in der Linie bzw. über der Linie. Bei Verwendung der Option \styleoption{none} erscheint der Kommentar in einer PDF popup annotation.
+
+\subsubsection[\texttt{captionhoffset}]{\styleoption{captionhoffset} (\underline{\texttt{0pt}})}\label{sec:captionhoffset}
+Die Option \styleoption{captionhoffset} dient der Festlegung eines horizontalen Offsets, d.\,h. einer seitlichen Verschiebung, der Linienüberschrift.
+
+\subsubsection[\texttt{captionvoffset}]{\styleoption{captionvoffset} (\underline{\texttt{0pt}})}\label{sec:captionvoffset}
+Die Option \styleoption{captionvoffset} dient der Festlegung eines vertikalen Offsets der Linienüberschrift.
+
+\subsubsection[\texttt{hoffset}]{\styleoption{hoffset} (\underline{\texttt{0pt}})}\label{sec:hoffset}
+Die Option \styleoption{hoffset} dient der Festlegung eines horizontalen Offsets der PDF annotations.
+
+\subsubsection[\texttt{voffset}]{\styleoption{voffset} (\underline{\texttt{0pt}})}\label{sec:voffset}
+Die Option \styleoption{voffset} dient der Festlegung eines vertikalen Offsets, d.\,h. einer vertikalen Verschiebung um den angegebenen Wert.
+
+\subsubsection[\texttt{width}]{\styleoption{width} (\underline{\texttt{0pt}})}\label{sec:width}
+Die Option \styleoption{width} dient der Festlegung der Breite der PDF annotations, speziell der Breite der FreeText annotations. PDF text annatations haben grundsätzlich eine Breite von 0pt.
+
+\subsubsection[\texttt{height}]{\styleoption{height} (\underline{\texttt{0pt}})}\label{sec:height}
+Die Option \styleoption{height} dient der Festlegung der Höhe der PDF annotations. Bei PDF text annotations wurde die Höhe auf \cmd\normalbaselineskip{} festgelegt.
+
+\subsubsection[\texttt{markup}]{\styleoption{markup} (\underline{\texttt{Highlight}},\texttt{Underline},\texttt{Squiggly},\texttt{StrikeOut})}\label{sec:markup}
+Die Option \styleoption{markup} dient der Festlegung des Typs der text markup annotations.
+
+\subsubsection[\texttt{disable}]{\styleoption{disable} (\texttt{true},\underline{\texttt{false})}}\label{sec:disable}
+Mit der Option \styleoption{disable} kann man einzelne PDF annotations abschalten. Benützt man die Option \styleoption{disable} global kann man auch mit der Option \styleoption{disable}\texttt{=false} lokal einzelne PDF annotations einschalten.
+
+\subsubsection[\texttt{date}]{\styleoption{date}}\label{sec:date}
+Mit der Option \styleoption{date} kann man den PDF annotations ein Datum zuordnen. Falls kein explizites Datum gesetzt wird, wird das Datum und die Uhrzeit der PDF-Dokument-Erstellung verwendet. Die Eingabe muß im PDF-Datumformat erfolgen, z.B.:
+
+\begin{center}
+\begin{tabular}{l}
+\texttt{D:YYYYMMDDhhmmss+TZ}\\
+\texttt{D:20101224153657+01'00'}
+\end{tabular}
+\end{center}
+
+\subsubsection[\texttt{timezone}]{\styleoption{timezone} (\underline{\texttt{+00'00'}})}\label{sec:timezone}
+Sie müssen die Option \styleoption{timezone} nur benutzen, falls Sie die automatische Datumssetzung und \XeLaTeX\ verwenden. Ansonsten wird die \texttt{pdflatex}-Primitive \string\pdfcreationdate\ verwendet. \styleoption{timezone}=+01'00' setzt die Zeitzone auf mitteleuropäische Zeit.
+
+\subsubsection[\texttt{avatar}]{\styleoption{avatar}}\label{sec:avatar}
+Mit der Option \styleoption{avatar} kann man die mit dem Befehl \cmd\defineavatar{} vordefinierten Optionslisten laden, um lästige Tipparbeit zu vermeiden.
+
+\subsubsection[\texttt{style}]{\styleoption{style}}\label{sec:style}
+Die Option \styleoption{style} dient ebenfalls dem Laden vordefinierter Optionslisten zur Trennung personenbezogener und stylister Optionen, z.\,B. \texttt{avatar=Josef, style=MyComment}.
+
+\subsubsection[\texttt{mathstyle}]{\styleoption{mathstyle} (\underline{\texttt{\string\textstyle}})}\label{sec:mathstyle}
+Die Option \styleoption{mathstyle} dient der Korrektur der Größe von PDF annotations - die mit \texttt{\string\pdfmarkupcomment} oder \texttt{\string\pdftooltip} im math mode erzeugt wurden - durch Setzen des math style auf \texttt{\string\textstyle}, \texttt{\string\displaystyle}, \texttt{\string\scriptstyle} oder \texttt{\string\scriptscriptstyle}. Diese Option ist nur lokal für \texttt{\string\pdfmarkupcomment} und \texttt{\string\pdftooltip} definiert, daher kann sie nicht global gesetzt werden!
+
+\subsubsection[\texttt{printSOfinal}]{\styleoption{printSOfinal} (\underline{\texttt{true}},\texttt{false})}\label{sec:printSOfinal}
+Mit der Option \styleoption{printSOfinal} kann man die PDF StrikeOut markup annotations inklusive Text automatisch löschen bei gleichzeitiger Nutzung der Option \styleoption{final} oder \styleoption{disable}.
+
+\section{Umgebungen}\label{sec:umgebungen}
+
+\subsection{Kommentarumgebungen}\label{sec:kommentarumgebungen}
+
+\subsubsection{\texttt{pdfsidelinecomment}}
+\label{sec:sidelinecomment}
+Mögliche \marginnote{\raggedleft\scriptsize\envb{pdfsidelinecomment}\\\oarg{Optionen}\marg{Kommentar}\\\dots\\\enve{pdfsidelinecomment}}Optionen: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{icolor}, \styleoption{opacity}, \styleoption{linewidth}, \styleoption{linebegin}, \styleoption{lineend}, \styleoption{linesep}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{caption}, \styleoption{captionhoffset}, \styleoption{captionvoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+Mit der Umgebung \env{pdfsidelinecomment} kann man ganze Seitenbereiche in Form zweier Linien in den Randspalten mit einem Kommentar kennzeichnen.
+
+\begin{pdfsidelinecomment}[color=red,icolor=yellow,linebegin=/Circle,lineend=/Circle,linewidth=3bp,linesep=1cm]{ ! Beachten ! }
+
+Einschränkungen:
+
+\begin{itemize}
+\item Die PDF sideline annotation darf nicht länger sein als eine Seite, da sonst die Erkennung des Seitenumbruchs fehlschlägt.
+\item Bei der zwischenzeitlichen Nutzung von dvi-Dateien benötigt man eine \LaTeX{}-Distribution, die \texttt{pdf(e)latex} in einer Version $\geq$ v1.40.0\footnote{ältere Versionen sind nicht in der Lage im dvi mode x/y-Koordinaten der aktuellen Position zur Verfügung zu stellen.} als Engine benutzt!
+\item Bei der Verwendung von \XeLaTeX{} muß Sorge getragen werden, daß die korrekte Seitengröße in die xdvi-Datei geschrieben wird, z.\,B. über die Option \styleoption{pagesize} bei Verwendung der KoMa-Script-Klassen, bzw. als Option beim Paket \package{typearea.sty}.
+\end{itemize}
+\end{pdfsidelinecomment}
+
+\section{Befehle}\label{sec:befehle}
+
+\subsection{Kommentarbefehle}\label{sec:kommentarbefehle}
+
+Die folgenden Befehlen können Sie zur Kommentierung Ihres Dokuments einsetzen.
+
+\subsubsection{\texorpdfstring{\cs{pdfcomment}}{\textbackslash pdfcomment}}
+\label{sec:pdfcomment}
+Mögliche \margcs{\cmd\pdfcomment\\\oarg{Optionen}\marg{Kommentar}}Optionen: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{icon}, \styleoption{color}, \styleoption{opacity}, \styleoption{open}, \styleoption{hspace}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfcomment{} setzt den Kommentar an der aktuellen Position \pdfcommentsetup{subject={\textbackslash pdfcomment Test},hspace=20pt}\pdfcomment[icon=Star,color=YellowGreen]{Das ist ein Kommentar im Fließtext} in den Fließtext.
+
+Das Argument \marg{Kommentar} muß dazu intern in PDFDocEncoding/PDFUni\-code\footnote{\cmd\hypersetup\{unicode\}} umgewandelt werden. Einige Zeichen mit spezieller \LaTeX{}-Bedeutung (\texttt{\&}, \texttt{\%,} ...) muß man daher escapen oder mit ihrer Befehlsform ersetzen, z.\,B. \texttt{\string\_} bzw. \texttt{\string\textunderscore}. Zusätzlich gibt es für die Formatierung die folgenden Befehle:
+
+\begin{center}
+\begin{tabular}{cl}
+\hline
+\cmd\textHT & horizontal tab \\
+\cmd\textLF & line feed \\
+\cmd\textCR & carriage return \\
+\hline
+\end{tabular}
+\end{center}
+
+
+\subsubsection{\texorpdfstring{\cs{pdfmargincomment}}{\textbackslash pdfmargincomment}}
+\label{sec:pdfmargincomment}
+Mögliche \margcs{\cmd\pdfmargincomment\\\oarg{Optionen}\marg{Kommentar}}Optionen: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{icon}, \styleoption{color}, \styleoption{opacity}, \styleoption{open}, \styleoption{hspace}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfmargincomment{} setzt den Kommentar in Höhe der aktuellen Zeile in die Randspalte. Bitte beachten Sie in diesem Beispiel die Positionierung des Kommentars. Diese Dokumentation wurde mit der \LaTeX{}-Klasse \texttt{ltxdoc}\pdfcommentsetup{subject={\textbackslash pdfmargincomment Test}}\pdfmargincomment[icon=Help,color=DeepPink,hspace=-30pt]{Das ist ein Kommentar in der Randspalte} erstellt. Daher erscheint der Kommentar in der linken Randspalte.
+
+\subsubsection{\texorpdfstring{\cs{pdfmarkupcomment}}{\textbackslash pdfmarkupcomment}}
+\label{sec:pdfmarkupcomment}
+Mögliche \margcs{\cmd\pdfmarkupcomment\oarg{Optionen}\\\marg{Markup Text}\marg{Kommentar}}Optionen: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{opacity}, \styleoption{markup}, \styleoption{mathstyle}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfmarkupcomment{} setzt eine sogenannte PDF text markup annotation über den mit dem Argument \marg{Markup Text} festgelegten Text. Mögliche Typen für die Option \styleoption{markup} sind dabei: \pdfcommentsetup{subject={\textbackslash pdfmarkupcomment Test}}\pdfmarkupcomment[color=yellow,markup=Highlight]{Highlight}{Das ist eine Highlight markup annotation!}, \pdfmarkupcomment[color=red,markup=Underline]{Underline}{Das ist eine Underline markup annotation!}, \pdfmarkupcomment[color=Teal,markup=Squiggly]{Squiggly}{Das ist eine Squiggly markup annotation!} und \pdfmarkupcomment[color=red,markup=StrikeOut]{StrikeOut}{Das ist eine StrikeOut markup annotation!}
+
+\hspace*{0pt}\newline
+Einschränkungen:
+
+\begin{itemize}
+\item Wie die Bezeichnung PDF text markup annotation vermuten läßt, eignet sich diese Form der Kommentierung ausschließlich für reinen Text.
+\item Der mit dem Argument \marg{Markup Text} festgelegte Text darf nicht länger sein als ein Absatz.
+\item Die PDF text markup annotation darf nicht länger sein als eine Seite, da sonst die Erkennung des Seitenumbruchs fehlschlägt.
+\item Bei der zwischenzeitlichen Nutzung von dvi-Dateien benötigt man eine \LaTeX{}-Distribution, die \texttt{pdf(e)latex} in einer Version $\geq$ v1.40.0\footnote{ältere Versionen sind nicht in der Lage im dvi mode x/y-Koordinaten der aktuellen Position zur Verfügung zu stellen.} als Engine benutzt!
+\item Bei der Verwendung von \XeLaTeX{} muß Sorge getragen werden, daß die korrekte Seitengröße in die xdvi-Datei geschrieben wird, z.\,B. über die Option \styleoption{pagesize} bei Verwendung der KoMa-Script-Klassen, bzw. als Option beim Paket \package{typearea.sty}.
+\end{itemize}
+
+Seit Version v1.6 funktioniert \texttt{\string\pdfmarkupcomment} auch im math mode. Sie können jetzt also auch Formeln kommentieren, wie z.\,B.:
+
+\definestyle{mathpopup}{author={},subject={},color=NavajoWhite,markup=Highlight}
+
+\[
+\begin{array}{c>{\displaystyle}c}
+ \text{ Bernoulli Trials: } &
+ \pdfmarkupcomment[style=mathpopup]{P(E)}{Probability of event E: Get exactly k heads in n coin flips.}%
+ =
+ \pdfmarkupcomment[style=mathpopup]{\dbinom{n}{k}}{Number of ways to get exactly k heads in n coin flips}%
+ {\pdfmarkupcomment[style=mathpopup]{p}{Probability of getting heads in one flip}%
+}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{k}{Number of heads}
+ }%
+ \pdfmarkupcomment[style=mathpopup]{(1-p)}{Probability of getting tails in one flip}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{n-k}{Number of tails}%
+ }%
+\end{array}
+\]
+
+Beachten Sie bitte auch \LinkExMath{} für eine genauere Beschreibung der neuen Möglichkeiten!
+
+\subsubsection{\texorpdfstring{\cs{pdffreetextcomment}}{\textbackslash pdffreetextcomment}}
+\label{sec:pdffreetextcomment}
+Mögliche \margcs{\cmd\pdffreetextcomment\\\oarg{Optionen}\marg{Kommentar}} Optionen: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{font}, \styleoption{fontsize}, \styleoption{fontcolor}, \styleoption{opacity}, \styleoption{line}, \styleoption{linewidth}, \styleoption{lineend}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{bse}, \styleoption{bsei}, \styleoption{type}, \styleoption{height}, \styleoption{width}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdffreetextcomment{} (\texttt{type=freetext}) setzt einen Kommentar in Form einer frei positionierbaren Box an die gewünschte Stelle der Seite\pdffreetextcomment[subject={\textbackslash pdffreetextcomment Test},height=1.2cm,width=6cm,voffset=-4.1cm,hoffset=-4cm,opacity=0.5,color=yellow]{Das ist eine FreeText annotation}. Bei Verwendung der Option \styleoption{type}\texttt{=callout} verfügt die Box zusätzlich über eine sogenannte Callout Linie, um die Box an ein bestimmtes Element der Seite zu binden. Mit der Option \styleoption{type}\texttt{=typewriter} kann man einen Kommentar an einer beliebigen Stelle mit einer virtuellen 'Schreibmaschine' schreiben. Diese PDF freetext annotation haben keinen Rand und einen transparenten Hintergrund. Dadurch kann man beliebige Stellen 'überschreiben'. Bitte beachten Sie dazu die Beispieldatei \LinkEx!
+
+\subsubsection{\texorpdfstring{\cs{pdfsquarecomment}}{\textbackslash pdfsquarecomment}}
+\label{sec:pdfsquarecomment}
+Mögliche \margcs{\cmd\pdfsquarecomment\\\oarg{Optionen}\marg{Kommentar}} Optionen: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{icolor}, \styleoption{opacity}, \styleoption{linewidth}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{bse}, \styleoption{bsei}, \styleoption{height}, \styleoption{width}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfsquarecomment{} setzt einen Kommentar in Form einer rechteckigen Box an die gewünschte Stelle der Seite (siehe: \LinkEx).
+
+\subsubsection{\texorpdfstring{\cs{pdfcirclecomment}}{\textbackslash pdfcirclecomment}}
+\label{sec:pdfcirclecomment}
+Mögliche \margcs{\cmd\pdfcirclecomment\\\oarg{Optionen}\marg{Kommentar}} Optionen: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{color}, \styleoption{icolor}, \styleoption{opacity}, \styleoption{linewidth}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{bse}, \styleoption{bsei}, \styleoption{height}, \styleoption{width}, \styleoption{voffset}, \styleoption{hoffset}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdfsquarecomment{} setzt einen Kommentar in Form eines Kreises oder einer Ellipse an die gewünschte Stelle der Seite (siehe: \LinkEx).
+
+\subsubsection{\texorpdfstring{\cs{pdflinecomment}}{\textbackslash pdflinecomment}}
+\label{sec:pdflinecomment}
+Mögliche \margcs{\cmd\pdfsidelinecomment\\\oarg{Optionen}\marg{Kommentar}}Optionen: \styleoption{avatar}, \styleoption{style}, \styleoption{subject}, \styleoption{author}, \styleoption{type}, \styleoption{color}, \styleoption{icolor}, \styleoption{opacity}, \styleoption{caption}, \styleoption{captionhoffset}, \styleoption{captionvoffset}, \styleoption{linewidth}, \styleoption{linebegin}, \styleoption{lineend}, \styleoption{line}, \styleoption{borderstyle}, \styleoption{dashstyle}, \styleoption{disable}, \styleoption{date}, \styleoption{timezone}
+
+\bigskip
+\cmd\pdflinecomment{} setzt einen Kommentar in Form einer Linie. Polylinie oder Polygon an die gewünschte Stelle der Seite (siehe: \LinkEx).
+
+\subsection{Tooltips}
+
+\subsubsection{\texorpdfstring{\cs{pdftooltip}}{\textbackslash pdftooltip}}
+\label{sec:pdftooltip}
+Mögliche \margcs{\cmd\pdftooltip\oarg{Optionen}\\\marg{Objekt}\marg{Kommentar}}Optionen: \styleoption{disable}, \styleoption{mathstyle}
+
+\bigskip
+Mit dem Befehl \cmd\pdftooltip{} kann man beliebige Objekte mit einem Tooltip versehen - vorausgesetzt man kann das Objekt in eine Box setzen, um die Größe zu messen. Sie können die Tooltips daher problemlos mit \pdftooltip{\textcolor{red}{Wörtern}}{Das ist ein Tooltip!} verwenden oder in chemischen Formeln: $\pdftooltip{H_{2}SO_{4}}{Schwefelsäure}$
+
+Es funktioniert natürlich auch in abgesetzten Formeln: \[\pdftooltip[mathstyle=\displaystyle]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{kleiner Gauß}\]
+
+Bitte beachten Sie auch die Hinweise im Abschnitt \ref{sec:pdfmarkupcomment} zur Verwendung im Mathemodus.
+
+Möchten Sie Teile einer Grafik mit Tooltips versehen bedarf es spezieller Methoden, da \cmd\pdftooltip{} in diesen Fällen die Größe nicht selbst bestimmen kann. Bitte beachten Sie dazu die Beispieldatei \LinkEx!
+
+\texttt{\cmd\pdftooltip} kann nicht durch die Option \styleoption{final} beeinflusst werden, da die meisten Nutzer die Tooltips sicherlich im finalen Dokument haben möchten. Sie können jedoch mit der Option \styleoption{disable} ausgeschaltet werden..
+
+\bigskip
+\begin{tikzpicture}
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3,0) node (xaxis) [right] {$x$};
+ \draw (0,0) coordinate (a_1) -- (2,1.8) coordinate (a_2);
+ \draw (0,1.5) coordinate (b_1) -- (2.5,0) coordinate (b_2);
+ \coordinate (c) at (intersection of a_1--a_2 and b_1--b_2);
+ \draw[dashed] (yaxis |- c) node[left] {$y'$}
+ -| (xaxis -| c) node[below] {$x'$};
+ %
+ \fill[red] (0,0) circle (2pt);
+ \draw (0,0) node {\pdftooltip{\rule{0pt}{0.5cm}\rule{0.5cm}{0pt}}{Origin}};
+ %
+ \draw[red] (1.5,2) node {\pdftooltip{\textbullet}{1.5,2.0}};
+ %
+ \fill[red] (c) circle (2pt)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {This is the intersection point\textCR of the two lines!}};
+\end{tikzpicture}
+\hspace{1cm}
+\begin{tikzpicture}
+ \draw (1.5,0) node[below] {countries};
+ \draw (0,1) node[left] {\pdftooltip{SCI}{Sausage Consumption Index}};
+ \fill[blue] (0.5,0) rectangle (1,1.2)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ % these calculations are based on scale factor 1 otherwise use:
+ % \dimexpr(scale factor)\dimexpr\x2-\x1\relax\relax
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {USA: 120}};
+ \fill[red] (1.5,0) rectangle (2,1.8)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {Germany: 180}};
+ \fill[green] (2.5,0) rectangle (3,0.65)
+ let
+ \p1 = (current path bounding box.south west),
+ \p2 = (current path bounding box.north east)
+ in
+ node at (current path bounding box)
+ {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%
+ {South Africa: 65}};
+ \draw [<->,thick] (0,2) node (yaxis) [above] {$y$}
+ |- (3.5,0) node (xaxis) [right] {$x$};
+\end{tikzpicture}
+
+\subsection{Allgemeine Befehle}
+
+\subsubsection{\texorpdfstring{\cs{pdfcommentsetup}}{\textbackslash pdfcommentsetup}}
+\label{sec:commentsetup}
+Mit dem Befehl \cmd\pdfcommentsetup \margcs{\cmd\pdfcommentsetup\\\oarg{Optionen}\marg{Optionen}} kann man jederzeit die globalen Styleoptionen neu setzen. Die optionale Option \styleoption{local} hält den Reset lokal (innerhalb einer \LaTeX\ Gruppe).
+
+\subsubsection{\texorpdfstring{\cs{listofpdfcomments}}{\textbackslash listofpdfcomments}}
+\label{sec:listofpdfcomments}
+Der Befehl \cmd\listofpdfcomments\margcs{\cmd\listofpdfcomments\oarg{Optionen}} erzeugt eine Liste der Kommentare, um das Auffinden der Kommentare zu vereinfachen. Der Befehl bietet die folgenden Optionen:
+
+\begin{itemize}
+\item \styleoption{liststyle} dient der Festlegung des Listenstils. Dabei sind folgende Werte möglich:
+\begin{itemize}
+\item \mco{AuthorSubject} (default)
+\item \mco{AuthorSubjectDeadline}
+\item \mco{SubjectAuthorComment}
+\item \mco{SubjectAuthorCommentDeadline}
+\item \mco{AuthorComment}
+\item \mco{AuthorCommentDeadline}
+\item \mco{SubjectComment}
+\item \mco{SubjectCommentDeadline}
+\item \mco{Comment}
+\item \mco{CommentDeadline}
+\end{itemize}
+
+\item \styleoption{heading} dient der Festlegung der Überschrift, z.\,B. \styleoption{heading}=\{Liste der Kommentare\}.
+\end{itemize}
+
+\subsubsection{\texorpdfstring{\cs{setliststyle}}{\textbackslash setliststyle}}
+\label{sec:setliststyle}
+Der Befehl \cmd\setliststyle\margcs{\cmd\setliststyle\marg{Name}} ist notwendig, falls Kommentare bereits vor \cmd\listofpdfcomments\ eingesetzt werden und ein alternativer Listenstil gewünscht wird.
+
+\subsubsection{\texorpdfstring{\cs{defineliststyle}}{\textbackslash defineliststyle}}
+\label{sec:defineliststyle}
+Der Befehl \cmd\defineliststyle\margcs{\cmd\defineliststyle\\\marg{Name}\marg{Definition}} dient der Definition neuer Listenstile, z.\,B.:
+
+\medskip
+\cmd\makeatletter\\
+\cmd\defineliststyle\{MyListstyle\}\{\cmd\pc@lopt@subject\texttt{\textbackslash}\ \cmd\textcolor\{green\}\\\{(\cmd\pc@lopt@author)\}:\texttt{\textbackslash}\ \cmd\pc@lopt@comment\texttt{\textbackslash}\ \cmd\textcolor\{red\}\\\{(\cmd\pc@lopt@deadline)\}\}\\
+\cmd\makeatother
+
+\subsubsection{\texorpdfstring{\cs{defineavatar}}{\textbackslash defineavatar}}
+\label{sec:defineavatar}
+Der Befehl \cmd\defineavatar \margcs{\cmd\defineavatar\marg{Name}\marg{Optionen}} dient der Erstellung benannter vordefinierter Optionslisten, die später in den Kommentarbefehlen über die Option \styleoption{avatar} wieder geladen werden. Damit können z.\,B. mehrere Autoren eines Dokuments sehr einfach zwischen ihren Avataren -- also ihren grafischen Repräsentationen -- wechseln.
+
+\subsubsection{\texorpdfstring{\cs{definestyle}}{\textbackslash definestyle}}
+\label{sec:definestyle}
+Analog dient \cmd\definestyle \margcs{\cmd\definestyle\marg{Name}\marg{Optionen}} dazu die Optionslisten bei Bedarf in personenbezogene und stylistische Optionslisten aufzuteilen (siehe \file{example.tex}). Geladen wird die Optionsliste in den Befehlen über die Option \styleoption{style}.
+
+\section{Drucken der Kommentare und Popups}
+\label{sec:print}
+\texttt{Adobe Reader} kann prinzipiell PDF annotations drucken. Dazu muß man im Druckdialog im Feld 'Kommentare und Formulare' die Einstellung 'Dokument und Markierungen' wählen. Zusätzlich muß das Drucken im Menü 'Bearbeiten $\rightarrow$ Voreinstellungen $\rightarrow$ Kommentieren $\rightarrow$ Notizen und Popups drucken' konfiguriert werden. Diese Einstellungsmöglichkeit gibt es seit der Veröffentlichung von \texttt{Adobe Reader X}. Bei alteren Versionen bleibt nur die Möglichkeit die Konfigurationsdateien selbst zu ändern.
+
+\begin{description}
+\item[Windows:] Ändern der Registry Einträge notwendig (auf eigene Gefahr!)
+
+Starten Sie den Registry Editor (\file{regedit.exe}) und öffnen Sie z.\,B. für \texttt{Adobe Reader 9.0} den folgenden Schlüssel:
+
+\texttt{HKEY\_CURRENT\_USER/Software/Adobe/Acrobat Reader/9.0/Annots/\newline cPrefs}
+
+Der Schlüssel ist für andere Versionen bis auf die Versionsnummer und Groß- und Kleinschreibung ähnlich!
+
+Öffnen oder erstellen Sie (bei geschlossenem \texttt{Adobe Reader}) den Schlüssel \texttt{bprintCommentPopups} und ändern Sie den Wert auf 1 (dword).
+
+\item[Linux:] Öffnen Sie die Konfigurationsdatei:
+
+\nolinkurl{~/.adobe/Acrobat/8.0/Preferences/reader_prefs}
+
+mit einem Text-Editor und ändern Sie den Eintrag
+
+{\texttt{/printCommentPopups\,[/b false]} zu \texttt{/printCommentPopups\,[/b true]}}
+\end{description}
+
+Bitte beachten Sie, daß nur geöffnete popup annotations gedruckt werden!
+
+\end{document}
diff --git a/macros/latex/contrib/pdfcomment/pdfcomment.sty b/macros/latex/contrib/pdfcomment/pdfcomment.sty
new file mode 100644
index 0000000000..c88858caee
--- /dev/null
+++ b/macros/latex/contrib/pdfcomment/pdfcomment.sty
@@ -0,0 +1,3263 @@
+%%
+%% Copyright (C) 2008-2012, 2015-2016 by:
+%% Josef Kleber
+%% <josef.kleber@gmx.de>
+%%
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.3 of this license
+%% or (at your option) any later version. The latest version of this
+%% license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of LaTeX version
+%% 2003/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% The Current Maintainer of this work is Josef Kleber.
+%%
+%% This work consists of all files listed in manifest.txt.
+%%
+%
+\ProvidesPackage{pdfcomment}[2018/11/01 pdfcomment.sty v2.4a - Josef Kleber (C) 2008-2012, 2015-2016, 2018]%
+%
+\RequirePackage{xkeyval}%
+%
+% default values for global package options
+\gdef\pc@goptd@subject{}%
+\gdef\pc@goptd@color{0 0 1}%
+\gdef\pc@goptd@author{}%
+\gdef\pc@goptd@deadline{}%
+\gdef\pc@goptd@icon{Comment}%
+\gdef\pc@goptd@open{false}%
+\gdef\pc@goptd@hspace{0pt}%
+\gdef\pc@goptd@voffset{0pt}%
+\gdef\pc@goptd@hoffset{0pt}%
+\gdef\pc@goptd@width{0pt}%
+\gdef\pc@goptd@height{0pt}%
+\gdef\pc@goptd@depth{0pt}%
+\gdef\pc@goptd@opacity{1.0}%
+\gdef\pc@goptd@markup{Highlight}%
+\gdef\pc@goptd@font{Helv}%
+\gdef\pc@goptd@fontsize{12bp}%
+\gdef\pc@goptd@fontcolor{0.0 0.0 0.0}%
+\gdef\pc@goptd@justification{0}%
+\gdef\pc@goptd@borderstyle{S}%
+\gdef\pc@goptd@linewidth{1bp}%
+\gdef\pc@goptd@dashstyle{3 3}%
+\gdef\pc@goptd@bse{S}%
+\gdef\pc@goptd@bsei{1}%
+\gdef\pc@goptd@type{freetext}%
+\gdef\pc@goptd@lineend{/OpenArrow}%
+\gdef\pc@goptd@linebegin{/None}%
+\gdef\pc@goptd@icolor{1 1 0}%
+\gdef\pc@goptd@line{50 50 300 600}%
+\gdef\pc@goptd@caption{inline}%
+\gdef\pc@goptd@captionhoffset{0pt}%
+\gdef\pc@goptd@captionvoffset{0pt}%
+\gdef\pc@goptd@linesep{0.5cm}%
+\gdef\pc@goptd@disable{false}%
+\gdef\pc@goptd@id{}%
+\gdef\pc@goptd@date{}%
+\gdef\pc@goptd@timezone{+00'00'}%
+\gdef\pc@goptd@dvipdfmx{true}%
+\gdef\pc@goptd@printSOfinal{true}%
+%
+% values for global package options
+\gdef\pc@gopt@subject{}%
+\gdef\pc@gopt@color{}%
+\gdef\pc@gopt@author{}%
+\gdef\pc@gopt@deadline{}%
+\gdef\pc@gopt@icon{}%
+\gdef\pc@gopt@open{}%
+\gdef\pc@gopt@hspace{}%
+\gdef\pc@gopt@voffset{}%
+\gdef\pc@gopt@hoffset{}%
+\gdef\pc@gopt@width{}%
+\gdef\pc@gopt@height{}%
+\gdef\pc@gopt@depth{}%
+\gdef\pc@gopt@opacity{}%
+\gdef\pc@gopt@markup{}%
+\gdef\pc@gopt@font{}%
+\gdef\pc@gopt@fontsize{}%
+\gdef\pc@gopt@fontcolor{}%
+\gdef\pc@gopt@justification{}%
+\gdef\pc@gopt@borderstyle{}%
+\gdef\pc@gopt@linewidth{}%
+\gdef\pc@gopt@dashstyle{}%
+\gdef\pc@gopt@bse{}%
+\gdef\pc@gopt@bsei{}%
+\gdef\pc@gopt@type{}%
+\gdef\pc@gopt@lineend{}%
+\gdef\pc@gopt@linebegin{}%
+\gdef\pc@gopt@icolor{}%
+\gdef\pc@gopt@line{}%
+\gdef\pc@gopt@caption{}%
+\gdef\pc@gopt@captionhoffset{}%
+\gdef\pc@gopt@captionvoffset{}%
+\gdef\pc@gopt@linesep{}%
+\gdef\pc@gopt@disable{}%
+\gdef\pc@gopt@id{}%
+\gdef\pc@gopt@date{}%
+\gdef\pc@gopt@timezone{}%
+\gdef\pc@gopt@printSOfinal{}%
+%
+% values for local command options
+\gdef\pc@lopt@subject{}%
+\gdef\pc@lopt@color{}%
+\gdef\pc@lopt@author{}%
+\gdef\pc@lopt@deadline{}%
+\gdef\pc@lopt@icon{}%
+\gdef\pc@lopt@open{}%
+\gdef\pc@lopt@hspace{}%
+\gdef\pc@lopt@voffset{}%
+\gdef\pc@lopt@hoffset{}%
+\gdef\pc@lopt@width{}%
+\gdef\pc@lopt@height{}%
+\gdef\pc@lopt@depth{}%
+\gdef\pc@lopt@opacity{}%
+\gdef\pc@lopt@markup{}%
+\gdef\pc@lopt@font{}%
+\gdef\pc@lopt@fontsize{}%
+\gdef\pc@lopt@fontcolor{}%
+\gdef\pc@lopt@justification{}%
+\gdef\pc@lopt@borderstyle{}%
+\gdef\pc@lopt@linewidth{}%
+\gdef\pc@lopt@dashstyle{}%
+\gdef\pc@lopt@bse{}%
+\gdef\pc@lopt@bsei{}%
+\gdef\pc@lopt@type{}%
+\gdef\pc@lopt@lineend{}%
+\gdef\pc@lopt@linebegin{}%
+\gdef\pc@lopt@icolor{}%
+\gdef\pc@lopt@line{}%
+\gdef\pc@lopt@caption{}%
+\gdef\pc@lopt@captionhoffset{}%
+\gdef\pc@lopt@captionvoffset{}%
+\gdef\pc@lopt@linesep{}%
+\gdef\pc@lopt@mathstyle{}%
+\gdef\pc@lopt@disable{}%
+\gdef\pc@lopt@id{}%
+\gdef\pc@lopt@date{}%
+\gdef\pc@lopt@replyto{}%
+\gdef\pc@lopt@timezone{}%
+\gdef\pc@lopt@printSOfinal{}%
+%
+\gdef\pc@lopt@c{}%
+\gdef\pc@lopt@ic{}%
+\gdef\pc@lopt@cdate{}%
+\gdef\pc@lopt@l{}%
+\gdef\pc@lopt@le{}%
+\gdef\pc@lopt@cap{}%
+\gdef\pc@lopt@cp{}%
+\gdef\pc@lopt@co{}%
+%
+\newif\ifpc@gopt@dvipdfmx\pc@gopt@dvipdfmxfalse%
+\newif\ifpc@gopt@xelatex\pc@gopt@xelatexfalse%
+\newif\ifpc@gopt@final\pc@gopt@finalfalse%
+\newif\ifpc@lopt@disable\pc@lopt@disablefalse%
+\newif\ifpc@gopt@disable\pc@gopt@disablefalse%
+\newif\ifpc@opt@unskip\pc@opt@unskiptrue%
+\newif\ifpc@annot@samepage\pc@annot@samepagetrue%
+\newif\ifpc@annot@secondpage\pc@annot@secondpagefalse%
+\newif\ifpc@afterpage\pc@afterpagefalse%
+\newif\ifpc@ignorespaces\pc@ignorespacesfalse%
+\newif\ifpc@local\pc@localfalse%
+\newif\ifpc@firstcolumn\pc@firstcolumntrue%
+\newif\ifpc@Sfirstcolumn\pc@Sfirstcolumntrue%
+\newif\ifpc@Efirstcolumn\pc@Efirstcolumntrue%
+%
+\newcounter{pc@count@i}%
+\newcounter{pc@count@ii}%
+\newcounter{pc@count@iii}%
+\newcounter{pc@count@iv}%
+%
+\newbox\pc@mathannot@box%
+\newbox\pc@nullbox%
+%
+\newlength{\pc@dima}%
+\newlength{\pc@dimb}%
+%
+\newlength{\pc@Sposx}%
+\newlength{\pc@Sposy}%
+\newlength{\pc@Eposx}%
+\newlength{\pc@Eposy}%
+\newlength{\pc@column}%
+\newlength{\pc@box@width}%
+\newlength{\pc@box@height}%
+\newlength{\pc@box@depth}%
+%
+\newcommand{\pc@x@one}{}%
+\newcommand{\pc@x@two}{}%
+\newcommand{\pc@x@three}{}%
+\newcommand{\pc@x@four}{}%
+\newcommand{\pc@y@one}{}%
+\newcommand{\pc@y@two}{}%
+\newcommand{\pc@y@three}{}%
+\newcommand{\pc@y@four}{}%
+%
+\newcommand{\pc@x@left@text}{}%
+\newcommand{\pc@x@right@text}{}%
+\newcommand{\pc@y@top@text}{}%
+\newcommand{\pc@y@bottom@text}{}%
+%
+\gdef\pc@version{}%
+\gdef\pc@collect@PDFOBJID{}%
+%
+\newcommand{\pc@raggedleftmarginnote}{\centering}%
+\newcommand{\pc@raggedrightmarginnote}{\centering}%
+%
+\newcommand{\lpcname}{List of pdfcomments}%
+\gdef\pc@lpc@format{\pc@lopt@author\ - \pc@lopt@subject}%
+\gdef\pc@lopt@liststyle{AuthorSubject}%
+%
+\define@key{pdfcomment.sty}{avatar}[]%
+{% thanks to Ulrike Fischer Msg-Id: <rba0oaiflbjf.dlg@nililand.de>
+ \edef\pc@edef@avatar{pc@avatar@#1}%
+ \@ifundefined{\pc@edef@avatar}%
+ {%
+ \PackageWarning{pdfcomment}{Unknown avatar #1\MessageBreak%
+ skip assignment}%
+ }%
+ {%
+ \edef\pc@gopt@loadavatar{\noexpand\setkeys{pdfcomment.sty}{\csname pc@avatar@#1\endcsname}}%
+ \pc@gopt@loadavatar%
+ }%
+}%
+%
+\newcommand\pc@define@key@avatar[1]%
+{%
+ \define@key{#1}{avatar}[]%
+ {%
+ \edef\pc@edef@avatar{pc@avatar@##1}%
+ \@ifundefined{\pc@edef@avatar}%
+ {%
+ \PackageWarning{#1}{Unknown avatar ##1\MessageBreak%
+ skip assignment}%
+ }%
+ {%
+ \edef\pc@lopt@loadavatar{\noexpand\setkeys{#1}{\csname pc@avatar@##1\endcsname}}%
+ \pc@lopt@loadavatar%
+ }%
+ }%
+}%
+%
+\pc@define@key@avatar{pdfcomment}%
+\pc@define@key@avatar{pdfmargincomment}%
+\pc@define@key@avatar{pdffreetextcomment}%
+\pc@define@key@avatar{pdfmarkupcomment}%
+\pc@define@key@avatar{pdfsquarecomment}%
+\pc@define@key@avatar{pdfcirclecomment}%
+\pc@define@key@avatar{pdflinecomment}%
+\pc@define@key@avatar{pdfsidelinecomment}%
+\pc@define@key@avatar{pdfreply}%
+\pc@define@key@avatar{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{style}[]%
+{%
+ \edef\pc@edef@style{pc@style@#1}%
+ \@ifundefined{\pc@edef@style}%
+ {%
+ \PackageWarning{pdfcomment}{Unknown style #1\MessageBreak%
+ skip assignment}%
+ }%
+ {%
+ \edef\pc@gopt@loadstyle{\noexpand\setkeys{pdfcomment.sty}{\csname pc@style@#1\endcsname}}%
+ \pc@gopt@loadstyle%
+ }%
+}%
+%
+\newcommand\pc@define@key@style[1]%
+{%
+ \define@key{#1}{style}[]%
+ {%
+ \edef\pc@edef@style{pc@style@##1}%
+ \@ifundefined{\pc@edef@style}%
+ {%
+ \PackageWarning{#1}{Unknown style ##1\MessageBreak%
+ skip assignment}%
+ }%
+ {%
+ \edef\pc@lopt@loadstyle{\noexpand\setkeys{#1}{\csname pc@style@##1\endcsname}}%
+ \pc@lopt@loadstyle%
+ }%
+ }%
+}%
+%
+\pc@define@key@style{pdfcomment}%
+\pc@define@key@style{pdfmargincomment}%
+\pc@define@key@style{pdffreetextcomment}%
+\pc@define@key@style{pdfmarkupcomment}%
+\pc@define@key@style{pdfsquarecomment}%
+\pc@define@key@style{pdfcirclecomment}%
+\pc@define@key@style{pdflinecomment}%
+\pc@define@key@style{pdfsidelinecomment}%
+\pc@define@key@style{pdfreply}%
+\pc@define@key@style{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{subject}[\pc@goptd@subject]%
+{%
+ \gdef\pc@gopt@subject{#1}%
+}%
+%
+\newcommand\pc@define@key@subject[1]%
+{%
+ \define@key{#1}{subject}[\pc@gopt@subject]%
+ {%
+ \gdef\pc@lopt@subject{##1}%
+ }%
+}%
+%
+\pc@define@key@subject{pdfcomment}%
+\pc@define@key@subject{pdfmargincomment}%
+\pc@define@key@subject{pdffreetextcomment}%
+\pc@define@key@subject{pdfmarkupcomment}%
+\pc@define@key@subject{pdfsquarecomment}%
+\pc@define@key@subject{pdfcirclecomment}%
+\pc@define@key@subject{pdflinecomment}%
+\pc@define@key@subject{pdfsidelinecomment}%
+\pc@define@key@subject{pdfreply}%
+\pc@define@key@subject{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{color}[\pc@goptd@color]%
+{%
+ \gdef\pc@gopt@color{#1}%
+}%
+%
+\newcommand\pc@define@key@color[1]%
+{%
+ \define@key{#1}{color}[\pc@gopt@color]%
+ {%
+ \gdef\pc@lopt@color{##1}%
+ }%
+}%
+%
+\pc@define@key@color{pdfcomment}%
+\pc@define@key@color{pdfmargincomment}%
+\pc@define@key@color{pdffreetextcomment}%
+\pc@define@key@color{pdfmarkupcomment}%
+\pc@define@key@color{pdfsquarecomment}%
+\pc@define@key@color{pdfcirclecomment}%
+\pc@define@key@color{pdflinecomment}%
+\pc@define@key@color{pdfsidelinecomment}%
+\pc@define@key@color{pdfreply}%
+\pc@define@key@color{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{author}[\pc@goptd@author]%
+{%
+ \gdef\pc@gopt@author{#1}%
+}%
+%
+\newcommand\pc@define@key@author[1]%
+{%
+ \define@key{#1}{author}[\pc@gopt@author]%
+ {%
+ \gdef\pc@lopt@author{##1}%
+ }%
+}%
+%
+\pc@define@key@author{pdfcomment}%
+\pc@define@key@author{pdfmargincomment}%
+\pc@define@key@author{pdffreetextcomment}%
+\pc@define@key@author{pdfmarkupcomment}%
+\pc@define@key@author{pdfsquarecomment}%
+\pc@define@key@author{pdfcirclecomment}%
+\pc@define@key@author{pdflinecomment}%
+\pc@define@key@author{pdfsidelinecomment}%
+\pc@define@key@author{pdfreply}%
+\pc@define@key@author{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{deadline}[\pc@goptd@deadline]%
+{%
+ \gdef\pc@gopt@deadline{#1}%
+}%
+%
+\newcommand\pc@define@key@deadline[1]%
+{%
+ \define@key{#1}{deadline}[\pc@gopt@deadline]%
+ {%
+ \gdef\pc@lopt@deadline{##1}%
+ }%
+}%
+%
+\pc@define@key@deadline{pdfcomment}%
+\pc@define@key@deadline{pdfmargincomment}%
+\pc@define@key@deadline{pdffreetextcomment}%
+\pc@define@key@deadline{pdfmarkupcomment}%
+\pc@define@key@deadline{pdfsquarecomment}%
+\pc@define@key@deadline{pdfcirclecomment}%
+\pc@define@key@deadline{pdflinecomment}%
+\pc@define@key@deadline{pdfsidelinecomment}%
+\pc@define@key@deadline{pdfreply}%
+\pc@define@key@deadline{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{icon}[\pc@goptd@icon]%
+{%
+ \gdef\pc@gopt@icon{#1}%
+}%
+%
+\newcommand\pc@define@key@icon[1]%
+{%
+ \define@key{#1}{icon}[\pc@gopt@icon]%
+ {%
+ \gdef\pc@lopt@icon{##1}%
+ }%
+}%
+%
+\pc@define@key@icon{pdfcomment}%
+\pc@define@key@icon{pdfmargincomment}%
+\pc@define@key@icon{pdffreetextcomment}%
+\pc@define@key@icon{pdfmarkupcomment}%
+\pc@define@key@icon{pdfsquarecomment}%
+\pc@define@key@icon{pdfcirclecomment}%
+\pc@define@key@icon{pdflinecomment}%
+\pc@define@key@icon{pdfsidelinecomment}%
+\pc@define@key@icon{pdfreply}%
+\pc@define@key@icon{pdftooltip}%
+%
+\define@choicekey*{pdfcomment.sty}{open}[\pc@gopt@open\nr]{true,false}[false]%
+{%
+ \ifcase\nr\relax%
+ \gdef\pc@gopt@open{true}%
+ \or%
+ \gdef\pc@gopt@open{false}%
+ \fi%
+}%
+%
+\newcommand\pc@define@key@open[1]%
+{%
+ \define@choicekey*{#1}{open}[\pc@lopt@open\nr]{true,false}[true]%
+ {%
+ \ifcase\nr\relax%
+ \gdef\pc@lopt@open{true}%
+ \or%
+ \gdef\pc@lopt@open{false}%
+ \fi%
+ }%
+}%
+%
+\pc@define@key@open{pdfcomment}%
+\pc@define@key@open{pdfmargincomment}%
+\pc@define@key@open{pdffreetextcomment}%
+\pc@define@key@open{pdfmarkupcomment}%
+\pc@define@key@open{pdfsquarecomment}%
+\pc@define@key@open{pdfcirclecomment}%
+\pc@define@key@open{pdflinecomment}%
+\pc@define@key@open{pdfsidelinecomment}%
+\pc@define@key@open{pdfreply}%
+\pc@define@key@open{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{hspace}[\pc@goptd@hspace]%
+{%
+ \gdef\pc@gopt@hspace{#1}%
+}%
+%
+\newcommand\pc@define@key@hspace[1]%
+{%
+ \define@key{#1}{hspace}[\pc@gopt@hspace]%
+ {%
+ \gdef\pc@lopt@hspace{##1}%
+ }%
+}%
+%
+\pc@define@key@hspace{pdfcomment}%
+\pc@define@key@hspace{pdfmargincomment}%
+\pc@define@key@hspace{pdffreetextcomment}%
+\pc@define@key@hspace{pdfmarkupcomment}%
+\pc@define@key@hspace{pdfsquarecomment}%
+\pc@define@key@hspace{pdfcirclecomment}%
+\pc@define@key@hspace{pdflinecomment}%
+\pc@define@key@hspace{pdfsidelinecomment}%
+\pc@define@key@hspace{pdfreply}%
+\pc@define@key@hspace{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{voffset}[\pc@goptd@voffset]%
+{%
+ \gdef\pc@gopt@voffset{#1}%
+}%
+%
+\newcommand\pc@define@key@voffset[1]%
+{%
+ \define@key{#1}{voffset}[\pc@gopt@voffset]%
+ {%
+ \gdef\pc@lopt@voffset{##1}%
+ }%
+}%
+%
+\pc@define@key@voffset{pdfcomment}%
+\pc@define@key@voffset{pdfmargincomment}%
+\pc@define@key@voffset{pdffreetextcomment}%
+\pc@define@key@voffset{pdfmarkupcomment}%
+\pc@define@key@voffset{pdfsquarecomment}%
+\pc@define@key@voffset{pdfcirclecomment}%
+\pc@define@key@voffset{pdflinecomment}%
+\pc@define@key@voffset{pdfsidelinecomment}%
+\pc@define@key@voffset{pdfreply}%
+\pc@define@key@voffset{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{hoffset}[\pc@goptd@hoffset]%
+{%
+ \gdef\pc@gopt@hoffset{#1}%
+}%
+%
+\newcommand\pc@define@key@hoffset[1]%
+{%
+ \define@key{#1}{hoffset}[\pc@gopt@hoffset]%
+ {%
+ \gdef\pc@lopt@hoffset{##1}%
+ }%
+}%
+%
+\pc@define@key@hoffset{pdfcomment}%
+\pc@define@key@hoffset{pdfmargincomment}%
+\pc@define@key@hoffset{pdffreetextcomment}%
+\pc@define@key@hoffset{pdfmarkupcomment}%
+\pc@define@key@hoffset{pdfsquarecomment}%
+\pc@define@key@hoffset{pdfcirclecomment}%
+\pc@define@key@hoffset{pdflinecomment}%
+\pc@define@key@hoffset{pdfsidelinecomment}%
+\pc@define@key@hoffset{pdfreply}%
+\pc@define@key@hoffset{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{width}[\pc@goptd@width]%
+{%
+ \gdef\pc@gopt@width{#1}%
+}%
+%
+\newcommand\pc@define@key@width[1]%
+{%
+ \define@key{#1}{width}[\pc@gopt@width]%
+ {%
+ \gdef\pc@lopt@width{##1}%
+ }%
+}%
+%
+\pc@define@key@width{pdfcomment}%
+\pc@define@key@width{pdfmargincomment}%
+\pc@define@key@width{pdffreetextcomment}%
+\pc@define@key@width{pdfmarkupcomment}%
+\pc@define@key@width{pdfsquarecomment}%
+\pc@define@key@width{pdfcirclecomment}%
+\pc@define@key@width{pdflinecomment}%
+\pc@define@key@width{pdfsidelinecomment}%
+\pc@define@key@width{pdfreply}%
+\pc@define@key@width{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{height}[\pc@goptd@height]%
+{%
+ \gdef\pc@gopt@height{#1}%
+}%
+%
+\newcommand\pc@define@key@height[1]%
+{%
+ \define@key{#1}{height}[\pc@gopt@height]%
+ {%
+ \gdef\pc@lopt@height{##1}%
+ }%
+}%
+%
+\pc@define@key@height{pdfcomment}%
+\pc@define@key@height{pdfmargincomment}%
+\pc@define@key@height{pdffreetextcomment}%
+\pc@define@key@height{pdfmarkupcomment}%
+\pc@define@key@height{pdfsquarecomment}%
+\pc@define@key@height{pdfcirclecomment}%
+\pc@define@key@height{pdflinecomment}%
+\pc@define@key@height{pdfsidelinecomment}%
+\pc@define@key@height{pdfreply}%
+\pc@define@key@height{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{depth}[\pc@goptd@depth]%
+{%
+ \gdef\pc@gopt@depth{#1}%
+}%
+%
+\newcommand\pc@define@key@depth[1]%
+{%
+ \define@key{#1}{depth}[\pc@gopt@depth]%
+ {%
+ \gdef\pc@lopt@depth{##1}%
+ }%
+}%
+%
+\pc@define@key@depth{pdfcomment}%
+\pc@define@key@depth{pdfmargincomment}%
+\pc@define@key@depth{pdffreetextcomment}%
+\pc@define@key@depth{pdfmarkupcomment}%
+\pc@define@key@depth{pdfsquarecomment}%
+\pc@define@key@depth{pdfcirclecomment}%
+\pc@define@key@depth{pdflinecomment}%
+\pc@define@key@depth{pdfsidelinecomment}%
+\pc@define@key@depth{pdfreply}%
+\pc@define@key@depth{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{opacity}[\pc@goptd@opacity]%
+{%
+ \gdef\pc@gopt@opacity{#1}%
+}%
+%
+\newcommand\pc@define@key@opacity[1]%
+{%
+ \define@key{#1}{opacity}[\pc@gopt@opacity]%
+ {%
+ \gdef\pc@lopt@opacity{##1}%
+ }%
+}%
+%
+\pc@define@key@opacity{pdfcomment}%
+\pc@define@key@opacity{pdfmargincomment}%
+\pc@define@key@opacity{pdffreetextcomment}%
+\pc@define@key@opacity{pdfmarkupcomment}%
+\pc@define@key@opacity{pdfsquarecomment}%
+\pc@define@key@opacity{pdfcirclecomment}%
+\pc@define@key@opacity{pdflinecomment}%
+\pc@define@key@opacity{pdfsidelinecomment}%
+\pc@define@key@opacity{pdfreply}%
+\pc@define@key@opacity{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{markup}[\pc@goptd@markup]%
+{%
+ \gdef\pc@gopt@markup{#1}%
+}%
+%
+\newcommand\pc@define@key@markup[1]%
+{%
+ \define@key{#1}{markup}[\pc@gopt@markup]%
+ {%
+ \gdef\pc@lopt@markup{##1}%
+ }%
+}%
+%
+\pc@define@key@markup{pdfcomment}%
+\pc@define@key@markup{pdfmargincomment}%
+\pc@define@key@markup{pdffreetextcomment}%
+\pc@define@key@markup{pdfmarkupcomment}%
+\pc@define@key@markup{pdfsquarecomment}%
+\pc@define@key@markup{pdfcirclecomment}%
+\pc@define@key@markup{pdflinecomment}%
+\pc@define@key@markup{pdfsidelinecomment}%
+\pc@define@key@markup{pdfreply}%
+\pc@define@key@markup{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{font}[\pc@goptd@font]%
+{%
+ \gdef\pc@gopt@font{#1}%
+}%
+%
+\newcommand\pc@define@key@font[1]%
+{%
+ \define@key{#1}{font}[\pc@gopt@font]%
+ {%
+ \gdef\pc@lopt@font{##1}%
+ }%
+}%
+%
+\pc@define@key@font{pdfcomment}%
+\pc@define@key@font{pdfmargincomment}%
+\pc@define@key@font{pdffreetextcomment}%
+\pc@define@key@font{pdfmarkupcomment}%
+\pc@define@key@font{pdfsquarecomment}%
+\pc@define@key@font{pdfcirclecomment}%
+\pc@define@key@font{pdflinecomment}%
+\pc@define@key@font{pdfsidelinecomment}%
+\pc@define@key@font{pdfreply}%
+\pc@define@key@font{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{fontsize}[\pc@goptd@fontsize]%
+{%
+ \gdef\pc@gopt@fontsize{\pc@pttobp{#1}}%
+}%
+%
+\newcommand\pc@define@key@fontsize[1]%
+{%
+ \define@key{#1}{fontsize}[\pc@gopt@fontsize]%
+ {%
+ \gdef\pc@lopt@fontsize{\pc@pttobp{##1}}%
+ }%
+}%
+%
+\pc@define@key@fontsize{pdfcomment}%
+\pc@define@key@fontsize{pdfmargincomment}%
+\pc@define@key@fontsize{pdffreetextcomment}%
+\pc@define@key@fontsize{pdfmarkupcomment}%
+\pc@define@key@fontsize{pdfsquarecomment}%
+\pc@define@key@fontsize{pdfcirclecomment}%
+\pc@define@key@fontsize{pdflinecomment}%
+\pc@define@key@fontsize{pdfsidelinecomment}%
+\pc@define@key@fontsize{pdfreply}%
+\pc@define@key@fontsize{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{fontcolor}[\pc@goptd@fontcolor]%
+{%
+ \gdef\pc@gopt@fontcolor{#1}%
+}%
+%
+\newcommand\pc@define@key@fontcolor[1]%
+{%
+ \define@key{#1}{fontcolor}[\pc@gopt@fontcolor]%
+ {%
+ \gdef\pc@lopt@fontcolor{##1}%
+ }%
+}%
+%
+\pc@define@key@fontcolor{pdfcomment}%
+\pc@define@key@fontcolor{pdfmargincomment}%
+\pc@define@key@fontcolor{pdffreetextcomment}%
+\pc@define@key@fontcolor{pdfmarkupcomment}%
+\pc@define@key@fontcolor{pdfsquarecomment}%
+\pc@define@key@fontcolor{pdfcirclecomment}%
+\pc@define@key@fontcolor{pdflinecomment}%
+\pc@define@key@fontcolor{pdfsidelinecomment}%
+\pc@define@key@fontcolor{pdfreply}%
+\pc@define@key@fontcolor{pdftooltip}%
+%
+\define@choicekey*{pdfcomment.sty}{justification}[\pc@gopt@justification\nr]{left,center,right}[left]%
+{%
+ \ifcase\nr\relax%
+ \gdef\pc@gopt@justification{0}%
+ \or%
+ \gdef\pc@gopt@justification{1}%
+ \or%
+ \gdef\pc@gopt@justification{2}%
+ \fi%
+}%
+%
+\newcommand\pc@define@key@justification[1]%
+{%
+ \define@choicekey*{#1}{justification}[\pc@lopt@justification\nr]{left,center,right}[left]%
+ {%
+ \ifcase\nr\relax%
+ \gdef\pc@lopt@justification{0}%
+ \or%
+ \gdef\pc@lopt@justification{1}%
+ \or%
+ \gdef\pc@lopt@justification{2}%
+ \fi%
+ }%
+}%
+%
+\pc@define@key@justification{pdfcomment}%
+\pc@define@key@justification{pdfmargincomment}%
+\pc@define@key@justification{pdffreetextcomment}%
+\pc@define@key@justification{pdfmarkupcomment}%
+\pc@define@key@justification{pdfsquarecomment}%
+\pc@define@key@justification{pdfcirclecomment}%
+\pc@define@key@justification{pdflinecomment}%
+\pc@define@key@justification{pdfsidelinecomment}%
+\pc@define@key@justification{pdfreply}%
+\pc@define@key@justification{pdftooltip}%
+%
+\define@choicekey*{pdfcomment.sty}{borderstyle}[\pc@gopt@borderstyle\nr]{solid,dashed}[solid]%
+{%
+ \ifcase\nr\relax%
+ \gdef\pc@gopt@borderstyle{S}%
+ \or%
+ \gdef\pc@gopt@borderstyle{D}%
+ \fi%
+}%
+%
+\newcommand\pc@define@key@borderstyle[1]%
+{%
+ \define@choicekey*{#1}{borderstyle}[\pc@lopt@borderstyle\nr]{solid,dashed}[solid]%
+ {%
+ \ifcase\nr\relax%
+ \gdef\pc@lopt@borderstyle{S}%
+ \or%
+ \gdef\pc@lopt@borderstyle{D}%
+ \fi%
+ }%
+}%
+%
+\pc@define@key@borderstyle{pdfcomment}%
+\pc@define@key@borderstyle{pdfmargincomment}%
+\pc@define@key@borderstyle{pdffreetextcomment}%
+\pc@define@key@borderstyle{pdfmarkupcomment}%
+\pc@define@key@borderstyle{pdfsquarecomment}%
+\pc@define@key@borderstyle{pdfcirclecomment}%
+\pc@define@key@borderstyle{pdflinecomment}%
+\pc@define@key@borderstyle{pdfsidelinecomment}%
+\pc@define@key@borderstyle{pdfreply}%
+\pc@define@key@borderstyle{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{dashstyle}[\pc@goptd@dashstyle]%
+{%
+ \gdef\pc@gopt@dashstyle{#1}%
+}%
+%
+\newcommand\pc@define@key@dashstyle[1]%
+{%
+ \define@key{#1}{dashstyle}[\pc@gopt@dashstyle]%
+ {%
+ \gdef\pc@lopt@dashstyle{##1}%
+ }%
+}%
+%
+\pc@define@key@dashstyle{pdfcomment}%
+\pc@define@key@dashstyle{pdfmargincomment}%
+\pc@define@key@dashstyle{pdffreetextcomment}%
+\pc@define@key@dashstyle{pdfmarkupcomment}%
+\pc@define@key@dashstyle{pdfsquarecomment}%
+\pc@define@key@dashstyle{pdfcirclecomment}%
+\pc@define@key@dashstyle{pdflinecomment}%
+\pc@define@key@dashstyle{pdfsidelinecomment}%
+\pc@define@key@dashstyle{pdfreply}%
+\pc@define@key@dashstyle{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{linewidth}[\pc@goptd@linewidth]%
+{%
+ \gdef\pc@gopt@linewidth{\pc@pttobp{#1}}%
+}%
+%
+\newcommand\pc@define@key@linewidth[1]%
+{%
+ \define@key{#1}{linewidth}[\pc@gopt@linewidth]%
+ {%
+ \gdef\pc@lopt@linewidth{\pc@pttobp{##1}}%
+ }%
+}%
+%
+\pc@define@key@linewidth{pdfcomment}%
+\pc@define@key@linewidth{pdfmargincomment}%
+\pc@define@key@linewidth{pdffreetextcomment}%
+\pc@define@key@linewidth{pdfmarkupcomment}%
+\pc@define@key@linewidth{pdfsquarecomment}%
+\pc@define@key@linewidth{pdfcirclecomment}%
+\pc@define@key@linewidth{pdflinecomment}%
+\pc@define@key@linewidth{pdfsidelinecomment}%
+\pc@define@key@linewidth{pdfreply}%
+\pc@define@key@linewidth{pdftooltip}%
+%
+\define@choicekey*{pdfcomment.sty}{bse}[\pc@gopt@bse\nr]{none,cloudy}[none]%
+{%
+ \ifcase\nr\relax%
+ \gdef\pc@gopt@bse{S}%
+ \or%
+ \gdef\pc@gopt@bse{C}%
+ \fi%
+}%
+%
+\newcommand\pc@define@key@bse[1]%
+{%
+ \define@choicekey*{#1}{bse}[\pc@lopt@bse\nr]{none,cloudy}[none]%
+ {%
+ \ifcase\nr\relax%
+ \gdef\pc@lopt@bse{S}%
+ \or%
+ \gdef\pc@lopt@bse{C}%
+ \fi%
+ }%
+}%
+%
+\pc@define@key@bse{pdfcomment}%
+\pc@define@key@bse{pdfmargincomment}%
+\pc@define@key@bse{pdffreetextcomment}%
+\pc@define@key@bse{pdfmarkupcomment}%
+\pc@define@key@bse{pdfsquarecomment}%
+\pc@define@key@bse{pdfcirclecomment}%
+\pc@define@key@bse{pdflinecomment}%
+\pc@define@key@bse{pdfsidelinecomment}%
+\pc@define@key@bse{pdfreply}%
+\pc@define@key@bse{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{bsei}[\pc@goptd@bsei]%
+{%
+ \gdef\pc@gopt@bsei{#1}%
+}%
+%
+\newcommand\pc@define@key@bsei[1]%
+{%
+ \define@key{#1}{bsei}[\pc@gopt@bsei]%
+ {%
+ \gdef\pc@lopt@bsei{##1}%
+ }%
+}%
+%
+\pc@define@key@bsei{pdfcomment}%
+\pc@define@key@bsei{pdfmargincomment}%
+\pc@define@key@bsei{pdffreetextcomment}%
+\pc@define@key@bsei{pdfmarkupcomment}%
+\pc@define@key@bsei{pdfsquarecomment}%
+\pc@define@key@bsei{pdfcirclecomment}%
+\pc@define@key@bsei{pdflinecomment}%
+\pc@define@key@bsei{pdfsidelinecomment}%
+\pc@define@key@bsei{pdfreply}%
+\pc@define@key@bsei{pdftooltip}%
+%
+\define@choicekey*{pdfcomment.sty}{type}[\pc@gopt@type\nr]{freetext,callout,typewriter,line,polyline,polygon}[freetext]%
+{%
+ \ifcase\nr\relax%
+ \gdef\pc@gopt@type{}%
+ \or%
+ \gdef\pc@gopt@type{/IT /FreeTextCallout}%
+ \or%
+ \gdef\pc@gopt@type{/IT /FreeTextTypewriter}%
+ \or%
+ \gdef\pc@lopt@type{Line}%
+ \or%
+ \gdef\pc@lopt@type{PolyLine}%
+ \or%
+ \gdef\pc@lopt@type{Polygon}%
+ \fi%
+}%
+%
+\newcommand\pc@define@key@type[1]%
+{%
+ \define@choicekey*{#1}{type}[\pc@lopt@type\nr]{freetext,callout,typewriter,line,polyline,polygon}[freetext]%
+ {%
+ \ifcase\nr\relax%
+ \gdef\pc@lopt@type{}%
+ \or%
+ \gdef\pc@lopt@type{/IT /FreeTextCallout}%
+ \or%
+ \gdef\pc@lopt@type{/IT /FreeTextTypewriter}%
+ \or%
+ \gdef\pc@lopt@type{Line}%
+ \or%
+ \gdef\pc@lopt@type{PolyLine}%
+ \or%
+ \gdef\pc@lopt@type{Polygon}%
+ \fi%
+ }%
+}%
+%
+\pc@define@key@type{pdfcomment}%
+\pc@define@key@type{pdfmargincomment}%
+\pc@define@key@type{pdffreetextcomment}%
+\pc@define@key@type{pdfmarkupcomment}%
+\pc@define@key@type{pdfsquarecomment}%
+\pc@define@key@type{pdfcirclecomment}%
+\pc@define@key@type{pdflinecomment}%
+\pc@define@key@type{pdfsidelinecomment}%
+\pc@define@key@type{pdfreply}%
+\pc@define@key@type{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{lineend}[\pc@goptd@lineend]%
+{%
+ \gdef\pc@gopt@lineend{#1}%
+}%
+%
+\newcommand\pc@define@key@lineend[1]%
+{%
+ \define@key{#1}{lineend}[\pc@gopt@lineend]%
+ {%
+ \gdef\pc@lopt@lineend{##1}%
+ }%
+}%
+%
+\pc@define@key@lineend{pdfcomment}%
+\pc@define@key@lineend{pdfmargincomment}%
+\pc@define@key@lineend{pdffreetextcomment}%
+\pc@define@key@lineend{pdfmarkupcomment}%
+\pc@define@key@lineend{pdfsquarecomment}%
+\pc@define@key@lineend{pdfcirclecomment}%
+\pc@define@key@lineend{pdflinecomment}%
+\pc@define@key@lineend{pdfsidelinecomment}%
+\pc@define@key@lineend{pdfreply}%
+\pc@define@key@lineend{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{linebegin}[\pc@goptd@linebegin]%
+{%
+ \gdef\pc@gopt@linebegin{#1}%
+}%
+%
+\newcommand\pc@define@key@linebegin[1]%
+{%
+ \define@key{#1}{linebegin}[\pc@gopt@linebegin]%
+ {%
+ \gdef\pc@lopt@linebegin{##1}%
+ }%
+}%
+%
+\pc@define@key@linebegin{pdfcomment}%
+\pc@define@key@linebegin{pdfmargincomment}%
+\pc@define@key@linebegin{pdffreetextcomment}%
+\pc@define@key@linebegin{pdfmarkupcomment}%
+\pc@define@key@linebegin{pdfsquarecomment}%
+\pc@define@key@linebegin{pdfcirclecomment}%
+\pc@define@key@linebegin{pdflinecomment}%
+\pc@define@key@linebegin{pdfsidelinecomment}%
+\pc@define@key@linebegin{pdfreply}%
+\pc@define@key@linebegin{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{icolor}[\pc@goptd@icolor]%
+{%
+ \gdef\pc@gopt@icolor{#1}%
+}%
+%
+\newcommand\pc@define@key@icolor[1]%
+{%
+ \define@key{#1}{icolor}[\pc@gopt@icolor]%
+ {%
+ \gdef\pc@lopt@icolor{##1}%
+ }%
+}%
+%
+\pc@define@key@icolor{pdfcomment}%
+\pc@define@key@icolor{pdfmargincomment}%
+\pc@define@key@icolor{pdffreetextcomment}%
+\pc@define@key@icolor{pdfmarkupcomment}%
+\pc@define@key@icolor{pdfsquarecomment}%
+\pc@define@key@icolor{pdfcirclecomment}%
+\pc@define@key@icolor{pdflinecomment}%
+\pc@define@key@icolor{pdfsidelinecomment}%
+\pc@define@key@icolor{pdfreply}%
+\pc@define@key@icolor{pdftooltip}%
+%
+\define@choicekey*{pdfcomment.sty}{caption}[\pc@gopt@caption\nr]{none,inline,top}[inline]%
+{%
+ \ifcase\nr\relax%
+ \gdef\pc@gopt@caption{none}%
+ \or%
+ \gdef\pc@gopt@caption{Inline}%
+ \or%
+ \gdef\pc@gopt@caption{Top}%
+ \fi%
+}%
+%
+\newcommand\pc@define@key@caption[1]%
+{%
+ \define@choicekey*{#1}{caption}[\pc@lopt@caption\nr]{none,inline,top}[inline]%
+ {%
+ \ifcase\nr\relax%
+ \gdef\pc@lopt@caption{none}%
+ \or%
+ \gdef\pc@lopt@caption{Inline}%
+ \or%
+ \gdef\pc@lopt@caption{Top}%
+ \fi%
+ }%
+}%
+%
+\pc@define@key@caption{pdfcomment}%
+\pc@define@key@caption{pdfmargincomment}%
+\pc@define@key@caption{pdffreetextcomment}%
+\pc@define@key@caption{pdfmarkupcomment}%
+\pc@define@key@caption{pdfsquarecomment}%
+\pc@define@key@caption{pdfcirclecomment}%
+\pc@define@key@caption{pdflinecomment}%
+\pc@define@key@caption{pdfsidelinecomment}%
+\pc@define@key@caption{pdfreply}%
+\pc@define@key@caption{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{line}[\pc@goptd@line]%
+{%
+ \gdef\pc@gopt@line{#1}%
+}%
+%
+\newcommand\pc@define@key@line[1]%
+{%
+ \define@key{#1}{line}[\pc@gopt@line]%
+ {%
+ \gdef\pc@lopt@line{##1}%
+ }%
+}%
+%
+\pc@define@key@line{pdfcomment}%
+\pc@define@key@line{pdfmargincomment}%
+\pc@define@key@line{pdffreetextcomment}%
+\pc@define@key@line{pdfmarkupcomment}%
+\pc@define@key@line{pdfsquarecomment}%
+\pc@define@key@line{pdfcirclecomment}%
+\pc@define@key@line{pdflinecomment}%
+\pc@define@key@line{pdfsidelinecomment}%
+\pc@define@key@line{pdfreply}%
+\pc@define@key@line{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{captionhoffset}[\pc@goptd@captionhoffset]%
+{%
+ \gdef\pc@gopt@captionhoffset{\pc@pttobp{#1}}%
+}%
+%
+\newcommand\pc@define@key@captionhoffset[1]%
+{%
+ \define@key{#1}{captionhoffset}[\pc@gopt@captionhoffset]%
+ {%
+ \gdef\pc@lopt@captionhoffset{\pc@pttobp{##1}}%
+ }%
+}%
+%
+\pc@define@key@captionhoffset{pdfcomment}%
+\pc@define@key@captionhoffset{pdfmargincomment}%
+\pc@define@key@captionhoffset{pdffreetextcomment}%
+\pc@define@key@captionhoffset{pdfmarkupcomment}%
+\pc@define@key@captionhoffset{pdfsquarecomment}%
+\pc@define@key@captionhoffset{pdfcirclecomment}%
+\pc@define@key@captionhoffset{pdflinecomment}%
+\pc@define@key@captionhoffset{pdfsidelinecomment}%
+\pc@define@key@captionhoffset{pdfreply}%
+\pc@define@key@captionhoffset{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{captionvoffset}[\pc@goptd@captionvoffset]%
+{%
+ \gdef\pc@gopt@captionvoffset{\pc@pttobp{#1}}%
+}%
+%
+\newcommand\pc@define@key@captionvoffset[1]%
+{%
+ \define@key{#1}{captionvoffset}[\pc@gopt@captionvoffset]%
+ {%
+ \gdef\pc@lopt@captionvoffset{\pc@pttobp{##1}}%
+ }%
+}%
+%
+\pc@define@key@captionvoffset{pdfcomment}%
+\pc@define@key@captionvoffset{pdfmargincomment}%
+\pc@define@key@captionvoffset{pdffreetextcomment}%
+\pc@define@key@captionvoffset{pdfmarkupcomment}%
+\pc@define@key@captionvoffset{pdfsquarecomment}%
+\pc@define@key@captionvoffset{pdfcirclecomment}%
+\pc@define@key@captionvoffset{pdflinecomment}%
+\pc@define@key@captionvoffset{pdfsidelinecomment}%
+\pc@define@key@captionvoffset{pdfreply}%
+\pc@define@key@captionvoffset{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{linesep}[\pc@goptd@linesep]%
+{%
+ \gdef\pc@gopt@linesep{\pc@pttobp{#1}}%
+}%
+%
+\newcommand\pc@define@key@linesep[1]%
+{%
+ \define@key{#1}{linesep}[\pc@gopt@linesep]%
+ {%
+ \gdef\pc@lopt@linesep{\pc@pttobp{##1}}%
+ }%
+}%
+%
+\pc@define@key@linesep{pdfcomment}%
+\pc@define@key@linesep{pdfmargincomment}%
+\pc@define@key@linesep{pdffreetextcomment}%
+\pc@define@key@linesep{pdfmarkupcomment}%
+\pc@define@key@linesep{pdfsquarecomment}%
+\pc@define@key@linesep{pdfcirclecomment}%
+\pc@define@key@linesep{pdflinecomment}%
+\pc@define@key@linesep{pdfsidelinecomment}%
+\pc@define@key@linesep{pdfreply}%
+\pc@define@key@linesep{pdftooltip}%
+%
+\define@choicekey*{pdfcomment.sty}{disable}[\pc@gopt@disable\nr]{true,false}[true]%
+{%
+ \ifcase\nr\relax%
+ \global\pc@gopt@disabletrue%
+ \or%
+ \global\pc@gopt@disablefalse%
+ \fi%
+}%
+%
+\newcommand\pc@define@key@disable[1]%
+{%
+ \define@choicekey*{#1}{disable}[\pc@lopt@disable\nr]{true,false}[true]%
+ {%
+ \ifcase\nr\relax%
+ \global\pc@lopt@disabletrue%
+ \or%
+ \global\pc@lopt@disablefalse%
+ \fi%
+ }%
+}%
+%
+\pc@define@key@disable{pdfcomment}%
+\pc@define@key@disable{pdfmargincomment}%
+\pc@define@key@disable{pdffreetextcomment}%
+\pc@define@key@disable{pdfmarkupcomment}%
+\pc@define@key@disable{pdfsquarecomment}%
+\pc@define@key@disable{pdfcirclecomment}%
+\pc@define@key@disable{pdflinecomment}%
+\pc@define@key@disable{pdfsidelinecomment}%
+\pc@define@key@disable{pdfreply}%
+\pc@define@key@disable{pdftooltip}%
+%
+\newcommand\pc@define@key@id[1]%
+{%
+ \define@key{#1}{id}[]%
+ {%
+ \gdef\pc@lopt@id{##1}%
+ }%
+}%
+%
+\pc@define@key@id{pdfcomment}%
+\pc@define@key@id{pdfmargincomment}%
+\pc@define@key@id{pdffreetextcomment}%
+\pc@define@key@id{pdfmarkupcomment}%
+\pc@define@key@id{pdfsquarecomment}%
+\pc@define@key@id{pdfcirclecomment}%
+\pc@define@key@id{pdflinecomment}%
+\pc@define@key@id{pdfsidelinecomment}%
+\pc@define@key@id{pdfreply}%
+\pc@define@key@id{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{date}[\pc@goptd@date]%
+{%
+ \gdef\pc@gopt@date{#1}%
+}%
+%
+\newcommand\pc@define@key@date[1]%
+{%
+ \define@key{#1}{date}[\pc@gopt@date]%
+ {%
+ \gdef\pc@lopt@date{##1}%
+ }%
+}%
+%
+\pc@define@key@date{pdfcomment}%
+\pc@define@key@date{pdfmargincomment}%
+\pc@define@key@date{pdffreetextcomment}%
+\pc@define@key@date{pdfmarkupcomment}%
+\pc@define@key@date{pdfsquarecomment}%
+\pc@define@key@date{pdfcirclecomment}%
+\pc@define@key@date{pdflinecomment}%
+\pc@define@key@date{pdfsidelinecomment}%
+\pc@define@key@date{pdfreply}%
+\pc@define@key@date{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{timezone}[\pc@goptd@timezone]%
+{%
+ \gdef\pc@gopt@timezone{#1}%
+}%
+%
+\newcommand\pc@define@key@timezone[1]%
+{%
+ \define@key{#1}{timezone}[\pc@gopt@timezone]%
+ {%
+ \gdef\pc@lopt@timezone{##1}%
+ }%
+}%
+%
+\pc@define@key@timezone{pdfcomment}%
+\pc@define@key@timezone{pdfmargincomment}%
+\pc@define@key@timezone{pdffreetextcomment}%
+\pc@define@key@timezone{pdfmarkupcomment}%
+\pc@define@key@timezone{pdfsquarecomment}%
+\pc@define@key@timezone{pdfcirclecomment}%
+\pc@define@key@timezone{pdflinecomment}%
+\pc@define@key@timezone{pdfsidelinecomment}%
+\pc@define@key@timezone{pdfreply}%
+\pc@define@key@timezone{pdftooltip}%
+%
+\define@choicekey*{pdfcomment.sty}{printSOfinal}[\pc@gpSOf\nr]{true,false}[true]%
+{%
+ \ifcase\nr\relax%
+ \gdef\pc@gopt@printSOfinal{true}%
+ \or%
+ \gdef\pc@gopt@printSOfinal{false}%
+ \fi%
+}%
+%
+\newcommand\pc@define@key@printSOfinal[1]%
+{%
+ \define@choicekey*{#1}{printSOfinal}[\pc@lpSOf\nr]{true,false}[true]%
+ {%
+ \ifcase\nr\relax%
+ \gdef\pc@lopt@printSOfinal{true}%
+ \or%
+ \gdef\pc@lopt@printSOfinal{false}%
+ \fi%
+ }%
+}%
+%
+\pc@define@key@printSOfinal{pdfcomment}%
+\pc@define@key@printSOfinal{pdfmargincomment}%
+\pc@define@key@printSOfinal{pdffreetextcomment}%
+\pc@define@key@printSOfinal{pdfmarkupcomment}%
+\pc@define@key@printSOfinal{pdfsquarecomment}%
+\pc@define@key@printSOfinal{pdfcirclecomment}%
+\pc@define@key@printSOfinal{pdflinecomment}%
+\pc@define@key@printSOfinal{pdfsidelinecomment}%
+\pc@define@key@printSOfinal{pdfreply}%
+\pc@define@key@printSOfinal{pdftooltip}%
+%
+\define@key{pdfcomment.sty}{dvipdfmx}[\pc@goptd@dvipdfmx]%
+{%
+ \expandafter\global\csname pc@gopt@dvipdfmx#1\endcsname%
+}%
+%
+\define@key{pdfcomment.sty}{final}[]%
+{%
+ \global\pc@gopt@finaltrue%
+}%
+%
+\define@key{pdfcomment.sty}{draft}[]%
+{%
+ \global\pc@gopt@finalfalse%
+}%
+%
+\define@choicekey{pdfcomment.sty}{version}[\pc@version\nr]{1,2}[2]%
+{%
+ \ifcase\nr\relax%
+ \global\pc@opt@unskipfalse%
+ \or%
+ \global\pc@opt@unskiptrue%
+ \fi%
+}%
+%
+\define@key{pdfmarkupcomment}{mathstyle}%
+{%
+ \gdef\pc@lopt@mathstyle{#1}%
+}%
+%
+\define@key{pdftooltip}{mathstyle}%
+{%
+ \gdef\pc@lopt@mathstyle{#1}%
+}%
+%
+\define@key{pdfreply}{replyto}%
+{%
+ \gdef\pc@lopt@replyto{#1}%
+}%
+%
+\define@choicekey*{pdfcommentsetup}{local}[\pc@local\nr]{true,false}[true]%
+{%
+ \ifcase\nr\relax%
+ \global\pc@localtrue%
+ \or%
+ \global\pc@localfalse%
+ \fi%
+}%
+%
+\define@key{listofpdfcomments}{liststyle}[AuthorSubject]%
+{%
+ \gdef\pc@lopt@liststyle{#1}%
+}%
+%
+\define@key{listofpdfcomments}{heading}[\lpcname]%
+{%
+ \renewcommand{\lpcname}{#1}%
+}%
+%
+\ExecuteOptionsX{subject,color,author,deadline,icon,open,hspace,voffset,hoffset,width,height,depth,opacity,markup,font,fontsize,fontcolor,justification,borderstyle,linewidth,dashstyle,bse,bsei,type,lineend,linebegin,icolor,line,caption,captionhoffset,captionvoffset,linesep,version,date,timezone,printSOfinal}%
+%
+\ProcessOptionsX\relax%
+%
+\RequirePackage{etoolbox}%
+% luatex v0.85+ ???
+\ifdef\pdffeedback
+{%
+ \RequirePackage{luatex85}%
+ \RequirePackage{datetime2}[2016/06/04]%
+}%
+{%
+ \RequirePackage{datetime2}%
+}%
+\RequirePackage{zref-savepos}[2007/04/22]%
+\zref@require@unique%
+\RequirePackage{refcount}%
+\RequirePackage{ifthen}%
+\RequirePackage{calc}%
+\RequirePackage{marginnote}%
+\RequirePackage{ifpdf}%
+\RequirePackage{ifluatex}%
+\RequirePackage{soulpos}%
+%
+%hyperref setup
+\ifpdf%
+ \ifluatex%
+ \@ifpackageloaded{hyperref}%
+ {%
+ \hypersetup{luatex}%
+ }%
+ {%
+ \RequirePackage[luatex,pdfencoding=auto]{hyperref}[2016/05/18]%
+ }%
+ \else%
+ \@ifpackageloaded{hyperref}%
+ {%
+ \hypersetup{pdftex}%
+ }%
+ {%
+ \RequirePackage[pdftex,pdfencoding=auto]{hyperref}[2007/06/12]%
+ }%
+ \fi%
+\else%
+ % to avoid problems with different default page size in
+ % pdflatex (dvi mode) and dvipdfmx/dvips
+ \pdfpageheight=\paperheight%
+ \pdfpagewidth=\paperwidth%
+ %auto-set dvipdfmx driver in case of xetex
+ \expandafter\ifx\csname XeTeXrevision\endcsname\relax%
+ \ifpc@gopt@dvipdfmx%
+ \@ifpackageloaded{hyperref}%
+ {%
+ \hypersetup{dvipdfmx}%
+ }%
+ {%
+ \RequirePackage[dvipdfmx,pdfencoding=auto]{hyperref}[2007/06/12]%
+ }%
+ \else%
+ \@ifpackageloaded{hyperref}%
+ {%
+ \hypersetup{dvips}%
+ }%
+ {%
+ \RequirePackage[dvips,pdfencoding=auto]{hyperref}[2007/06/12]%
+ }%
+ \fi%
+ \else%
+ \global\pc@gopt@dvipdfmxtrue%
+ \global\pc@gopt@xelatextrue%
+ \@ifpackageloaded{hyperref}%
+ {%
+ \hypersetup{xetex}%
+ }%
+ {%
+ \RequirePackage[xetex,pdfencoding=auto]{hyperref}[2007/06/12]%
+ }%
+ \fi%
+\fi%
+%
+% Using the options draft, final and dvipdfmx in \pdfcommentsetup makes absolutely no sense!
+% Therefore, they are switched off at "\AtBeginDocument"
+% and a warning is issued by xkeyval.sty, if used.
+\AtBeginDocument%
+{%
+ \disable@keys{pdfcomment.sty}{draft}%
+ \disable@keys{pdfcomment.sty}{final}%
+ \disable@keys{pdfcomment.sty}{dvipdfmx}%
+ \disable@keys{pdfcomment.sty}{version}%
+}%
+\newcommand{\pdfcomment}[2][]%
+{%
+ \ifhmode\ifpc@opt@unskip\unskip\fi\fi%
+ \ifvmode\leavevmode\fi%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdfcomment}{#1}%
+ % Encode Contents, Author and Subject to pdf encodings (PD or PU) with hyperref's \pdfstringdef
+ % and transform color input to pdf color
+ \pc@encode@PDF{#2}%
+ \ifthenelse{\equal{\pc@lopt@color}{}}%
+ {%
+ \gdef\pc@lopt@c{}%
+ }%
+ {%
+ \gdef\pc@lopt@c{/C [\pc@hyenc@color]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@date}{}}%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@pdfdate@auto)\space/M (\pc@pdfdate@auto)}%
+ }%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@lopt@date)\space/M (\pc@lopt@date)}%
+ }%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ \hspace*{0pt}%
+ \pc@create@lpc%
+ % typeset text annotation (see: PDF Reference)
+ \ifpdf%
+ \vbox%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vspace{\pc@lopt@voffset}%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pdfannot width \normalbaselineskip height \normalbaselineskip depth 0pt%
+ {%
+ /Subtype /Text%
+ \pc@annot@text%
+ }%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {%
+ \xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}%
+ \pc@save@PDFOBJID{\pc@lopt@id}%
+ }%
+ \hss%
+ }%
+ }%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \vbox%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vspace{\pc@lopt@voffset}%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \special{pdf: ann width \the\normalbaselineskip\space height \the\normalbaselineskip\space depth 0pt%
+ <<%
+ /Subtype /Text%
+ \pc@annot@text%
+ >>%
+ }%
+ \hss%
+ }%
+ }%
+ \else%
+ \vbox%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vspace{\pc@lopt@voffset}%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pdfmark[\rule{\normalbaselineskip}{0pt}\rule{0pt}{\normalbaselineskip}]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/Text,%
+ Raw={\pc@annot@text}%
+ }%
+ \hss%
+ }%
+ }%
+ \fi%
+ \fi%
+ \hspace{\pc@lopt@hspace}%
+ \fi%
+ \fi%
+}%
+%
+\newcommand{\pdfmargincomment}[2][]%
+{%
+ \ifhmode\ifpc@opt@unskip\unskip\fi\fi%
+ \ifvmode\leavevmode\fi%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdfmargincomment}{#1}%
+ % Encode Contents, Author and Subject to pdf encodings (PD or PU) with hyperref's \pdfstringdef
+ % and transform color input to pdf color
+ \pc@encode@PDF{#2}%
+ \ifthenelse{\equal{\pc@lopt@color}{}}%
+ {%
+ \gdef\pc@lopt@c{}%
+ }%
+ {%
+ \gdef\pc@lopt@c{/C [\pc@hyenc@color]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@date}{}}%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@pdfdate@auto)\space/M (\pc@pdfdate@auto)}%
+ }%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@lopt@date)\space/M (\pc@lopt@date)}%
+ }%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ \hspace*{0pt}%
+ \pc@create@lpc%
+ \begingroup%
+ % center marginnotes!
+ \renewcommand{\raggedleftmarginnote}{\pc@raggedleftmarginnote}%
+ \renewcommand{\raggedrightmarginnote}{\pc@raggedrightmarginnote}%
+ % typeset text annotation (see: PDF Reference)
+ \marginnote%
+ {%
+ \ifpdf%
+ \vbox%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vspace{\pc@lopt@voffset}%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pdfannot width \normalbaselineskip height \normalbaselineskip depth 0pt%
+ {%
+ /Subtype /Text%
+ \pc@annot@text%
+ }%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {%
+ \xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}%
+ \pc@save@PDFOBJID{\pc@lopt@id}%
+ }%
+ \hss%
+ }%
+ }%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \vbox%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vspace{\pc@lopt@voffset}%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \special{pdf: ann width \the\normalbaselineskip\space height \the\normalbaselineskip\space depth 0pt%
+ <<%
+ /Subtype /Text%
+ \pc@annot@text%
+ >>%
+ }%
+ \hss%
+ }%
+ }%
+ \else%
+ \vbox%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vspace{\pc@lopt@voffset}%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pdfmark[\rule{\normalbaselineskip}{0pt}\rule{0pt}{\normalbaselineskip}]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/Text,%
+ Raw={\pc@annot@text}%
+ }%
+ \hss%
+ }%
+ }%
+ \fi%
+ \fi%
+ \hspace{\pc@lopt@hspace}%
+ }%
+ \endgroup%
+ \fi%
+ \fi%
+}%
+%
+\newcommand{\pdffreetextcomment}[2][]%
+{%
+ \ifhmode\ifpc@opt@unskip\unskip\fi\fi%
+ \ifvmode\leavevmode\fi%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdffreetextcomment}{#1}%
+ % Encode Contents, Author and Subject to pdf encodings (PD or PU) with hyperref's \pdfstringdef
+ % and transform color input to pdf color
+ \pc@encode@PDF{#2}%
+ \ifthenelse{\equal{\pc@lopt@type}{/IT /FreeTextTypewriter}}%
+ {%
+ \gdef\pc@lopt@c{}%
+ \gdef\pc@lopt@linewidth{0}%
+ }%
+ {%
+ \gdef\pc@lopt@c{/C [\pc@hyenc@color]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@color}{}}%
+ {%
+ \gdef\pc@lopt@c{}%
+ }%
+ {}%
+ \ifthenelse{\equal{\pc@lopt@date}{}}%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@pdfdate@auto)\space/M (\pc@pdfdate@auto)}%
+ }%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@lopt@date)\space/M (\pc@lopt@date)}%
+ }%
+ %create options for \pdfannot
+ \pc@create@pdfannotopt%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ \hspace*{0pt}%
+ % typeset freetext annotation (see: PDF Reference)
+ \ifpdf%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vskip-\pc@lopt@voffset%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pc@create@lpc%
+ \expandafter\pdfannot \pc@pdfannotopt%
+ {%
+ /Subtype /FreeText%
+ \pc@annot@freetext%
+ }%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {%
+ \xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}%
+ \pc@save@PDFOBJID{\pc@lopt@id}%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vskip-\pc@lopt@voffset%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pc@create@lpc%
+ \special{pdf: ann \pc@pdfannotopt%
+ <<%
+ /Subtype /FreeText%
+ \pc@annot@freetext%
+ >>%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \else%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vskip-\pc@lopt@voffset%
+ % add extra \vskip box height because of different reference point
+ \vskip-\pc@lopt@height%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pc@create@lpc%
+ %create dimensions of annotation
+ \pdfmark[\rule{0pt}{\pc@lopt@height}\rule{\pc@lopt@width}{0pt}]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/FreeText,%
+ Raw={\pc@annot@freetext}%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \fi%
+ \fi%
+ \fi%
+ \fi%
+}%
+%
+\newcommand{\pdfsquarecomment}[2][]%
+{%
+ \ifhmode\ifpc@opt@unskip\unskip\fi\fi%
+ \ifvmode\leavevmode\fi%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdfsquarecomment}{#1}%
+ % Encode Contents, Author and Subject to pdf encodings (PD or PU) with hyperref's \pdfstringdef
+ % and transform color input to pdf color
+ \pc@encode@PDF{#2}%
+ \ifthenelse{\equal{\pc@lopt@color}{}}%
+ {%
+ \gdef\pc@lopt@c{}%
+ }%
+ {%
+ \gdef\pc@lopt@c{/C [\pc@hyenc@color]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@icolor}{}}%
+ {%
+ \gdef\pc@lopt@ic{}%
+ }%
+ {%
+ \gdef\pc@lopt@ic{/IC [\pc@hyenc@icolor]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@date}{}}%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@pdfdate@auto)\space/M (\pc@pdfdate@auto)}%
+ }%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@lopt@date)\space/M (\pc@lopt@date)}%
+ }%
+ %create options for \pdfannot
+ \pc@create@pdfannotopt%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ \hspace*{0pt}%
+ % typeset square annotation (see: PDF Reference)
+ \ifpdf%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vskip-\pc@lopt@voffset%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pc@create@lpc%
+ \expandafter\pdfannot \pc@pdfannotopt%
+ {%
+ /Subtype /Square\space%
+ \pc@annot@square%
+ }%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {%
+ \xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}%
+ \pc@save@PDFOBJID{\pc@lopt@id}%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vskip-\pc@lopt@voffset%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pc@create@lpc%
+ \special{pdf: ann \pc@pdfannotopt%
+ <<%
+ /Subtype /Square\space%
+ \pc@annot@square%
+ >>%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \else%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vskip-\pc@lopt@voffset%
+ % add extra \vskip box height because of different reference point
+ \vskip-\pc@lopt@height%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pc@create@lpc%
+ %create dimensions of annotation
+ \pdfmark[\rule{0pt}{\pc@lopt@height}\rule{\pc@lopt@width}{0pt}]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/Square,%
+ Raw={\pc@annot@square}%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \fi%
+ \fi%
+ \fi%
+ \fi%
+}%
+%
+\newcommand{\pdfcirclecomment}[2][]%
+{%
+ \ifhmode\ifpc@opt@unskip\unskip\fi\fi%
+ \ifvmode\leavevmode\fi%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdfcirclecomment}{#1}%
+ % Encode Contents, Author and Subject to pdf encodings (PD or PU) with hyperref's \pdfstringdef
+ % and transform color input to pdf color
+ \pc@encode@PDF{#2}%
+ \ifthenelse{\equal{\pc@lopt@color}{}}%
+ {%
+ \gdef\pc@lopt@c{}%
+ }%
+ {%
+ \gdef\pc@lopt@c{/C [\pc@hyenc@color]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@icolor}{}}%
+ {%
+ \gdef\pc@lopt@ic{}%
+ }%
+ {%
+ \gdef\pc@lopt@ic{/IC [\pc@hyenc@icolor]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@date}{}}%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@pdfdate@auto)\space/M (\pc@pdfdate@auto)}%
+ }%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@lopt@date)\space/M (\pc@lopt@date)}%
+ }%
+ %create options for \pdfannot
+ \pc@create@pdfannotopt%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ \hspace*{0pt}%
+ % typeset circle annotation (see: PDF Reference)
+ \ifpdf%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vskip-\pc@lopt@voffset%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pc@create@lpc%
+ \expandafter\pdfannot \pc@pdfannotopt%
+ {%
+ /Subtype /Circle\space%
+ % circle and square annatations differ only in /Subtype, so ...
+ \pc@annot@square%
+ }%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {%
+ \xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}%
+ \pc@save@PDFOBJID{\pc@lopt@id}%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vskip-\pc@lopt@voffset%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pc@create@lpc%
+ \special{pdf: ann \pc@pdfannotopt%
+ <<%
+ /Subtype /Circle\space%
+ \pc@annot@square%
+ >>%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \else%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vskip-\pc@lopt@voffset%
+ % add extra \vskip box height because of different reference point
+ \vskip-\pc@lopt@height%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pc@create@lpc%
+ %create dimensions of annotation
+ \pdfmark[\rule{0pt}{\pc@lopt@height}\rule{\pc@lopt@width}{0pt}]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/Circle,%
+ Raw={\pc@annot@square}%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \fi%
+ \fi%
+ \fi%
+ \fi%
+}%
+%
+\newcommand{\pdflinecomment}[2][]%
+{%
+ \ifhmode\ifpc@opt@unskip\unskip\fi\fi%
+ \ifvmode\leavevmode\fi%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdflinecomment}{#1}%
+ % Encode Contents, Author and Subject to pdf encodings (PD or PU) with hyperref's \pdfstringdef
+ % and transform color input to pdf color
+ \pc@encode@PDF{#2}%
+ \ifthenelse{\equal{\pc@lopt@color}{}}%
+ {%
+ \gdef\pc@lopt@c{}%
+ }%
+ {%
+ \gdef\pc@lopt@c{/C [\pc@hyenc@color]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@icolor}{}}%
+ {%
+ \gdef\pc@lopt@ic{}%
+ }%
+ {%
+ \gdef\pc@lopt@ic{/IC [\pc@hyenc@icolor]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@date}{}}%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@pdfdate@auto)\space/M (\pc@pdfdate@auto)}%
+ }%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@lopt@date)\space/M (\pc@lopt@date)}%
+ }%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@linebegin\space\pc@lopt@lineend]}%
+ \ifthenelse{\equal{\pc@lopt@type}{Line}}%
+ {%
+ \ifthenelse{\equal{\pc@lopt@caption}{none}}%
+ {%
+ \gdef\pc@lopt@cap{/Cap false}%
+ \gdef\pc@lopt@cp{}%
+ }%
+ {%
+ \gdef\pc@lopt@cap{/Cap true}%
+ \gdef\pc@lopt@cp{/CP /\pc@lopt@caption}%
+ }%
+ \gdef\pc@lopt@l{/L [\pc@lopt@line]}%
+ \gdef\pc@lopt@co{/CO [\pc@lopt@captionhoffset\space \pc@lopt@captionvoffset]}%
+ }%
+ {%
+ \gdef\pc@lopt@l{/Vertices [\pc@lopt@line]}%
+ \gdef\pc@lopt@cap{}%
+ \gdef\pc@lopt@cp{}%
+ \gdef\pc@lopt@co{}%
+ }%
+ %create options for \pdfannot
+ \pc@create@pdfannotopt%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ \hspace*{0pt}%
+ \pc@create@lpc%
+ % typeset line annotation (see: PDF Reference)
+ \ifpdf%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \expandafter\pdfannot \pc@pdfannotopt%
+ {%
+ /Subtype /\pc@lopt@type\space%
+ \pc@annot@line%
+ }%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {%
+ \xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}%
+ \pc@save@PDFOBJID{\pc@lopt@id}%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \special{pdf: ann \pc@pdfannotopt%
+ <<%
+ /Subtype /\pc@lopt@type\space%
+ \pc@annot@line%
+ >>%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \else%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ %create dimensions of annotation
+ \pdfmark[\rule{0pt}{\pc@lopt@height}\rule{\pc@lopt@width}{0pt}]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/\pc@lopt@type,%
+ Raw={\pc@annot@line}%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \fi%
+ \fi%
+ \fi%
+ \fi%
+}%
+%
+\newcommand{\pdfmarkupcomment}[3][]%
+{%
+ \leavevmode%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdfmarkupcomment}{#1}%
+ \ifthenelse{\equal{\pc@lopt@date}{}}%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@pdfdate@auto)\space/M (\pc@pdfdate@auto)}%
+ }%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@lopt@date)\space/M (\pc@lopt@date)}%
+ }%
+ \ifmmode%
+ \zsavepos{pdfcomment:\thezref@unique}%
+ \zref@refused{pdfcomment:\thezref@unique}%
+ \setlength{\pc@Sposx}{\zposx{pdfcomment:\thezref@unique}sp}%
+ \setlength{\pc@Sposy}{\zposy{pdfcomment:\thezref@unique}sp}%
+ \stepcounter{zref@unique}%
+ \setlength{\pc@Eposx}{\zposx{pdfcomment:\thezref@unique}sp}%
+ \setlength{\pc@Eposy}{\zposy{pdfcomment:\thezref@unique}sp}%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ %changed \pc@encode@PDF, \pdfstringdef does not work in math mode
+ \marginnote{\pc@encode@PDF@math{#3}}%
+ \HyColor@XZeroOneThreeFour{\pc@lopt@color}{\pc@hyenc@color}{pdfcomment}{color}%
+ \HyColor@XZeroOneThreeFour{\pc@lopt@fontcolor}{\pc@hyenc@fontcolor}{pdfcomment}{color}%
+ \HyColor@XZeroOneThreeFour{\pc@lopt@icolor}{\pc@hyenc@icolor}{pdfcomment}{color}%
+ \settowidth{\pc@box@width}{$\pc@lopt@mathstyle#2$}%
+ \settoheight{\pc@box@height}{$\pc@lopt@mathstyle#2$}%
+ \settodepth{\pc@box@depth}{$\pc@lopt@mathstyle#2$}%
+ \setbox\pc@mathannot@box=\hbox to\pc@box@width%
+ {%
+ \vrule height\pc@box@height depth\pc@box@depth width\z@%
+ \hfill%
+ \pc@annot@calc@pos@math%
+ \xdef\pc@annot@quadpoints{\pc@x@one\space\pc@y@one\space\pc@x@two\space\pc@y@two\space\pc@x@three\space\pc@y@three\space\pc@x@four\space\pc@y@four}%
+ \ifpdf%
+ \pc@annot@markup@pdf%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \pc@annot@markup@dvipdfmx%
+ \else%
+ \pc@annot@markup@dvips%
+ \fi%
+ \fi%
+ }%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {\xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}}%
+ \wd\pc@mathannot@box\z@%
+ \ht\pc@mathannot@box\z@%
+ \dp\pc@mathannot@box\z@%
+ \box\pc@mathannot@box%
+ \nobreak%
+ \fi%
+ \fi%
+ \ifpc@gopt@final%
+ \ifthenelse{\equal{\pc@lopt@markup}{StrikeOut}}%
+ {%
+ \ifthenelse{\equal{\pc@lopt@printSOfinal}{true}}%
+ {#2\global\pc@ignorespacesfalse}%
+ {\global\pc@ignorespacestrue}%
+ }%
+ {%
+ #2\global\pc@ignorespacesfalse%
+ }%
+ \else%
+ \ifpc@lopt@disable%
+ \ifthenelse{\equal{\pc@lopt@markup}{StrikeOut}}%
+ {%
+ \ifthenelse{\equal{\pc@lopt@printSOfinal}{true}}%
+ {#2\global\pc@ignorespacesfalse}%
+ {\global\pc@ignorespacestrue}%
+ }%
+ {%
+ #2\global\pc@ignorespacesfalse%
+ }%
+ \else%
+ #2\global\pc@ignorespacesfalse%
+ \fi%
+ \fi%
+ \zsavepos{pdfcomment:\thezref@unique}%
+ \zref@refused{pdfcomment:\thezref@unique}%
+ \stepcounter{zref@unique}%
+ \else%
+ \pc@encode@PDF{#3}%
+ \settoheight{\pc@box@height}{#2}%
+ \ifthenelse{\equal{\pc@lopt@markup}{Underline}}%
+ {%
+ \settodepth{\pc@box@depth}{Tq}%
+ }%
+ {%
+ \settodepth{\pc@box@depth}{#2}%
+ }%
+ \def\SOUL@preamble%
+ {%
+ \def\ulp@skern{0pt}%
+ \def\ulp@ekern{0pt}%
+ \def\ulp@sgap{0pt}%
+ \def\ulp@egap{0pt}%
+ \def\ulp@pos{\z@}%
+ \def\ulp@draw{\pc@soul@markup}%
+ \ulp@preamble%
+ }%
+ \let\SOUL@postamble\ulp@postamble%
+ \let\SOUL@everyspace\ulp@everyspace%
+ \let\SOUL@everyhyphen\ulp@everyhyphen%
+ \let\SOUL@everyexhyphen\ulp@everyexhyphen%
+ \let\SOUL@everysyllable\@empty%
+ \def\SOUL@everytoken{\the\SOUL@token}%
+ \ifpc@gopt@final%
+ \ifthenelse{\equal{\pc@lopt@markup}{StrikeOut}}%
+ {%
+ \ifthenelse{\equal{\pc@lopt@printSOfinal}{true}}%
+ {\SOUL@{#2}\global\pc@ignorespacesfalse}%
+ {\global\pc@ignorespacestrue}%
+ }%
+ {%
+ #2\global\pc@ignorespacesfalse%
+ }%
+ \else%
+ \ifpc@lopt@disable%
+ \ifthenelse{\equal{\pc@lopt@markup}{StrikeOut}}%
+ {%
+ \ifthenelse{\equal{\pc@lopt@printSOfinal}{true}}%
+ {#2\global\pc@ignorespacesfalse}%
+ {\global\pc@ignorespacestrue}%
+ }%
+ {%
+ #2\global\pc@ignorespacesfalse%
+ }%
+ \else%
+ \SOUL@{#2}\global\pc@ignorespacesfalse%
+ \fi%
+ \fi%
+ \fi%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ \pc@create@lpc%
+ \fi%
+ \fi%
+ %only local!
+ \gdef\pc@lopt@mathstyle{}%
+ %
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {\pc@save@PDFOBJID{\pc@lopt@id}}%
+ \ifpc@ignorespaces%
+ \ignorespaces%
+ \fi%
+}%
+%
+\newenvironment{pdfsidelinecomment}[2][]%
+{%
+ \ifhmode\ifpc@opt@unskip\unskip\fi\fi%
+ \ifvmode\leavevmode\fi%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdfsidelinecomment}{#1}%
+ % Encode Contents, Author and Subject to pdf encodings (PD or PU) with hyperref's \pdfstringdef
+ % and transform color input to pdf color
+ \pc@encode@PDF{#2}%
+ \gdef\pc@lopt@type{Line}%
+ \ifthenelse{\equal{\pc@lopt@color}{}}%
+ {%
+ \gdef\pc@lopt@c{}%
+ }%
+ {%
+ \gdef\pc@lopt@c{/C [\pc@hyenc@color]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@icolor}{}}%
+ {%
+ \gdef\pc@lopt@ic{}%
+ }%
+ {%
+ \gdef\pc@lopt@ic{/IC [\pc@hyenc@icolor]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@date}{}}%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@pdfdate@auto)\space/M (\pc@pdfdate@auto)}%
+ }%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@lopt@date)\space/M (\pc@lopt@date)}%
+ }%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@linebegin\space\pc@lopt@lineend]}%
+ \ifthenelse{\equal{\pc@lopt@type}{Line}}%
+ {%
+ \ifthenelse{\equal{\pc@lopt@caption}{none}}%
+ {%
+ \gdef\pc@lopt@cap{/Cap false}%
+ \gdef\pc@lopt@cp{}%
+ }%
+ {%
+ \gdef\pc@lopt@cap{/Cap true}%
+ \gdef\pc@lopt@cp{/CP /\pc@lopt@caption}%
+ }%
+ \gdef\pc@lopt@l{/L [\pc@lopt@line]}%
+ \gdef\pc@lopt@co{/CO [\pc@lopt@captionhoffset\space \pc@lopt@captionvoffset]}%
+ }%
+ {%
+ \gdef\pc@lopt@l{/Vertices [\pc@lopt@line]}%
+ \gdef\pc@lopt@cap{}%
+ \gdef\pc@lopt@cp{}%
+ \gdef\pc@lopt@co{}%
+ }%
+ \zsavepos{pdfcomment:slc:\thepc@count@iv}%
+ \zref@refused{pdfcomment:slc:\thepc@count@iv}%
+ \setlength{\pc@Sposx}{\zposx{pdfcomment:slc:\thepc@count@iv}sp}%
+ \setlength{\pc@Sposy}{\zposy{pdfcomment:slc:\thepc@count@iv}sp}%
+ \stepcounter{pc@count@iv}%
+ \setlength{\pc@Eposx}{\zposx{pdfcomment:slc:\thepc@count@iv}sp}%
+ \setlength{\pc@Eposy}{\zposy{pdfcomment:slc:\thepc@count@iv}sp}%
+ \settoheight{\pc@box@height}{Tq}%
+ \settoheight{\pc@box@depth}{Tq}%
+ \stepcounter{pc@count@i}%
+ \label{pdfcomment:pageS:\thepc@count@i}%
+ \refused{pdfcomment:pageS:\thepc@count@i}%
+ \gdef\pc@pS{\getpagerefnumber{pdfcomment:pageS:\thepc@count@i}}%
+ \gdef\pc@pE{\getpagerefnumber{pdfcomment:pageE:\thepc@count@i}}%
+ \ifthenelse{\equal{\pc@pS}{\pc@pE}}%
+ {\global\pc@annot@samepagetrue}%
+ {\global\pc@annot@samepagefalse}%
+ \global\pc@firstcolumntrue%
+ \pc@calc@textblockpos%
+ \setlength{\pc@column}{\pc@x@right@text bp}%
+ \addtolength{\pc@column}{3pt}%
+ \ifnum\pc@Sposx<\pc@column%
+ \global\pc@Sfirstcolumntrue%
+ \else%
+ \global\pc@Sfirstcolumnfalse%
+ \fi%
+ \ifnum\pc@Eposx<\pc@column%
+ \global\pc@Efirstcolumntrue%
+ \else%
+ \global\pc@Efirstcolumnfalse%
+ \fi%
+ \ifpc@annot@samepage\else%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ % 1st part of annotation on 1st page
+ \if@twocolumn%
+ \ifpc@Sfirstcolumn%
+ \PackageError{pdfcomment}{%
+ \string\pdfsidelinecomment\space supports only one\MessageBreak%
+ column or page break in twocolumn mode!!\MessageBreak%
+ Your comment is too long!}%
+ \else%
+ % start in second column
+ \global\pc@annot@secondpagefalse%
+ \pc@calc@sidelinepos%
+ \renewcommand{\pc@y@two}{\pc@y@bottom@text}%
+ \gdef\pc@lopt@line{\pc@x@two\space\pc@y@one\space\pc@x@two\space\pc@y@two}%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@linebegin\space/None]}%
+ \marginnote{\pc@create@lpc\pc@create@annot@sideline}%
+ \fi%
+ \else%
+ \global\pc@annot@secondpagefalse%
+ \pc@calc@sidelinepos%
+ \renewcommand{\pc@y@two}{\pc@y@bottom@text}%
+ \gdef\pc@lopt@line{\pc@x@two\space\pc@y@one\space\pc@x@two\space\pc@y@two}%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@linebegin\space/None]}%
+ \marginnote{\pc@create@lpc\pc@create@annot@sideline}%
+ \gdef\pc@lopt@line{\pc@x@one\space\pc@y@two\space\pc@x@one\space\pc@y@one}%
+ \gdef\pc@lopt@le{/LE [/None\space\pc@lopt@linebegin]}%
+ \marginnote{\pc@create@annot@sideline}%
+ \fi%
+ \fi%
+ \fi%
+ \fi%
+}%
+{%
+ \zsavepos{pdfcomment:slc:\thepc@count@iv}%
+ \zref@refused{pdfcomment:slc:\thepc@count@iv}%
+ \label{pdfcomment:pageE:\thepc@count@i}%
+ \refused{pdfcomment:pageE:\thepc@count@i}%
+ \stepcounter{pc@count@iv}%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ \ifpc@annot@samepage%
+ % annot complete on one page
+ \if@twocolumn%
+ \ifpc@Sfirstcolumn%
+ \ifpc@Efirstcolumn%
+ % complete in first column
+ \global\pc@firstcolumntrue%
+ \pc@calc@sidelinepos%
+ \gdef\pc@lopt@line{\pc@x@one\space\pc@y@two\space\pc@x@one\space\pc@y@one}%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@lineend\space\pc@lopt@linebegin]}%
+ \marginnote{\pc@create@lpc\pc@create@annot@sideline}%
+ \else%
+ % column break
+ \global\pc@firstcolumntrue%
+ \pc@calc@sidelinepos%
+ \renewcommand{\pc@y@two}{\pc@y@bottom@text}%
+ \gdef\pc@lopt@line{\pc@x@one\space\pc@y@two\space\pc@x@one\space\pc@y@one}%
+ \gdef\pc@lopt@le{/LE [/None\space\pc@lopt@linebegin]}%
+ \marginnote{\pc@create@lpc\pc@create@annot@sideline}%
+ \global\pc@firstcolumnfalse%
+ \pc@calc@sidelinepos%
+ \renewcommand{\pc@y@one}{\pc@y@top@text}%
+ \gdef\pc@lopt@line{\pc@x@two\space\pc@y@one\space\pc@x@two\space\pc@y@two}%
+ \gdef\pc@lopt@le{/LE [/None\space\pc@lopt@lineend]}%
+ \marginnote{\pc@create@annot@sideline}%
+ \fi%
+ \else%
+ \ifpc@Efirstcolumn%
+ % not possible
+ \else%
+ % complete in seconds column
+ \global\pc@firstcolumnfalse%
+ \pc@calc@sidelinepos%
+ \gdef\pc@lopt@line{\pc@x@two\space\pc@y@one\space\pc@x@two\space\pc@y@two}%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@linebegin\space\pc@lopt@lineend]}%
+ \marginnote{\pc@create@lpc\pc@create@annot@sideline}%
+ \fi%
+ \fi%
+ \else%
+ \pc@calc@sidelinepos%
+ \gdef\pc@lopt@line{\pc@x@two\space\pc@y@one\space\pc@x@two\space\pc@y@two}%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@linebegin\space\pc@lopt@lineend]}%
+ \marginnote{\pc@create@lpc\pc@create@annot@sideline}%
+ \gdef\pc@lopt@line{\pc@x@one\space\pc@y@two\space\pc@x@one\space\pc@y@one}%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@lineend\space\pc@lopt@linebegin]}%
+ \marginnote{\pc@create@annot@sideline}%
+ \fi%
+ \else%
+ % 2nd part of annotation on 2nd page
+ \if@twocolumn%
+ \ifpc@Efirstcolumn%
+ % end in first column
+ \global\pc@firstcolumntrue%
+ \global\pc@annot@secondpagetrue%
+ \pc@calc@sidelinepos%
+ \renewcommand{\pc@y@one}{\pc@y@top@text}%
+ \gdef\pc@lopt@line{\pc@x@one\space\pc@y@two\space\pc@x@one\space\pc@y@one}%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@lineend\space/None]}%
+ \marginnote{\pc@create@annot@sideline}%
+ \else%
+ \PackageError{pdfcomment}{%
+ \string\pdfsidelinecomment\space supports only one\MessageBreak%
+ column or page break in twocolumn mode!\MessageBreak%
+ Your comment is too long!}%
+ \fi%
+ \else%
+ \global\pc@annot@secondpagetrue%
+ \pc@calc@sidelinepos%
+ \renewcommand{\pc@y@one}{\pc@y@top@text}%
+ \gdef\pc@lopt@line{\pc@x@two\space\pc@y@one\space\pc@x@two\space\pc@y@two}%
+ \gdef\pc@lopt@le{/LE [/None\space\pc@lopt@lineend]}%
+ \marginnote{\pc@create@annot@sideline}%
+ \gdef\pc@lopt@line{\pc@x@one\space\pc@y@two\space\pc@x@one\space\pc@y@one}%
+ \gdef\pc@lopt@le{/LE [\pc@lopt@lineend\space/None]}%
+ \marginnote{\pc@create@annot@sideline}%
+ \fi%
+ \fi%
+ \fi%
+ \fi%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {\pc@save@PDFOBJID{\pc@lopt@id}}%
+}%
+%
+\newcommand{\pdfreply}[2][]%
+{%
+ \ifhmode\ifpc@opt@unskip\unskip\fi\fi%
+ \ifvmode\leavevmode\fi%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdfreply}{#1}%
+ % Encode Contents, Author and Subject to pdf encodings (PD or PU) with hyperref's \pdfstringdef
+ % and transform color input to pdf color
+ \pc@encode@PDF{#2}%
+ \ifthenelse{\equal{\pc@lopt@color}{}}%
+ {%
+ \gdef\pc@lopt@c{}%
+ }%
+ {%
+ \gdef\pc@lopt@c{/C [\pc@hyenc@color]}%
+ }%
+ \ifthenelse{\equal{\pc@lopt@date}{}}%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@pdfdate@auto)\space/M (\pc@pdfdate@auto)}%
+ }%
+ {%
+ \gdef\pc@lopt@cdate{/CreationDate (\pc@lopt@date)\space/M (\pc@lopt@date)}%
+ }%
+ \ifpc@gopt@final\else%
+ \ifpc@lopt@disable\else%
+ \hspace*{0pt}%
+ %\pc@create@lpc%
+ % typeset text annotation (see: PDF Reference)
+ \xdef\pc@zref@PDFOBJID{\pc@get@PDFOBJID{\pc@lopt@replyto}}%
+ \global\pc@afterpagefalse%
+ \ifpdf%
+ \@for\pc@for@PDFOBJID:={\pc@zref@PDFOBJID}\do%
+ {%
+ \ifthenelse{\equal{\pc@for@PDFOBJID}{A}}%
+ {%
+ \global\pc@afterpagetrue%
+ \xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,A}%
+ }%
+ {%
+ \ifthenelse{\equal{\pc@for@PDFOBJID}{S}}%
+ {}%
+ {%
+ \edef\pc@irt{/IRT \pc@for@PDFOBJID\space 0 R\space}%
+ \vbox%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \vspace{\pc@lopt@voffset}%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \hskip\pc@lopt@hoffset%
+ \pdfannot width 0pt height \normalbaselineskip depth 0pt%
+ {%
+ /Subtype /Text%
+ \pc@lopt@c\space%
+ \pc@lopt@cdate\space%
+ /T (\pc@pdfenc@author)\space%
+ /Subj (\pc@pdfenc@subject)\space%
+ /Contents (\pc@pdfenc@contents)\space%
+ \pc@irt%%
+ /F 4\space%
+ }%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {\xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}}%
+ \hss%
+ }%
+ }%
+ }%
+ }%
+ }%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {\pc@save@PDFOBJID{\pc@lopt@id}}%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \PackageError{pdfcomment}{%
+ \string\pdfreply\space is only supported by pdfTeX!\MessageBreak%
+ Please use pdf(la)tex instead}%
+ \else%
+ \PackageError{pdfcomment}{%
+ \string\pdfreply\space is only supported by pdfTeX!\MessageBreak%
+ Please use pdf(la)tex instead}%
+ \fi%
+ \fi%
+ \fi%
+ \fi%
+}%
+%
+\newcommand{\pdftooltip}[3][]%
+{%
+ \leavevmode%
+ % Copy all global options to local options
+ \pc@copy@gopt@lopt%
+ % Change local options if specified
+ \setkeys{pdftooltip}{#1}%
+ \ifmmode%
+ \setbox\pc@nullbox=\hbox{\pc@encode@PDF@math{#3}}%
+ \ifpc@lopt@disable%
+ #2%
+ \else%
+ \settowidth{\pc@box@width}{$\pc@lopt@mathstyle#2$}%
+ \settoheight{\pc@box@height}{$\pc@lopt@mathstyle#2$}%
+ \settodepth{\pc@box@depth}{$\pc@lopt@mathstyle#2$}%
+ \ifpdf%
+ \pdfannot width \the\pc@box@width height \the\pc@box@height depth \the\pc@box@depth%
+ {%
+ /Subtype /Widget\space%
+ \pc@annot@tooltip%
+ }%
+ #2%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \special{pdf: ann width \the\pc@box@width\space height \the\pc@box@height\space depth \the\pc@box@depth%
+ <<%
+ /Subtype /Widget\space%
+ \pc@annot@tooltip%
+ >>%
+ }%
+ #2%
+ \else%
+ \pdfmark[\pc@lopt@mathstyle#2]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/Widget,%
+ Raw={\pc@annot@tooltip}%
+ }%
+ \fi%
+ \fi%
+ \fi%
+ \else%
+ \expandafter\pc@encode@PDF{#3}%
+ \ifpc@lopt@disable%
+ #2%
+ \else%
+ \hspace*{0pt}%
+ \settowidth{\pc@box@width}{#2}%
+ \settoheight{\pc@box@height}{#2}%
+ \settodepth{\pc@box@depth}{#2}%
+ \ifpdf%
+ \pdfannot width \the\pc@box@width height \the\pc@box@height depth \the\pc@box@depth%
+ {%
+ /Subtype /Widget\space%
+ \pc@annot@tooltip%
+ }%
+ #2%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \special{pdf: ann width \the\pc@box@width\space height \the\pc@box@height\space depth \the\pc@box@depth%
+ <<%
+ /Subtype /Widget\space%
+ \pc@annot@tooltip%
+ >>%
+ }%
+ #2%
+ \else%
+ \pdfmark[#2]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/Widget,%
+ Raw={\pc@annot@tooltip}%
+ }%
+ \fi%
+ \fi%
+ \fi%
+ \fi%
+ \stepcounter{zref@unique}%
+ %only local!
+ \gdef\pc@lopt@mathstyle{}%
+}%
+%
+% reset global options
+\newcommand{\pdfcommentsetup}[2][]%
+{%
+ \setkeys{pdfcommentsetup}{#1}%
+ \ifpc@local%
+ \edef\pc@local@gd{\the\globaldefs}%
+ \globaldefs=-1%
+ \fi%
+ % Change global options if specified
+ \setkeys{pdfcomment.sty}{#2}%
+ \ifpc@local%
+ \globaldefs=\pc@local@gd%
+ \fi%
+ \global\pc@localfalse%
+}%
+%
+% define predefined set of options (Avatar)
+\newcommand{\defineavatar}[2]%
+{%
+ \expandafter\gdef\csname pc@avatar@#1\endcsname{#2}%
+}%
+%
+% define predefined set of options (Style)
+\newcommand{\definestyle}[2]%
+{%
+ \expandafter\gdef\csname pc@style@#1\endcsname{#2}%
+}%
+%
+\newcommand\l@lpcsec{\@dottedtocline{1}{0em}{0em}}%
+%
+% define predefined set of liststyles
+\newcommand{\defineliststyle}[2]%
+{%
+ \expandafter\gdef\csname pc@liststyle@#1\endcsname{#2}%
+}%
+%
+\newcommand{\setliststyle}[1]%
+{%
+ \gdef\pc@lopt@liststyle{#1}%
+ \edef\pc@edef@liststyle{pc@liststyle@#1}%
+ \@ifundefined{\pc@edef@liststyle}%
+ {%
+ \setliststyle{AuthorSubject}%
+ \PackageWarning{pdfcomment}{Unknown liststyle #1\MessageBreak%
+ in command setliststyle\MessageBreak%
+ Using liststyle AuthorSubject instead!}%
+ }%
+ {%
+ \expandafter\gdef\expandafter\pc@lpc@format{\expandafter\csname \pc@edef@liststyle\endcsname}%
+ }%
+}%
+%
+\defineliststyle{AuthorSubject}{\pc@lopt@author\ - \pc@lopt@subject}%
+\defineliststyle{AuthorSubjectDeadline}{\pc@lopt@author\ - \pc@lopt@subject\ (\pc@lopt@deadline)}%
+\defineliststyle{SubjectAuthorComment}{\pc@lopt@subject\ (\pc@lopt@author): \pc@lopt@comment}%
+\defineliststyle{SubjectAuthorCommentDeadline}{\pc@lopt@subject\ (\pc@lopt@author): \pc@lopt@comment\ (\pc@lopt@deadline)}%
+\defineliststyle{AuthorComment}{\pc@lopt@author: \pc@lopt@comment}%
+\defineliststyle{AuthorCommentDeadline}{\pc@lopt@author: \pc@lopt@comment\ (\pc@lopt@deadline)}%
+\defineliststyle{SubjectComment}{\pc@lopt@subject: \pc@lopt@comment}%
+\defineliststyle{SubjectCommentDeadline}{\pc@lopt@subject: \pc@lopt@comment\ (\pc@lopt@deadline)}%
+\defineliststyle{Comment}{\pc@lopt@comment}%
+\defineliststyle{CommentDeadline}{\pc@lopt@comment\ (\pc@lopt@deadline)}%
+%
+\newcommand{\listofpdfcomments}[1][]%
+{%
+ \setkeys{listofpdfcomments}{#1}%
+ \edef\pc@edef@liststyle{pc@liststyle@\pc@lopt@liststyle}%
+ \@ifundefined{\pc@edef@liststyle}%
+ {%
+ \PackageWarning{pdfcomment}{Unknown liststyle \pc@lopt@liststyle\MessageBreak%
+ in command listofpdfcomments\MessageBreak%
+ Using liststyle=AuthorSubject instead!}%
+ \setliststyle{AuthorSubject}%
+ }%
+ {%
+ \expandafter\gdef\expandafter\pc@lpc@format{\expandafter\csname \pc@edef@liststyle\endcsname}%
+ }%
+ \ifpc@gopt@final\else%
+ \setboolean{@restonecol}{false}%
+ \ifthenelse{\boolean{@twocolumn}}%
+ {\setboolean{@restonecol}{true}\onecolumn}%
+ {}%
+ \@ifundefined{chapter}%
+ {\section*{\lpcname\@mkboth{\lpcname}{\lpcname}}\addcontentsline{toc}{section}{\lpcname{}}}%
+ {\chapter*{\lpcname\@mkboth{\lpcname}{\lpcname}}\addcontentsline{toc}{chapter}{\lpcname{}}}%
+ {%
+ \setlength{\parindent}{0pt}%
+ \@starttoc{lpc}%
+ }%
+ \ifthenelse{\boolean{@restonecol}}%
+ {\twocolumn}%
+ {}%
+ \fi%
+}%
+%
+\zref@newlist{pdfcomment}%
+\zref@newprop{PCPDFOBJID}{\pc@collect@PDFOBJID}%
+\zref@addprop{pdfcomment}{PCPDFOBJID}%
+%
+\newcommand*{\pc@save@PDFOBJID}[1]%
+{%
+ \zref@labelbylist{#1}{pdfcomment}%
+}%
+\newcommand*{\pc@get@PDFOBJID}[1]%
+{%
+ \zref@extract{#1}{PCPDFOBJID}%
+}%
+%
+\newcommand{\pc@create@lpc}%
+{%
+ \phantomsection%
+ \addcontentsline{lpc}{lpcsec}{\protect\numberline{}\pc@lpc@format}%
+}%
+%
+\newcommand{\pc@copy@gopt@lopt}%
+{%
+ \gdef\pc@lopt@subject{\pc@gopt@subject}%
+ \gdef\pc@lopt@color{\pc@gopt@color}%
+ \gdef\pc@lopt@author{\pc@gopt@author}%
+ \gdef\pc@lopt@deadline{\pc@gopt@deadline}%
+ \gdef\pc@lopt@icon{\pc@gopt@icon}%
+ \gdef\pc@lopt@open{\pc@gopt@open}%
+ \gdef\pc@lopt@hspace{\pc@gopt@hspace}%
+ \gdef\pc@lopt@voffset{\pc@gopt@voffset}%
+ \gdef\pc@lopt@hoffset{\pc@gopt@hoffset}%
+ \gdef\pc@lopt@width{\pc@gopt@width}%
+ \gdef\pc@lopt@height{\pc@gopt@height}%
+ \gdef\pc@lopt@depth{\pc@gopt@depth}%
+ \gdef\pc@lopt@opacity{\pc@gopt@opacity}%
+ \gdef\pc@lopt@markup{\pc@gopt@markup}%
+ \gdef\pc@lopt@font{\pc@gopt@font}%
+ \gdef\pc@lopt@fontsize{\pc@gopt@fontsize}%
+ \gdef\pc@lopt@fontcolor{\pc@gopt@fontcolor}%
+ \gdef\pc@lopt@justification{\pc@gopt@justification}%
+ \gdef\pc@lopt@borderstyle{\pc@gopt@borderstyle}%
+ \gdef\pc@lopt@linewidth{\pc@gopt@linewidth}%
+ \gdef\pc@lopt@dashstyle{\pc@gopt@dashstyle}%
+ \gdef\pc@lopt@bse{\pc@gopt@bse}%
+ \gdef\pc@lopt@bsei{\pc@gopt@bsei}%
+ \gdef\pc@lopt@type{\pc@gopt@type}%
+ \gdef\pc@lopt@lineend{\pc@gopt@lineend}%
+ \gdef\pc@lopt@linebegin{\pc@gopt@linebegin}%
+ \gdef\pc@lopt@icolor{\pc@gopt@icolor}%
+ \gdef\pc@lopt@line{\pc@gopt@line}%
+ \gdef\pc@lopt@caption{\pc@gopt@caption}%
+ \gdef\pc@lopt@captionhoffset{\pc@gopt@captionhoffset}%
+ \gdef\pc@lopt@captionvoffset{\pc@gopt@captionvoffset}%
+ \gdef\pc@lopt@linesep{\pc@gopt@linesep}%
+ \gdef\pc@lopt@date{\pc@gopt@date}%
+ \gdef\pc@lopt@timezone{\pc@gopt@timezone}%
+ \gdef\pc@lopt@id{}%
+ \gdef\pc@collect@PDFOBJID{S}%
+ \global\pc@lopt@disablefalse%
+ \gdef\pc@lopt@printSOfinal{\pc@gopt@printSOfinal}%
+ \ifpc@gopt@disable%
+ \global\pc@lopt@disabletrue%
+ \else%
+ \global\pc@lopt@disablefalse%
+ \fi%
+}%
+%
+\newcommand{\pc@encode@PDF}[1]%
+{%
+ \gdef\pc@lopt@comment{#1}%
+ \ifthenelse{\equal{\pc@lopt@deadline}{}}%
+ {%
+ \gdef\pc@comment@deadline{\pc@lopt@comment}%
+ \pdfstringdef\pc@pdfenc@contents{\pc@comment@deadline}%
+ }%
+ {%
+ \gdef\pc@comment@deadline{\pc@lopt@comment\textCR(\pc@lopt@deadline)}%
+ \pdfstringdef\pc@pdfenc@contents{\pc@comment@deadline}%
+ }%
+ \pdfstringdef\pc@pdfenc@author{\pc@lopt@author}%
+ \pdfstringdef\pc@pdfenc@subject{\pc@lopt@subject}%
+ \HyColor@XZeroOneThreeFour{\pc@lopt@color}{\pc@hyenc@color}{pdfcomment}{color}%
+ \HyColor@XZeroOneThreeFour{\pc@lopt@fontcolor}{\pc@hyenc@fontcolor}{pdfcomment}{color}%
+ \HyColor@XZeroOneThreeFour{\pc@lopt@icolor}{\pc@hyenc@icolor}{pdfcomment}{color}%
+}%
+%
+\newcommand{\pc@encode@PDF@math}[1]%
+{%
+ \gdef\pc@lopt@comment{#1}%
+ \ifthenelse{\equal{\pc@lopt@deadline}{}}%
+ {%
+ \gdef\pc@comment@deadline{\pc@lopt@comment}%
+ \pdfstringdef\pc@pdfenc@contents{\pc@comment@deadline}%
+ }%
+ {%
+ \gdef\pc@comment@deadline{\pc@lopt@comment\textCR(\pc@lopt@deadline)}%
+ \pdfstringdef\pc@pdfenc@contents{\pc@comment@deadline}%
+ }%
+ \pdfstringdef\pc@pdfenc@author{\pc@lopt@author}%
+ \pdfstringdef\pc@pdfenc@subject{\pc@lopt@subject}%
+}%
+%
+\newcommand{\pc@annot@text}%
+{%
+ \pc@lopt@c\space%
+ \pc@lopt@cdate\space%
+ /CA \pc@lopt@opacity\space%
+ /T (\pc@pdfenc@author)\space%
+ /Subj (\pc@pdfenc@subject)\space%
+ /Name /\pc@lopt@icon\space%
+ /Contents (\pc@pdfenc@contents)\space%
+ /Open \pc@lopt@open\space%
+ /F 4\space%
+}%
+%
+\newcommand{\pc@annot@freetext}%
+{%
+ \pc@lopt@c\space%
+ \pc@lopt@cdate\space%
+ /DA (/\pc@lopt@font\space \pc@lopt@fontsize\space Tf\space \pc@hyenc@fontcolor\space rg)\space%
+ /CA \pc@lopt@opacity\space%
+ /T (\pc@pdfenc@author)\space%
+ /Subj (\pc@pdfenc@subject)\space%
+ /Contents (\pc@pdfenc@contents)\space%
+ /F 4\space%
+ /Q \pc@lopt@justification\space%
+ /BS\space%
+ <<\space%
+ /W \pc@lopt@linewidth\space%
+ /S /\pc@lopt@borderstyle\space%
+ /D [\pc@lopt@dashstyle]\space%
+ >>\space%
+ /BE\space%
+ <<\space%
+ /S /\pc@lopt@bse\space%
+ /I \pc@lopt@bsei\space%
+ >>\space%
+ \pc@lopt@type\space%
+ /CL [\pc@lopt@line]\space%
+ /LE \pc@lopt@lineend\space%
+}%
+%
+\newcommand{\pc@annot@square}%
+{%
+ \pc@lopt@c\space%
+ \pc@lopt@ic\space%
+ \pc@lopt@cdate\space%
+ /CA \pc@lopt@opacity\space%
+ /T (\pc@pdfenc@author)\space%
+ /Subj (\pc@pdfenc@subject)\space%
+ /Contents (\pc@pdfenc@contents)\space%
+ /F 4\space%
+ /BS\space%
+ <<\space%
+ /W \pc@lopt@linewidth\space%
+ /S /\pc@lopt@borderstyle\space%
+ /D [\pc@lopt@dashstyle]\space%
+ >>\space%
+ /BE\space%
+ <<\space%
+ /S /\pc@lopt@bse\space%
+ /I \pc@lopt@bsei\space%
+ >>\space%
+}%
+%
+\newcommand{\pc@annot@line}%
+{%
+ \pc@lopt@c\space%
+ \pc@lopt@ic\space%
+ \pc@lopt@cdate\space%
+ /CA \pc@lopt@opacity\space%
+ /T (\pc@pdfenc@author)\space%
+ /Subj (\pc@pdfenc@subject)\space%
+ /Contents (\pc@pdfenc@contents)\space%
+ \pc@lopt@l\space%
+ \pc@lopt@le\space%
+ \pc@lopt@cap\space%
+ \pc@lopt@cp\space%
+ \pc@lopt@co\space%
+ /F 4\space%
+ /BS\space%
+ <<\space%
+ /W \pc@lopt@linewidth\space%
+ /S /\pc@lopt@borderstyle\space%
+ /D [\pc@lopt@dashstyle]\space%
+ >>\space%
+ /BE\space%
+ <<\space%
+ /S /\pc@lopt@bse\space%
+ /I \pc@lopt@bsei\space%
+ >>\space%
+}%
+%
+\newcommand{\pc@annot@markup@pdf}%
+{%
+ \pdfannot width 0pt height 0pt depth 0pt%
+ {%
+ /Subtype /\pc@lopt@markup\space%
+ /C [\pc@hyenc@color]\space%
+ \pc@lopt@cdate\space%
+ /CA \pc@lopt@opacity\space%
+ /T (\pc@pdfenc@author)\space%
+ /Subj (\pc@pdfenc@subject)\space%
+ /Contents (\pc@pdfenc@contents)\space%
+ /Open \pc@lopt@open\space%
+ /QuadPoints [\pc@annot@quadpoints]\space%
+ /F 4\space%
+ }%
+}%
+%
+\newcommand{\pc@annot@markup@dvipdfmx}%
+{%
+ \special{pdf: ann width 0pt height 0pt depth 0pt%
+ <<\space%
+ /Subtype /\pc@lopt@markup\space%
+ /C [\pc@hyenc@color]\space%
+ \pc@lopt@cdate\space%
+ /CA \pc@lopt@opacity\space%
+ /T (\pc@pdfenc@author)\space%
+ /Subj (\pc@pdfenc@subject)\space%
+ /Contents (\pc@pdfenc@contents)\space%
+ /Open \pc@lopt@open\space%
+ /QuadPoints [\pc@annot@quadpoints]\space%
+ /F 4\space%
+ >>\space%
+ }%
+}%
+%
+\newcommand{\pc@annot@markup@dvips}%
+{%
+ \pdfmark[\rule{0pt}{0pt}]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/\pc@lopt@markup,%
+ Raw={%
+ /C [\pc@hyenc@color]\space%
+ \pc@lopt@cdate\space%
+ /CA \pc@lopt@opacity\space%
+ /T (\pc@pdfenc@author)\space%
+ /Subj (\pc@pdfenc@subject)\space%
+ /Contents (\pc@pdfenc@contents)\space%
+ /Open \pc@lopt@open\space%
+ /QuadPoints [\pc@annot@quadpoints]\space%
+ /F 4\space%
+ }%
+ }%
+}%
+%
+\newcommand{\pc@annot@tooltip}%
+{%
+ /TU (\pc@pdfenc@contents)\space%
+ /T (tooltip \thezref@unique)\space%
+ /C [ ]\space%
+ /FT/Btn\space%
+ /F 768\space%
+ /Ff 65536\space%
+ /H/N\space%
+ /BS << /W 0 >>\space%
+}%
+%
+\newcommand{\pc@create@pdfannotopt}%
+{%
+ \gdef\pc@pdfannotopt{}%
+ \ifx\pc@lopt@width\@empty%
+ \else%
+ \expandafter\gdef\expandafter\pc@pdfannotopt\expandafter{\pc@pdfannotopt width \pc@lopt@width\space}%
+ \fi%
+ \ifx\pc@lopt@height\@empty%
+ \else%
+ \expandafter\gdef\expandafter\pc@pdfannotopt\expandafter{\pc@pdfannotopt height \pc@lopt@height\space}%
+ \fi%
+ \ifx\pc@lopt@depth\@empty%
+ \else%
+ \expandafter\gdef\expandafter\pc@pdfannotopt\expandafter{\pc@pdfannotopt depth \pc@lopt@depth\space}%
+ \fi%
+}%
+%
+% thanks to Heiko Oberdiek Msg-Id: <go1hi9$g1s$1@news.belwue.de>
+\newcommand{\pc@pttobp}[1]%
+{%
+ \strip@pt\dimexpr .996264\dimexpr #1\relax\relax%
+}%
+%
+\newcommand*{\pc@pdfdate@auto}%
+{%
+ \ifpc@gopt@xelatex
+ D:\@dtm@currentyear%
+ \DTMtwodigits{\@dtm@currentmonth}%
+ \DTMtwodigits{\@dtm@currentday}%
+ \DTMtwodigits{\@dtm@currenthour}%
+ \DTMtwodigits{\@dtm@currentminute}%
+ \DTMtwodigits{\@dtm@currentsecond}%
+ \pc@lopt@timezone%
+ \else%
+ D:\@dtm@currentyear%
+ \DTMtwodigits{\@dtm@currentmonth}%
+ \DTMtwodigits{\@dtm@currentday}%
+ \DTMtwodigits{\@dtm@currenthour}%
+ \DTMtwodigits{\@dtm@currentminute}%
+ \DTMtwodigits{\@dtm@currentsecond}%
+ \ifnum\@dtm@currenttimezonehour<0\else+\fi\DTMtwodigits{\@dtm@currenttimezonehour}%
+ \DTMtwodigits{\@dtm@currenttimezoneminute}%
+ \fi%
+}%
+%
+\newcommand{\pc@annot@calc@pos}%
+{%
+ \renewcommand{\pc@x@one}{\pc@pttobp{\pc@Sposx}}%
+ \renewcommand{\pc@x@two}{\pc@pttobp{\pc@Eposx}}%
+ \renewcommand{\pc@x@three}{\pc@pttobp{\pc@Sposx}}%
+ \renewcommand{\pc@x@four}{\pc@pttobp{\pc@Eposx}}%
+ \renewcommand{\pc@y@one}{\pc@pttobp{\dimexpr \pc@Sposy + \pc@box@height + 1pt\relax}}%
+ \renewcommand{\pc@y@two}{\pc@pttobp{\dimexpr \pc@Eposy + \pc@box@height + 1pt\relax}}%
+ \renewcommand{\pc@y@three}{\pc@pttobp{\dimexpr \pc@Sposy - \pc@box@depth - 1pt\relax}}%
+ \renewcommand{\pc@y@four}{\pc@pttobp{\dimexpr \pc@Eposy - \pc@box@depth - 1pt\relax}}%
+ \setlength{\pc@dima}{\dimexpr \pc@Sposy - \pc@box@depth - 1pt\relax}%
+ \setlength{\pc@dimb}{\dimexpr \pc@Eposy - \pc@box@depth - 1pt\relax}%
+}%
+%
+\newcommand{\pc@annot@calc@pos@math}%
+{%
+ \renewcommand{\pc@x@one}{\pc@pttobp{\pc@Sposx}}%
+ \renewcommand{\pc@x@two}{\pc@pttobp{\dimexpr \pc@Sposx + \pc@box@width\relax}}%
+ \renewcommand{\pc@x@three}{\pc@pttobp{\pc@Sposx}}%
+ \renewcommand{\pc@x@four}{\pc@pttobp{\dimexpr \pc@Sposx + \pc@box@width\relax}}%
+ \renewcommand{\pc@y@one}{\pc@pttobp{\dimexpr \pc@Sposy + \pc@box@height + 1pt\relax}}%
+ \renewcommand{\pc@y@two}{\pc@pttobp{\dimexpr \pc@Sposy + \pc@box@height + 1pt\relax}}%
+ \renewcommand{\pc@y@three}{\pc@pttobp{\dimexpr \pc@Sposy - \pc@box@depth - 1pt\relax}}%
+ \renewcommand{\pc@y@four}{\pc@pttobp{\dimexpr \pc@Sposy - \pc@box@depth - 1pt\relax}}%
+ \setlength{\pc@dima}{\dimexpr \pc@Sposy - \pc@box@depth - 1pt\relax}%
+ \setlength{\pc@dimb}{\dimexpr \pc@Eposy - \pc@box@depth - 1pt\relax}%
+}%
+%
+\newcommand{\pc@create@annot@sideline}%
+{%
+%create options for \pdfannot
+ \pc@create@pdfannotopt%
+ \ifpc@gopt@final\else%
+ % typeset line annotation (see: PDF Reference)
+ \ifpdf%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \expandafter\pdfannot \pc@pdfannotopt%
+ {%
+ /Subtype /Line\space%
+ \pc@annot@line%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \ifpc@annot@samepage%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {\xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}}%
+ \else%
+ \ifpc@annot@secondpage%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {\xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}}%
+ \else%
+ \fi%
+ \fi%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ \special{pdf: ann \pc@pdfannotopt%
+ <<%
+ /Subtype /Line\space%
+ \pc@annot@line%
+ >>%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \else%
+ \vbox to 0pt%
+ {%
+ \hsize=0pt%
+ \noindent%
+ \hbox to 0pt%
+ {%
+ \vsize=0pt%
+ %create dimensions of annotation
+ \pdfmark[\rule{0pt}{\pc@lopt@height}\rule{\pc@lopt@width}{0pt}]%
+ {%
+ pdfmark=/ANN,%
+ Subtype=/Line,%
+ Raw={\pc@annot@line}%
+ }%
+ \hss%
+ }%
+ \vss%
+ }%
+ \fi%
+ \fi%
+ \fi%
+}%
+%
+\newcommand{\pc@annot@complete}%
+{%
+ \renewcommand{\pc@x@one}{\pc@pttobp{\pc@Sposx}}%
+ \renewcommand{\pc@x@two}{\pc@pttobp{\pc@Eposx}}%
+ \renewcommand{\pc@x@three}{\pc@pttobp{\pc@Sposx}}%
+ \renewcommand{\pc@x@four}{\pc@pttobp{\pc@Eposx}}%
+ \renewcommand{\pc@y@one}{\pc@pttobp{\dimexpr \pc@Sposy + \pc@box@height + 1pt\relax}}%
+ \renewcommand{\pc@y@two}{\pc@pttobp{\dimexpr \pc@Eposy + \pc@box@height + 1pt\relax}}%
+ \renewcommand{\pc@y@three}{\pc@pttobp{\dimexpr \pc@Sposy - \pc@box@depth - 1pt\relax}}%
+ \renewcommand{\pc@y@four}{\pc@pttobp{\dimexpr \pc@Eposy - \pc@box@depth - 1pt\relax}}%
+ \xdef\pc@annot@quadpoints{\pc@x@one\space\pc@y@one\space\pc@x@two\space\pc@y@two\space\pc@x@three\space\pc@y@three\space\pc@x@four\space\pc@y@four}%
+ \ifpdf%
+ \pc@annot@markup@pdf%
+ \ifthenelse{\equal{\pc@lopt@id}{}}%
+ {}%
+ {\xdef\pc@collect@PDFOBJID{\pc@collect@PDFOBJID,\the\pdflastannot}}%
+ \else%
+ \ifpc@gopt@dvipdfmx%
+ \pc@annot@markup@dvipdfmx%
+ \else%
+ \pc@annot@markup@dvips%
+ \fi%
+ \fi%
+}%
+%
+\newcommand*{\pc@soul@markup}%
+{%
+ \stepcounter{pc@count@iii}%
+ \zsavepos{pdfcomment_soul_markup:\thepc@count@iii}%
+ \zref@refused{pdfcomment_soul_markup:\thepc@count@iii}%
+ \setlength{\pc@Sposx}{\zposx{pdfcomment_soul_markup:\thepc@count@iii}sp}%
+ \setlength{\pc@Sposy}{\zposy{pdfcomment_soul_markup:\thepc@count@iii}sp}%
+ \ifthenelse{\equal{\pc@lopt@markup}{StrikeOut}}%
+ {%
+ \addtolength{\pc@Sposy}{1pt}%
+ }%
+ {}%
+ \setlength{\pc@Eposx}{\pc@Sposx}%
+ \addtolength{\pc@Eposx}{\ulwidth}%
+ \setlength{\pc@Eposy}{\pc@Sposy}%
+ \pc@annot@complete%
+}%
+%
+\newcommand{\pc@calc@textblockpos}%
+{%
+ \if@twoside%
+ \stepcounter{pc@count@ii}%
+ \label{pdfcomment:ts:page:\thepc@count@ii}%
+ \refused{pdfcomment:ts:page:\thepc@count@ii}%
+ \ifodd\getpagerefnumber{pdfcomment:ts:page:\thepc@count@ii}%
+ \if@twocolumn%
+ \ifpc@firstcolumn%
+ \renewcommand{\pc@x@left@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin\relax}}%
+ \renewcommand{\pc@x@right@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \columnwidth\relax}}%
+ \else%
+ \renewcommand{\pc@x@left@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \textwidth - \columnwidth\relax}}%
+ \renewcommand{\pc@x@right@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \textwidth\relax}}%
+ \fi%
+ \else%
+ \renewcommand{\pc@x@left@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin\relax}}%
+ \renewcommand{\pc@x@right@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \textwidth\relax}}%
+ \fi%
+ \else%
+ \if@twocolumn%
+ \ifpc@firstcolumn%
+ \renewcommand{\pc@x@left@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \evensidemargin \relax}}%
+ \renewcommand{\pc@x@right@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \evensidemargin + \columnwidth\relax}}%
+ \else%
+ \renewcommand{\pc@x@left@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \evensidemargin + \textwidth - \columnwidth \relax}}%
+ \renewcommand{\pc@x@right@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \evensidemargin + \textwidth\relax}}%
+ \fi%
+ \else%
+ \renewcommand{\pc@x@left@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \evensidemargin \relax}}%
+ \renewcommand{\pc@x@right@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \evensidemargin + \textwidth\relax}}%
+ \fi%
+ \fi%
+ \else%
+ \if@twocolumn%
+ \ifpc@firstcolumn%
+ \renewcommand{\pc@x@left@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin \relax}}%
+ \renewcommand{\pc@x@right@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \columnwidth\relax}}%
+ \else%
+ \renewcommand{\pc@x@left@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \textwidth - \columnwidth\relax}}%
+ \renewcommand{\pc@x@right@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \textwidth\relax}}%
+ \fi%
+ \else%
+ \renewcommand{\pc@x@left@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin \relax}}%
+ \renewcommand{\pc@x@right@text}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \textwidth\relax}}%
+ \fi%
+ \fi%
+ \renewcommand{\pc@y@top@text}{\pc@pttobp{\dimexpr \paperheight - \dimexpr 1in\relax - \voffset - \topmargin - \headheight - \headsep\relax}}%
+ \renewcommand{\pc@y@bottom@text}{\pc@pttobp{\dimexpr \paperheight - \dimexpr 1in\relax - \voffset - \topmargin - \headheight - \headsep - \textheight\relax}}%
+}%
+%
+\newcommand{\pc@calc@sidelinepos}%
+{%
+ \if@twoside%
+ \stepcounter{pc@count@ii}%
+ \label{pdfcomment:ts:page:\thepc@count@ii}%
+ \refused{pdfcomment:ts:page:\thepc@count@ii}%
+ \ifodd\getpagerefnumber{pdfcomment:ts:page:\thepc@count@ii}%
+ \renewcommand{\pc@x@one}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin - \dimexpr \pc@lopt@linesep bp \relax\relax}}%
+ \renewcommand{\pc@x@two}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \textwidth + \dimexpr \pc@lopt@linesep bp \relax\relax}}%
+ \else%
+ \renewcommand{\pc@x@one}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \evensidemargin - \dimexpr \pc@lopt@linesep bp \relax\relax}}%
+ \renewcommand{\pc@x@two}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \evensidemargin + \textwidth + \dimexpr \pc@lopt@linesep bp \relax\relax}}%
+ \fi%
+ \else%
+ \renewcommand{\pc@x@one}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin - \dimexpr \pc@lopt@linesep bp \relax\relax}}%
+ \renewcommand{\pc@x@two}{\pc@pttobp{\dimexpr \dimexpr 1in\relax + \hoffset + \oddsidemargin + \textwidth + \dimexpr \pc@lopt@linesep bp \relax\relax}}%
+ \fi%
+ \renewcommand{\pc@y@one}{\pc@pttobp{\dimexpr \pc@Sposy + \pc@box@height + 1pt\relax}}%
+ \renewcommand{\pc@y@two}{\pc@pttobp{\dimexpr \pc@Eposy - \pc@box@depth - 1pt\relax}}%
+ \renewcommand{\pc@y@top@text}{\pc@pttobp{\dimexpr \paperheight - \dimexpr 1in\relax - \voffset - \topmargin - \headheight - \headsep\relax}}%
+ \renewcommand{\pc@y@bottom@text}{\pc@pttobp{\dimexpr \paperheight - \dimexpr 1in\relax - \voffset - \topmargin - \headheight - \headsep - \textheight\relax}}%
+}%
+%
+%
+\endinput% \ No newline at end of file