\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\pagestyle{headings}
\usepackage{listings}
\lstset{language={[LaTeX]TeX},basicstyle=\ttfamily\footnotesize,breaklines=true,%
    numbers=left,numberstyle=\tiny}
\usepackage{arydshln}

\begin{document}
\title{Dashed Lines in Tables}
\author{Herbert Voß}
\date{12. June 2001}

\maketitle
With the package \texttt{arydshln} you can create dashed horizontal
and vertical lines. If you want to have all lines dashed for all tables
in the whole document, write in latex preamble:

\begin{verbatim}
\usepackage{arydshln}
\end{verbatim}
On the other hand you can define single dashed lines for every table
like the following one:\\


\begin{center}
\begin{tabular}{|c:p{5cm}:r|ll}\hline 
a & a column with a with of 5cm and left laligned & text\\\hdashline 
\texttt{\small }b & \texttt{\small main} muss & text\\\cdashline{2-3} 
\texttt{\small c}  & \texttt{\small main} ist eine & text right aligned\\\cdashline{1-2} 
\texttt{\small }d & main hat keinen & texttext\\\cdashline{3-3} 
\texttt{\small e} & Array der Klasse & text\\\hline
\end{tabular}
\end{center}

\begin{lstlisting}
\begin{tabular}{|c:p{5cm}:r|ll}\hline 
a & a column with a with of 5cm and left laligned & text\\\hdashline 
\texttt{\small }b & \texttt{\small main} muss & text\\\cdashline{2-3} 
\texttt{\small c}  & \texttt{\small main} ist eine & text right aligned\\\cdashline{1-2} 
\texttt{\small }d & main hat keinen & texttext\\\cdashline{3-3} 
\texttt{\small e} & Array der Klasse & text\\\hline
\end{tabular}
\end{lstlisting}

\end{document}
