CoCalc Shared Filesscientific-python-lectures / MakefileOpen in CoCalc with one click!
Authors: John Jeng, Harald Schilly, ℏal Snyder, William A. Stein
1
#
2
# Build a PDF with all the notebooks
3
#
4
TEMPLATE=chapter
5
NOTEBOOKS=Lecture-0-Scientific-Computing-with-Python.ipynb \
6
Lecture-1-Introduction-to-Python-Programming.ipynb \
7
Lecture-2-Numpy.ipynb Lecture-3-Scipy.ipynb \
8
Lecture-4-Matplotlib.ipynb Lecture-5-Sympy.ipynb \
9
Lecture-6A-Fortran-and-C.ipynb Lecture-6B-HPC.ipynb \
10
Lecture-7-Revision-Control-Software.ipynb
11
12
LATEXFILES=$(NOTEBOOKS:.ipynb=.tex)
13
14
.ipynb.tex:
15
jupyter nbconvert --to latex --template $(TEMPLATE) $<
16
17
all: latexfiles buildpdf
18
19
latexfiles:
20
for notebook in $(NOTEBOOKS) ; do \
21
jupyter nbconvert --to latex --template $(TEMPLATE) $$notebook ; \
22
done
23
24
buildpdf: latexfiles
25
pdflatex Scientific-Computing-with-Python.tex
26
27