0

I'm trying to put an image with spaces at the file name.
There is a way to fix it?

I try with this - enter link description here - but it's doesn't help :(

MWE:

\documentclass{scrartcl}


\usepackage{tcolorbox,tikz}
\tcbuselibrary{skins}
%\usepackage{etoolbox}
%\patchcmd{\Ginclude@eps}{"#1"}{#1}{}{}

\begin{document}
\tcbox[enhanced,left=0mm,right=0mm,top=0mm,bottom=0mm,boxrule=0.1pt,arc=0mm,drop large lifted shadow]{\includegraphics{this is a rabbit (a).jpg}}
\end{document}

And this is the result:
enter image description here

Here is the picture:
enter image description here

Thank you!

P.S. It should be compile with XeTeX

1 Answer 1

1

With the grffile package:

\documentclass{scrartcl}


\usepackage{tcolorbox,tikz}
\tcbuselibrary{skins}
\usepackage{grffile}
%\usepackage{etoolbox}
%\patchcmd{\Ginclude@eps}{"#1"}{#1}{}{}

\begin{document}
\tcbox[enhanced,left=0mm,right=0mm,top=0mm,bottom=0mm,boxrule=0.1pt,arc=0mm,drop large lifted shadow]{\includegraphics{this is a rabbit (a).jpg}}
\end{document}

enter image description here

with xelatex:

\documentclass{scrartcl}


\usepackage{tcolorbox,tikz}
\tcbuselibrary{skins}
%\usepackage{grffile}
%\usepackage{etoolbox}
%\patchcmd{\Ginclude@eps}{"#1"}{#1}{}{}

\begin{document}
\tcbox[enhanced,left=0mm,right=0mm,top=0mm,bottom=0mm,boxrule=0.1pt,arc=0mm,drop large lifted shadow]{\includegraphics[width=2cm]{"this is a rabbit (a)".jpg}}
\end{document}
17
  • Not working :-(
    – heblyx
    Apr 11, 2019 at 20:43
  • @heblyx What do you mean with "not working"?
    – user185617
    Apr 11, 2019 at 20:45
  • 1
    @heblyx I added a second solution for xelatex
    – user185617
    Apr 11, 2019 at 20:56
  • 1
    @heblyx Please show the compete log file. I'd like to compare it with mine, because I don't have any problems, so maybe different package versions could be the cause.
    – user185617
    Apr 11, 2019 at 21:14
  • 1
    @heblyx It should be in the same directory as your .tex file.
    – user185617
    Apr 11, 2019 at 21:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .