Switched to IPython 3.0 format.
Here's hoping everything still works on nbviewer!
This commit is contained in:
@@ -1,27 +1,21 @@
|
||||
% Inherit from report
|
||||
((* extends 'report.tplx' *))
|
||||
|
||||
%===============================================================================
|
||||
% Latex Book
|
||||
%===============================================================================
|
||||
|
||||
|
||||
|
||||
|
||||
((* block docclass *))
|
||||
\documentclass{book}
|
||||
\setcounter{chapter}{-1}
|
||||
((* endblock docclass *))
|
||||
|
||||
((* block preamble *))
|
||||
((* endblock preamble *))
|
||||
|
||||
((* block title *))
|
||||
\title{Kalman and Bayesian Filters in Python}
|
||||
\author{Roger R Labbe Jr}
|
||||
\date{}
|
||||
\setcounter{secnumdepth}{3}
|
||||
\setcounter{tocdepth}{3}
|
||||
((* endblock title *))
|
||||
|
||||
((* block abstract *))\tableofcontents((* endblock abstract *))
|
||||
|
||||
% Define block headings
|
||||
% Note: latex will only number headings that aren't starred
|
||||
% (i.e. \subsection , but not \subsection* )
|
||||
|
||||
((* block h1 -*))\chapter((* endblock h1 -*))
|
||||
((* block h2 -*))\section((* endblock h2 -*))
|
||||
((* block h3 -*))\subsection((* endblock h3 -*))
|
||||
((* block h4 -*))\subsubsection((* endblock h4 -*))
|
||||
((* block h5 -*))\paragraph((* endblock h5 -*))
|
||||
((* block h6 -*))\subparagraph((* endblock h6 -*))
|
||||
|
||||
((* block markdowncell scoped *))
|
||||
((( cell.source | citation2latex | strip_files_prefix | markdown2latex(extra_args=["--chapters"]) )))
|
||||
((* endblock markdowncell *))
|
||||
27
pdf/book_old.tplx
Normal file
27
pdf/book_old.tplx
Normal file
@@ -0,0 +1,27 @@
|
||||
((* extends 'report.tplx' *))
|
||||
|
||||
%===============================================================================
|
||||
% Latex Book
|
||||
%===============================================================================
|
||||
|
||||
|
||||
((* block title *))
|
||||
\title{Kalman and Bayesian Filters in Python}
|
||||
\author{Roger R Labbe Jr}
|
||||
\date{}
|
||||
\setcounter{secnumdepth}{3}
|
||||
\setcounter{tocdepth}{3}
|
||||
((* endblock title *))
|
||||
|
||||
((* block abstract *))\tableofcontents((* endblock abstract *))
|
||||
|
||||
% Define block headings
|
||||
% Note: latex will only number headings that aren't starred
|
||||
% (i.e. \subsection , but not \subsection* )
|
||||
|
||||
((* block h1 -*))\chapter((* endblock h1 -*))
|
||||
((* block h2 -*))\section((* endblock h2 -*))
|
||||
((* block h3 -*))\subsection((* endblock h3 -*))
|
||||
((* block h4 -*))\subsubsection((* endblock h4 -*))
|
||||
((* block h5 -*))\paragraph((* endblock h5 -*))
|
||||
((* block h6 -*))\subparagraph((* endblock h6 -*))
|
||||
@@ -5,7 +5,7 @@ echo "merging book..."
|
||||
python merge_book.py > Kalman_and_Bayesian_Filters_in_Python.ipynb
|
||||
|
||||
echo "creating pdf..."
|
||||
ipython nbconvert --to latex --template book --post PDF Kalman_and_Bayesian_Filters_in_Python.ipynb
|
||||
ipython nbconvert --to PDF --template book Kalman_and_Bayesian_Filters_in_Python.ipynb
|
||||
|
||||
mv Kalman_and_Bayesian_Filters_in_Python.pdf ..
|
||||
echo "done."
|
||||
|
||||
@@ -5,7 +5,7 @@ echo "merging book..."
|
||||
ipython short_merge_book.py > short.ipynb
|
||||
|
||||
echo "creating pdf..."
|
||||
ipython nbconvert --to latex --template book --post PDF short.ipynb
|
||||
ipython nbconvert --to PDF --template book short.ipynb
|
||||
|
||||
echo "done."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user