With the current version of my codes, the table looks a bit off.
\documentclass{article}
\usepackage{longtable}
\title{A longtable example}
\begin{document}
\begin{center}
\begin{longtable}[H]{|p{2.5cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|}
\caption{WITS and ASUS Type of Treatment by Offender Type}
\label{test_table} \\ \hline
&\multicolumn{3}{c|}{\textbf{WITS}}&\multicolumn{3}{c|}{\textbf{ASUS}}\\ \hline
\textbf{Treatment \textbackslash{} Offender Type} & \textbf{Probationer} & \textbf{Parolees} &\textbf{Maximum-term Released Prisoners} & \textbf{Probationer} & \textbf{Parolees} &\textbf{Maximum-term Released Prisoners} \\ \hline
Outpatient& & & & & & \\ \hline
Intensive Outpatient& & & & & &\\ \hline
Day Treatment& & & & & & \\ \hline
Partial Hospitalization& & & & & &\\ \hline
Short Term Residential& & & & & &\\ \hline
Inpatient& & & & & &\\ \hline
Long Term Residential& & & & & &\\ \hline
Therapeutic Community& & & & & &\\ \hline
\end{longtable}
\end{center}
\end{document}
See here for the output:
Any suggestions how I can format it and make it more presentable? I have been trying adjusting the widths of the table but to no avail.
EDIT: I tried something like this:
> %\documentclass{article}
> %\usepackage{longtable}
>
> %\title{A longtable example}
>
> %\begin{document}
>
> %\begin{center}
> \begin{longtable}[H]{|p{2.5cm}|p{1.2cm}|p{1.2cm}|p{1.5cm}|p{1.2cm}|p{1.2cm}|p{1.5cm}|}
> \caption{WITS and ASUS Type of Treatment by Offender Type}
> \label{ASUS-WITS_treatment_table2} \\ \hline
> &\multicolumn{3}{c|}{\textbf{WITS}}&\multicolumn{3}{c|}{\textbf{ASUS}}\\
> \hline \textbf{Treatment \textbackslash{} Offender Type} &
> \textbf{Prob.} & \textbf{Parol.} &\textbf{Max-term Rel. Pris.} &
> \textbf{Prob.} & \textbf{Parol.} &\textbf{Max-term Rel. Pris.} \\
> \hline Outpatient& & & & & & \\ \hline Intensive Outpatient& &
> & & & &\\ \hline Day Treatment& & & & & & \\ \hline Partial
> Hospitalization& & & & & &\\ \hline Short Term Residential& &
> & & & &\\ \hline Inpatient& & & & & &\\ \hline Long Term
> Residential& & & & & &\\ \hline Therapeutic Community& & & &
> & &\\ \hline \multicolumn{7}{@{}p{\textwidth}@{}}{Prob. =
> Probationer; Parol. = Parolees; Max.-term Rel. Pris. = Maximum-term
> Released Prisoners}\\ \end{longtable} %\end{center}
>
> %\end{document}
[H]
option and should never be incenter
center
has no affect on the table just introduces spurious vertical space (not visisble here as theer is nothing other than the table)