Timeline for How to use tilde or space in includepdf filename?
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 27, 2019 at 18:22 | comment | added | user1 | @MartinScharrer for me also \includepdf{{"spaces are fun"}.pdf} did not work, but \includepdf{\detokenize{"spaces are fun".pdf}} did! | |
| Jan 21, 2019 at 10:28 | comment | added | Martin Scharrer | @user1338062: Well, having spaces in the file name makes it even more complicated. But \includepdf{{"spaces are fun"}.pdf} should be enough in this case. See the different answer to How to include graphics with spaces in their path? | |
| Jan 21, 2019 at 10:25 | comment | added | user1338062 | For me, only \includepdf{\detokenize{"spaces are fun".pdf}} worked, not braces. | |
| May 18, 2015 at 20:59 | comment | added | Martin Scharrer | @sdaau: The handling of double quotes depends on the distribution and the OS as far as I know. Try to use { } instead if you have spaces. There you might want to exclude the extension, like \includepdf[...]{{some file name}.pdf}. This works because the TeX code scanes the filename and splits basename and extension. The braces protect the spaces but are removed when the content is matched during the scan. | |
| May 16, 2015 at 13:22 | comment | added | sdaau | Also, note that wrapping the filename in " " is likely supposed to not include the extension, because I just got: LaTeX Error: Unknown graphics extension: .pdf" | |
| Mar 11, 2013 at 13:59 | comment | added | infowanna | @Martin Scharrer - thanks for the \Verbdef tip. At my site I've got people who use two or more (!!!) blanks for directory names. FYI: two or more blanks in the directory name get shrunk down to one blank when using \detokenize with \includepdf. | |
| Nov 15, 2011 at 15:36 | comment | added | digEmAll | Actually it's generated through Sweave so I can't avoid tildes and spaces, but thanks this works fine ! :) | |
| Nov 15, 2011 at 15:35 | vote | accept | digEmAll | ||
| Nov 15, 2011 at 14:29 | history | edited | Martin Scharrer | CC BY-SA 3.0 | added 203 characters in body |
| Nov 15, 2011 at 14:29 | history | edited | Torbjørn T. | CC BY-SA 3.0 | added 1 characters in body |
| Nov 15, 2011 at 14:24 | history | answered | Martin Scharrer | CC BY-SA 3.0 |