diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-04-13 09:00:55 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-04-13 09:00:55 -0700 |
commit | c5acaec3b5c0d0bac4ac23ae2cf72336140b7d96 (patch) | |
tree | 2554adaebd2db3764bc9f23feb3637fe9c125d75 | |
parent | 5ae48b7eaf55de42f55d885673a394af7de89641 (diff) | |
download | pandoc-c5acaec3b5c0d0bac4ac23ae2cf72336140b7d96.tar.gz |
LaTeX template: include grffile together with graphicx.
This properly handles filenames containing spaces and dots.
Closes #2074.
-rw-r--r-- | README | 3 | ||||
m--------- | data/templates | 13 | ||||
-rw-r--r-- | tests/writer.latex | 2 |
3 files changed, 9 insertions, 9 deletions
@@ -127,7 +127,8 @@ Production of a PDF requires that a LaTeX engine be installed (see `--latex-engine`, below), and assumes that the following LaTeX packages are available: `amssymb`, `amsmath`, `ifxetex`, `ifluatex`, `listings` (if the `--listings` option is used), `fancyvrb`, `longtable`, `booktabs`, `url`, -`graphicx`, `hyperref`, `ulem`, `babel` (if the `lang` variable is set), +`graphicx` and `grffile` (if the document contains images), + `hyperref`, `ulem`, `babel` (if the `lang` variable is set), `fontspec` (if `xelatex` or `lualatex` is used as the LaTeX engine), `xltxtra` and `xunicode` (if `xelatex` is used). diff --git a/data/templates b/data/templates -Subproject 09767991b2a8945f5739d47c44d171e37e65e0d +Subproject 12ba81ec9697e238c861ca6b7f8dc08f4e876e7 diff --git a/tests/writer.latex b/tests/writer.latex index f7123be98..94e8f779e 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -25,7 +25,7 @@ }{} \usepackage{fancyvrb} \VerbatimFootnotes -\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} |