Generalhow to display disclaimer, abstract on toc

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10319
Joined: Mon Mar 10, 2008 9:44 pm

Re: how to display disclaimer, abstract on toc

Post by Stefan Kottwitz »

Hi ma501th,

how would you like to solve that? Is the numbering in general ok? Should perhaps only the toc page number vanish, that page just be unnumbered?

Stefan

Recommended reading 2024:

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

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

ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

Re: how to display disclaimer, abstract on toc

Post by ma501th »

yeh the number in genral are ok, if possible could you please tell me how i can erase the numbers in toc please

thanks
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

how to display disclaimer, abstract on toc

Post by gmedina »

Use

Code: Select all

\pagestyle{empty}
before the \tableofcontents command. Then restore your page style using

Code: Select all

\pagestyle{plain}
(replace plain with fancy or whatever your page style was).

Nope. I am sorry. Wrong answer.

Edit: redefine the plain style to empty as the following example suggests:

Code: Select all

\documentclass{article}
\usepackage{lipsum}

\makeatletter
\let\ps@plain\ps@empty
\makeatother

\begin{document}
\pagestyle{plain}
\tableofcontents

\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]
\section{a section}
\lipsum[1-2]

\end{document}
Last edited by gmedina on Wed Apr 23, 2008 1:26 am, edited 2 times in total.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10319
Joined: Mon Mar 10, 2008 9:44 pm

how to display disclaimer, abstract on toc

Post by Stefan Kottwitz »

Hi ma501th,

on alternative solution:

Code: Select all

\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
...
Stefan
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

how to display disclaimer, abstract on toc

Post by ma501th »

sorry but where do i place your code?
Stefan_K wrote:Hi ma501th,

on alternative solution:

Code: Select all

\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
...
Stefan
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

Re: how to display disclaimer, abstract on toc

Post by ma501th »

thanks stefan your code has worked but not completely.

my toc is three pages long which followed by Disclaimer , Abstract and Acknowledgements. The numerical numbers seem to appear again on my list of figures as 5 and also on my list of tables as 6.

The next page is the Disclaimer , Abstract and Acknowledgements which appear correctly as roman numbers.

Can you please tell me how i can get rid of the numerical numbers which appear on Disclaimer , Abstract and Acknowledgements.

Thanks
User avatar
Stefan Kottwitz
Site Admin
Posts: 10319
Joined: Mon Mar 10, 2008 9:44 pm

how to display disclaimer, abstract on toc

Post by Stefan Kottwitz »

Hi,

you may try gmedina's code, I've seen already many good solutions by him.
Alternatively something like that:

Code: Select all

\pagestyle{empty}
\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
% Disclaimer
% Abstract
% Acknowledgements
\addtocontents{lof}{\protect\thispagestyle{empty}}
\listoffigures
\addtocontents{lot}{\protect\thispagestyle{empty}}
\listoftables
\pagestyle{headings}% or fancy, whatever
Perhaps see here for expalation: \pagestyle and \thispagestyle.

Stefan
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

Re: how to display disclaimer, abstract on toc

Post by ma501th »

thanks mate it has worked perfectly fine.

Now the last problem i may request for you to solve is the page numbers in genreral.
The numbers seem to appear different location in every page.

Is there way for the number to display central on the bottom of the page?

cheers
User avatar
Stefan Kottwitz
Site Admin
Posts: 10319
Joined: Mon Mar 10, 2008 9:44 pm

how to display disclaimer, abstract on toc

Post by Stefan Kottwitz »

Hi ma501th,

what pagestyle do you use? If you write \pagestyle{plain} then the page numbers appear on the bottom. Do you use the headings pagestyle? Do you need running headings on each page? Do you use fancyhdr?
The package fancyhdr may be useful for that purpose. You may look into its documentation for use and examples.

Stefan
Post Reply