2 % Bullet Physics manual
3 % http://bulletphysics.org
4 % Written by Erwin Coumans
6 % Preamble (global definitions of the book/manual)
7 % Use openany option for documentclass to avoid empty page after TOC
9 %\documentclass[openany]{book}
10 %scrbook is easier on the eyes, and use a bigger font
11 \documentclass[openany,DIV=calc,16pt]{scrbook}
13 % The english package can help breaking words
14 \usepackage[english]{babel}
16 %The Charter or Utopia font is easier on the eyes for screen
17 \renewcommand{\familydefault}{bch}%Charter font
18 %\renewcommand{\familydefault}{put} %Utopia font
21 % Titlepic allows us to use a picture on the frontpage
25 \usepackage[a4paper, left=2cm, right=1cm, top=2cm, bottom=3.5cm]{geometry}
26 \usepackage[latin1]{inputenc}
28 % If using \doublespacing include the setspace package
29 % \usepackage{setspace}
34 % The hyperref package already include package url
35 \usepackage[colorlinks=true]{hyperref}
36 % \setcounter{secnumdepth}{4}
37 \usepackage{makeidx}\makeindex
39 %support for C++ source code snippets
40 %you can even import existing C++ code as-is
41 %or a range of lines within markers beween rangeprefix/rangesuffix
44 \renewcommand{\lstlistingname}{Source Code}
45 \renewcommand{\lstlistlistingname}{Source Code Listings}
47 tabsize=2, language=C++, keywordstyle=\color[rgb]{0,0,1},
48 commentstyle=\color[rgb]{0.133,0.545,0.133},
49 stringstyle=\color[rgb]{0.627,0.126,0.941},
52 basicstyle=\ttfamily\tiny,
53 rangeprefix=///-----, rangesuffix=-----,
54 includerangemarker=false,
55 numbers=left, stepnumber=1,
60 % Set the tolerance so TeX really breaks the line
61 % and don't run into the right margin (avoid overfull boxes)
72 \title{\textbf{Bullet 2.81 Quickstart Guide}}
73 \titlepic{\includegraphics[width=0.7\textwidth]{bullet_logo_2010_9.eps}}
75 \author{Erwin Coumans}
79 \renewcommand{\cftchapdotsep}{\cftdotsep}
83 \pagenumbering{arabic}
88 % include all the chapters as separate tex files
89 % on Mac OSX it is really nice to use the Texpad application for automatic navigation
97 \addcontentsline{toc}{chapter}{Source code listings}
101 \addcontentsline{toc}{chapter}{Index}