diff --git a/IPython/nbconvert/templates/latex/complex_style.tplx b/IPython/nbconvert/templates/latex/complex_style.tplx new file mode 100644 index 0000000..99a6408 --- /dev/null +++ b/IPython/nbconvert/templates/latex/complex_style.tplx @@ -0,0 +1,5 @@ +((= Complex input/output style =)) + +((*- extends 'latex_base.tplx' -*)) + +((*- block input_group scoped -*))+++prompt+++((*- endblock input_group -*)) diff --git a/IPython/nbconvert/templates/latex/latex_a.tplx b/IPython/nbconvert/templates/latex/latex_a.tplx new file mode 100644 index 0000000..017c2b2 --- /dev/null +++ b/IPython/nbconvert/templates/latex/latex_a.tplx @@ -0,0 +1,5 @@ +((*- if not cell_style is defined -*)) + ((*- set cell_style = 'complex_style.tplx' -*)) +((*- endif -*)) + +((*- extends 'latex_article.tplx' -*)) diff --git a/IPython/nbconvert/templates/latex/latex_article.tplx b/IPython/nbconvert/templates/latex/latex_article.tplx new file mode 100644 index 0000000..702e4fc --- /dev/null +++ b/IPython/nbconvert/templates/latex/latex_article.tplx @@ -0,0 +1,7 @@ +((= Complex input/output style =)) + +((*- if not cell_style is defined -*)) + ((*- set cell_style = 'simple_style.tplx' -*)) +((*- endif -*)) + +((*- extends cell_style -*)) diff --git a/IPython/nbconvert/templates/latex/latex_base.tplx b/IPython/nbconvert/templates/latex/latex_base.tplx index c3cd332..c095317 100644 --- a/IPython/nbconvert/templates/latex/latex_base.tplx +++ b/IPython/nbconvert/templates/latex/latex_base.tplx @@ -78,14 +78,6 @@ This template does not define a docclass, the inheriting class must define this. % Support blocks %=============================================================================== -% Default output style -code cell style %Use filters ot do cell latex formating -((* block header scoped *)) -((( super() ))) -((* block output_style scoped *)) - ((* include 'simple_style.tplx' with context *)) -((* endblock output_style *)) -((* endblock header *)) - % Displaying simple data text ((* block data_text *)) \begin{verbatim} diff --git a/IPython/nbconvert/templates/latex/simple_style.tplx b/IPython/nbconvert/templates/latex/simple_style.tplx index 3884ed8..8615153 100644 --- a/IPython/nbconvert/templates/latex/simple_style.tplx +++ b/IPython/nbconvert/templates/latex/simple_style.tplx @@ -1,4 +1,5 @@ ((= Simple input/output style =)) -!!!outputstyle!!! -((*- block in_prompt scoped -*))!!!prompt!!!((*- endblock in_prompt -*)) +((*- extends 'latex_base.tplx' -*)) + +((*- block input_group scoped -*))!!!prompt!!!((*- endblock input_group -*))