forked from kripken/ammo.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBulletQuickstart.tex
106 lines (76 loc) · 2.54 KB
/
BulletQuickstart.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
% Bullet Physics manual
% http://bulletphysics.org
% Written by Erwin Coumans
% Preamble (global definitions of the book/manual)
% Use openany option for documentclass to avoid empty page after TOC
\documentclass[openany]{book}
%scrbook is easier on the eyes, and use a bigger font
%\documentclass[openany,DIV=calc,16pt]{scrbook}
% The english package can help breaking words
\usepackage[english]{babel}
%The Charter or Utopia font is easier on the eyes for screen
\renewcommand{\familydefault}{bch}%Charter font
%\renewcommand{\familydefault}{put} %Utopia font
% Titlepic allows us to use a picture on the frontpage
\usepackage{titlepic}
\usepackage{graphicx}
\usepackage[a4paper, left=2cm, right=1cm, top=2cm, bottom=3.5cm]{geometry}
\usepackage[latin1]{inputenc}
% If using \doublespacing include the setspace package
% \usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{tocloft}
% The hyperref package already include package url
\usepackage[colorlinks=true, linkcolor=blue, urlcolor=blue]{hyperref}
% \setcounter{secnumdepth}{4}
\usepackage{makeidx}\makeindex
%support for C++ source code snippets
%you can even import existing C++ code as-is
%or a range of lines within markers beween rangeprefix/rangesuffix
\usepackage{listings}
%\usepackage{color}
\renewcommand{\lstlistingname}{Source Code}
\renewcommand{\lstlistlistingname}{Source Code Listings}
\lstset{
tabsize=2, language=C++, keywordstyle=\color[rgb]{0,0,1},
commentstyle=\color[rgb]{0.133,0.545,0.133},
stringstyle=\color[rgb]{0.627,0.126,0.941},
breaklines=true,
numberstyle=\small,
basicstyle=\ttfamily\small,
rangeprefix=///-----, rangesuffix=-----,
includerangemarker=false,
numbers=left, stepnumber=1,
frame=single,
}
% Set the tolerance so TeX really breaks the line
% and don't run into the right margin (avoid overfull boxes)
\tolerance=10000
%end of preamble
\begin{document}
% \pagestyle{fancy}
%\pagenumbering{}
%
\title{\textbf{Bullet 2.82 Quickstart Guide}}
\titlepic{\includegraphics[width=0.4\textwidth]{bullet_logo_2010_9.eps}}
%
\author{Erwin Coumans}
\maketitle
\renewcommand{\cftchapdotsep}{\cftdotsep}
\tableofcontents
\pagenumbering{arabic}
% \fancyhf{}
% \doublespacing
% include all the chapters as separate tex files
% on Mac OSX it is really nice to use the Texpad application for automatic navigation
\include{intro}
\include{building}
\include{helloworld}
\include{faq}
\clearpage
\addcontentsline{toc}{chapter}{Source code listings}
\lstlistoflistings
\clearpage
\addcontentsline{toc}{chapter}{Index}
\printindex
\end{document}