Ubuntu

include graphics function allows to choose filenames containing spaces despite latex being unable to handle them

Asked by Holger Krause on 2008-09-24

Binary package hint: kile

$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04
$ apt-cache policy kile
kile:
  Installiert:1:2.0-1
  Mögliche Pakete:1:2.0-1
  Versions-Tabelle:
 *** 1:2.0-1 0
        500 http://de.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

Kile offers via the LaTeX menu the possibility to include a graphics file via a graphical dialogue. In this GUI it's possible to select a filename containing spaces. The filename is used as an argument for the \includegraphics-command. But this command cannot handle filenames with spaces. Therefore I request the file selection GUI to allow only filenames which are valid as arguments to the \includegraphics-command.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu kile Edit question
Assignee:
No assignee Edit question
Last query:
2008-09-24
Last reply:
2009-02-21
Stefan Kottwitz (stefan.k) said : #1

If the user includes

    \usepackage{grffile}

the spaces in file names will be allowed, why should Kile prevent that in general. Though I can confirm this behavior using Kile 2.0.0 on Ubuntu 8.04, that's why I will mark this bug report as confirmed, but I think it should be rejected, i.e. marked as invalid.

Many options available in kile depends on the import of specific packages; so i don't think this can be classified as a bug.

The solution is, as Stefan said to do a:
\usepackage{grffile}

Can you help with this problem?

Provide an answer of your own, or ask Holger Krause for more information if necessary.

To post a message you must log in.