Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
How to include graphics with spaces in their path?

When I add a piece of code of figure insertion to the context I'm faced with a problem: a number of irrelevant words appear.

Code:

\begin{figure}
    \centering
        \includegraphics[width=0.9\textwidth]{C:/Thesis/Latex/thesis_1(1)/Pictures/study area.jpg}
        \rule{35em}{0.3pt}
    \caption{The Grand St. Bernard wireless sensor network deployment (a) the coordinates of nodes according to the Swiss coordinate system (b) the distribution of the nodes in the study site \citep{r33}}
    \label{fig:study area}
\end{figure}

Problem:

Error which is presented by sign

share|improve this question

marked as duplicate by egreg, Kurt, Martin Schröder, Werner, Andrew Swann Dec 6 '12 at 19:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
it looks as if this has something to do with the space in the file name (but others know more about this). what i really wanted to do is suggest that you put a "slash space" (\ ) after "St." so that the space there isn't so large. –  barbara beeton Dec 6 '12 at 18:42
    
rename your file so that it does not include white spaces, e.g. study_area.jpg –  Jörg Dec 6 '12 at 18:43
add comment

1 Answer 1

up vote 1 down vote accepted

Earlier you were not allowed to have spaces in a file name but now you can (see e.g. this page for more details). Obviously you still get some unwanted results. A good solution is to avoid spaces in filenames altogether and use hyphens or underscore characters instead.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.