3

As you see in the red part of the picture, I would like to add keys to explain what the brackets stand for. I just added this with paint, but is there a way to do this in tex? Also, are there nicer semantics for explaining such keys, e.g. using a : or spelling brackets as brackets?

enter image description here

\begin{table}[!ht]
 \centering
\setlength{\tabcolsep}{3pt}
    \begin{tabular}{ | l | c c |}
  \hline
 & Column1 & Column2 \\ \hline
    X   & A (B)     & F                 \\ 
        y           & C     & F [D]     \\ \hline
        \end{tabular}
            \caption{Some table}
        \label{tab:table}
\end{table}

1 Answers1

5

While there are other possibilities (like adding a footnote using threeparttable etc), here is a simple way using an extra row:

\documentclass{article}
\begin{document}
  \begin{table}[!ht]
 \centering
\setlength{\tabcolsep}{3pt}
 \begin{tabular}{ | l | c c |}      \hline
        & Column1 & Column2 \\ \hline
    X   & A (B)   & F                 \\
            y     & C     & F [D]     \\ \hline
    \multicolumn{3}{@{}p{1.5in}}{\footnotesize (\,) $=$ special case}\\
    \multicolumn{3}{@{}p{1.5in}}{\footnotesize [\,] $=$ other special case}    
  \end{tabular}
  \caption{Some table}
  \label{tab:table}
\end{table}
\end{document}

enter image description here