我正在使用下面的乳胶代码将图像放置在页面的右上角。但我不知道如何在图像下方添加一些文本。我希望文本位于图像下方,并位于页面的右上角
\begin{tikzpicture}[remember picture, overlay]
\node [anchor=north east, inner sep=0pt] at (current page.north east)
{\includegraphics[height=3cm]{rsz_fh_logo}};
\end{tikzpicture}
请告诉我该怎么做
答案1
label
您可以在 TikZ 节点中使用。
输出
代码
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[remember picture, overlay]
\node [anchor=north east, inner sep=0pt, label={[text width=4cm]below:My text is here, my very very long long text is here.}] (img) at (current page.north east)
{\includegraphics[height=3cm]{example-image-a}};
\end{tikzpicture}
\end{document}