Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
localghost
Site Moderator
Posts: 9202 Joined: Fri Feb 02, 2007 12:06 pm
Post
by localghost » Thu Jun 13, 2013 6:29 pm
cgnieder wrote: Here is an idea that works: use the floatpag package and its macro \thisfloatpagestyle
inside the sidewaystable
:[…]
Smashing! This is the stuff I've been desperately searching for. I wasn't aware of
floatpag . My approaches by
fancyhdr (
\iffloatpage
) and
titleps (
psfloats
option and
\setfloatfoot
) miserably failed.
NEW: TikZ book now 40% off at Amazon.com for a short time.
lynnlee
Posts: 50 Joined: Fri Jan 04, 2013 10:15 am
Post
by lynnlee » Fri Jun 14, 2013 6:54 am
Thanks a lot, cgnieder.
There is additional problem I find when I apply the code you suggested. Since the table I use is overfull, it occupies the full page and even bigger when use fancyhdr package,the header and footnotes of the table disappear. Any code can shrink the appearance size of the table, so that the header and the footnotes are preserved on the page? Any suggestion is appreciated.
Lynn
cgnieder
Site Moderator
Posts: 2000 Joined: Sat Apr 16, 2011 7:27 pm
Post
by cgnieder » Fri Jun 14, 2013 11:02 am
lynnlee wrote: Any code can shrink the appearance size of the table
Well, you could put the table in a box (in the TeX sense) and scale that box down, but I don't think it will look good:
Code: Select all
\documentclass[a4paper,11pt]{article}
\usepackage{blindtext}
\usepackage{fancyhdr}
\usepackage{pdflscape}
\usepackage{rotating}
\usepackage{floatpag}
\usepackage{graphicx}
\begin{document}
\blindtext
\blindtext
\blindtext
\begin{sidewaystable}
\thisfloatpagestyle{empty}%
\scalebox{.7}{\begin{tabular}{|l|l|l|l|l|}\hline
& rep78 2 & rep78 3 & rep78 4 & rep78 5 \\ \hline
headroom & 259.99458 & -366.52775 & -1375.5277 & 64.358897 \\ \hline
trunk & -1301.6058 & 53.217457 & 107.68253 & 319.25439 \\ \hline
weight & 14.888719 & 5.4869986 & 1.3003615 & 1.1344623 \\ \hline
length & 288.29056 & -80.263554 & 64.18982 & 129.15974 \\ \hline
turn & -1289.3648 & -21.576337 & -453.0486 & -85.001797 \\ \hline
cons & -27358.645 & 5133.0408 & 10552.075 & -19494.267 \\ \hline
\end{tabular}}
\end{sidewaystable}
\blindtext
\blindtext
\end{document}
Regards
localghost
Site Moderator
Posts: 9202 Joined: Fri Feb 02, 2007 12:06 pm
Post
by localghost » Fri Jun 14, 2013 5:23 pm
lynnlee wrote: […] Any code can shrink the appearance size of the table, so that the header and the footnotes are preserved on the page? […]
There are some more set screws to reduce the size of the table.
Decrease of the font size.
Reduction of the separating space between columns by modification of the length \tabcolsep
(default value 6pt
).
Rearrangement of certain cell contents.
Specific help in this regard would require that you provide the code of the concerned table.
lynnlee
Posts: 50 Joined: Fri Jan 04, 2013 10:15 am
Post
by lynnlee » Sat Jun 15, 2013 5:29 am
Thank you, cgnieder and Thorsten. Your suggested codes work perfectly.
Lynn