[OS X TeX] Center a "tabbing" environment

Herb Schulz herbs at wideopenwest.com
Thu Apr 14 12:01:54 EDT 2005


On 4/14/05 10:40 AM, "ITS Mail" <mail at its.org.uk> wrote:

> Hello fellow latexeros,
> 
> How do you center a "tabbing" environment????
> 
> This sounds very basic, but I have not been able to find an answer
> anywhere (TLC; Google; NotSoShort; CUED LaTeX page, et coetera).
> 
> I have tried
> 
> \begin{center}
> \begin{tabbing}
> aa\=aa\kill
> a\>b\\
> \end{tabbing}
> \end{center}
> 
> and I have tried this
> 
> {\centering
> \begin{tabbing}
> aa\=aa\kill
> a\>b\\
> \end{tabbing}}
> 
> and a couple of other things that do not even run.
> 
> Pray tell me, what is the way to do this simple task???
> 
> Much obliged
> 
> Juan Acevedo

Howdy,

It doesn't make sense to do this alone since tabs are measured from the left
hand side of text line. However, placing the environment inside a
\parbox{0pt} seems to work fine. At least with your example.

\begin{center}
\parbox{0cm}{\begin{tabbing}
aa\=aa\kill
a\>b\\
\end{tabbing}}
\end{center}


Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list