[OS X TeX] Center a "tabbing" environment

Herb Schulz herbs at wideopenwest.com
Thu Apr 14 18:18:23 CEST 2005


On 4/14/05 11:03 AM, "Gary L. Gray" <gray at engr.psu.edu> wrote:

> 
> On Apr 14, 2005, at 12:01 PM, Herb Schulz wrote:
> 
>> 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}
> 
> I like this solution! Putting it in a box of zero size is a good idea.
> 
> -- Gary
> 

Howdy,

The strange thing is that it didn't seem to make any difference in
positioning---at least with the example given---when I changed the \parbox
width in the range 0cm--10cm!? I settled on 0cm to try to guarantee
centering of the display. Will this always work?

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 macostex-archives mailing list