BulletQuickstart.tex 2.5 KB

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