# Thread: Problem in removing a line appear at the top of an image attached

1. ## Problem in removing a line appear at the top of an image attached

Hi guys, I'm new to latex here. Was trying to insert a pdf (image) into the latex file, but it turned out with an extra line added on top of the image I inserted. This is the code I used...

\begin{figure}
\centering
\includegraphics[width=1.00\textwidth]{1 - Comparing LMSs.pdf}
\caption{Comparing LMSs - ATutor}
\label{fig:1 - Comparing LMSs - ATutor}
\end{figure}

The end result with an extra line (at the top of the page) showing part of the image name... can anyone guide me on this? I just wanna remove that particular line on top of the page, thanks!

2. ## file name shown with graphics

Hi,

usually this is caused by spaces in the file name. Just don't use spaces/blanks in file names or load the grffile package:
Code:
\usepackage{grffile}
After loading this package \includegraphics would allow spaces.

Stefan

--
TeXblog

3. I've already figured that out, but thanks anyway