\documentclass[a4paper,12pt]{article}

\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}

\usepackage{amsmath}
\usepackage{color}

\setlength{\parskip}{3mm}
\setlength{\parindent}{0sp}
\usepackage{setspace}
\setstretch{1.2}

\setlength{\fboxsep}{3mm}

\definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}

\begin{document}

\tableofcontents

\section{Boxes}

\subsection{Frameless Boxes}

blabla \mbox{test} blabla

blabla \makebox{test} blabla

blabla \makebox[3cm]{test} blabla

blabla \makebox[3cm][l]{test} blabla

\begin{figure}[ht]
  \centering
  \setlength{\unitlength}{.2in}

\begin{picture}(8,6)
\put(0,0){\makebox(0,0)[tr]{AAA}}
\put(8,0){\makebox(0,0){BBB}}
\put(1,0){\line(1,0){6}}   
\end{picture}

\end{figure}

\raisebox {8.5mm}{test}\raisebox {-6.5mm}{tset}

\subsection{Framed Boxes}

blabla \fbox{test} blabla

blabla \framebox[3cm]{test} blabla

blabla \framebox[3cm][l]{test} blabla

Dies ist ein Beispieltext. %
\framebox{%
\begin{minipage}[c][1\totalheight][s]{0.2\columnwidth}%
 \begin{center}
  Der Boxinhalt
 \par\end{center}

 \begin{center}
  ist über die
 \par\end{center}

 \begin{center}
  Boxhöhe
 \par\end{center}

 \begin{center}
  gleichmäßig verteilt.
 \par\end{center}%
\end{minipage}}
Dies ist ein Beispieltext.

$\boxed{\int A=B}$

\section{Colors}

\subsection{Predefined Colors}

test \textcolor{blue}{blue} test \textcolor{red}{red red red} test \textcolor{green}{bla}\textcolor{magenta}{blub}
test
\textcolor{green}{c}%
\textcolor{red}{o}%
\textcolor{blue}{l}%
\textcolor{green}{o}%
\textcolor{red}{r}

\subsection{Custom Colors}

test \textcolor{darkgreen}{dark green} test

\definecolor{violet}{rgb}{0.5, 0, 1}

test \textcolor{violet}{violet} test

\end{document}
