Hi All,
Another query... my Appendices have a lot of tables, and a friend suggested that I put them on \minipage environments. But some of the tables are too wide, and I want to turn them landscape, but can't seem to get it to work when I use \sidewaystable (I get the error not in outer par mode).
Can anyone help?
Thanks a million,
Kal26
Here's the code:
\begin{minipage}{\linewidth}
\centering
\tabcaption[ANOVA Summary Table for SF-MPQ TPS]{ANOVA Summary Table for Total Pain Scores according to Time of Testing (ToT), Day of Testing and Group Distribution on the Short-Form McGill Pain Questionnaire}
\begin{footnotesize}\begin{tabular}{lllllll}
\hline \hline
Dependent Variable & Source & Sum of Squares & df & Mean Squares & F & p \\
\hline
Total Pain Score & Group & 1600.79 & 4 & 400.20 & .955 & .438 \\
& Error & 28497.89 & 68 & 419.09 & & \\
\hline
& Day & 1960.97 & 2 & 980.49 & 13.133 & .000* \\
& Day x Group & 855.55 & 8 & 106.94 & 1.432 & .188 \\
& Error & 10153.71 & 136 & 74.66 & & \\
\hline
Total Pain Score & ToT & 3547.74 & 1 & 3547.74 & 116.615 & .000* \\
& ToT x Group & 162.00 & 4 & 40.50 & 1.331 & .267 \\
& Error & 2068.74 & 68 & 30.42 & & \\
\hline
Total Pain Score & Day x ToT & 26.20 & 2 & 13.10 & .559 & .573 \\
& Day x Tot x Group & 290.75 & 8 & 36.34 & 1.552 & .145 \\
& Error & 3184.48 & 136 & 23.42 & & \\
\hline \hline
\end{tabular}\end{footnotesize}
\label{tab:mpqtpsrm}
\end{minipage}
General ⇒ Sidewaystable in minipage
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Sidewaystable in minipage
You should get used to providing a minimal working example (MWE) in such cases. I don't know where the \tabcaption command comes from so I'm not able to build a MWE of my own (moreover I'm not willing to build one).
Using the sidewaystable environment from rotating will place the table on a separate page with turning the caption into the according direction.
This environment is not allowed in a minipage environment, which is not necessary here. But you can try the sideways environment. Take a look at the documentation of rotating or the document "Using Imported Graphics in LaTeX and pdfLaTeX".
Best regards
Thorsten¹
Using the sidewaystable environment from rotating will place the table on a separate page with turning the caption into the according direction.
Code: Select all
\begin{sidewaystable}
\centering
\caption[ANOVA Summary Table for SF-MPQ TPS]{ANOVA Summary Table for Total Pain Scores according to Time of Testing (ToT), Day of Testing and Group Distribution on the Short-Form McGill Pain Questionnaire}\label{tab:mpqtpsrm}
\footnotesize
\begin{tabular}{lllllll}
...
\end{tabular}
\normalsize
\end{sidewaystable}
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10