forked from sonic2000gr/pygame-book
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpygame.tex
More file actions
95 lines (95 loc) · 2.86 KB
/
pygame.tex
File metadata and controls
95 lines (95 loc) · 2.86 KB
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
% Main file for compiling the entire book
% Games in Python and Pygame
%
% (C) 2011-2012 Manolis Kiagias
% Published under the Creative Commons License
%
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
%
% Please note: This book requires XeLaTeX
% and Python / Pygments to compile.
% Use easy_install to get Pygments for your OS, e.g:
% sudo easy_install Pygments
% The minted package should also be installed in your TeX distribution
%
% This book uses the free Liberation family fonts
% You may have to add them to your OS fonts or alter
% the setfont statements in this file to suitable
% alternatives
%
% Version 1.0 - September 2012
%
\documentclass[a4paper,twoside,12pt,landscape]{book}
\usepackage{fontspec,xltxtra,xunicode}
% Begin new paragraphs with an empty line rather than an indent
\usepackage[parfill]{parskip}
\usepackage[landscape, hmargin={1in, 1.5in}, vmargin={1in,1in}]{geometry}
\usepackage{xgreek}
\usepackage{multirow}
\usepackage{fancyvrb}
\usepackage{minted}
\usepackage{sidecap}
\usepackage{xcolor}
\usepackage[colorlinks=true,linkcolor=black]{hyperref}
% Scaling based on Scale=MatchLowercase and Times New Roman
% causes inconsistent output between OS X and FreeBSD
% Therefore Scale is now set as an absolute number
% Times New Roman is not used anywhere
\defaultfontfeatures{Scale=0.975,Mapping=tex-text}
%\setromanfont{Times New Roman}
\setsansfont{Liberation Sans}
\setmonofont{Liberation Mono}
\setmainfont{Liberation Serif}
\usepackage{multicol}
\usepackage{graphicx}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{%
\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\addtolength{\headheight}{2pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\fancypagestyle{plain}{%
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}}
\renewcommand{\figurename}{Εικόνα}
%
% User defined environments
%
\newenvironment{inthebox}{\line(1,0){390}\\} %
{\line(1,0){390}}
\DefineVerbatimEnvironment{richverb}%
{Verbatim}{commandchars=\|\[\], commentchar=\!}
\definecolor {bg} {rgb}{0.98, 0.98, 0.98}
\sidecaptionvpos{figure}{c}
%
%
\author{Μανώλης Κιαγιάς, MSc}
\title{Παιχνίδια σε Python και Pygame}
\date{01/09/2012}
\begin{document}
\frontmatter
\input {chapters/intro/intro}
\mainmatter
\input {chapters/chapter1/chapter1}
\input {chapters/chapter2/chapter2}
\input {chapters/chapter3/chapter3}
\input {chapters/chapter4/chapter4}
\input {chapters/chapter5/chapter5}
\input {chapters/chapter6/chapter6}
\input {chapters/chapter7/chapter7}
\input {chapters/chapter8/chapter8}
\input {chapters/chapter9/chapter9}
\appendix
\input {chapters/appendices/appendixa}
\end{document}