git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: include grffile together with graphicx.

This properly handles filenames containing spaces and dots. Closes #2074.

commitc5acaec3b5c0d0bac4ac23ae2cf72336140b7d96 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 13 Apr 2015, 09:00 (12 years ago) parent5ae48b7
3 files changed+4−3
README+2−1 data/templates+1−1 tests/writer.latex+1−1
README+2−1
@@ -127,7 +127,8 @@ Production of a PDF requires that a LaTeX engine be installed (see
127127`--latex-engine`, below), and assumes that the following LaTeX packages are
128128available: `amssymb`, `amsmath`, `ifxetex`, `ifluatex`, `listings` (if the
129129`--listings` option is used), `fancyvrb`, `longtable`, `booktabs`, `url`,
130−`graphicx`, `hyperref`, `ulem`, `babel` (if the `lang` variable is set),
130+`graphicx` and `grffile` (if the document contains images),
131+ `hyperref`, `ulem`, `babel` (if the `lang` variable is set),
131132`fontspec` (if `xelatex` or `lualatex` is used as the LaTeX engine), `xltxtra`
132133and `xunicode` (if `xelatex` is used).
133134
data/templates+1−1

Submodule changed.

tests/writer.latex+1−1
@@ -25,7 +25,7 @@
2525}{}
2626\usepackage{fancyvrb}
2727\VerbatimFootnotes
28−\usepackage{graphicx}
28+\usepackage{graphicx,grffile}
2929\makeatletter
3030\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
3131\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}