LaTeX: Possible to supress chapter number in section number headings?

  • Context: LaTeX 
  • Thread starter Thread starter gauss^2
  • Start date Start date
  • Tags Tags
    Latex Section
Click For Summary
SUMMARY

In LaTeX documents of class "book", it is possible to suppress chapter numbers in section headings by using the command \def\thesection{\arabic{section}} in the preamble. This allows sections to be numbered independently of their respective chapters, as demonstrated in Munkres' Topology text. For example, Section 13 can be displayed simply as "13" instead of "2.13", while still being part of Chapter 2. This solution effectively meets the requirement of maintaining chapter structure without altering section numbering.

PREREQUISITES
  • Familiarity with LaTeX document classes, specifically the "book" class.
  • Understanding of LaTeX commands and syntax.
  • Knowledge of sectioning commands in LaTeX.
  • Basic experience with LaTeX preambles and customization.
NEXT STEPS
  • Research LaTeX document classes and their specific features.
  • Learn about customizing section numbering in LaTeX.
  • Explore advanced LaTeX commands for document formatting.
  • Investigate the use of packages that enhance section formatting in LaTeX.
USEFUL FOR

Authors, students, and researchers using LaTeX for document preparation, particularly those working on books or structured documents who require customized section numbering.

gauss^2
Messages
50
Reaction score
0
Is it possible to only show section numbers without chapter numbers in a LaTeX document of class "book"? For instance, Munkres' Topology text breaks things down into chapters but the sections are numbered independent of the chapter. For instance, Sections 1-11 are in Chapter 1, 12-22 in Chapter 2, and so on. If I'm writing solutions up for the book how can I get the heading for Section 13 to show up as "13" instead of "2.13" without scrapping the chapters? e.g., I would still like the section 13 to appear in chapter 2. Thanks.
 
Physics news on Phys.org
Nevermind... I just found out it could easily be done by putting the command \def\thesection{\arabic{section}} in the preamble.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
6K
Replies
2
Views
712
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
6K
Replies
4
Views
2K