如何使用 apa6 文档类创建横向表格?环境landscape
似乎被忽略了;表格仍然直立。我猜问题是表格和图形会自动移动到文档末尾。有没有办法制作横向表格?
\documentclass[man]{apa6}
\usepackage[american]{babel}
\usepackage[utf8]{inputenc}
\usepackage{pdflscape} %landscape pages
\shorttitle{foo}
\begin{document}
Some text
\begin{landscape}
\begin{table}[tp]
\captionbox{Some table}
{\begin{tabular}{cc}\toprule
\textbf{foo} & \textbf{bar} \\ \midrule
foobar & 1 \\
foobaz & 2 \\ \bottomrule
\end{tabular}}
\end{table}
\end{landscape}
\end{document}
答案1
旋转包装sidewaystable
环境似乎与此类兼容。
\documentclass[man]{apa6}
\usepackage[american]{babel}
\usepackage[utf8]{inputenc}
\usepackage{pdflscape} %landscape pages
\usepackage{rotating}
\shorttitle{foo}
\begin{document}
Some text
\begin{sidewaystable}[tp]
\captionbox{Some table}
{\begin{tabular}{cc}\toprule
\textbf{foo} & \textbf{bar} \\ \midrule
foobar & 1 \\
foobaz & 2 \\ \bottomrule
\end{tabular}}
\end{sidewaystable}
\end{document}