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

heblyx
  • 2,571

1 Answers1

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}