Skip to content

Commit

Permalink
LaTeX template: include grffile together with graphicx.
Browse files Browse the repository at this point in the history
This properly handles filenames containing spaces and dots.
Closes #2074.
  • Loading branch information
jgm committed Apr 13, 2015
1 parent 5ae48b7 commit c5acaec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion data/templates
Submodule templates updated 1 files
+1 −1 default.latex
2 changes: 1 addition & 1 deletion tests/writer.latex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit c5acaec

Please sign in to comment.