I'd like to group two tables, one below the other, so they don't show separated ie. one in each page. What's the best way to achieve that? I've read about positioning them side by side, but not this.
Probably, I could create a custom float with \usepackage{float}
, but I bet there is a simpler way (other than playing around with [htpb]).
Best Answer
Any number of tables can go in a single
table
environment, along with their captions, so long as they fit in a page.The entries in the list of tables are generated by the
\caption
command, so there will be two entries even if two tables are in the sametable
environment.However, there will be a problem when the
caption
package is loaded together withhyperref
, because the link in the list of tables or the ones made by\ref
might bring to the first of the two tables. Thehypcap
package fixes it.Here's an example.