I want to put several tables in the same table float like this:
\documentclass[a4paper, 12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{subfig}
\begin{document}
\begin{table}
\caption{Internal exon scores}\label{tab:internal}
\begin{tabular}{|c|l|l|}
\hline
Ranking&Exon Coverage&Splice Site Support\\
\hline
E1&Complete coverage by a single transcript&Both splice sites\\
E2&Complete coverage by more than a single transcript&Both splice sites\\
E3&Partial coverage&Both splice sites\\
E4&Partial coverage&One splice site\\
E5&Complete or partial coverage&No splice sites\\
E6&No coverage&No splice sites\\
\hline
\end{tabular}
\caption{External exon scores}\label{tab:external}
\begin{tabular}{|c|l|l|}
\hline
Ranking&Exon Coverage&Internal Splice Site Coverage\\
\hline
X1&Complete coverage by one or more transcripts&Splice site covered\\
X2&Exon coverage >= 80\%&Splice site covered\\
X3&Exon coverage < 80\%&Splice site covered\\
X4&Exon coverage < 80\%&Splice site not covered\\
X5&No coverage&Splice site not covered\\
\hline
\end{tabular}
\end{table}
\end{document}
When I build the document, table 2's caption is closer to the bottom of table 1, which makes things confusing. hspace{}
doesn't seem to work in the table environment. I've worked out that the subfloat
package appears to be causing the spacing behaviour of the captions. Is there anything else that I can do to introduce a blank horizontal break to space out the captions?
article
document class. Perhaps you could turn your code into a complete compilable file, a so-called minimal working example (MWE) that shows the behaviour?\vspace
between thetabular
environements, or something like\medskip
or\bigskip
.