Bug 385332 - Template used by the 'image insertion' wizard doesn't deal with filenames with spaces
Summary: Template used by the 'image insertion' wizard doesn't deal with filenames wit...
Status: RESOLVED NOT A BUG
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.9.91
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-03 15:22 UTC by Kishore Gopalakrishnan
Modified: 2022-11-13 06:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
tex and pdf files describing the issue (65.58 KB, application/gzip)
2017-10-03 15:22 UTC, Kishore Gopalakrishnan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2017-10-03 15:22:53 UTC
Created attachment 108146 [details]
tex and pdf files describing the issue

The code template used by the 'image insertion feature' (the one that appears when you press Alt+I,G, or go to 'LaTeX > image insertion') produces buggy output with pdfLaTeX if the image filename contains spaces, i.e., a part of the image's filename appears in the output. I have attached a tar.gz archive containing examples of the problem LaTeX code and alternative templates which could be used to fix this issue, and an output pdf which explains the issue.
Comment 1 Kishore Gopalakrishnan 2017-11-22 14:22:41 UTC
A similar modification is also needed to handle inclusion of images with multiple dots in the filename (https://tex.stackexchange.com/a/10575/100856). LaTeX apparently assumes the extension is the entire string after the first dot, and thus cannot find the file.
Comment 2 Justin Zobel 2022-11-10 22:32:32 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Kishore Gopalakrishnan 2022-11-13 06:28:06 UTC
Seems to be fixed now (probably in the `graphicx` package). Anyway, I suppose that this was never a Kile bug, but rather a request to work around a bug in another package.

texlive-core package version: 2022.63035-1
Kile version: kile 2.9.94
Operating System: Arch Linux
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Kernel Version: 6.0.2-arch1-1.1 (64-bit)
Graphics Platform: X11