图内文字采用回忆录

图内文字采用回忆录

我需要这张图片里面有一些文字......

在此处输入图片描述

有没有办法把文字放在图片里面?让它透明...在上面写字...

答案1

我只是使用了 OP 提供的图像并将其放在一个节点中,然后添加了另一个显示文本的节点。

\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}

在此处输入图片描述

更新

\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}

在此处输入图片描述

相关内容