\documentclass{article}
\newenvironment{mytabbing}{%
\begin{minipage}[t]{3in}
\begin{tabbing}
\hspace*{2cm}\= \hspace*{2cm}\= \hspace*{2cm}\= \hspace*{2cm} \kill
TAB-1 \> TAB-2 \> TAB-3 \> TAB-4\\
}%
{\end{tabbing}\end{minipage}}%
\begin{document}
\begin{mytabbing}
Test1 \> Test2 \> Test3 \>Test4
\end{mytabbing}
\end{document}
If I want colored background for the column names (TAB-1 ...
), do I have to work in some tabular (tabularx
, etc.) environment, and I have no other option? Something like:
tabularx
andcolortbl
packages, instead oftabbing