blob: 5a08c0c57016dfe4e1197f13f4f902ad8ad554a9 [file] [log] [blame]
Keir Mierle8ebb0732012-04-30 23:09:08 -07001%%% Build instructions
2%%% pdflatex -shell-escape ceres && bibtex ceres && pdflatex -shell-escape ceres && pdflatex -shell-escape ceres
3
4\documentclass[11pt,letterpaper,oneside]{memoir}
5\usepackage{fouriernc}
6\usepackage[T1]{fontenc}
7\usepackage{minted,amsmath,amssymb,amsthm,url,booktabs}
8\usepackage[pdftex]{graphicx}
9\usepackage[sort&compress]{natbib}
10\usepackage[breaklinks=true,letterpaper=true,colorlinks,bookmarks=false]{hyperref}
11
12% page dimensions
13\addtolength{\textwidth}{1in}
14\addtolength{\oddsidemargin}{-0.5in}
15\addtolength{\evensidemargin}{-0.5in}
16\addtolength{\spinemargin}{-0.5in}
17\addtolength{\foremargin}{-0.5in}
18\setlength{\parindent}{0.0in}
19\setlength{\parskip}{0.12in}
20
21% Our pagestyle
22\copypagestyle{ceres}{headings}
23\makeevenhead{ceres}{\thepage}{}{\scshape\rightmark}
24\makeoddhead{ceres}{\scshape\rightmark}{}{\thepage}
25
26%% ceres chapter style
27\makechapterstyle{ceres}{%
28\renewcommand{\chapterheadstart}{}%
29\renewcommand{\printchaptername}{}%
30\renewcommand{\chapternamenum}{}%
31\renewcommand{\printchapternum}{}%
32\renewcommand{\afterchapternum}{}%
33\renewcommand{\printchaptertitle}[1]{%
34\raggedright\Large\scshape\MakeLowercase{##1}}%
35\renewcommand{\afterchaptertitle}{%
36\vskip\onelineskip \hrule\vskip\onelineskip}%
37}%
38\renewcommand{\cftchapterfont}{\normalfont}%
39\renewcommand{\cftchapterpagefont}{\normalfont}%
40\renewcommand{\cftchapterpresnum}{\bfseries}%
41\renewcommand{\cftchapterleader}{}%
42\renewcommand{\cftchapterafterpnum}{\cftparfillskip}%
43
44
45%% Section title style
46\setsecheadstyle{\raggedright\scshape\MakeLowercase}%
47\setbeforesecskip{-\onelineskip}%
48\setaftersecskip{\onelineskip}%
49
50%% Subsection title style
51
52\setsubsecheadstyle{\sethangfrom{\noindent ##1}\raggedright\itshape}%
53\setbeforesubsecskip{-\onelineskip}%
54\setaftersubsecskip{\onelineskip}%
55
56\captiontitlefont{\small\sffamily}%
57\let\caption\legend
58
59
60\title{\Huge\scshape
61\MakeLowercase{Ceres Solver 1.0$\alpha$}\\
62\MakeLowercase{Tutorial \& Reference}
63}
64\author{
65\scshape\MakeLowercase{Sameer Agarwal} \\ \texttt{sameeragarwal@google.com}
66\and
67\scshape\MakeLowercase{Keir Mierle} \\ \texttt{ keir@google.com}
68}
69\checkandfixthelayout
70
71\pagestyle{ceres}
72
73\newcommand{\ceres}{{Ceres }}
74\newcommand{\reals}{\mathbb{R} }
75\def\eg{\emph{e.g. }}
76\def\ie{\emph{i.e. }}
77\newcommand{\glog}{\texttt{google-glog}}
78\newcommand{\gflags}{\texttt{gflags}}
79\newcommand{\eigen}{\texttt{Eigen3}}
80\newcommand{\suitesparse}{\texttt{SuiteSparse}}
81\newcommand{\cholmod}{\texttt{CHOLMOD}}
82\newcommand{\amd}{\texttt{AMD}}
83\newcommand{\colamd}{\texttt{COLAMD}}
84\newcommand{\lapack}{\texttt{LAPACK}}
85\newcommand{\blas}{\texttt{BLAS}}
86\newcommand{\denseschur}{\texttt{DENSE\_SCHUR}}
87\newcommand{\sparseschur}{\texttt{SPARSE\_SCHUR}}
Sameer Agarwal17fbc8e2012-05-01 00:21:19 -070088\newcommand{\iterativeschur}{\texttt{ITERATIVE\_SCHUR}}
Keir Mierle8ebb0732012-04-30 23:09:08 -070089\newcommand{\cmake}{\texttt{cmake}}
90\newcommand{\protobuf}{\texttt{protobuf}}
91
92
93\begin{document}
94\chapterstyle{ceres}
95\newcomment{Question}
96\newcomment{Answer}
Keir Mierle8ebb0732012-04-30 23:09:08 -070097\maketitle
98\thispagestyle{empty}
99\newpage
100\pagestyle{ceres}
101\tableofcontents
Sameer Agarwal17fbc8e2012-05-01 00:21:19 -0700102\newpage
Keir Mierle8ebb0732012-04-30 23:09:08 -0700103\chapter{A Note About This Document}
Sameer Agarwal17fbc8e2012-05-01 00:21:19 -0700104Building this pdf from source requires a relatively recent installation of \texttt{LaTeX}~\footnote{\url{http://www.tug.org/texlive/}}, \texttt{minted.sty}\footnote{\url{http://code.google.com/p/minted/}} and \texttt{pygments}\footnote{\url{http://pygments.org/}}.
Keir Mierle8ebb0732012-04-30 23:09:08 -0700105
Sameer Agarwal17fbc8e2012-05-01 00:21:19 -0700106This document is incomplete and we are working to fix this. In the meanwhile please refer to the source code.
107
Keir Mierle8ebb0732012-04-30 23:09:08 -0700108\input{introduction}
109\input{build}
110\input{tutorial}
111\input{api}
112\input{theory}
113\input{faq}
114\input{further}
115\bibliographystyle{plain}
116\bibliography{ceres}
117\end{document}