# Text inside picture using memoir

I need this picture with some text inside it...

Is there a way to put the text inside the picture? Make it transparent...write over it...

• I suggest tikz nodes. I've done this here, for example, the hyperref stuff therein can be omitted, of course: tex.stackexchange.com/questions/305747/…
– user31729
May 27, 2016 at 17:31
• I believe that it is a common request and probably simple to do it. Ok @ChristianHupfer May 27, 2016 at 17:33
• – Werner
May 27, 2016 at 17:37

I've just used the image provided by the O.P. and placed it in a node, then added another node that shows the text.

\documentclass[oneside]{memoir}

\usepackage{tikz}
\usepackage{graphicx}

\begin{document}

\begin{center}
\begin{tikzpicture}[scale=1]
\node[inner sep=1pt] (MYCENTER) at (0,0) {\includegraphics[scale=1]{adriano.png}};
\node[inner sep=1pt] (foo) at (0.0,1) { \Huge $E = mc^2$ };
\end{tikzpicture}
\end{center}

\end{document}


Update

\documentclass[oneside]{memoir}

\newcommand{\mycenteredtext}{%
\parbox{9cm}{\centering

Three Rings for the Elven-kings under the sky,

Seven for the Dwarf-lords in their halls of stone,

Nine for Mortal Men doomed to die,

One for the Dark Lord on his dark throne

In the Land of Mordor where the Shadows lie.

One Ring to rule them all, One Ring to find them,

One Ring to bring them all and in the darkness bind them

In the Land of Mordor where the Shadows lie.
}%
}

\usepackage{tikz}
\usepackage{graphicx}

\begin{document}

\begin{center}

\begin{tikzpicture}
\draw[step=0.5,very thin,gray] (-6,-6) grid (6,6);
\node[inner sep=1pt] (MYCENTER) at (0,0) {\includegraphics[scale=1]{adriano1.png}};
\node[blue] (foo) at (0.0,0.0) { \mycenteredtext  };
\end{tikzpicture}
\end{center}

\end{document}


• I believe my text is too big and the image is supposed to center at the middle of the text.... [i.imgur.com/QNUjyyQ.jpg] May 27, 2016 at 18:26
• @Adriano: yes, but you did neither provide the text nor the real image
– user31729
May 27, 2016 at 18:30
• Oh my! [i.imgur.com/KrhihBB.png] The text is this long:\textit{The quick brown fox jumps over the lazy dog, the quick brown fox jumps over the lazy dog, the quick brown fox jumps over the lazy dog this is it.} \textit{Adriano Fernandes} May 27, 2016 at 18:31
• @Adriano: Thanks for the image: I've updated
– user31729
May 27, 2016 at 18:46
• @Adriano: The grid was just for your assistance. I left it on purpose of course to help you
– user31729
May 27, 2016 at 19:11