Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using the latex package apa6e because the apa package isn't using APA style version 6 yet.

Now I'm trying to add a table with notes right underneath it, like in this table for instance:

Example Table

Since the \caption{} is used as a title above the table, I have to add an extra row for the notes that goes over the whole table width. The problem is that the notes won't fit into one line so I need multi-line cell. How can I accomplish that? Or am I doing it totally wrong and there is a much easier way? I guess footnotes don't work here.

\documentclass{apa6e}

\begin{document}
\shorttitle{}
\begin{table}
\caption{title}
\begin{tabular}{cc}
foo & bar\    \hline
\multicolumn{2}{l}{Notes. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lacus orci, porttitor et posuere sit amet, tempor non justo. Ut quis aliquet turpis. Ut dictum nulla eget purus elementum a lacinia libero varius. Donec malesuada nulla ut odio rhoncus convallis. Aenean faucibus sollicitudin sapien, a vestibulum ante rhoncus sit amet. In vitae mi justo. In arcu metus, porta et lacinia ut, ultricies sed eros.}
\end{tabular}

\end{table}
\end{document}

Thank you for your help!

share|improve this question
    
Welcome to tex.sx! I included the linked image for you. Until you get 10rep points you can't include images by yourself. If you want to edit your question until that just remove the ! before the image code, otherwise you wont be able to save your edits. –  Martin Scharrer Mar 4 '11 at 19:50
2  
You could simply use a p cell to get the content wrapped, such as \multicolumn{2}{p{.8\textwidth}}{Notes. Lorem ipsum ...}. –  Stefan Kottwitz Mar 4 '11 at 19:57
1  
Your sample document doesn't compile properly. I added a \shorttitle command to make it do so. –  Alan Munn Mar 4 '11 at 19:58
2  
For this particular use (i.e. a general note) the comments above are adequate. For proper footnotes in tables you should probably use the threeparttable package. You should also probably be using the booktabs package. See this answer to this question: Formatting table –  Alan Munn Mar 4 '11 at 20:09
    
Thank you for your help! I'll have a look at the booktabs package. –  user3979 Mar 4 '11 at 20:26
add comment

2 Answers 2

As a demonstration, here is an implementation using threeparttable:

\documentclass{article}
\usepackage{booktabs,caption,fixltx2e}
\usepackage[flushleft]{threeparttable}
\begin{document}

\begin{table}
  \begin{threeparttable}
    \caption{Sample ANOVA table}
     \begin{tabular}{lllll}
        \toprule
        Stubhead & \( df \) & \( f \) & \( \eta \) & \( p \) \\
        \midrule
                 &     \multicolumn{4}{c}{Spanning text}     \\
        Row 1    & 1        & 0.67    & 0.55       & 0.41    \\
        Row 2    & 2        & 0.02    & 0.01       & 0.39    \\
        Row 3    & 3        & 0.15    & 0.33       & 0.34    \\
        Row 4    & 4        & 1.00    & 0.76       & 0.54    \\
        \bottomrule
     \end{tabular}
    \begin{tablenotes}
      \small
      \item This is where authors provide additional information about
      the data, including whatever notes are needed.
    \end{tablenotes}
  \end{threeparttable}
\end{table}

\end{document}

Example of threeparttable LaTeX package

share|improve this answer
    
Thanks to your nice answer and for pointing me to booktabgs. Could you/anyone help me on how to get \midrule s that do not span the whole table (like \cline)? –  Henrik Aug 9 '11 at 14:07
1  
I found the solution on my own. It is using \cmidrule{a-b} where aand b are the number of rows spanned (to span a single row use e.g., \cmidrule{1-1}. –  Henrik Aug 9 '11 at 14:11
    
How do we center the table when we use the threeparttable command? –  user15423 Jun 8 '12 at 5:36
    
@Miaou, Welcome to Tx.sx! Could you ask it as a separate question, please? –  Abhimanyu Arora Jun 8 '12 at 6:18
add comment

You could just add a \multicolumn{<ncols>}{|p{<width>}|} for the last row.

share|improve this answer
    
But how do you know what width to put there? That's an important detail that this answer lacks. –  Rob Kennedy May 30 at 21:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.