% Simple package for inserting notes
% ChaTo - http://www.chato.cl/
% Mon Jun 11 10:31:53 CEST 2007

\ProvidesPackage{chato-notes}[2007/06/11 ChaTo notes]
\RequirePackage{color,marvosym}

% Colors
\definecolor{MyRed}{rgb}{0.6,0.0,0.0} 
\definecolor{MyBlack}{rgb}{0.1,0.1,0.1} 
\newcommand{\inred}[1]{{\color{MyRed}\sf\textbf{\textsc{#1}}}}

% Frame
\newcommand{\frameit}[2]{
    \begin{center}
    {\color{MyRed}
    \framebox[.9\columnwidth][l]{
        \begin{minipage}{.85\columnwidth}
        \inred{#1}: {\sf\color{MyBlack}#2}
        \end{minipage}
    }\\
    }
    \end{center}
}

\DeclareOption{show}{
	\newcommand{\note}[2][]{\frameit{{\Large } Note}{#2 \mbox{--\em #1}}}
	\newcommand{\todo}[2][]{\frameit{{\Large } To-do}{#2 \mbox{--\em #1}}}
	\newcommand{\inote}[1]{\inred{$\lceil${{\large } }} {\sf #1} \inred{$\rfloor$}}
}
\DeclareOption{hide}{
	\newcommand{\note}[2]{}
	\newcommand{\todo}[2]{}
	\newcommand{\inote}[2]{}
}

\ProcessOptions

