You need to wrap the tabularx
environment into a minipage
environment which a larger \textwidth
then center or lap that minipage
. The simplest way is to use the adjustbox
package for that:
\documentclass{article}
\usepackage{array}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{adjustbox}
\usepackage{lipsum}% only for example text
\begin{document}
\lipsum
\begin{table}[ht]
\caption{Caption}\label{Lable}
\begin{adjustbox}{minipage=18cm, center}
\begin{tabularx}{\textwidth}{@{} llll @{}}
\toprule
& \textbf{Col 1} & \textbf{Col 2} & \textbf{Col3} \\
\midrule
A & 1 & 2 & 3 \\
B & 4 & 5 & 6 \\
C & 7 & 8 & 9 \\
\bottomrule
& 10 & 11 & 12
\end{tabularx}
\end{adjustbox}
\end{table}
\lipsum
\end{document}
Note that I changed the column-characters from L
to l
as I didn't had the L
definition handy.
Note: If you just want to add some pt
value to the current textwidth use e.g minipage=\textwidth+20pt,center
. This adds 10pt on the left and right.
If you want the table to go 10pt into the right margin only use minipage=\textwidth+10pt,left
.
If you want the table to go 10pt into the left margin only use minipage=\textwidth+10pt,right
.
