[OS X TeX] Re : Stupid question about the tabular environment

Herbert Schulz herbs at wideopenwest.com
Sat Jan 17 21:04:14 CET 2009


On Jan 17, 2009, at 1:39 PM, Josep Maria Font wrote:

> El 17/01/2009, a las 20:12, Herbert Schulz escribió:
>
>> On Jan 17, 2009, at 11:58 AM, philippe grandjean wrote:
>>
>>> With \begin{center} at the beginning and \end{center} at the en on  
>>> my mac i
>>> have a table perfectly balanced
>
>> Howdy,
>>
>> Not here! If the table width is <=\textwidth it will be ok but with  
>> a table width >\textwidth it will start at the left margin and only  
>> stick out into the right margin.
>
>
> Strange. It works well here (with *both* the \begin{center} ...  
> \end{center} and the tabular inside a \makebox[c].
>
> Anyway, I presume the definitive trick is to make LaTeX think the  
> table has width zero, and center its contents in a zero-width box:
>
> \begin{center}
> \makebox[0pt][c]{put your tabular here}
> \end{center}
>
>
> JMaF
>

Howdy,

I thought you meant using the center environment and NOT the \makebox.

The center environment will do the job since it takes away the initial  
indent but it also adds extra space above and below the box which may  
be ok and what you want.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the macostex-archives mailing list