diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex b/Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex index 02b3bc3703f..07bd5ae9f6d 100644 --- a/Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex +++ b/Master/texmf-dist/doc/latex/pdfcomment/example_xelatex.tex @@ -13,6 +13,7 @@ \usepackage{lipsum} \usepackage[svgnames,rgb]{xcolor} \usepackage{tikz} +\usepackage{amssymb,amsmath,array,bm} \usepackage[absolute]{textpos} \usepackage[subject={Top1},author={Ã…nsgar Lund}]{pdfcomment} \setmainfont[Mapping=tex-text]{Bergamo} @@ -104,4 +105,23 @@ eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.}{T \begin{pdfsidelinecomment}[avatar=CaptainJack,subject={Top2},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} |