\documentclass[english]{amsbook}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{geometry}
\geometry{verbose,letterpaper,tmargin=1in,bmargin=1in,lmargin=1.3in,rmargin=1.3in}
\pagestyle{headings}
\usepackage{verbatim}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{amssymb}
\IfFileExists{url.sty}{\usepackage{url}}
{\newcommand{\url}{\texttt}}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
\newenvironment{lyxcode}
{\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\setlength{\listparindent}{0pt}% needed for AMS classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
\item[]}
{\end{list}}
\theoremstyle{definition}
%%Delete [section] for sequential numbering
\newtheorem{xca}[section]{Exercise}
\theoremstyle{definition}
\newtheorem{example}[thm]{Example}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\input{preamble.tex}
\usepackage{babel}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Begin main document - front matter
\begin{document}
\title{ \vspace{3cm}
Practical Scientific Computing\\
in Python}
\author{ \vspace{1cm}
Editors:\\
John D. Hunter\\
Fernando Pérez
\vspace{1cm}\\
With contributions from:\\
Perry Greenfield\\
Andrew Straw\\
Stéfan van der Walt\\
Jeff Whitaker\\
}
\maketitle
\tableofcontents{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Main document - body
\input{introduction.tex}
\part{General Discussion}
% In this part, each tex file is a chapter by itself, since it is more or less
% meant to be used in whole.
\input{why_python.tex}
\input{intro_to_python.tex}
\input{ipython_tut.tex}
\input{matplotlib_tut.tex}
\input{wrapping.tex}
\part{Workbook\\
A Problem Collection}
% This part specifies the chapter declarations in the main file, while the
% chapters are made of individual TeX files which themselves should be written
% at the section level. The idea is for each chapter to be focused on one or a
% few closely related topics, and to allow users to build them with as many or
% as few actual sections as desired for a given audience.
\chapter{Introduction to the workbook}
\input{intro.tex}
\chapter{Simple non-numerical Problems}
\input{qsort.tex}
\input{wordfreqs.tex}
\chapter{Working with files, the internet, and numpy arrays}
\input{files_etc.tex}
\chapter{Elementary numerics}
\input{wallis_pi.tex}
\input{trapezoid.tex}
\input{quad_newton.tex}
\input{bessel.tex}
\chapter{Linear algebra}
\input{intro_linalg.tex}
\input{glass_dots.tex}
\chapter{Signal processing}
\input{intro_sigproc.tex}
\input{convolution.tex}
\input{fft_imdenoise.tex}
\chapter{Dynamical systems}
\input{intro_dynsys.tex}
\input{lotka_volterra.tex}
\chapter{Statistics}
\input{intro_stats.tex}
\input{stats_descriptives.tex}
\input{stats_distributions.tex}
\chapter{Plotting on maps}
\input{basemap.tex}
\chapter{Performance python: interfacing with other languages}
\input{intro_pyrex.tex}
\input{pyrex_ringbuf.tex}
%%% Bibliography section
\bibliographystyle{plain}
\bibliography{python,python2}
\end{document}