From c74425a8159589acf496cf99fee2fe2eaa0bccba 2013-09-23 17:57:21 From: Jonathan Frederic Date: 2013-09-23 17:57:21 Subject: [PATCH] s/pygment/pygments --- diff --git a/IPython/nbconvert/preprocessors/latex.py b/IPython/nbconvert/preprocessors/latex.py index c457a38..0cc4074 100755 --- a/IPython/nbconvert/preprocessors/latex.py +++ b/IPython/nbconvert/preprocessors/latex.py @@ -46,7 +46,7 @@ class LatexPreprocessor(Preprocessor): """ # Generate Pygments definitions for Latex resources["latex"] = {} - resources["latex"]["pygment_definitions"] = LatexFormatter().get_style_defs() + resources["latex"]["pygments_definitions"] = LatexFormatter().get_style_defs() return super(LatexPreprocessor, self).preprocess(nb, resources) diff --git a/IPython/nbconvert/templates/latex/style_ipython.tplx b/IPython/nbconvert/templates/latex/style_ipython.tplx index dbdce86..77bc0b9 100644 --- a/IPython/nbconvert/templates/latex/style_ipython.tplx +++ b/IPython/nbconvert/templates/latex/style_ipython.tplx @@ -7,7 +7,7 @@ ((( super() ))) % Pygments definitions - ((( resources.latex.pygment_definitions ))) + ((( resources.latex.pygments_definitions ))) % Exact colors from NB \definecolor{incolor}{rgb}{0.0, 0.0, 0.5} diff --git a/IPython/nbconvert/templates/latex/style_notebook.tplx b/IPython/nbconvert/templates/latex/style_notebook.tplx index fa19480..504cd52 100644 --- a/IPython/nbconvert/templates/latex/style_notebook.tplx +++ b/IPython/nbconvert/templates/latex/style_notebook.tplx @@ -17,7 +17,7 @@ ((( super() ))) % Pygments definitions - ((( resources.latex.pygment_definitions ))) + ((( resources.latex.pygments_definitions ))) % NB prompt colors \definecolor{nbframe-border}{rgb}{0.867,0.867,0.867} diff --git a/IPython/nbconvert/templates/latex/style_python.tplx b/IPython/nbconvert/templates/latex/style_python.tplx index 397fb96..f6f6e87 100644 --- a/IPython/nbconvert/templates/latex/style_python.tplx +++ b/IPython/nbconvert/templates/latex/style_python.tplx @@ -7,7 +7,7 @@ ((( super() ))) % Pygments definitions - ((( resources.latex.pygment_definitions ))) + ((( resources.latex.pygments_definitions ))) ((* endblock definitions *)) %=============================================================================== diff --git a/IPython/nbconvert/templates/latex/style_simple.tplx b/IPython/nbconvert/templates/latex/style_simple.tplx index 8387272..371960e 100644 --- a/IPython/nbconvert/templates/latex/style_simple.tplx +++ b/IPython/nbconvert/templates/latex/style_simple.tplx @@ -14,7 +14,7 @@ ((( super() ))) % Pygments definitions - ((( resources.latex.pygment_definitions ))) + ((( resources.latex.pygments_definitions ))) \newlength{\promptspace} \setlength{\promptspace}{4\baselineskip} % Space needed to start a new