我在编译以下代码时遇到错误,你能帮助我吗?
\thispagestyle{empty}
\backgroundsetup{
scale=.8,
angle=0,
firstpage = true,
opacity=0.1, color=black,
contents={\begin{tikzpicture[remember picture,overlay]
\node at ([yshift=10pt,xshift=10pt] current page.center){\includegraphics[width=5cm]{aait_logo}}}};
end{tikzpicture}}
答案1
正如 @siracusa 提到的,括号有问题。您丢失或放错了{
或}
。此外,您缺少一个反斜杠,而该反斜杠end{tikzpicture}
应该是\end{tikzpicture}
。由于括号的原因,分号;
也处于错误的位置。
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{background}
\backgroundsetup{
scale=0.8,
angle=0,
firstpage=true,
opacity=0.1,
color=black,
contents={\begin{tikzpicture}[remember picture,overlay]
\node at ([yshift=10pt,xshift=10pt] current page.center){%
\includegraphics[width=5cm]{aait_logo}};
\end{tikzpicture}
}
}
\usepackage{lipsum}
\begin{document}
\thispagestyle{empty}
\lipsum[1-7]
\end{document}