I can use either {sidewaystable} or {landscape} to produce a table and its caption that are landscape on a page. However, it is centered on the page. How do you move it so that it aligns with the left margin of the page?
\begin{landscape}
\begin{table}[]
\caption{Insert table caption here}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llllllllllllll}
**removed table data for posting**
\end{tabular}%
}
\end{table}
\end{landscape}
Gives
Which is centered on the page. I would like the caption and the table to be aligned to the left margin of my document.
If I use {sidewaystable} instead and add the first line of code:
\setlength\rotFPtop{152pt}
\begin{sidewaystable}
\begin{table}[]
\caption{Insert table caption here}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llllllllllllll}
**removed table data for posting**
\end{tabular}%
}
\end{sidewaystable}
Then it will shift everything to the left as desired. But I guessed 152pt. Is there a way to determine the exact pts of the page margin?
Best Answer
There is an automatic
\clearpage
at the beginning and end of landscape, so using a float (table) is fine. If you want to position the contents, you can use a minipage INSIDE the float to fit the entire text area.For some reason, showframe is acting up for me.