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 tried to use a normal table together with a sidewaystable in an apa6 class document. Following the APA guidelines, the table order should equal the order of appearance. However, if the normal table is positioned before the sidewaystable in the document, the table order is reversed in the output and the sidewaystable is placed before the normal table.

Here is my example code:

\documentclass[man]{apa6}
\usepackage[american]{babel}
\usepackage[utf8]{inputenc}
\usepackage{rotating} % sidewaystable

\shorttitle{foo}

\begin{document}

Table \ref{tab:one} and \ref{tab:two}.

\begin{table}
\noindent
\captionbox{A small table.\label{tab:one}}{%
\begin{tabular}{ccc}\toprule
a & b & c \\ \midrule
1 & 2 & 3\\
\bottomrule
\end{tabular}
}
\end{table}

\begin{sidewaystable}
\noindent
\captionbox{One large table.\label{tab:two}}{%
\begin{tabular}{ccccc}\toprule
\textbf{a} & \textbf{b} & \textbf{c} & \textbf{d} & \textbf{e} \\ \midrule
1 & 2 & 3 & 4 & 5\\
\bottomrule
\end{tabular}
}
\end{sidewaystable}

\end{document}

The text in the resulting document is Table 2 and 1. and not Table 1 and 2..

I'm using the latest TeX Live packages.

share|improve this question
1  
apa class in man mode takes normal floats out of the main document flow (into a .ttt file) and re-inserts them at the end, and they get numbered when they are re-included at that point. sideways tables are apparently not supported and stay in the main document area as in normal latex. You may be better using a normal table but just rotating the inner tabular with \rotatebox –  David Carlisle Oct 31 '12 at 13:19
    
Thanks for your help. This works nicely and does not require sidewaystables. If you add your solution as an answer, I will accept it. –  deboerk Oct 31 '12 at 14:55
    
I added an answer (so you can give me a point or two if you wish:-) But it looks to me like @Ulrike knows what she is talking about and you should accept hers. –  David Carlisle Oct 31 '12 at 16:16
    
Both approaches work fine. I just wanted to mark which solution I prefer. –  deboerk Oct 31 '12 at 19:20
    
OK thanks for the green tick:-) –  David Carlisle Oct 31 '12 at 19:22

2 Answers 2

up vote 9 down vote accepted

apa6 uses the endfloat package to move the floats to the end of the document. But endfloat doesn't handle sidewaystable by default.

You can either use the option floatsintext to keep the table in the text:

\documentclass[man,floatsintext]{apa6}

Or you can use the commands of endfloat to add sidewaystable to the floats it manages:

\usepackage{rotating} % sidewaystable
\DeclareDelayedFloatFlavor{sidewaystable}{table}
\DeclareDelayedFloatFlavor{sidewaysfigure}{figure}
share|improve this answer
    
Thanks for your help! –  deboerk Oct 31 '12 at 14:55
    
+1 for stealing my tick (over a year later:-) –  David Carlisle Jan 14 at 15:29

apa class in man mode takes normal floats out of the main document flow (into a .ttt file) and re-inserts them at the end, and they get numbered when they are re-included at that point. sideways tables are apparently not supported and stay in the main document area as in normal latex. You may be better using a normal table but just rotating the inner tabular with \rotatebox

share|improve this answer

Your Answer

 
discard

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

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