Dall
Dall

Reputation: 31

LaTeX - Simple Text over Image

I'm replicating an word documment and need to place some text over an image in the header, but i can't find a simple method to do that.

It's just some text centered over a retangular image, but the best anwser I've found, so far, for doing that is reading an 880 page manual for PFG package. Is there anyway to do that with some simple package, like minipage?

Upvotes: 2

Views: 4190

Answers (1)

One possible approach using tikz:

\documentclass{article}

\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\node at (0,0) {\includegraphics[width=6cm]{example-image-duck}};
\node at (current bounding box.center) {Quack};
\end{tikzpicture}

\end{document}

enter image description here

Upvotes: 4

Related Questions