\newcommand{\tion}[1]{\S\ref{tion:#1}}
\newcommand{\dix}[1]{Appendix~\ref{dix:#1}}
\newcommand{\eq}[1]{Equation~\ref{eq:#1}}
\newcommand{\fig}[1]{Figure~\ref{fig:#1}}
\newcommand{\di}{$\emptyset$}

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

\newenvironment{smallitem}
 {\setlength{\topsep}{0pt}
  \setlength{\partopsep}{0pt}
  \setlength{\parskip}{0pt}
  \begin{itemize}
   \setlength{\leftmargin}{.2in}
  \setlength{\parsep}{0pt}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt}}
 {\end{itemize}}
\newenvironment{smallenum}
 {\setlength{\topsep}{0pt}
  \setlength{\partopsep}{0pt}
  \setlength{\parskip}{0pt}
  \begin{enumerate}
  \setlength{\leftmargin}{.2in}
  \setlength{\parsep}{0pt}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt}}
 {\end{enumerate}}

\newcommand{\bsi}{\begin{smallitem}}
\newcommand{\esi}{\end{smallitem}}
\newcommand{\bse}{\begin{smallenum}}
\newcommand{\ese}{\end{smallenum}}

\usepackage{graphicx}

\newcommand{\boxplot}[5]{
  \begin{picture}(100,10)
    %draw first and fourth quartile
    \put(#1,4){\line(1,0){#2}} %left line
    \put(#3,4){\circle*{6}}%draws the dot
    \put(#4,4){\line(1,0){#5}} %right line
  \end{picture}
}

\newcommand{\boxplotn}[4]{
  \begin{picture}(100,10)
    %draw first and fourth quartile
    \put(#1,4){\line(1,0){#2}} %left line
    \put(50,0){\line(0,1){8}} %left line
    \put(#3,4){\circle*{6}}%draws the dot
    \put(#3,4){\line(1,0){#4}} %right line
  \end{picture}
}
