summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pdfcomment/example.tex
blob: a4561d3a468450912889919731154e7adcb4db6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
% example for pdflatex
\documentclass{scrartcl}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[svgnames,rgb]{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}
\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*}}

\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{2cm}
\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}

\vspace{5cm}
\pdfmarkupcomment[author={Donald Duck},color=yellow,opacity=1.0,markup=Highlight]{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. 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 Highlight markup annotations with page break}
\end{document}