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 am using the apa6 class and want to place tables at the end of the manuscript. This works well with normal tables, and also with sidewystables. However, it does not work when a sidewaystable is combined with a threeparttable, as in the example of the apa6 class.

Here's a MWE, where the table is positioned in the text, not at the end:

\documentclass[man,a4paper]{apa6}
\usepackage[american]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{amsmath}    % for advanced math displays
\usepackage{rotating} % sidewaystable
% \DeclareDelayedFloatFlavor{sidewaystable}{table}


\title{Title}
\shorttitle{shorttitle}

\author{Batman}
\leftheader{Robin}
\affiliation{Batman Academy}
\date{February 20, 2013}


% Abstract: 250 words max, up to 5 keywords
\abstract{Abstract}
\keywords{}

\begin{document}    
\maketitle  %First line of text directly after \maketitle (no blank line)
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\begin{sidewaystable}
  \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 \\
      \midrule
    \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{sidewaystable}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


\section{Method}

\section{Results}

\section{Discussion}

\end{document}

To summarize, table + threeparttable works, sidewaystable alone works, but sidewaystable + threeparttable does not work.

The solution proposed here, gives an error:

\usepackage{rotating} % sidewaystable
\DeclareDelayedFloatFlavor{sidewaystable}{table}

Latex Error: ./Tabletest.tex:8 Undefined control sequence.
share|improve this question
1  
Welcome to TeX.SX. –  Claudio Fiandrino Oct 9 '13 at 8:11
1  
I get no error after adding the \DeclareDelayedFloatFlavor{sidewaystable}{table} declaration. What version of apa6 do you have? –  egreg Oct 9 '13 at 10:41
    
I have Document Class: apa6 2013/06/26 v2.13 APA formatting (6th edition), and endfloat package v2.5 - should be the newest. –  Felix S Oct 9 '13 at 12:06
    
With apa6.cls 2013/06/26 v2.13 APA formatting (6th edition) and endfloat.sty 2011/12/25 v2.5d LaTeX2e package puts figures and tables at end (jdm) this works fine here, too. Make sure you have v2.5d of the endfloat package, previous ones had problems in conjunction with apa6. –  Axel Sommerfeldt Oct 9 '13 at 21:28
    
Weird. I also have apa6 2013/06/26 v2.13 APA formatting (6th edition) and endfloat 2011/12/25 v2.5d LaTeX2e package, running an up-to-date MacTex TExLive system. Still, the table is printed on p. 4, before the Method header ... –  Felix S Oct 10 '13 at 11:50

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.