Graphics, Figures & TablesLaTeX Error: File not found.

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

LaTeX Error: File not found.

Post by pazmush »

Ive been getting the error

Code: Select all

! LaTeX Error: File `Indirect-direct band gap' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.98 ...=1.00\textwidth]{Indirect-direct band gap}
                                                  
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.
when trying to produce this figure, but when i do exactly the sam but change the file name to a file which is smaller it seems to work with no errors. What the hell is going on?

heres my code

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage{graphicx}
\usepackage{amssymb,amsmath}
\usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}

\numberwithin{equation}{section}

\begin{document}
\begin{figure}
	\begin{minipage}{0.5\linewidth}
	\centering
		\includegraphics[width=1.00\textwidth]{Indirect-direct band gap}
	\caption{Differences between insulators, semiconductors and conductors using a simple energy band diagram.}
	\label{banddiagram}
	\end{minipage}
\end{figure}
\end{document}

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Are my files too large

Post by josephwright »

In a word, spaces. There are methods to sort-of deal with this, but in general you are much safer not using spaces in the names of any files you want to use with LaTeX.
--
Joseph Wright
Joseph Wright
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

Re: Are my files too large

Post by pazmush »

your a life saver, thats been baffeling me for hours
Post Reply