% Wheeler Ruml's macros for LaTeX


%%%% generally useful macros

\newcommand{\be}{\begin{enumerate}}
\newcommand{\ee}{\end{enumerate}}
\newcommand{\bi}{\begin{itemize}}
\newcommand{\ei}{\end{itemize}}
\newcommand{\bd}{\begin{description}}
\newcommand{\ed}{\end{description}}

\newcommand{\bc}{\begin{center}}
\newcommand{\ec}{\end{center}}
\newcommand{\bq}{\begin{quote}}
\newcommand{\eq}{\end{quote}}

\newcommand{\bt}{\begin{tabbing}}
\newcommand{\et}{\end{tabbing}}


\newcommand{\beqn}[1]{\begin{equation}
	\label{#1}}
\newcommand{\eeqn}{\end{equation}}

\newcommand{\needcite}{{\bf [ref??]}}
\newcommand{\todo}[1]{{$\langle${\sc To Do: #1}$\rangle$}}

% italics in math mode
\newcommand{\myit}[1]{\mbox{\em #1}}
% in subscripts
\newcommand{\myits}[1]{\mbox{\scriptsize \em #1}}

\newcommand{\argmax}{\mathop{\rm argmax}}

%%%%%%% for continuing enumerations across section boundaries

\newcounter{enumcount}
\newcommand{\enumpause}{
	\setcounter{enumcount}{\value{enumi}}
	\end{enumerate}}
\newcommand{\enumcontinue}{
	\begin{enumerate}
	\setcounter{enumi}{\value{enumcount}} }

\newcommand{\newsection}[1]{
	\enumpause
	\section{#1}
	\enumcontinue}


%%%%%%% for code

\newcommand{\bcode}{
	\begin{tabbing}
	mm\=mm\=mm\=mm\=mm\=mm\=mm\=mm\=mm\=mm\kill
}
\newcommand{\bncode}{
	\begin{tabbing}
	00. mm\=mm\=mm\=mm\=mm\=mm\=mm\=mm\=mm\=mm\kill
}
\newcommand{\ecode}{\end{tabbing}}



%%%% macros for slides

%\newcommand{\heading}[1]{%
%  \begin{center}
%    \LARGE \bf
%    #1
%  \end{center}
%  \vspace{0.15 in}}


\newcommand{\bs}[1]{\begin{slide}{#1}}
\newcommand{\es}{\end{slide}}
\newcommand{\bn}{\begin{note}{Notes}}
\newcommand{\en}{\end{note}}

%\newcommand{\bshead}[1]{\bs \heading{#1}}
%\newcommand{\notes}{\es}

\endinput

% EOF - wrmacros.tex
