Graphics, Figures & Tables ⇒ Two Tables Side by Side with individual Labels
Two Tables Side by Side with individual Labels
Does anyone know how to put two tables side by side but with individual labels that will work with hyperref?
Thank you so much!
Hugo Sardinha
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Two Tables Side by Side with individual Labels
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[tableposition=top]{caption}
\begin{document}
\begin{table}[!htb]
\captionbox{First table}{%
Code for table
}
\captionbox{Second table}{%
Code for table
}
\end{table}
\end{document}
\subcaptionbox
command from the subcaption package (which is shipped with caption), which is documented in its manual.There would be an alternative solution with two
{minipage}
environments which each contain a {tabular}
environment embedded into the same {table}
environment.Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10