summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex24
1 files changed, 17 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex b/Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex
index 9491e783b2d..afae2313e77 100644
--- a/Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex
+++ b/Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex
@@ -1,11 +1,18 @@
-\documentclass{scrartcl}
+% 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[svgnames]{xcolor}
+\usepackage[svgnames,rgb]{xcolor}
\usepackage{tikz}
\usepackage[absolute]{textpos}
-%\usepackage[unicode]{hyperref}
\usepackage[subject={Top1},author={Ånsgar Lund}]{pdfcomment}
\setmainfont[Mapping=tex-text]{Bergamo}
\begin{document}
@@ -22,7 +29,7 @@ A\pdfcomment[subject={Top2},author={Daisy Duck},color={0.234 0.867 0.211},voffse
\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!
+\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}
@@ -58,11 +65,14 @@ A little Test!
\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}}
+\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}
-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!}
+\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!}
-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}.
+\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}