Skip to content

Instantly share code, notes, and snippets.

Forked from anonymous/pxpgfmark.sty
Last active December 13, 2015 21:28
What would you like to do?
% pxpgfmark.sty
\ProvidesPackage{pxpgfmark}[2013/02/18 v0.1]
\PackageError{pxpgfmark}{Package 'pgfcore' must be loaded}\@ehc}
\ifx\pdfsavepos\@undefined \@tempswafalse \fi
\ifx\pdflastxpos\@undefined \@tempswafalse \fi
\ifx\pdflastypos\@undefined \@tempswafalse \fi
\ifx\pgf@sys@pdf@dvi@tracker\@undefined \@tempswafalse \fi
\PackageInfo{pxpgfmark}{Position marking enabled}
%% EOF
% cf.
\usepackage{pxpgfmark} % load this *after* tikz
\frametitle{Power Utility Portfolio Choice}
\item Portfolio Return
\tikz[remember picture, overlay, baseline=-.5ex]\node (n1) {};
& \underset{\boldsymbol w_t}{\text{maximise}}
& & \tikz[baseline,remember picture]{
\node[fill=blue!20,anchor=base] (t1)
{$\boldsymbol w_t \cdot \bar{\boldsymbol r}_t $};
} + \frac{1 - \gamma}{2}
\tikz[baseline,remember picture]{
\node[fill=red!20,anchor=base] (t2)
{$ \boldsymbol w_t \cdot (\Sigma_t\boldsymbol w_t) $};
} \\
& \text{subject to}
& & \boldsymbol w_t \cdot \boldsymbol \iota = 1\\
&&& \boldsymbol w_t \ge 0
\item Portfolio Variance
\tikz[remember picture,overlay, baseline=-.5ex]\node (n2) {};
\begin{tikzpicture}[remember picture,overlay]
\path[-stealth] (n1) edge [bend left] (t1);
\path[-stealth] (n2) edge [out=0, in=-90] (t2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment