apa6:Sidewaystable 与 threeparttable 结合,endfloat 问题

apa6:Sidewaystable 与 threeparttable 结合,endfloat 问题

我正在使用该类apa6,并希望将表格放在手稿的末尾。这适用于普通表格,也适用于侧边表格。但是,当侧边表格与三部分表格组合时,它不起作用,就像apa6 类的示例

这是一个 MWE,其中表格位于文本中,而不是末尾:

\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}

总而言之,table+threeparttable可以工作,sidewaystable单独使用时则不能工作,但sidewaystable+threeparttable则不起作用。

提出的解决方案这里,出现错误:

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

Latex Error: ./Tabletest.tex:8 Undefined control sequence.

相关内容