I currently have two tables made with the tabularx package, side by side. I put them side by side using the subfloat command of the subfig package (as suggested here), that allows me to write a title (and to reference) each table separately as 1.1a and 1.1b.
My problem is the following: in these tables there are some values that have to share a common footnote. When I try to use the \footnote{text} command the number of the footnote appears, but the text does not.
How can I solve this? If possible, I would like the text to appear at the bottom of the table, but it's not so terrible if it appears at the bottom of the page.
Thank you very much in advance. I add a MWE, in which the numbers with asterisk should have the footnote I mentioned.
\documentclass[letterpaper]{article}
\usepackage{subfig}
\usepackage{tabularx, booktabs}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\begin{document}
\begin{table}[ht]
\centering
\caption{Title of the two-table-environment.}
\label{table:environment}
\subfloat[Title of the first table]{
\label{table:first_table}
\begin{tabularx}{0.5\textwidth}{lc*{2}{Y}}
\toprule
& \multicolumn{2}{>{\setlength\hsize{2\hsize}}Y}{Text too long spanning two columns yay!}\\ \cmidrule(l){2-3}
Column 1 & Metric 1 & Metric 2 \\ \midrule
Context 1 & $100*$ & $0.5336$\\
Context 2 & $100$ & $0.2109$\\
Context 3 & $100*$ & $0.3897$\\
Context 4 & $100*$ & $-0.1376$\\
Context 5 & $100*$ & $-0.7640$\\
Context 6 & $100$ & $-0.0792$\\
Context 7 & $100*$ & $-11.4119$\\
\bottomrule
\end{tabularx}
}
\subfloat[Title of the second table]{
\label{table:second_table}
\begin{tabularx}{0.5\textwidth}{lc*{2}{Y}}
\toprule
& \multicolumn{2}{>{\setlength\hsize{2\hsize}}Y}{Text too long spanning two columns hooray!}\\ \cmidrule(l){2-3}
Column 1 & Metric 1 & Metric 2 \\ \midrule
Context 1 & $40.7359$ & $53.7044$\\
Context 2 & -- & -- \\
Context 3 & $46.6164$ & $16.2185$\\
Context 4 & -- & -- \\
Context 5 & $28.4038$ & $70.5398$\\
Context 6 & $57.4703$ & $59.2224$\\
Context 7 & -- & -- \\
\bottomrule
\end{tabularx}
}
\end{table}
\end{document}

;-)In this case you should vote to close the question as duplicate. – Arash Esbati Jan 04 '17 at 15:26%at the end of lines. How can I know, in a general table, where those spaces are located? I've just applied the%in just one table, compiled, and I can't see a difference.Edit: I zoomed and now I can see the spaces, nevermind.
– Ignacio Correa Jan 05 '17 at 18:46