Macros and functions for method definitions. Will cause less fuckups

git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@507 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
Wizzup? 2010-02-01 09:21:14 +00:00
parent b7d63d1aae
commit 5342a061f3
1 changed files with 11 additions and 2 deletions

View File

@ -9,6 +9,15 @@
\definecolor{typeGreen}{rgb}{0.0, 0.6, 0.0}
\definecolor{typeRed}{rgb}{0.6, 0.0, 0.0}
% Few defines to make methods easier.
% Most func/proc definitions still don't use this...
\def\pproc{\textbf{procedure}}
\def\pfunc{\textbf{function}}
\newcommand{\pvtype}[1]{{\color{typeGreen}{#1}}}
\newcommand{\pvname}[1]{{\color{typeRed}{#1}}}
\newcommand{\mname}[1]{{\color{blue}{#1}}}
\maketitle
\tableofcontents
@ -138,7 +147,7 @@ GetMousePos returns the current position of the mouse in \textbf{x} and
\textbf{y}.
\subsection{HoldMouse}
\textbf{procedure} {\color{blue}{HoldMouse}}({\color{typeRed}
\pproc \mname{HoldMouse}({\color{typeRed}
{x, y: }}{\color{typeGreen}{Integer}}; {\color{typeRed}{clickType :}}
{\color{typeGreen}{TClickType}})
@ -616,6 +625,7 @@ from them and write to them.
\chapter{Point Sorting and Math}
\section{Sorting functions}
Wizzyplugin stuff
\section{Math}
@ -626,7 +636,6 @@ Nothing here! Do you really think we document Easter eggs?
Hakuna matata!
Wizzyplugin stuff