Actually include the acknowledgements.
[matthijs/master-project/report.git] / Utils / Shortcuts.tex
1 %
2 % This file defines some useful shortcut commands
3 %
4
5 % A shortcut for italicized e.g. and i.e.
6 \define[0]\eg{{\em e.g.}}
7 \define[0]\ie{{\em i.e.}}
8
9
10 % Define a new reference to a definition of the term. The text of the
11 % reference is the term itself, the name is the term with def: prefixed.
12 % For example, \defref{some defined term} defines the reference named
13 % "def:some defined term" to point to this location with the text "some
14 % defined term".
15 % You can refer to this reference with refdef, e.g., 
16 % \refdef{def:some defined term}.
17 \define[1]\defref{\defreftxt{#1}{#1}}
18
19 % Define a new reference with a text different from the name, #1 is the name
20 % of the reference, #2 is the text.
21 % This automatically prefixes the reference name with def:
22 \define[2]\defreftxt{\reference[def:#1]{#2}}
23
24 % Reference a defined reference (using \defref). Will put the reference text
25 % and a page number in the margin. We use \inmargin, since it is slightly
26 % bigger.
27 % This automatically prefixes the reference name with def:
28 \define[1]\refdef{\inmargin{\goto{\ref[t][def:#1] p.\ref[p][def:#1]}[def:#1]}}
29
30 % Shortcuts to write in smallcaps
31 \def\VHDL{\small{VHDL}}
32 \def\GHC{\small{GHC}}
33
34 % TODO: Use this instead of $ to fool syntax highlighting
35 \def\${\char36}
36
37 % vim: set sw=2 sts=2 expandtab: