How to Remove Header in LaTex
Posted
by Tim
on Stack Overflow
See other posts from Stack Overflow
or by Tim
Published on 2010-04-26T16:44:25Z
Indexed on
2010/04/26
17:13 UTC
Read the original article
Hit count: 1684
latex
Hi,
I would like to not show the name of each chapter on the header of its each page. I also like to have nothing in the headers for abstract, acknowledgement, table of content, list of figures and list of tables. But currently I have header on each page, for example:
Here is my code when specifying these parts in my tex file
\begin{abstract}
...
\end{abstract}
\begin{acknowledgement}
...
\end{acknowledgement}
% generate table of contents
\tableofcontents
% generate list of tables
\listoftables
% generate list of figures
\listoffigures
\chapter{Introduction}
\label{chp1}
%% REFERENCES
\appendix
\input{appendiximages.tex}
\bibliographystyle{plain}
%%\bibliographystyle{abbrvnat}
\bibliography{thesis}
Here is what I believe to be the definition of the commands. More details can be found in these two files jhu12.clo and thesis.cls.
% \chapter:
\def\chaptername{Chapter}
% ABSTRACT
% MODIFIED to include section name in headers
\def\abstract{
\newpage
\dsp
\chapter*{\abstractname\@mkboth{\uppercase{\abstractname}}{\uppercase{\abstractname}}}
\fmfont
\vspace{8pt}
\addcontentsline{toc}{chapter}{\abstractname}
}
\def\endabstract{\par\vfil\null}
% DEDICATION
% Modified to make dedication its own section
%\newenvironment{dedication}
%{\begin{alwayssingle}}
%{\end{alwayssingle}}
\def\dedication{
\newpage
\dsp
\chapter*{Dedication\@mkboth{DEDICATION}{DEDICATION}}
\fmfont}
\def\endacknowledgement{\par\vfil\null}
% ACKNOWLEDGEMENTS
% MODIFIED to include section name in headers
\def\acknowledgement{
\newpage
\dsp
\chapter*{\acknowledgename\@mkboth{\uppercase{\acknowledgename}}{\uppercase{\acknowledgename}}}
\fmfont
\addcontentsline{toc}{chapter}{\acknowledgename}
}
\def\endacknowledgement{\par\vfil\null}
\def\thechapter {\arabic{chapter}}
% \@chapapp is initially defined to be '\chaptername'. The \appendix
% command redefines it to be '\appendixname'.
%
\def\@chapapp{\chaptername}
\def\chapter{
\clearpage
\thispagestyle{plain}
\if@twocolumn % IF two-column style
\onecolumn % THEN \onecolumn
\@tempswatrue % @tempswa := true
\else \@tempswafalse % ELSE @tempswa := false
\fi
\dsp % double spacing
\secdef\@chapter\@schapter}
% TABLEOFCONTENTS
% In ucthesis style, \tableofcontents, \listoffigures, etc. are always
% set in single-column style. @restonecol
\def\tableofcontents{\@restonecolfalse
\if@twocolumn\@restonecoltrue\onecolumn\fi
%%%%% take care of getting page number in right spot %%%%%
\clearpage % starts new page
\thispagestyle{botcenter} % Page style of frontmatter is botcenter
\global\@topnum\z@ % Prevents figures from going at top of page
%%%%%
\@schapter{\contentsname
\@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
{\ssp\@starttoc{toc}}\if@restonecol\twocolumn\fi}
\def\l@part#1#2{\addpenalty{-\@highpenalty}%
\addvspace{2.25em plus\p@}% space above part line
\begingroup
\@tempdima 3em % width of box holding part number, used by
\parindent \z@ \rightskip \@pnumwidth %% \numberline
\parfillskip -\@pnumwidth
{\large \bfseries % set line in \large boldface
\leavevmode % TeX command to enter horizontal mode.
#1\hfil \hbox to\@pnumwidth{\hss #2}}\par
\nobreak % Never break after part entry
\global\@nobreaktrue %% Added 24 May 89 as
\everypar{\global\@nobreakfalse\everypar{}}%% suggested by
%% Jerry Leichter
\endgroup}
% LIST OF FIGURES
%
% Single-space list of figures, add it to the table of contents.
\def\listoffigures{\@restonecolfalse
\if@twocolumn\@restonecoltrue\onecolumn\fi
%%%%% take care of getting page number in right spot %%%%%
\clearpage
\thispagestyle{botcenter} % Page style of frontmatter is botcenter
\global\@topnum\z@ % Prevents figures from going at top of page.
\@schapter{\listfigurename\@mkboth{\uppercase{\listfigurename}}%
{\uppercase{\listfigurename}}}
\addcontentsline{toc}{chapter}{\listfigurename}
{\ssp\@starttoc{lof}}\if@restonecol\twocolumn\fi}
\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
% bibliography
\def\thebibliography#1{\chapter*{\bibname\@mkboth
{\uppercase{\bibname}}{\uppercase{\bibname}}}
\addcontentsline{toc}{chapter}{\bibname}
\list{\@biblabel{\arabic{enumiv}}}{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumiv}%
\let\p@enumiv\@empty
\def\theenumiv{\arabic{enumiv}}}%
\def\newblock{\hskip .11em plus.33em minus.07em}%
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=\@m}
Thanks and regards!
EDIT:
I just replaced \thispagestyle{botcenter} with \thispagestyle{plain}. The latter is said to clear the header (http://en.wikibooks.org/wiki/LaTeX/Page_Layout), but it does not. How shall I do?
Thanks!
© Stack Overflow or respective owner