2

I want to use \usepackage[spanish]{babel} because I am writing a text in Spanish language. Now, when I make that, the figures get lost!, they cannot be read any more. The changes that I expect are done such as having the names, Figure, Table and Bibliography in Spanish. However, the figures disappear. I guess, that have something to do with the way I am given the figure command. I am giving:

\begin{figure}[!htbp]
    \centering
    \includegraphics[width=1.1\textwidth]{"Graphics/Princp usos F"}
    \caption{Principales usos de los Humedales}
\end{figure}

If I use \usepackage[english]{babel}, then the language of the floats will be in English again. But in this case the Figures will appear. I do not know exactly where the problem comes from. Thanks for any comment.

  • 1
    Try adding \usepackage{grffile} – egreg Apr 28 '15 at 17:43
  • Wow! that was quickly! and it works perfectly, Thanks a lot @egreg – Vlad Apr 28 '15 at 17:50
2

Using files with spaces in their names is usually discouraged. Quotes around the name are a partial solution, but when babel is loaded along with language modules that define shorthands with " it won't work.

The solution is not using files with spaces in their names or, if you can't avoid it, loading also

\usepackage{grffile}

(after babel is best).

  • I see, thats new for me, and really important. I will try always to use file names without spaces. Thanks for the explanation @egreg – Vlad Apr 28 '15 at 18:06

Your Answer

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

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