Lots of book formatting changes.

Changed default sizes of plots, changed the book template for
pdf creation, and lots of minor edits, most changing bold to
italic, and removing italic for emphasis.
This commit is contained in:
Roger Labbe
2015-11-26 13:08:40 -08:00
parent d2f8747c36
commit 3e65b5d2f7
19 changed files with 1069 additions and 1093 deletions

View File

@@ -1,10 +1,12 @@
% Inherit from report
((* extends 'report.tplx' *))
%((* extends 'report.tplx' *))
((* set cell_style = 'style_ipython.tplx' *))
((* block docclass *))
\documentclass{book}
\setcounter{chapter}{0}
\raggedbottom
((* endblock docclass *))
((* block preamble *))
@@ -14,7 +16,9 @@
\title{Kalman and Bayesian Filters in Python}
\author{Roger R Labbe Jr}
((* endblock title *))
((* block markdowncell scoped *))
\setlength{\parindent}{0em}
\setlength{\parskip}{0.5em}
((( cell.source | citation2latex | strip_files_prefix | markdown2latex(extra_args=["--chapters"]) )))
((* endblock markdowncell *))

View File

@@ -1,7 +1,6 @@
% Inherit from report
((* extends 'report.tplx' *))
((* set cell_style = 'style_ipython.tplx' *))
((* block margins *))
\geometry{verbose,papersize={6in, 9in}, tmargin=.5in,bmargin=.5in,lmargin=.75in,rmargin=.75in}
@@ -11,7 +10,11 @@
((*- endblock in_prompt -*))
((* block input scoped *))
((( cell.source | highlight2latex | indent(3) )))
$\fontsize{5}{1.5}
\selectfont$
$\noindent\rule{8cm}{0.4pt}$
((( cell.source | highlight2latex | indent(0) )))
$\noindent\rule{8cm}{0.4pt}$
((* endblock input *))
((* block output_prompt *))
@@ -21,10 +24,11 @@
((* block docclass *))
\documentclass{book}
\setcounter{chapter}{0}
\raggedbottom
((* endblock docclass *))
((* block preamble *))
((* endblock preamble *))
((* block document *))
((* endblock document *))
((* block title *))
\title{Kalman and Bayesian Filters in Python}
@@ -32,6 +36,10 @@
((* endblock title *))
((* block markdowncell scoped *))
\fontsize{10}{1.5}
\selectfont
\setlength{\parindent}{0em}
\setlength{\parskip}{0.5em}
((( cell.source | citation2latex | strip_files_prefix | markdown2latex(extra_args=["--chapters"]) )))
((* endblock markdowncell *))

View File

@@ -1,6 +1,6 @@
from __future__ import print_function
import io
import IPython.nbformat as nbformat
import nbformat
import sys
from formatting import *
@@ -28,10 +28,8 @@ def merge_notebooks(outfile, filenames):
if __name__ == '__main__':
f = open('book.ipynb', 'w', encoding='utf-8')
'''merge_notebooks(
['../00_Preface.ipynb',
'../01_g-h_filter.ipynb',
'../Appendix_A_Installation.ipynb'])'''
'''merge_notebooks(f,
['../02-Discrete-Bayes.ipynb'])'''
merge_notebooks(f,
['../00-Preface.ipynb',