3

This question already has an answer here:

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}

marked as duplicate by Masroor, Jesse, Peter Jansson, Svend Tveskæg, jub0bs Jan 17 '14 at 11:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Perhaps I fail to see the difficulty in the possible solutions. What is wrong with adding a (multi column) extra row and putting the explanations (legends) there? Also see this question. – Masroor Jan 17 '14 at 9:52
  • Nothing, I just wasn't using the correct search terms and I'm quite new to tex. – Franz Kafka Jan 17 '14 at 10:14
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

Not the answer you're looking for? Browse other questions tagged or ask your own question.