diff --git a/IPython/nbconvert/templates/latex/latex_base.tplx b/IPython/nbconvert/templates/latex/latex_base.tplx index bf21e81..ed3356a 100644 --- a/IPython/nbconvert/templates/latex/latex_base.tplx +++ b/IPython/nbconvert/templates/latex/latex_base.tplx @@ -64,8 +64,10 @@ This template does not define a docclass, the inheriting class must define this. {\begin{alltt}} {\end{alltt}} - % Document title - \title{((( resources.metadata.name | escape_latex )))} + % Document parameters + ((* block title *))\title{((( resources.metadata.name | escape_latex )))}((* endblock title *)) + ((* block date *))((* endblock date *)) + ((* block author *))((* endblock author *)) ((* endblock definitions *)) ((* block commands *)) diff --git a/IPython/nbconvert/templates/latex/latex_sphinx_article.tplx b/IPython/nbconvert/templates/latex/latex_sphinx_article.tplx index fc0f982..72e88cd 100644 --- a/IPython/nbconvert/templates/latex/latex_sphinx_article.tplx +++ b/IPython/nbconvert/templates/latex/latex_sphinx_article.tplx @@ -6,7 +6,6 @@ % Inherit from the specified cell style. ((* extends 'latex_article.tplx' *)) - %=============================================================================== % Latex Sphinx Article %=============================================================================== @@ -32,16 +31,8 @@ ((* block commands *)) ((( super() ))) - \graphicspath{ {figs/} } - - % Document level variables - \date{((( resources.sphinx.date | escape_latex )))} - \release{((( resources.sphinx.version | escape_latex )))} - \author{((( resources.sphinx.author | escape_latex )))} - \renewcommand{\releasename}{((( resources.sphinx.release | escape_latex )))} - - % TODO: Add option for the user to specify a logo for his/her export. - \newcommand{\sphinxlogo}{} + % Override to specify your own logo + ((* block logo *))\newcommand{\sphinxlogo}{}((* endblock logo *)) % Make the index page of the document. \makeindex