General ⇒ compilation
compilation
I am writing a document in "book" format. I can change it to any format though. I have an abstract of 3 pages. Then I want "Contents" followed by 5 chapters. I do not want page numbers on abstract. But I want roman numbers on contents and arabic numbers on chapters. I have 3 sections in the abstract. I have placed contents after the abstract, still I get section titles in the abstract in the contents list. I don't want it.
1. How do I remove page numbers from abstract?
2. How not to get mention of abstract and its sections in the contents list which is after abstract?
Thank you,
Omkar
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
compilation
1. use \pagestyle{empty} and \thispagestyle{empty}.
2. manipulate the counter tocdepth.
Here is a short example how to make it:
Code: Select all
\documentclass[a4paper,10pt]{book}
\begin{document}
\pagestyle{empty}
\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
\chapter*{Abstract}
\thispagestyle{empty}
\renewcommand*\thesection{\arabic{section}}
\section{One} Text
\newpage
\section{Two} Text
\newpage more Text \clearpage
\pagestyle{headings} % or plain, fancy, ..
\tableofcontents
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}}
\chapter{One}
\renewcommand*\thesection{\thechapter.\arabic{section}}
\section{One} Text
\section{Two} Text
\chapter{Two}
\chapter{Three}
\end{document}