LaTeX specific issues not fitting into one of the other forums of this category.
by beyma on Tue Feb 26, 2008 5:07 pm
Hi all,
I'm desperate with this issue... My document follows the hepthesis class. I would like to eliminate the bottom page numbering in the first page of toc, lof and lot. I've tried \thispagestyle{empty} without success !!
\documentclass[bind,twoside,ams,booktabs,a4paper]{hepthesis} \begin{document}
\begin{abstract} \thispagestyle{empty} This is the abstract. \end{abstract} \cleardoublepage
% first page of contents always has page number on bottom \tableofcontents \thispagestyle{empty} \cleardoublepage
\begin{mainmatter} \pagestyle{fancy} \pagenumbering{arabic} \input{chap1} \input{chap2} \end{mainmatter}
\listoffigures \listoftables
\bibliographystyle{unsrt} \bibliography{biblio}
\end{document}
Any ideas will be highly appreciated !!
Cheers, Sergio
-
beyma
-
- Posts: 2
- Joined: Tue Feb 26, 2008 4:53 pm
by localghost on Tue Feb 26, 2008 5:44 pm
Refer to the documentation of the fancyhdr package and search for the redefinition oft the plain style (Section 7 - Redefining plain style, p. 7f). Best regards Thorsten¹
¹ I'm sorry. My responses are limited. You must ask the right questions. ² Systems: openSUSE 11.3, TeX Live 2009, TeXworks 0.3 | Windows XP (SP3), MiKTeX 2.8, TeXworks 0.3 ³ Learning TeX.
-

localghost
- Site Moderator
-
- Posts: 4769
- Joined: Fri Feb 02, 2007 11:06 am
- Location: Braunschweig, Germany
by beyma on Tue Feb 26, 2008 5:56 pm
Dear Thorsten,
many thanks for the precise hint ! It worked wonderfully.
Regards, Sergio
-
beyma
-
- Posts: 2
- Joined: Tue Feb 26, 2008 4:53 pm
by stinkinrich88 on Sat Jun 07, 2008 10:57 am
great, could you let us know how you did it?
-
stinkinrich88
-
- Posts: 43
- Joined: Sat Jun 07, 2008 10:56 am
by localghost on Sat Jun 07, 2008 10:59 am
stinkinrich88 wrote:great, could you let us know how you did it?
That is described in detail in the section of the documentation I mentioned above. Best regards Thorsten
¹ I'm sorry. My responses are limited. You must ask the right questions. ² Systems: openSUSE 11.3, TeX Live 2009, TeXworks 0.3 | Windows XP (SP3), MiKTeX 2.8, TeXworks 0.3 ³ Learning TeX.
-

localghost
- Site Moderator
-
- Posts: 4769
- Joined: Fri Feb 02, 2007 11:06 am
- Location: Braunschweig, Germany
by stinkinrich88 on Sat Jun 07, 2008 11:21 am
I meant it would've been really great if beyma had posted his / her solution to help other people and save people's time. Anyway, that document wasn't very specific about the problem---more of a general guide---so here's what I came up with:
\pagestyle{empty} %get rid of header/footer for toc page \tableofcontents %put toc in \cleardoublepage %start new page \pagestyle{plain} % put headers/footers back on \setcounter{page}{1} %reset the page counter
-
stinkinrich88
-
- Posts: 43
- Joined: Sat Jun 07, 2008 10:56 am
by localghost on Sat Jun 07, 2008 11:27 am
stinkinrich88 wrote:[...] Anyway, that document wasn't very specific about the problem---more of a general guide---so here's what I came up with: [...]
The documentation is very specific about that. Right in the section I mentioned. And the more convenient way would be to follow the suggestions of the fancyhdr documentation. - Code: Select all
\fancypagestyle{plain}{% \fancyhf{} % clear all header and footer fields \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} }
In principal this is some kind of empty page style.
¹ I'm sorry. My responses are limited. You must ask the right questions. ² Systems: openSUSE 11.3, TeX Live 2009, TeXworks 0.3 | Windows XP (SP3), MiKTeX 2.8, TeXworks 0.3 ³ Learning TeX.
-

localghost
- Site Moderator
-
- Posts: 4769
- Joined: Fri Feb 02, 2007 11:06 am
- Location: Braunschweig, Germany
by Stefan_K on Sat Jun 07, 2008 3:12 pm
Hi, just some explanation about the behaviour of the code in the first posting: if the toc has more than one page, a following \thispagestyle cannot affect its first page, only the last. However \thispagestyle can be used in the toc like this: - Code: Select all
\addtocontents{toc}{\protect\thispagestyle{empty}}
This way you could do other things too, for example place a pagebreak in the toc, enlarge a toc page or even embed \addcontentsline with \addtocontents inside a list of tables and so on. Further, if I don't want to use the plain pagestyle but empty instead, I just write - Code: Select all
\let\ps@plain\ps@empty
If you want to use that, don't forget \makeatletter ... \makeatother around the line. Stefan
-
Stefan_K
- Site Moderator
-
- Posts: 2687
- Joined: Mon Mar 10, 2008 8:44 pm
- Location: Hamburg, Germany
-
Return to General
Users browsing this forum: Alexa [Bot], Google [Bot] and 21 guests
|