Thursday, September 4, 2014

1 Answer 1


Remove page numbering from a long table in landscape
I am trying to remove the page numbering from a very wide and long table in landscape. When I try using \thispagestyle{empty} , this removes only the page numbering on the part of the table filling the first page only, leaving the other page numbers overlapping the table contents.
I have also tried using the package diy walk in cooler floatpag described here: Suppress diy walk in cooler page number for a single page that only contains one large table? But it makes no difference to the landscape page number position.
This diy walk in cooler is my script: \documentclass[10pt]{article} \usepackage[font=scriptsize]{caption} \usepackage{graphicx} \usepackage{pdflscape} \newcounter{z} \def\z{\stepcounter{z}[[[[[\thez]]]]]} \makeatletter \def\fudge#1#2{% \addtolength\textheight{#1}% \@colroom\textheight \vsize\textheight \@colht\textheight \def\LS@rot{% \setbox\@outputbox\vbox{\hbox{\kern-#2\rotatebox{90}{\box\@outputbox}}}}% \clearpage} \makeatother \usepackage{longtable} \usepackage{fancyhdr} \pagestyle{myheadings} \begin{document} \begin{landscape} \fudge{3cm}{1.5cm}% 3cm longer and raise by 1.5cm \advance\LTcapwidth by 360pt {\footnotesize % Switch from 12pt to 11pt; otherwise, table won't fit \setlength\LTleft{-100pt} % default: \fill \setlength\LTright{-30pt} % default: \fill \begin{longtable}{@{\extracolsep{\fill}}lllllllllllllll@{}} \caption*{ \bf{All results}} \tabularnewline \hline col_1 & col_2 & col_3 & col_4 & col_5 & col_6 & col_7 & col_8 & col_9 & col_10 diy walk in cooler & col_11 & col_12 & col_13 diy walk in cooler & col_14 & col_15\\ This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\ This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\ This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\ This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\ This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\ This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\ This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\ This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\ \hline \end{longtable}} \begin{flushleft} Results using a long and wide table \end{flushleft} \end{landscape} \end{document}
1 Answer 1
after the table, although as noted in comments this should not be needed if you switch to empty page style inside the landscape region, as it should switch back automatically at the end of the environment.
Thank you David! I just had to put this after the landscape command, and if I do that I don't even need to reset the pagestyle... This is what worked: diy walk in cooler \begin{landscape} \pagestyle{empty} –  user2337032 Oct 3 '13 at 15:43     
By posting your answer, you agree to the privacy policy and terms of service . Not the answer you're looking for? Browse diy walk in cooler other questions tagged page-numbering longtable landscape or ask your own question .
2 long table in landscape environment
Why are neutrinos more weakly interacting than light?
Increase diy walk in cooler difficulty based on score
Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications diy walk in cooler Ask Ubuntu Webmasters Game Development TeX - LaTeX Programmers Unix & Linux Ask Different (Apple) WordPress Development Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal Answers SharePoint User Experience Mathematica more (14) Photography Science Fiction & Fantasy Graphic Design Seasoned Advice (cooking) Home Improvement Personal Finance diy walk in cooler & Money Academia more (10) English Language & Usage Skeptics Mi Yodeya (Judaism) Travel Christianity Arqade (gaming) Bicycles Role-playing Games more (21) Mathematics Cross Validated (stats) Theoretical Computer Science Physics MathOverflow more (7) Stack Apps Meta Stack Exchange Area 51 Stack Overflow Careers diy walk in cooler
TeX - LaTeX Stack Exchange works best with JavaScript enabled

No comments:

Post a Comment