EDIT: adding \usepackage{grffile} did the trick!!!

I'm having some troubles with the frontpage of my document. I use \AddToShipoutPicture*{\BackgroundPic} to print 2 .eps files as background on which I print the text:

\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

\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{E:/Cloud storage/Dropbox/LaTeX/JavaScript/data/images/overview.eps}

\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{E:/Cloud storage/Dropbox/LaTeX/JavaScript/data/images/banner.png}

        Some text

The result is that the background picture is inserted AND it is referenced as text twice more:

enter image description here

in this picture you see the path to the overview.eps printed twice before the actual picture. If you look closely above the green bar (used to be more elaborate that is why it is an .eps) you see the same there, just outside the page, for the other picture.

My guess is that this is due to the multiple compile runs that are needed for updating links, index etc.... But I'm not sure and have no idea where to look anymore.

I tried to take as much out as possible to keep it readable. I hope someone can shed some light on this!?

Thanks in advance.

  • Please complete your example with \documentclass and the minimum set of \usepackages to make it compilable. – Herr K. Jan 27 '15 at 2:40
  • I tried to remove everything that isn't nessecary, hope I didn't miss anything. Anyway, I edited the original post with the minimal needed tex code. Only things missing are the actual image files: dropbox.com/s/w64kawbmm1lga1h/banner.png?dl=0 and dropbox.com/s/vgla4pbt9y6ntqp/overview.eps?dl=0 – Alban_T Jan 27 '15 at 19:25
  • 1
    You're including an EPS and a PNG. That means you're compiling with pdflatex and the EPS is converted on-the-fly. However, you have spaces in your paths, which may require the grffile package... – Werner Jan 27 '15 at 19:30
  • Thanks!!!! that did the trick. I could have looked for ages and not figured this out! – Alban_T Jan 28 '15 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.