From e20d1cb5ddd4b72cb8494798d16af1bad638e1e8 2013-04-02 05:46:17 From: Jonathan Frederic Date: 2013-04-02 05:46:17 Subject: [PATCH] Added max height as page height for images. --- diff --git a/templates/tex/latex_sphinx_base.tplx b/templates/tex/latex_sphinx_base.tplx index ece01c4..080571a 100644 --- a/templates/tex/latex_sphinx_base.tplx +++ b/templates/tex/latex_sphinx_base.tplx @@ -80,7 +80,7 @@ Note: For best display, use latex syntax highlighting. =)) % Used to load and display graphics \usepackage{graphicx} \graphicspath{ {figs/} } - \usepackage[export]{adjustbox} % To resize + \usepackage[Export]{adjustbox} % To resize % For formatting output while also word wrapping. @@ -414,7 +414,7 @@ Note: For best display, use latex syntax highlighting. =)) % Purpose: This macro will insert an image in the latex document given a path. ((* macro insert_graphics(path) -*)) \begin{center} - \includegraphics[max width=1.0\textwidth]{(((path)))} + \includegraphics[max size={\textwidth}{\textheight}]{(((path)))} \par \end{center} ((*- endmacro *))