Implemeenting PDF in 6x9 format.
I did the work on chapter 1 just to start somewhere. Trying to make the book fit nicely on a 6x9 book format.
This commit is contained in:
5
pdf/6x9build_book.bat
Normal file
5
pdf/6x9build_book.bat
Normal file
@@ -0,0 +1,5 @@
|
||||
copy /Y ..\01-g-h-filter.ipynb book.ipynb
|
||||
|
||||
ipython nbconvert --to latex --template book6x9 book.ipynb
|
||||
ipython to_pdf.py
|
||||
REM move /Y book.pdf book6x9.pdf
|
||||
42
pdf/book6x9.tplx
Normal file
42
pdf/book6x9.tplx
Normal file
@@ -0,0 +1,42 @@
|
||||
% Inherit from report
|
||||
((* extends 'report.tplx' *))
|
||||
|
||||
((* set cell_style = 'style_ipython.tplx' *))
|
||||
|
||||
((* block margins *))
|
||||
\geometry{verbose,papersize={6in, 9in}, tmargin=.5in,bmargin=.5in,lmargin=.5in,rmargin=.5in}
|
||||
((* endblock margins *))
|
||||
|
||||
((*- block in_prompt -*))
|
||||
\mbox{ }\\ \\
|
||||
{In [{}(((cell.execution_count)))]:}
|
||||
((*- endblock in_prompt -*))
|
||||
|
||||
((* block input scoped *))
|
||||
((( cell.source | highlight2latex )))
|
||||
((* endblock input *))
|
||||
|
||||
|
||||
((* block output_prompt *))
|
||||
\mbox{ }\\
|
||||
Out [{}(((cell.execution_count)))]:
|
||||
((* endblock output_prompt *))
|
||||
|
||||
|
||||
((* block docclass *))
|
||||
\documentclass{book}
|
||||
\setcounter{chapter}{0}
|
||||
((* endblock docclass *))
|
||||
|
||||
((* block preamble *))
|
||||
((* endblock preamble *))
|
||||
|
||||
((* block title *))
|
||||
\title{Kalman and Bayesian Filters in Python}
|
||||
\author{Roger R Labbe Jr}
|
||||
((* endblock title *))
|
||||
|
||||
((* block markdowncell scoped *))
|
||||
((( cell.source | citation2latex | strip_files_prefix | markdown2latex(extra_args=["--chapters"]) )))
|
||||
((* endblock markdowncell *))
|
||||
|
||||
Reference in New Issue
Block a user