2

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

enter image description here

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

3
3

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}

enter image description here

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}

enter image description here

6
  • 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]
    – Adriano
    May 27 '16 at 18:26
  • @Adriano: yes, but you did neither provide the text nor the real image
    – user31729
    May 27 '16 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}
    – Adriano
    May 27 '16 at 18:31
  • @Adriano: Thanks for the image: I've updated
    – user31729
    May 27 '16 at 18:46
  • 1
    @Adriano: The grid was just for your assistance. I left it on purpose of course to help you
    – user31729
    May 27 '16 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.