Questions tagged [sectioning]

{sectioning} is about commands like \chapter or \section forming the logical structure of documents. For questions specifically about {parts}, {chapters} or lower-level commands ({sections-paragraphs}), add the respective tag to the more general {sectioning}. A popular package is {titlesec}.

is about commands like \chapter or \section forming the logical structure of documents. For questions specifically about , or lower-level commands (), add the respective tag to the more general . A popular package is .

LaTeX provides 7 levels of sectioning: \part, \chapter, \section, \subsection, \subsubsection, \paragraph, and \subparagraph. \chapter is only available in book-type classes (e.g. book, amsbook, and report), and \part isn't available in the letter class.

Each command also has a starred version, e.g. \section*{}, which produces an unnumbered section. You can also set a short title for headers and the table of contents with \section[Short Title]{Much Longer Full Title}.

Frequently Asked Questions

  1. Continuous vs. per-chapter/section numbering of figures, tables, etc.
  2. How can I add an extra sectioning level below \subsubsection?
  3. How can I make the bibliography appear in the table of contents?
  4. Why is the first paragraph in a section not indented?
  5. How can I change the numbering of sectioning commands to be alphabetic, Roman, etc.?
  6. How can I change the size of titles of sectioning commands?
  7. How can I change the font for sectioning commands?
5356 questions
81
votes
1 answer

How can I number sections below subsection in LaTeX?

I want to make sections in LaTeX. For a document with chapter divisions, one has 1.1 = section 1.1.1 = subsection 1.1.1.1 = subsubsection What about 1.1.1.1.1? What do I have to use to make lower-level sections be numbered as 1.1.1.1.1?
Farhat Mann
  • 1,515
72
votes
1 answer

Is there a \subsubsubsection command?

I could do \subsection{} and \subsubsection{} but not \subsubsubsection{}. This command does not seem to be available in LaTeX. Is there an alternative command?
Naema
  • 2,305
44
votes
2 answers

Undefined control sequence and \chapter error

I’m getting an “undefined control sequence” error with the following code, using TeXstudio: \documentclass[11pt]{article} \begin{document} \begin{center} \chapter{CHAPTER 6} \end{center} \end{document}
ravi
  • 1,379
41
votes
4 answers

remove sections numbering

I have the next code: \documentclass[a4paper,openright, 12pt]{article} \usepackage[utf8]{inputenc} \usepackage{fullpage} \newcommand{\ssection}[1]{% \section[#1]{\centering\normalfont\scshape…
FUUNK1000
  • 673
  • 2
  • 6
  • 8
25
votes
1 answer

Create context sensitive headings

This question led to a new package: coseoul Is it possible to create headings in LaTeX where you don't specify what level of the heading you want, but rather if you want to go up, down, stay or start over in the hierarchy that the heading is going…
Speldosa
  • 5,077
  • 5
  • 31
  • 40
23
votes
1 answer

Where should I insert \setcounter{secnumdepth}{3}?

I am writing a thesis using \documentclass[11pt,a4paper]{report}. However, \subsubsection is not getting numbered. So on searching in TeX I got an answer to insert \setcounter{secnumdepth}{3}. Please tell me where to insert…
Vidhya
  • 727
21
votes
3 answers

How do I create an acknowledgment section?

I am trying to add an acknowledgment section like. I have tried the 'acknowledgments' and 'acknowledgements' environments (as seen on the internet), but LaTeX did not recognized it.
Alexandru
  • 2,465
  • 4
  • 18
  • 10
20
votes
5 answers

Denoting "harder" content in a book in the section headings

I'm writing a book in LaTeX and want to denote some of the sections, subsections and subsubsections as "harder" (perhaps for the reader to skip on first reading) by placing a diamond in the margin by the section heading. My attempt (below) not…
xnx
  • 753
20
votes
1 answer

How do I skip a subsection?

How do I skip a subsection (in this case, 1.2) like this: 1 Main Title 1.1 Subtitle 1.3 Subtitle 1.4 Subtitle
David Faux
  • 4,117
18
votes
2 answers

Starting text right after section or subsection title

Is it possible to start your text right after the section or subsection title (without starting a new line)? Thank you. I hope the question is clear enough and does not need a MWE.
N Nik
  • 3,669
16
votes
1 answer

LaTeX end section or subsection

How can I specify the end of subsection. In my example: I have a subsection with only 3 rows, but I see the next paragraph also as continuance of the subsection: \subsection{Kontrolle} Zur Kontrolle eines physischen Systems werden die Time Series,…
Kaja
  • 821
15
votes
1 answer

Demoting/Promoting sections, chapters, etc

Consider following structure: . |_s |_s |_ss |_ss+ |_sss |_ss |_s |_s How can I demote a subsection to subsubsection without changing markups ? . |_s |_s |_ss |_sss+ |_p |_ss |_s |_s How can I promote a subsection to section without…
Real Dreams
  • 8,298
  • 12
  • 56
  • 78
14
votes
3 answers

How to display section number in the section's title?

Is there an easy way to display a section's number in its title? I am currently using the article document class. Here is my minimal working example: \documentclass[a4paper]{article} \begin{document} \section*{Introduction} Introduction text…
13
votes
2 answers

How can I add a prefix to *only* a particular section-level's numbering

I would like to (preferably without additional packages) be able to add a prefix before all section numbers, but not to subsection or subsubsection numbers. In other words, I want the section numbering to look like: "Prefix 1", "1.1", "1.2",…
Mark
  • 1,855
12
votes
2 answers

Create fancy section titles by redefining the section command

I am preparing a non-technical document and would like to add some spice to it. Doing so, I'm trying to redefine the section command that is provided by the KOMA Script classes. My idea is that it should look something like this: Since this is the…
Ingo
  • 20,035
1
2 3
24 25