I am trying to add without success a \caption to the following table, which is included in a \makebox in order to appear in the center and overpassing both margins.
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}%para monedas
\usepackage[spanish]{babel}
\usepackage[table]{xcolor}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\noindent\makebox[\textwidth]{
\begin{tabularx}{1.2\linewidth}{lrrrrrr}%\caption{Here comes the caption}
\addlinespace
\toprule
{\bf P\&L S1} & \multicolumn{ 2}{c}{{\bf Comp1}} & \multicolumn{ 2}{c}{{\bf Comp2}} & \multicolumn{ 2}{c}{{\bf Total}} \\
\midrule
{\bf } & {\bf £} & {\bf \%} & {\bf £} & {\bf \%} & {\bf £} & {\bf \%} \\
{\bf Sales} & {\bf 794.249} & {\bf 100,0\%} & {\bf 557.588} & {\bf 100,0\%} & {\bf 1.351.837} & {\bf 100,0\%} \\
Purchases & 495.198 & 62,3\% & 370.387 & 66,4\% & 865.585 & 64,0\% \\
{\bf Gross Profit} & {\bf 299.051} & {\bf 37,7\%} & {\bf 187.201} & {\bf 33,6\%} & {\bf 486.252} & {\bf 36,0\%} \\
\bottomrule
\end{tabularx}}
\end{document}