forked from RoboCup-SSL/ssl-rules-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sslrules.tex
107 lines (88 loc) · 3.2 KB
/
sslrules.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
106
107
\documentclass[12pt]{article}
\usepackage{times,fullpage,xspace,fancyhdr,url,graphicx,xspace,ifthen}
\usepackage[usenames,dvipsnames]{color}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage[pdftex,colorlinks=true,urlcolor=black,linkcolor=black,citecolor=black,bookmarksopen=false,bookmarksnumbered=true,pdfstartview=FitH,pdfpagelabels]{hyperref}
\hypersetup{
pdftitle={Laws of the RoboCup Small Size League 2014},
pdfauthor={Small Size League Technical Committee},
}
%
% This stuff is all about semi-automatically generating the year-to-year diffs.
% All text that is the same from the prior year to the current year should be plain text.
% All text that is removed from the prior year to the current year should be in a \removed command.
% All text that is added from the prior year to the current year should be in a \added command.
% If more complicated stuff is needed, like whole sections deleted from the new year, use \ifdiff.
% It would probably be better to use an environment, but I have no idea how to make an environment that discards its body (as would be needed in the non-diff case for removed text).
% Then the Makefile will automatically build both the main PDF and the diff PDF if told to (by "make sslrules.pdf" and "make diff.pdf").
% When starting to work on a new year, the first thing you do should be to delete all the \removed commands and their contents and the \added commands BUT NOT their contents.
% Old rules files and diffs should still be available be going to a git tag and rebuilding.
%
\newif\ifdiff
\providecommand\diff{false}
\ifthenelse{\equal{\diff}{true}}{
\difftrue
\newcommand{\added}[1]{\textcolor{green}{#1}}
\newcommand{\removed}[1]{\textcolor{red}{#1}}
}{
\newcommand{\added}[1]{#1}
\newcommand{\removed}[1]{}
}
\setlength{\parindent}{0pt}
\setlength{\parskip}{12pt plus 6pt minus 3pt}
\widowpenalty=10000
\clubpenalty=10000
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{}
\rfoot{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\def\sectionautorefname{Law}
\def\subsectionautorefname{Subsection}
\def\subsubsectionautorefname{Clause}
\begin{document}
\setcounter{page}{1}
\pagenumbering{roman}
\title{Laws of the RoboCup Small Size League 2014}
\author{Small Size League Technical Committee}
\maketitle
\vfill
\tableofcontents
\section*{Notes}
Male and Female---References to the male gender in the Laws with respect to referees, assistant referees, team members and officials are for simplification and apply to both males and females.
\ifdiff
\added{Text added from the previous year is shown in green.}
\removed{Text removed from the previous year is shown in red.}
\fi
\thispagestyle{fancy}
\clearpage
\cfoot{\thepage}
\setcounter{page}{1}
\pagenumbering{arabic}
\input{field-of-play}
\input{ball}
\input{number-of-robots}
\input{robotic-equipment}
\input{referee}
\input{assistant-referee}
\input{duration-of-the-match}
\input{start-and-restart-of-play}
\input{ball-in-and-out-of-play}
\input{method-of-scoring}
\input{offside}
\input{fouls-and-misconduct}
\input{free-kicks}
\input{penalty-kick}
\input{throw-in}
\input{goal-kick}
\input{corner-kick}
\appendix
\input{competition-rules}
\input{vision-experts}
\end{document}