编辑:添加 \usepackage{grffile} 就可以了!!!
我在文档首页方面遇到了一些问题。我曾经\AddToShipoutPicture*{\BackgroundPic}
打印 2 个.eps
文件作为背景,并在其上打印文本:
\documentclass[12pt]{report} % Default font size is 12pt, it can be changed here
\usepackage{geometry} % Required to change the page size to A4
\usepackage{graphicx} % Required for including pictures
\usepackage{epstopdf} % allow for the usage of eps files
\geometry{a4paper, twoside} % Set the page size to be A4 as opposed to the default US Letter
\graphicspath{{./Images/}} % Specifies the directory where pictures are stored
\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(10,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{E:/Cloud storage/Dropbox/LaTeX/JavaScript/data/images/overview.eps}
\vfill}}}
\newcommand\BackgroundPico{%
\put(0,350){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{E:/Cloud storage/Dropbox/LaTeX/JavaScript/data/images/banner.png}
\vfill}}}
\begin{document}
\AddToShipoutPicture*{\BackgroundPic}
\AddToShipoutPicture*{\BackgroundPico}
\cleardoublepage
\begin{titlepage}
Some text
\end{titlepage}
\end{document}
结果是插入了背景图片并且又两次将其作为文本引用:
在这张图片中,您可以在实际图片之前看到两次打印的路径overview.eps
。如果您仔细查看绿色条上方(以前更复杂,这就是为什么它是.eps
),您会看到另一张图片的相同内容,就在页面外面。
我猜测这是由于更新链接、索引等需要多次编译运行造成的......但我不确定并且不知道该去哪里查找。
我尝试删除尽可能多的内容以使其更易于阅读。希望有人能对此有所启发!?
提前致谢。