Skip to content

Commit 18d7c17

Browse files
committed
Update the LaTeX and PDF template to new style
Have not tested it works.
1 parent 383f477 commit 18d7c17

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ default: _site
4545
jupyter nbconvert --to notebook --allow-errors --ExecutePreprocessor.timeout=120 --execute --stdout $< > $@
4646

4747
notes.pdf: combined.ipynb $(PNGS) Makefile
48-
jupyter nbconvert --to pdf --template latex.tplx $<
48+
jupyter nbconvert --to pdf --template latex_template $<
4949
mv combined.pdf notes.pdf
5050

5151
combined.ipynb: $(EXECUTED)
5252
python nbmerge.py $^ $@
5353
sed -i -e 's/\.svg/\.png/g' $@
5454

5555
notes.tex: combined.ipynb $(PNGS) Makefile
56-
jupyter nbconvert --to latex --template latex.tplx $<
56+
jupyter nbconvert --to latex --template latex_template $<
5757
mv combined.tex notes.tex
5858

5959
notebooks.zip: ${NBV2}

latex_template/conf.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"base_template": "latex",
3+
"mimetypes": {
4+
"text/latex": true,
5+
"text/tex": true,
6+
"application/pdf": true
7+
}
8+
}

latex.tplx renamed to latex_template/index.tex.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
% Default to the notebook output style
77
((* if not cell_style is defined *))
8-
((* set cell_style = 'style_ipython.tplx' *))
8+
((* set cell_style = 'style_ipython.tex.j2' *))
99
((* endif *))
1010

1111
% Inherit from the specified cell style.

0 commit comments

Comments
 (0)