summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pdfcomment/example_latex_dvips_ps2pdf.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdfcomment/example_latex_dvips_ps2pdf.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pdfcomment/example_latex_dvips_ps2pdf.tex22
1 files changed, 19 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/pdfcomment/example_latex_dvips_ps2pdf.tex b/Master/texmf-dist/doc/latex/pdfcomment/example_latex_dvips_ps2pdf.tex
index 900a26f1645..1e482725efd 100644
--- a/Master/texmf-dist/doc/latex/pdfcomment/example_latex_dvips_ps2pdf.tex
+++ b/Master/texmf-dist/doc/latex/pdfcomment/example_latex_dvips_ps2pdf.tex
@@ -3,11 +3,23 @@
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[svgnames]{xcolor}
+\usepackage[absolute]{textpos}
\usepackage{tikz}
\usepackage[subject={Top1},author={\AA{}nsgar Lund}]{pdfcomment}
\begin{document}
-\definecolor{MyBlue}{rgb}{0.045,0.278,0.643}
-A \pdfcomment[subject={Top2},author={Daisy Duck},color={0.234 0.867 0.211}]{This is a comment.} little Test! \pdfcomment[color=MyBlue,icon=Note,open=true,hspace=100pt]{This is another comment.} test the hspace! \pdfcomment[color=Gold,icon=Star,author={Captain Jack}]{It's enough now!}
+\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[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,width=4.5cm,voffset=-4.8cm,hoffset=-3.2cm,opacity=0.5]{This is also a comment, but it's a FreeText annotation! Your, Captain Jack}
+
+\marginpar{\begin{textblock*}{1cm}(6cm,13.7cm)
+\pdffreetextcomment[avatar=CaptainJack,height=1.6cm,width=5cm,opacity=0.5,voffset=0pt,hoffset=0pt]{This one was placed with absolute coordinates (textpos.sty)}
+\end{textblock*}}
+
+A little Test!
\colorlet{KernFarbe}{red}
\colorlet{HuelleFarbe}{blue}
@@ -40,7 +52,11 @@ A \pdfcomment[subject={Top2},author={Daisy Duck},color={0.234 0.867 0.211}]{This
\draw[<-] (6.8,-.085) -- +(-1.6,.4) node[above] {Elektron};
\draw[<-] (7.5,-.35) -- +(-2,-.7) node[below] {Proton};
\end{tikzpicture}
-\pdfcomment[color=lime,subject={Top2},icon=Check,author={Dr. Albertus Newton}]{Wow, that's nice!}\pdfcommentsetup{color=NavyBlue,subject={Top1},icon=Circle,author={Prof. Dolittle}}\pdfmargincomment{Yeah nice, but stolen from the pgf-Users mailing list!}
+\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=true,subject={Top1},icon=Circle,author={Prof. Dolittle}}
+\pdfcommentsetup{avatar=Dolittle}\pdfmargincomment{Yeah nice, but stolen from the pgf-Users mailing list!}
\vspace{2cm}
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. \pdfmargincomment{Holy moly! Can anybody transfer that to real english!}