% A marginal note with a box around it.
%
\newcommand{\marginnote}[1]{\marginpar{
  \fbox{\parbox{0.9in}{\raggedright \noindent
    \footnotesize{
			#1
      }}
    }
  }
}

\newcommand{\SeeModule}[1]{\marginnote{See \fn{#1}}}
\newcommand{\SeeCode}[2]{\marginnote{See \texttt{#1} in \fn{#2}}}

% hex number
\newcommand{\hex}[1]{{\em0x#1}}

% example command
\newcommand{\eg}[1]{\textsf{#1}\index{#1 command}}

% data structures
\newcommand{\ds}[1]{\texttt{#1}\index{#1 data structure}}
\newcommand{\dsni}[1]{\texttt{#1}}
\newcommand{\field}[1]{\texttt{#1}}

% filename
\newcommand{\fn}[1]{\texttt{#1}}

% chapter description (at the start of every chapter)
\newcommand{\ChapterDescription}[1]{{\sf \bf #1}}

% Review notes
\newcommand{\ReviewNotes}[1]{\textsf{REVIEW NOTE:} {\em #1}}
