aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-04-13 08:53:08 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-04-13 08:53:08 -0700
commit12ba81ec9697e238c861ca6b7f8dc08f4e876e7b (patch)
tree26b32875fc983f36a8d96284c082b4894d83f513
parent09767991b2a8945f5739d47c44d171e37e65e0de (diff)
downloadpandoc-12ba81ec9697e238c861ca6b7f8dc08f4e876e7b.tar.gz
LaTeX: include grffile when including graphics.
This allows filenames with spaces etc. See jgm/pandoc#2074.
-rw-r--r--default.latex2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.latex b/default.latex
index a3f895000..54aceb8a4 100644
--- a/default.latex
+++ b/default.latex
@@ -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}