I'd like to add a couple of equations over a picture. I'm using the overpic package as explained in overpic_link. However, I'm trying to get the equation in color as shown in color_link
\documentclass{article}
\usepackage[percent]{overpic}
\usepackage{xcolor}
\begin{document}
\begin{overpic}[width=0.5\textwidth,grid,tics=10]{pictures/baum}
\put (20,85) \textcolor{blue}{\huge$\displaystyle\gamma$}
\end{overpic}
\end{document}
but I'm getting the error below: ! Package xcolor Error: Undefined color `\hss '. could anyone please provide a feedback on why the error, I'm just starting using Latex, thanks.
\put (20,85) {\color{blue} \huge $\gamma$}
? (I don't think the\displaystyle
is doing anything here...)