Graphics, Figures & TablesPart of File Name above Figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jameschampion01
Posts: 9
Joined: Mon Jun 17, 2013 4:39 pm

Part of File Name above Figures

Post by jameschampion01 »

Hello everyone,

I have been trying to write a report in LaTeX and have attempted to input figures and then output as a PDF. When I use the following code and then compile as a pdf, the image appears as expected but with a part of the file name directly above the diagram (see attached).

Code: Select all

\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{figures/Fig 1 - MLF.png}
\caption{Three-dimensional schematic (generalised) representation of the TPO microstructure and surface morphology}
\label{fig:2}
\end{figure}
This label is most inconvenient and I would like it to be removed. Does anyone have any ideas why it is giving this label and how I would go about removing it?

My preamble looks like this.

Code: Select all

\documentclass[a4paper,12pt]{report}
\usepackage{graphicx}
\usepackage[left=3.0cm, right=2.0cm, top=3.0cm, bottom=3.0cm]{geometry}
\usepackage{amsmath}
\usepackage{url}
\usepackage{hyperref}
Any help would be greatly appreciated.

Thanks,

James
Attachments
error-figure.png
error-figure.png (61.36 KiB) Viewed 5299 times
Last edited by localghost on Thu Jun 27, 2013 5:30 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

jameschampion01
Posts: 9
Joined: Mon Jun 17, 2013 4:39 pm

Re: Part of File Name above Figures

Post by jameschampion01 »

This has now been solved by deleting spaces from the names of my figure files. Please forgive my ignorance.

James
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Part of File Name above Figures

Post by localghost »

If you want to keep the blank spaces in the file names, take a look at the grffile package (from the oberdiek bundle) for extended file processing.


Thorsten
Post Reply