\documentclass[12pt]{article}
\usepackage{amsmath,color}

\textwidth=6.5in
\textheight=9.25in
\topmargin=-.25in
\headheight=0in
\headsep=.1in
\hoffset  -.75in

\def\dst{\displaystyle}
\def\LA{\LaTeX}
 \def\ra{\rightarrow}
\def\i{\infty}

\def\clrr{\color{red}}
\pagestyle{empty}

%%%%  define colors
\definecolor{light}{cmyk}{0, 0, 0.08, 0} 

\definecolor{darkmag}{rgb}{.5,0,.5}

% Gray is special and can be defined as
\definecolor{light_gray}{gray}{.85}
\definecolor{dark_gray}{gray}{.5}


% Here is another way to define colors

\def\BlueGreen{\special{color cmyk 0.85 0 0.33 0}} % PANTONE 320
\def\Emerald{\special{color cmyk 1. 0 0.50 0}} % No PANTONE match
\def\JungleGreen{\special{color cmyk 0.99 0 0.52 0}} % PANTONE 328
\def\SeaGreen{\special{color cmyk 0.69 0 0.50 0}} % PANTONE 3268
\def\Green{\special{color cmyk 1. 0 1. 0}} % PANTONE GREEN
\def\ForestGreen{\special{color cmyk 0.91 0 0.88 0.12}} % PANTONE 349
\def\PineGreen{\special{color cmyk 0.92 0 0.59 0.50}} % PANTONE 323
\def\Black{\special{color cmyk 0 0 0 1.}} % PANTONE PROCESS-BLACK

\definecolor{mycyan}{cmyk}{1, 0, 0, 0}
\definecolor{mymag}{cmyk}{0,1, 0, 0}
\definecolor{myyellow}{cmyk}{0, 0, 1, 0}
%%%% Getting back to black 

%% method one
%\Black

%% method two 
\special{color push} % save the current color (black) for much later
% then use 



\begin{document}

\centerline {\large Lesson 9: Using Color \ Name:
\rule[-1pt]{2.25in}{1pt} }
 
\vskip.25in

This lesson  teaches you  a little bit about using color.
The main thing is that the preamble must contain the
\textit{usepackage} statement 
\begin{verbatim}
\usepackage{color}
\end{verbatim}

\begin{enumerate}
\item Once you have declared the use of the \textit{color} package  it is
then easy to use color. You can simply type  {\color{red} this is red} to
type a few words in a specific color. 

\item You can also define colors in the preamble as, for example

\begin{verbatim}
\definecolor{light}{cmyk}{0, 0, 0.08, 0} 

\definecolor{mycyan}{cmyk}{1, 0, 0, 0}
\definecolor{mymag}{cmyk}{, 1, 0, 0}
\definecolor{myyellow}{cmyk}{0, 0, 1, 0}

\definecolor{darkmag}{rgb}{.5,0,.5}

\definecolor{light_gray}{gray}{.85}
\definecolor{dark_gray}{gray}{.5}

\def\Black{\special{color cmyk 0 0 0 1.}}
 \end{verbatim}

\begin{enumerate}
\item To turn on  colors simply type,  
\verb+\color{red}+, \color{red} and the text wil be in red until you change the color.
\color{black}  I have just changed the color back to black using
\verb+\color{black}+. 
\item \color{green} here is the color  \verb+\color{green}+
\item \color{yellow} here is the color  \verb+\color{yellow}+
\item \color{blue} here is the color  \verb+\color{blue}+
\item \color{darkmag} here is the color  \verb+\color{darkmag}+
\item \color{mycyan} here is the color  \verb+\color{mycyan}+
\item \color{mymag} here is the color  \verb+\color{mymag}+
\color{black}
\item \textbf{\Large \color{green} here is Large bold color } \verb+\textbf{\Large \color{green}  }+
\item \textbf{\Large \color{blue} here is Large bold color } \verb+\textbf{\Large \color{blue}  }+
\item \textbf{\Large \color{darkmag} here is Large bold color } \verb+\textbf{\Large \color{darkmag}  }+

\end{enumerate}
\end{enumerate}

\newpage
The following syntax will build a box with red frame, a light yellow 
background color and blue letters inside



\begin{verbatim}
\setlength{\fboxsep}{8pt}
\setlength{\fboxrule}{2pt}

 \begin{center}
{\color{blue} \fcolorbox{red}{light}{%
   \parbox{5.5in}{ \ This is a test of
  of  red math $\dst {\clrr \int_a^b f(x)\, dx}$ and blue text
 } 

}}
\end{center}
\end{verbatim}

\setlength{\fboxsep}{8pt}
\setlength{\fboxrule}{3pt}

 \begin{center}
{\color{blue} \fcolorbox{red}{light}{%
   \parbox{5.5in}{ \ This is a test of
  of  red math $\dst {\clrr \int_a^b f(x)\, dx}$ and blue text
 } 

}}
\end{center}

 
 
 
\noindent \textbf{PROBLEM:}   
 
Give the syntax to type Red in \textit{red}, Green in \textit{green},
Blue in \textit{blue}, Yellow in \textit{yellow} inside the  framed box
defined above. 
 

 \vskip.1in
\setlength{\fboxrule}{1pt}

\setlength{\fboxsep}{1.75in}
\noindent \framebox[6.6in]{}





 

\end{document}
