summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pdfcomment/example_math_markup.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdfcomment/example_math_markup.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pdfcomment/example_math_markup.tex10
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/pdfcomment/example_math_markup.tex b/Master/texmf-dist/doc/latex/pdfcomment/example_math_markup.tex
index 2c0315b1f51..2e07080e3e8 100644
--- a/Master/texmf-dist/doc/latex/pdfcomment/example_math_markup.tex
+++ b/Master/texmf-dist/doc/latex/pdfcomment/example_math_markup.tex
@@ -8,6 +8,9 @@
\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}
+\pdfcommentsetup{date=D:20101211153723+01'00'}
\setlength{\parindent}{0pt}
\addtokomafont{section}{\normalfont\normalcolor\bfseries}
\setkomafont{title}{\normalfont\normalcolor\bfseries}
@@ -15,12 +18,15 @@
\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},colorlinks=true,pdfborder={0 0 0},linkcolor=blue,citecolor=blue}%
+\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[style=mathpopup,mathstyle=\displaystyle]{f(x)=\prod_{i=1}^{n}\left(i-\frac{1}{2i}\right)}{comment}\]
+\[\pdfmarkupcomment[id=1,style=mathpopup,mathstyle=\displaystyle,open=true]{f(x)=\prod_{i=1}^{n}\left(i-\frac{1}{2i}\right)}{comment}\]
+\pdfreply[id=2,avatar=Joe,replyto=1,date=D:20101211161247+01'00']{This is a reply to a comment}
+\pdfreply[id=3,avatar=Bob,replyto=2,date=D:20101212095321+01'00']{Of course, you can reply to a reply}
+\pdfreply[id=4,avatar=Bob,replyto=1,date=D:20101212095512+01'00']{Just another reply}
\bigskip
Of course, you can only comment parts of a formula: