From cd97ff6bb7c096d2d4d58572148ab201f8eabf6c 2013-09-23 17:34:22 From: Jonathan Frederic Date: 2013-09-23 17:34:22 Subject: [PATCH] Remove need space, small spacing changes, dont explicitly set mdframed width --- diff --git a/IPython/nbconvert/templates/latex/notebook_style.tplx b/IPython/nbconvert/templates/latex/notebook_style.tplx index 51a3d17..724fa00 100644 --- a/IPython/nbconvert/templates/latex/notebook_style.tplx +++ b/IPython/nbconvert/templates/latex/notebook_style.tplx @@ -33,7 +33,6 @@ \leavevmode\begin{mdframed}[% roundcorner=1.0pt, % backgroundcolor=nbframe-bg, % - userdefinedwidth=1\linewidth, % leftmargin=0.1\linewidth, % innerleftmargin=0pt, % innerrightmargin=0pt, % @@ -52,9 +51,6 @@ ]} {\end{mdframed}\vspace{-1\baselineskip}} - % Space needed to start a new input/output - \newlength{\promptspace} - \setlength{\promptspace}{4\baselineskip} ((* endblock definitions *)) %=============================================================================== @@ -71,7 +67,7 @@ % Add contents below. \begin{ColorVerbatim} - \smaller{\leavevmode\hspace*{-0.1\linewidth}((( super() )))} + In [0]: \vspace{-1\baselineskip}\smaller{((( super() )))} \end{ColorVerbatim} ((* endblock input *)) @@ -111,13 +107,12 @@ % rendered at the current location, the cursor position is left % unmodified. ((* macro draw_prompt(prompt, number, color) *)) - \needspace{\promptspace} - + { \smaller \tt \color{((( color )))} - \noindent + \noindent\relax ((( prompt ))) {[}((( number ))){]}: }