\def\web{http://drorbn.net/AcademicPensieve/Projects/ExQu}

\def\draftcut{\if\draft y \cleardoublepage \fi}

\def\blue{\color{blue}}
\def\green{\color{green}}
\def\magenta{\color{magenta}}
\def\red{\color{red}}
\def\yellow#1{{\setlength{\fboxsep}{0pt}\colorbox{yellow}{#1}}}

\def\act{{\hspace{-1pt}\sslash\hspace{-0.75pt}}}

\def\barx{{\bar{x}}}
\def\bary{{\bar{y}}}
\def\bbC{{\mathbb C}}
\def\bbF{{\mathbb F}}
\def\bbQ{{\mathbb Q}}
\def\bbR{{\mathbb R}}
\def\bbZ{{\mathbb Z}}
\def\calA{{\mathcal A}}
\def\calL{{\mathcal L}}
\def\calU{{\mathcal U}}
\def\hatA{{\hat A}}
\def\tilx{{\tilde{x}}}

\def\FA{{F\!A}}
\def\FG{{F\!G}}
\def\PB{{\mathit P\!B}}
\def\PfB{{\mathit P\!f\!B}}
\def\PuB{{\mathit P\!u\!B}}
\def\PvB{{\mathit P\!v\!B}}
\def\PwB{{\mathit P\!w\!B}}
\def\RPB{{\mathit R\!P\!B}}

\def\ds{\displaystyle}
\def\inlineeq{\refstepcounter{equation}{\rm(\theequation)}}
\def\sumint{\setbox0=\hbox{$\displaystyle\sum$}\mathop{\rlap{\copy0} \kern0pt \hbox to \wd 0{\hss$\displaystyle\int$\hss}}}

\newcommand{\grh}{\widehat{\operatorname{gr}}}

\def\endpar#1{~\hfill\fbox{\footnotesize\ref{#1}}}

% Modified from http://tex.stackexchange.com/questions/18191/defining-custom-labels:
\makeatletter
\newcommand{\customlabel}[2]{%
\protected@write \@auxout {}{\string \newlabel {#1}{{#2}{}{}{}{}}}}
\makeatother

\def\hand{\fontfamily{augie}\selectfont\small}
