Graphics, Figures & Tables ⇒ Two sideways tables on the same page?
Two sideways tables on the same page?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: Two sideways tables on the same page?
There is an excellent article located here (go to "PDF version of paper")
http://www.tug.org/pracjourn/2007-1/mori/
Go to 3.2 Rotating Tables
I am sure that what you want to do can be done. There are probably several solutions, a few of which are in that article.
good luck!
Re: Two sideways tables on the same page?
Silje
-
- Posts: 26
- Joined: Mon Mar 09, 2009 3:19 pm
Re: Two sideways tables on the same page?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Two sideways tables on the same page?
Follow the advice of PGScooter. Start a first approach on your own. In case of upcoming questions, feel free to ask.jazzgossen wrote:Did you find a way to do this?
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 26
- Joined: Mon Mar 09, 2009 3:19 pm
Re: Two sideways tables on the same page?
Using sidewaystable, as stated above, requires a full page for each table.
I tried putting two sidewaystables in a minipage each, but then I get the error message "not in outer par mode".
If I just have a sideways environment inside the table environment (as opposed to sidewaystable), I get "Missing \endgroup inserted" after the caption.
I tried the lscape package and the landscape environment. If I put the tables inside a landscape environment, I do get two sideways tables on one page, but they are not floating. If I put the landscape environment inside the table environment, the tables aren't sideways anymore.
The only way of having floating sideways tables I could find in the article in PGScooter's post is the sidewaystable environment, but then I can only have one table on a page.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Two sideways tables on the same page?
Nobody claims that there is no room for two tables inside this environment.jazzgossen wrote:[...] Using sidewaystable, as stated above, requires a full page for each table. [...]
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{booktabs}
\usepackage{rotating}
\parindent0em
\begin{document}
\begin{sidewaystable}
\caption{Table One}\label{tab:one}
\centering
\begin{tabular}{*{4}{c}} \toprule
Table Head & Table Head & Table Head & Table Head \\ \midrule
Some Values & Some Values & Some Values & Some Values \\
Some Values & Some Values & Some Values & Some Values \\
Some Values & Some Values & Some Values & Some Values \\
Some Values & Some Values & Some Values & Some Values \\ \bottomrule
\end{tabular}
\vspace{2\baselineskip}
\caption{Table Two}\label{tab:two}
\centering
\begin{tabular}{*{4}{c}} \toprule
Table Head & Table Head & Table Head & Table Head \\ \midrule
Some Values & Some Values & Some Values & Some Values \\
Some Values & Some Values & Some Values & Some Values \\
Some Values & Some Values & Some Values & Some Values \\
Some Values & Some Values & Some Values & Some Values \\ \bottomrule
\end{tabular}
\end{sidewaystable}
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 26
- Joined: Mon Mar 09, 2009 3:19 pm
Re: Two sideways tables on the same page?
Re: Two sideways tables on the same page?
The tables are starting straight at the end of the paper, not where the margin should start.
Any ideas?
Two sideways tables on the same page?
If width of table is a problem just use:\resizebox{\textwidth}{!}{% } command:
Code: Select all
\resizebox{\textwidth}{!}{%
\begin{tabular}
table...
\end{tabular}
}
