我正在尝试将带有空格的图像放入文件名中。
有办法解决这个问题吗?
我尝试这样做 -在此处输入链接描述- 但它没有帮助 :(
梅威瑟:
\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}
谢谢你!
PS 需要用 XeTeX 编译
答案1
附带grffile
包装:
\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}
使用 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}