diff options
author | Karl Berry <karl@freefriends.org> | 2009-02-19 23:44:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-02-19 23:44:10 +0000 |
commit | e16b8e85c829a4c86c8b24241b3d05ca3499535a (patch) | |
tree | 8c17c3b0ff1e12cf63642901abef0f9f544ee571 /Master/texmf-dist/doc/latex/pdfcomment/example.tex | |
parent | 74a8ddef6282850ec78324d5a188187c776f01ca (diff) |
pdfcomment update (19feb09)
git-svn-id: svn://tug.org/texlive/trunk@12191 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdfcomment/example.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pdfcomment/example.tex | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/pdfcomment/example.tex b/Master/texmf-dist/doc/latex/pdfcomment/example.tex index 4135ac8915a..27a1b77cdff 100644 --- a/Master/texmf-dist/doc/latex/pdfcomment/example.tex +++ b/Master/texmf-dist/doc/latex/pdfcomment/example.tex @@ -4,11 +4,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} @@ -41,7 +53,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!} |