如果我只使用第一个 tikzpicture,那么这一切都很好,不知道出了什么问题。
以下是 M(N)WE:
\documentclass{article}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{minipage}{0.6\textwidth}
\lipsum[2-3]
\end{minipage}
\hspace{5mm}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=south west,inner sep=0pt] at ($(current page.south west)+(2cm,5cm)$) {
\includegraphics[width=4cm]{example-image-a}
};
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=south west,inner sep=0pt] at ($(current page.south west)+(2cm,10cm)$) {
\includegraphics[width=4cm]{example-image-b}
};
\end{tikzpicture}
\end{document}
答案1
您只是\end{tikzpicture}
在第二个之前忘记了\begin{tikzpicture}
。或者,您可以删除第二个\begin{tizpicture}
。而且,您无需graphicx
在加载时加载tikz
,tikz
它会为您完成此操作。
\documentclass{article}
\usepackage{lipsum}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{minipage}{0.6\textwidth}
\lipsum[2-3]
\end{minipage}
\hspace{5mm}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=south west,inner sep=0pt] at ($(current page.south west)+(2cm,5cm)$) {
\includegraphics[width=4cm]{example-image-a}
};
\node[anchor=south west,inner sep=0pt] at ($(current page.south west)+(2cm,10cm)$) {
\includegraphics[width=4cm]{example-image-b}
};
\end{tikzpicture}
\end{document}