Skip to content

Commit

Permalink
Moar latex
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespjh committed Jun 6, 2016
1 parent bb33ed5 commit a8ffac9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ addons:
packages:
- pandoc
- texlive-latex-recommended
- texlive-latex-extra
- texlive-xetex
- texlive-luatex

Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ default: _site
java -Djava.awt.headless=true -jar plantuml.jar -p < $< > $@

%.html: %.nbconvert.ipynb Makefile jekyll.tpl
ipython nbconvert --to html --template jekyll.tpl --stdout $< > $@
jupyter nbconvert --to html --template jekyll.tpl --stdout $< > $@

%.v2.ipynb: %.nbconvert.ipynb
ipython nbconvert --to notebook --nbformat 2 --stdout $< > $@
jupyter nbconvert --to notebook --nbformat 2 --stdout $< > $@

%.nbconvert.ipynb: %.ipynb
ipython nbconvert --to notebook --allow-errors --ExecutePreprocessor.timeout=120 --execute --stdout $< > $@
jupyter nbconvert --to notebook --allow-errors --ExecutePreprocessor.timeout=120 --execute --stdout $< > $@

notes.pdf: combined.ipynb Makefile
ipython nbconvert --to pdf --template latex.tplx $<
jupyter nbconvert --to pdf --template latex.tplx $<
mv combined.pdf notes.pdf

combined.ipynb: $(EXECUTED)
python nbmerge.py $^ $@

notes.tex: combined.ipynb Makefile
ipython nbconvert --to latex --template latex.tplx $<
jupyter nbconvert --to latex --template latex.tplx $<
mv combined.tex notes.tex

notebooks.zip: ${NBV2}
Expand Down

0 comments on commit a8ffac9

Please sign in to comment.