Bug 385332

Summary: Template used by the 'image insertion' wizard doesn't deal with filenames with spaces
Product: [Applications] kile Reporter: Kishore Gopalakrishnan <kishore96>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 2.9.91   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: tex and pdf files describing the issue

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