summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pdfcomment/example.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdfcomment/example.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pdfcomment/example.tex20
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pdfcomment/example.tex b/Master/texmf-dist/doc/latex/pdfcomment/example.tex
index e09ed746063..c0fdbb09b06 100644
--- a/Master/texmf-dist/doc/latex/pdfcomment/example.tex
+++ b/Master/texmf-dist/doc/latex/pdfcomment/example.tex
@@ -9,6 +9,7 @@
\usepackage[svgnames,rgb]{xcolor}
\usepackage[absolute]{textpos}
\usepackage{tikz}
+\usepackage{amssymb,amsmath,array,bm}
\usepackage[subject={Top1},author={\AA{}nsgar Lund}]{pdfcomment}
\begin{document}
\definecolor{myblue}{rgb}{0.045,0.278,0.643}
@@ -97,4 +98,23 @@ eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.}{T
\begin{pdfsidelinecomment}[avatar=CaptainJack,subject={sideline},opacity=1,color=red,icolor=yellow,caption=inline,linebegin={/Butt},lineend={/Square},linewidth=3bp,linesep=1cm]{ ! Delete ! }
\lipsum[2-6]
\end{pdfsidelinecomment}
+
+\vspace{2cm}
+\definestyle{mathpopup}{author={},subject={},color=NavajoWhite,markup=Highlight}
+\[
+\begin{array}{c>{\displaystyle}c}
+ \text{Bernoulli Trials} &
+ \pdfmarkupcomment[style=mathpopup]{P(E)}{Probability of event E: Get exactly k heads in n coin flips.}%
+ =
+ \pdfmarkupcomment[style=mathpopup]{\dbinom{n}{k}}{Number of ways to get exactly k heads in n coin flips}%
+ {\pdfmarkupcomment[style=mathpopup]{p}{Probability of getting heads in one flip}%
+}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{k}{Number of heads}
+ }%
+ \pdfmarkupcomment[style=mathpopup]{(1-p)}{Probability of getting tails in one flip}^{%
+ \pdfmarkupcomment[style=mathpopup,mathstyle=\scriptstyle]{n-k}{Number of tails}%
+ }%
+\end{array}
+\]
+
\end{document} \ No newline at end of file