Building Locally#
It is often useful to be able to build locally to preview the
lectures as they are written. This page details how to build both
the html
and the pdf
files.
Building HTML#
Workflow#
Activate the quantecon environment using
conda
:conda activate quantecon
Warning
Your
software environment
may change how the site is built. It is important to use use the quantecon environment to ensure consistenthtml
output.Build
HTML
files locally using jb build commandjb build lectures
or if you are editing files in the
lectures
folder you can usejb build ./
You can preview the
HTML
by following the instructions displayed byjupyter book
and open theindex.html
file located in your_build/html
.chrome lectures/_build/html/index.html
or if you are editing in the
lectures
folderchrome _build/html/index.html
open lectures/_build/html/index.html
or if you are editing in the
lectures
folderopen _build/html/index.html
Building PDF#
Note
Your system will need the xelatex latex build system. This is not provided by jupyter-book and assumes that it is installed.
Workflow#
Activate the quantecon environment using
conda
:conda activate quantecon
Warning
Your
software environment
may change how the site is built. It is important to use use the quantecon environment to ensure consistent output.Build
PDF
book style pdf locally using thepdflatex
builderjb build lectures --builder=pdflatex
You can open the pdf that is located in your
_build/latex
folder.Open the folder
_build/latex
in a finder window and then double click on thepdf
of the book. Thispdf
is calledquantecon-python.pdf
for the Intermediate Python website.Open the folder
_build/latex
in a finder window and then double click on thepdf
of the book. Thispdf
is calledquantecon-python.pdf
for the Intermediate Python website.From the terminal you can use
open
:open lectures/_build/latex/quantecon-python.pdf
or if you are editing in the
lectures
folderopen _build/latex/quantecon-python.pdf