Graphics, Figures & TablesSidewaystable: need to remove page header

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Eenzc
Posts: 48
Joined: Thu Jun 26, 2008 2:38 pm

Sidewaystable: need to remove page header

Post by Eenzc »

Hello,

I have a long table that crosses my header. I would therefore like to remove the header on this page but \pagestyle{empty} doesn't work.

Code: Select all


\documentclass[a4paper,oneside,11pt,titlepage]{book}

\usepackage{verbatim} % for the inclusion of multi-line comments
\usepackage{sistyle}

%%%% Math Packages 
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amssymb}

%%%% Chemistry Specific
\usepackage{sistyle} % includes SI style sheets
\usepackage[version=3]{mhchem}


%%%% Graphics packages
\usepackage{graphicx}
\usepackage[bf,normalsize]{subfigure}
\usepackage{epstopdf}
%\usepackage{tabularx,colortbl}
\usepackage{color}
\usepackage{colortbl}

%\usepackage{epsfig}



%%%% Citations and Reference packages


\usepackage[colorlinks=true,linkcolor=blue,citecolor=green]{hyperref}
\usepackage[numbers,sort&compress]{natbib}
%\usepackage{hypernat}
\usepackage{chapterbib}


%%%% Others
\usepackage[left=4cm,right=2.5cm,bottom=2.5cm,top=2.5cm]{geometry}
\usepackage[margin=10pt,font=small,labelfont=bf, justification=centering]{caption}
\usepackage{float}
\usepackage{fancyhdr}
\usepackage{array}
\usepackage{verbatim}		% Needed for the "comment" environment to make LaTeX comments
\usepackage{array}
\usepackage{palatino}
\usepackage{longtable}
\usepackage{threeparttable}
\usepackage{tabularx}
\usepackage{verbatim} 
\usepackage{rotating} % For \begin{sidewaystable}


\begin{document}

\mainmatter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%FANCY HEADER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}                       % Sets fancy header and footer
\fancyfoot{}                            % Delete current footer settings
\renewcommand{\chaptermark}[1]{         % Lower Case Chapter marker style
\markboth{\chaptername\ \thechapter.\ #1}{}} %
\renewcommand{\sectionmark}[1]{        % Lower case Section marker style
\markright{\thesection.\ #1}}         %
\fancyhead[R]{\bfseries\thepage}    % Page number (boldface) in left
\fancyhead[L]{\bfseries\rightmark}     % Section in the left on odd pages
\renewcommand{\headrulewidth}{0.5pt}    % Width of head rule
\addtolength{\headheight}{2pt}          % stop headheight from being too small
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\chapter{Chapter Name}

\section{Section Name}

\begin{sidewaystable}
\pagestyle{plain}
\cleardoublepage
\centering
\begin{tabular}[h]{|c|c|c|c|c|l|}
\hline
Sample Number & Location & Source & Latitude & Longitude & Description : Date Collected \\
\hline
1	&	Red Scree (Lake District)	&	Pool	&	54028'06.86"N	&	002056'11.45"N & Tarn on top of Fells : 26/07/08	\\
2	&	Windemere (Lake District)	&	Lake	&	54025'13.99"N	&	002057'50.83"N &	Northern end of Lake Windemere : 26/07/08 \\
3	&	Tong Park (Baildon)	&	Pond	&	53051'30.55"N	&	001045'04.58"N	& Medium sized pond : 30/07/08 \\
4	&	Baildon Moor	&	Bell Pit	&	53051'52.57"N	&	001046'35.84"N	& Red/brown water : 02/08/08\\
5	&	Baildon Moor	&	Reservoir	&	53051'31.17"N	&	001046'30.54"N	& Reservoir overspill disused reservoir : 22/07/08\\
6	&	Derby Haven (Isle of Man)	&	Irish Sea	&	54005'06.23"N	&	004036'29.06"N	& Sea water : 17/08/08 \\
7	&	Peel (Isle of Man)	&	River	&	54013'12.50"N	&	004042'00.95"N	& River emptying into Peel harbour : 17/08/08\\
8	&	Scarlett Quarry (Isle of Man)	&	Pond	&	54003'55.23"N	&	004039'44.63"N	& Quarry pool : 18/08/08\\
9	&	Shipely Glen (Bradford)	&	Pond	&	53050'46.76"N	&	001048'19.73"N	& Stream in flood : 20/08/08 \\
10	&	Burnsall (River Wharfe)	&	River	&	54002'47.16"N	&	001057'06.02"N	& River water : 23/07/08\\
11	&	Otley Chevin	&	Pond	&	53053'35.81"N	&	001042'01.88"N	& Small pond : 01/08/08 \\
12	&	Wells Walk (Ilkley)	&	Stream	&	53055'22.20"N	&	001049'24.37"N	& Run-off from moor : 23/07/08 \\
13	&	Shipley (Leeds - Liverpool Canal)	&	Canal	&	53050'22.32"N	&	001047'24.13"N	&  Saltaire : 22/08/08\\
14	&	North Sea	&	Sea	&	54038'26.36"N	&	001008'05.38"N	& Redcar : 24/08/08 \\
15	&	27 Moorfield Drive (Baildon)	&	Spring	&	53051'25.42"N	&	001046'00.10"N	& Pumped from beneath house : 21/08/08\\
\hline
\end{tabular} 
\caption{.}
\label{Table:Water_Samples}
\thispagestyle{empty}
\end{sidewaystable}


\end{document}





Thanks.
Last edited by Eenzc on Fri Sep 18, 2009 12:26 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Sidewaystable: need to remove page header

Post by localghost »

Refer to Section 14 (Special page layout for float pages, p. 14f) of the fancyhdr manual. And please learn how to exactly build a MWE.


Best regards
Thorsten
Eenzc
Posts: 48
Joined: Thu Jun 26, 2008 2:38 pm

Re: Sidewaystable: need to remove page header

Post by Eenzc »

Erm, sooooo... I see this:

\iffloatpage{value for float page}{value for other pages}

My question now is what is the value to put in either of these things?

\iffloatpage{\pagestyle{empty}}{\pagestyle{fancy}}

Doesn't help.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Sidewaystable: need to remove page header

Post by gmedina »

Hi,

in the code that appears in the initial post, replace the "FANCY HEADER" portion with

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%FANCY HEADER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}                       % Sets fancy header and footer
\fancyfoot{}                            % Delete current footer settings
\renewcommand{\chaptermark}[1]{         % Lower Case Chapter marker style
  \markboth{\chaptername\ \thechapter.\ #1}{}} %
\renewcommand{\sectionmark}[1]{        % Lower case Section marker style
  \markright{\thesection.\ #1}}         %
\fancyhead[R]{\iffloatpage{}{\bfseries\thepage}}    % Page number (boldface) in left
\fancyhead[L]{\iffloatpage{}{\bfseries\rightmark}}     % Section in the left on odd pages
\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.5pt}}    % Width of head rule
\addtolength{\headheight}{2pt}          % stop headheight from being too small
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Sidewaystable: need to remove page header

Post by localghost »

Eenzc wrote:[...] I see this:

\iffloatpage{value for float page}{value for other pages}

My question now is what is the value to put in either of these things? [...]
It is self-evident that this has to be incorporated into the fancyhdr settings.
fancyhdr manual (Section 14) wrote:[...] With fancyhdr, however, you can specify in each of the header- or footer fields

Code: Select all

\iffloatpage{value for float page}{value for other pages}
[...]
gmedina demonstrated how to do that.
Eenzc
Posts: 48
Joined: Thu Jun 26, 2008 2:38 pm

Re: Sidewaystable: need to remove page header

Post by Eenzc »

Thank you gmedina, thats very helpful.
Post Reply