Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Balancing figure that is wider than document's width

I have a table which is just too wide for the page.

I'd like to be able to float it, centered across the text, but with the float "ignoring" the borders --- i.e. that if it gets wider than the margins it still sits centrally respecting the surrounding text.

Note that compiling the following example leaves everything where it ought to be, except that the tabular is ragged-left, jutting out over the right margin. A good solution would only move the tabular, preserving the caption and all vertical-spacing.

\documentclass[12pt,draft]{article}

\begin{document}

    Blah blah blah blah, said the author, Bob Loblaw on the Bob Loblaw Law Blog. 
    Indeed, that's some bum, Samson, said Sesame Steve, spiritual starter of Sesame Street and sometime successor of some stuff.

    \begin{table}[h]
        \centering
        \begin{tabular}{lllllllllllllll}
        A very  & very  & very  & very  & very  & very  & very  & very  & very  & very  & very wide table.
        \end{tabular}
        \caption{Centered, just-so.}
    \end{table}

    \par

    More text, textifyingly textual in its texterity, contextualises the context with respect left intact.

\end{document}
share|improve this question

marked as duplicate by Martin Scharrer Jun 25 '11 at 17:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I think this is basically the same as tex.stackexchange.com/questions/2319/…, except for the presence of the float. –  Caramdir Jun 14 '11 at 16:54
    
@Caramdir: I agree, but even the former question wasn't tagged with {horizontal-alignment} (that is, until a few seconds ago). –  lockstep Jun 14 '11 at 16:56
add comment

2 Answers 2

up vote 2 down vote accepted

You can put the tabular inside a \makebox command:

\makebox[\linewidth]{\begin{tabular}{lllllllllllllll}
A very  & very  & very  & very  & very  & very  & very  & very  & very  & very  & very wide table.
\end{tabular}}
share|improve this answer
add comment

I find that the easiest solution in such cases (provided is a one off) is to just introduce a negative \hskip to suit.

\documentclass{book}
\begin{document}
 Blah blah blah blah, said the author, Bob Loblaw on the Bob Loblaw Law Blog. 
 Indeed, that's some bum, Samson, said Sesame Steve, spiritual starter of Sesame Street and sometime successor of some stuff.
 \begin{table}[h]
   \hskip-25pt \begin{tabular}{lllllllllllllll}
       A very  & very  & very  & very  & very  & very  & very  & very  & very  & very  & very wide table.
        \end{tabular}
    \caption{Centered, just-so.}
\end{table}

\par

    More text, textifyingly textual in its texterity, contextualises the context with respect left intact.

\end{document}
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.