How can I align Caption with left of table not paper?!
And I want to stretch the table a little.
\documentclass{article}
\begin{document}
\begin{table}[h!]
\centering
\caption{Dimensions of simulated tissue containing a malignant tumor, all dimensions are in millimeters}
\label{tabdimension}
\begin{tabular}{ccccc}
\hline
X & Y & Z & D& R \\
\hline
120 & 60 & 25 & 12 &10 \\
\hline
\end{tabular}
\end{table}
\end{document}
Best Answer
Use
threeparttable
. In addition, part of the caption can go at the bottom of the table, as atablenote
. Using the rule ofbooktabs
wil add some vertical padding around the rules:If you prefer to have a two-line caption, you can set the caption width with
\captionsetup
, but can't usethreeparttable
In this case, a work around consists in adding a new row to the table, with this code: