% define a 1em gap for use after \item[Object] in description
% (in place of punctuation)
%
% on reflection I decided to keep my ``.'' punctuation.
%
% \newdimen\puncgap this makes a fixed dimension
%
% NONE OF THESE IS USED......
%
\newskip\puncgap
\puncgap=1em plus 2em minus 0.5em
\newskip\colongap
\newskip\smallcolongap
% used after Solution to exercise blah_____
\colongap=1em plus 2em minus 0.5em
% used after Exercise blah^{upstairs}___
\smallcolongap=0.5em plus 2em minus 0.5em
%
\newcommand{\colonspace}{\mbox{\sf{.}}}%{\hspace*{\colongap}}%
\newcommand{\nocolon}{\mbox{\sf{.}}}%
\newcommand{\mycolon}{\mbox{:}}%
\newcommand{\mycomma}{\mbox{,}}%
\newcommand{\smallcolonspace}{}%{\hspace*{\smallcolongap}}%
\newcommand{\puncspace}{\mbox{\sf{.}}}%{\hspace*{\puncgap}}%{$\,$}% used in place of . and :
% where there is a font change
% in a description \item[] etc.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\normaleq}{=}% replaced many \eq with this Sat 24/5/03
\newskip\smallequalsgap
\smallequalsgap=0.35ex plus 0.15ex minus 0.25ex
\newcommand{\eq}{\mbox{\hspace*{\smallequalsgap}$=$\hspace*{\smallequalsgap}}}
% alternate:
%\newcommand{\eq}{\!=\!}
% perhaps what is really needed is context-dependent, since tex is probably smart
% about using less space round = when it is in a fraction or subscript?
%
% I tried using \mid in P(x|l) and I found the space was too big.
% So I am using \mymid which is defined by \given here, which I think gets it right.
% possibly would liek the \, to be a hair smaller.
% in case you want to know, the plain tex defn is \def\,{\mskip\thinmuskip}
\newcommand{\specialgiven}{|}% used in places like Y|X where it looks better
\newcommand{\given}{\,|\,}
\newcommand{\rightgiven}{\,\right|\,}
