[Tex/LaTex] Changing left and right margins for specific pages

margins

In my document I have couple of tables which are too wide to fit between margins – that is why my tables go beyond the text. I think that it looks quite ugly so I was wondering if it is possible to change margins only for specific pages in a document? Thanks to this my tables would be able to fit between margins and the text and tables' length would be the same

Best Answer

You're saying

Thanks to this [...] the text and tables' length would be the same

I'd say it's more important to have a consistent line length in your document. There's a reason why the standard LaTeX margins are quite wide. There's a rule of thumb that goes something like "Don't put more than 66 characters in one line" (otherwise it gets harder for readers to jump from the end of the line to the beginning of the next line).

So instead of making the margins of the entire page smaller, which yields undesirably long lines in normal paragraphs, you could just set the table a bit wider, as shown for figures in Center figure that is wider than \textwidth. Here's an adaption of Martin Scharrer's solution:

\documentclass{article}

\usepackage{lipsum}% just for filler text
\usepackage[pass,showframe]{geometry}% just to show the margin borders

\begin{document}

\begin{table}
  \makebox[\textwidth][c]{
    \begin{tabular}{p{0.6\textwidth}p{0.6\textwidth}}
      \lipsum[1] & \lipsum[1]
    \end{tabular}
    }
    \caption{Extra-wide table}
\end{table}

\lipsum[1]

\end{document}

enter image description here

Related Question