diff --git a/profile/latex_sphinx.nbcv b/profile/latex_sphinx_base.nbcv similarity index 87% rename from profile/latex_sphinx.nbcv rename to profile/latex_sphinx_base.nbcv index c4270e6..01001c3 100644 --- a/profile/latex_sphinx.nbcv +++ b/profile/latex_sphinx_base.nbcv @@ -1,7 +1,7 @@ c = get_config() c.ConverterTemplate.extract_figures=True -c.ConverterTemplate.template_file='latex_sphinx' +c.ConverterTemplate.template_file='latex_sphinx_base' c.ConverterTemplate.tex_environement=True c.NbconvertApp.fileext='tex' c.NbconvertApp.write=True diff --git a/profile/latex_sphinx_howto.nbcv b/profile/latex_sphinx_howto.nbcv new file mode 100644 index 0000000..cc4772e --- /dev/null +++ b/profile/latex_sphinx_howto.nbcv @@ -0,0 +1,10 @@ +c = get_config() + +c.ConverterTemplate.extract_figures=True +c.ConverterTemplate.template_file='latex_sphinx_howto' +c.ConverterTemplate.tex_environement=True +c.NbconvertApp.fileext='tex' +c.NbconvertApp.write=True + +c.ExtractFigureTransformer.extra_ext_map={'svg':'pdf'} +c.ExtractFigureTransformer.enabled=True diff --git a/profile/latex_sphinx_manual.nbcv b/profile/latex_sphinx_manual.nbcv new file mode 100644 index 0000000..8300149 --- /dev/null +++ b/profile/latex_sphinx_manual.nbcv @@ -0,0 +1,10 @@ +c = get_config() + +c.ConverterTemplate.extract_figures=True +c.ConverterTemplate.template_file='latex_sphinx_manual' +c.ConverterTemplate.tex_environement=True +c.NbconvertApp.fileext='tex' +c.NbconvertApp.write=True + +c.ExtractFigureTransformer.extra_ext_map={'svg':'pdf'} +c.ExtractFigureTransformer.enabled=True diff --git a/templates/tex/latex_sphinx_howto.tplx b/templates/tex/latex_sphinx_howto.tplx new file mode 100644 index 0000000..dc03007 --- /dev/null +++ b/templates/tex/latex_sphinx_howto.tplx @@ -0,0 +1,13 @@ +((============================================================================ + NBConvert Sphinx-Latex HowTo Template + + Purpose: Allow export of PDF friendly Latex inspired by Sphinx HowTo + document style. Most of the is derived directly from Sphinx source. + + Inheritance: null>display_priority>latex_base->latex_sphinx_base + + ==========================================================================)) + +((*- extends 'latex_sphinx_base.tplx' -*)) + +((* block documentclass *))sphinxhowto((* endblock documentclass *)) diff --git a/templates/tex/latex_sphinx_manual.tplx b/templates/tex/latex_sphinx_manual.tplx new file mode 100644 index 0000000..74a8989 --- /dev/null +++ b/templates/tex/latex_sphinx_manual.tplx @@ -0,0 +1,13 @@ +((============================================================================ + NBConvert Sphinx-Latex Manual Template + + Purpose: Allow export of PDF friendly Latex inspired by Sphinx Manual + document style. Most of the is derived directly from Sphinx source. + + Inheritance: null>display_priority>latex_base->latex_sphinx_base + + ==========================================================================)) + +((*- extends 'latex_sphinx_base.tplx' -*)) + +((* block documentclass *))sphinxmanual((* endblock documentclass *))