# Flushright or left of a long Table [duplicate]

I have a very long table that cannot be displayed on the page because it is too long and the right hand side of the table has been cutoff.

How can I modify the \begin{center} to something else so that the whole table will flushright or flushright?

\begin{widetext}
\begin{center}
\begin{table} [!h]
\begin{tabular}{|c||c|c|}
\hline
$\omega$ &  $S$  & Induced   \\[0mm]  \hline \hline
\end{tabular}
\caption{ The shorthand of ... }
\label{}
\end{table}
\end{center}
\end{widetext}


## marked as duplicate by Werner, Heiko Oberdiek, Adam Liter, cmhughes, JesseApr 28 '14 at 3:18

You can use adjustbox package and it adjustbox environment. Use max width= <width> so that the table is resized only if it exceeds that width.

\documentclass{article}
\usepackage{showframe}  %% just for demo
\begin{document}
\begin{table} [!h]
\begin{tabular}{|c||c|c|}
\hline
$\omega$ some dummy &  $S$ some dummmy text to make this long & Induced some more dummy   \\[0mm]  \hline \hline
\end{tabular}
\caption{ The shorthand of ... }
\label{}
\end{table}

\end{document}


On the other hand you can use a box.

\documentclass{article}
\usepackage{showframe}  %% just for demo
\begin{document}
\begin{table} [!h]
\makebox[\textwidth][c]{%
\begin{tabular}{|c||c|c|}
\hline
$\omega$ some dummy &  $S$ some dummmy text to make this long & Induced some more dummy   \\[0mm]  \hline \hline
\end{tabular}
}
\caption{ The shorthand of ... }
\label{}
\end{table}

\end{document}


• THis is an awesome answer, thank you! +1 – wonderich Apr 28 '14 at 2:14