[Tugindia] Suppressing chapter numbers in sections, in book documentclass

P. P. Narayanaswami swami at mun.ca
Sun Jun 10 10:07:58 CEST 2012


Many many thanks for your help.  This was precisely what I was looking for.
Narayanaswami
Quoting Harish Kumar Holla <harishkumarholla at pec.edu>:

> Put
> 
> \makeatletter
> \renewcommand \thesection {\@arabic\c at section}
> \makeatother
> 
> in your preamble.
> 
> 
> A complete minimum working example:
> 
> \documentclass{book}
> \usepackage{lipsum}
> \makeatletter
> \renewcommand \thesection {\@arabic\c at section}
> \makeatother
> \begin{document}
> \tableofcontents
> \chapter*{}  %% Puts the table of contents in a separate page
> \section{One}
> \lipsum[1]
> \section{Two}
> \lipsum[2]
> \end{document}
> 
> On Sun, Jun 10, 2012 at 1:08 AM, P. P. Narayanaswami <swami at mun.ca> wrote:
> 
> > I am processing a book that has 100 sections, and no chapter or part.
> > I am using "book" documentclass (for various reasons).
> > When processed in LaTeX, the section numbers (and in TOC also) are printed
> > as
> > 0.1, 0.2, ..., 0.100, using "0" as default chapter number. Is there any
> > way to
> > suppress this default chapter number "0", and get only the section numbers
> > as
> > 1, 2, ... , 100, in both the section titles and the TOC?
> > Thanks in advance for any help.
> > Narayanaswami
> >
> > This electronic communication is governed by the terms and conditions at
> >
> http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php
> > _______________________________________________
> > Home:        http://www.tug.org.in/
> > TeX FAQ:     http://www.tex.ac.uk/faq
> > unsubscribe: http://tug.org/mailman/listinfo/tugindia
> >
> 
> 
> 
> -- 
> 
> 
> 
> --with regards
> 
> Dr. Harish Kumar
> Dept. of Physics
> Pondicherry Engineering College
> Puducherry 605 014
> Ph: 0413 2655281-286 (Extn: 646)
> 
> Residence:
> Dr. Harish Kumar
> # 29 (New No.) I Main Cluny Road
> Avvai Nagar, Lawspet
> Puducherry 605 008
> Ph: 0413 2253652, 9443052957
> _______________________________________________
> Home:        http://www.tug.org.in/
> TeX FAQ:     http://www.tex.ac.uk/faq
> unsubscribe: http://tug.org/mailman/listinfo/tugindia
> 




This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php


More information about the tugindia mailing list