From 14bec99ce27321f37b9311f0bdd7543ec5fe60d2 2013-09-23 17:57:19 From: Jonathan Frederic Date: 2013-09-23 17:57:19 Subject: [PATCH] Added notebook style vspace work-around --- diff --git a/IPython/nbconvert/templates/latex/latex_sphinx_article.tplx b/IPython/nbconvert/templates/latex/latex_sphinx_article.tplx index 2926777..01ef5e5 100644 --- a/IPython/nbconvert/templates/latex/latex_sphinx_article.tplx +++ b/IPython/nbconvert/templates/latex/latex_sphinx_article.tplx @@ -38,3 +38,7 @@ \makeindex ((* endblock commands *)) + +% Work around to fix vertical spacing issues with the notebook style. +((* block extra_input_spacing *))\vspace{-1\baselineskip}((* endblock extra_input_spacing *)) +((* block extra_output_spacing *))\vspace{-0.6\baselineskip}((* endblock extra_output_spacing *))