diff --git a/Makefile b/Makefile index ebb55aa5e..c109d4a11 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ default: _site jupyter nbconvert --to notebook --allow-errors --ExecutePreprocessor.timeout=120 --execute --stdout $< > $@ notes.pdf: combined.ipynb $(PNGS) Makefile - jupyter nbconvert --to pdf --template latex.tplx $< + jupyter nbconvert --to pdf --template latex_template $< mv combined.pdf notes.pdf combined.ipynb: $(EXECUTED) @@ -53,7 +53,7 @@ combined.ipynb: $(EXECUTED) sed -i -e 's/\.svg/\.png/g' $@ notes.tex: combined.ipynb $(PNGS) Makefile - jupyter nbconvert --to latex --template latex.tplx $< + jupyter nbconvert --to latex --template latex_template $< mv combined.tex notes.tex notebooks.zip: ${NBV2} diff --git a/latex_template/conf.json b/latex_template/conf.json new file mode 100644 index 000000000..a26896770 --- /dev/null +++ b/latex_template/conf.json @@ -0,0 +1,8 @@ +{ + "base_template": "latex", + "mimetypes": { + "text/latex": true, + "text/tex": true, + "application/pdf": true + } +} diff --git a/latex.tplx b/latex_template/index.tex.j2 similarity index 97% rename from latex.tplx rename to latex_template/index.tex.j2 index 1cee9fbd4..71565aaec 100644 --- a/latex.tplx +++ b/latex_template/index.tex.j2 @@ -5,7 +5,7 @@ % Default to the notebook output style ((* if not cell_style is defined *)) - ((* set cell_style = 'style_ipython.tplx' *)) + ((* set cell_style = 'style_ipython.tex.j2' *)) ((* endif *)) % Inherit from the specified cell style.