LaTeX: include grffile when including graphics.

This allows filenames with spaces etc. See jgm/pandoc#2074.
This commit is contained in:
John MacFarlane 2015-04-13 08:53:08 -07:00
parent 09767991b2
commit 12ba81ec96

View file

@ -84,7 +84,7 @@ $if(tables)$
\usepackage{longtable,booktabs}
$endif$
$if(graphics)$
\usepackage{graphicx}
\usepackage{graphicx,grffile}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}