{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}.

learn more… | top users | synonyms (2)

118
votes
2answers
62k views

Continuous v. per-chapter/section numbering of figures, tables, and other document elements

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)? And vice versa: Some ...
113
votes
3answers
41k views

How do I ensure that figures appear in the section they're associated with?

Often floats may land quite a bit later in the document than the point they are created, sometimes after a section break. Is there a way to force a new section to start on a new page, after any ...
107
votes
2answers
144k views

How to add an extra level of sections with headings below \subsubsection

I have a document which requires many levels of sectioning. I have sections, subsections and subsubsections, but require one more level below that. I can't change the sections to be parts and move ...
105
votes
3answers
19k views

Fancy chapter headings

I'm searching for nice predefined chapter headings. I've found the fncychap package, and seen that memoir has quite a few, too. Do you know other packages that provide predefined fancy chapter styles?...
92
votes
5answers
94k views

Making the bibliography appear in the table of contents

I need to make my (BibTeX) references section appear in the table of contents of my LaTeX document (documentclass: article), with section numbering too. My approach until now has been making a new ...
77
votes
3answers
79k views

No indent in the first paragraph in a section?

I am just curious that the following format looks good to you or not? The preamble I used is just \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb} ...
69
votes
4answers
47k views

How can I display a short chapter name in the header and a long chapter name in the ToC?

I am writing a book and one of my chapter has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the \chapter[short title]{long title} ...
60
votes
3answers
44k views

What is the right order when using \frontmatter, \tableofcontents, \mainmatter, \part, \chapter, \backmatter, \appendix etc?

I am using the book documentclass and want to know the correct order when arranging \frontmatter \maketitle or \begin{titlepage}...\end{titlepage} a page that contains copyright, ISBN, edition ...
58
votes
2answers
75k views

How to change the numbering of \part, \chapter, \section, … to alphabetical, Roman numbers, etc

I'm fairly new to LaTeX and I want to know how to change the way sections are numbered by default. I use LyX, and there it is relatively simple to change the way an enumeration is numbered, i.e. 1 ...
58
votes
2answers
9k views

Org-mode export to LaTeX: temptation or nuisance?

We are talking about Emacs and Org-mode: There are several advantages of drafting papers with Org-mode and to have them transferred later to LaTeX, e.g.: I'd like to avoid »programming while writing«...
55
votes
2answers
49k views

Creating unnumbered chapters/sections (plus adding them to the ToC and/or header)

I'm using the report document class for a thesis, and I need to add things like "Acknowledgements" and an "Introduction". I noticed that there is an \abstract command which would have been wonderful ...
54
votes
4answers
106k views

Change size of section, subsection, subsubsection, paragraph and subparagraph title

I would like to increase the size of pretty much every headlines, so that it is more prominent than the normal text. I read about the titlesec package, but can't seem to find good example how to use ...
52
votes
4answers
5k views

Bringhurst chapter style in memoir

I'm trying to imitate Robert Bringhurst's chapter style in memoir. The class includes one such chapter style, but does not typeset the chapter number on the right side margin, as in Bringhurst's book. ...
52
votes
4answers
133k views

Force LaTeX image to appear in the section in which it's declared [duplicate]

Possible Duplicates: How do I ensure that figures appear in the section they're associated with? Keeping tables/figures close to where they are mentioned How can I force an image in a ...
52
votes
2answers
59k views

How to set the font for a \section title (and chapter etc)

How do I specify the fonts, and general font size, for the titles, chapters and sections in my document Update: I can see how my question is confusing. I use \section and \chapter etc. to organise ...
49
votes
3answers
21k views

Is it a bad idea to use \begin{section} … \end{section} in LaTeX?

In several discussions about relatives merits of LaTeX v. xml, a xml supporter complained that in LaTeX sections, subsections etc are not properly closed, so it is hard to tell where a section ends. ...
41
votes
3answers
13k views

Turn on subsection numbering in memoir

It seems that the memoir class automatically avoids numbering subsection headings. Chapter and section titles are numbered, but subsection headings contain only the subsection name, and are not ...
35
votes
3answers
65k views

Reducing spacing after headings

I've searched many sites but I couldn't get any answer. Here is this mystical question: How can i reduce the spacing after headings? Here is my code. \documentclass[12pt,a4paper]{article} \...
34
votes
3answers
35k views

Start new page with each section

I would like to start each section on a new page. Is adding the following to my preamble this the preferred method, or a hack? \let\stdsection\section \renewcommand\section{\newpage\stdsection}
34
votes
1answer
38k views

Formatting section titles

Forgive the stupid simplicity of this question, and please feel free to refer me to an older answer. I'm not quite familiar enough with LaTeX terminology to have found it. All I want to do is set a ...
33
votes
3answers
16k views

When is it appropriate to use \paragraph?

LaTeX provides seven sectioning commands: \part \chapter \section \subsection \subsubsection \paragraph \subparagraph. For most of the documents I write or come across, \subsubsection seems to be ...
33
votes
2answers
38k views

Start new chapter on same page

I am using report document class. When I create a new chapter, it starts it on a new blank page in which only the chapter name appears. I want to be able to start new chapters on the same page as the ...
33
votes
3answers
64k views

Section numbering without numbers

I want to add a section without a number, but \section* also excludes it from the numbering, so if there is this \section*{Section 1} \subsection{Subsection} \subsection{Subsection 2} \section*{...
32
votes
4answers
3k views

Why are Beamer subsubsections evil?

The Beamer manual claims, under "Guidelines for Creating Presentations": Do not use subsubsections, they are evil. Why? There's no further explanation. Is it simply because subsubsections are ...
31
votes
1answer
27k views

How to show subsections and subsubsections in TOC?

So we have something like: \documentclass[english]{article} \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2} \usepackage{amsmath} \usepackage{tocloft} \usepackage{xstring} \usepackage{titlesec} \...
30
votes
6answers
5k views

Where can I find help files or documentation for commands like \@startsection for LaTeX?

I can't find official documentation for the \@startsection command. I already looked in: LaTeX Wikibook LaTeX: Structured document for TEX, 2008 beginLatex — a book that comes with ProTeX in the ...
30
votes
3answers
27k views

Why doesn't \pagestyle{empty} work on the first page of a chapter?

Here's a minimal case of the problem: \documentclass{book} \pagestyle{empty} \begin{document} \chapter{The first} This page has a page number\ldots \newpage \ldots but not this one. \end{...
30
votes
7answers
11k views

How can one keep a \section from being at the end of a page?

Given LaTeX likeso: \section{Heading} Here is some text after the heading. How could one prevent the Heading from showing up at the very bottom of the page? In other words, how could one prevent ...
29
votes
6answers
20k views

Equations in section heading/title

For reasons that are beyond me, the following MWE \documentclass{scrreprt} \usepackage{classicthesis-ldpkg} \usepackage{bm} \usepackage{amsmath} \begin{document} \section{The values of $\beta$ for ...
29
votes
2answers
5k views

Incompatibilities between KOMA-Script and titlesec

This is a complementary question to About memoir and titlesec incompatibility. The titlesec manual states (p. 2) that the package [...] works with the standard classes and with many others, ...
29
votes
1answer
26k views

Sections indexed with numbers, subsections with letters

Is it possible to set the environment in such a way that sections are indexed with numbers, and subsections with letters? I mean, I'd like to have the following result: 1 First section 1.a First ...
28
votes
6answers
2k views

Is it possible to automatically enumerate sentences in LaTeX?

1.0.1 Is it possible to automatically enumerate sentences in LaTeX? 2.0.1 I want to thoroughly work through and criticize a longer text. 2.0.2 To facilitate quoting, I would like to typeset the text ...
28
votes
6answers
9k views

Avoiding page breaks shortly after section/subsection headings

By default, LaTeX allows a page break after the first two lines of paragraphs following section/subsection headings. How can I enlarge this minimum to, say, three lines or 10 percent of the value of \...
28
votes
3answers
25k views

How to put a line-break in section heading?

I have some section headings occupying two lines and I'm not satisfied with the way XeLaTeX breaks the heading. If I manually add \\ the output looks fine, but I get the following warning: [hyperref] ...
28
votes
1answer
16k views

How to start new chapters on the right hand side

I use the report document class, and I would like that chapters always start on the right hand side, anyone an idea how this could be easily done?
28
votes
2answers
36k views

Change whitespace above and below a section heading

I want to change the spacing around a section heading so that there is less of a gap between it and the paragraph that follows. I found the following commands \usepackage[compact]{titlesec} \...
27
votes
1answer
4k views

How to place a shaded box around a section label and name

In working with a publisher, I need to format section headings like this (using ASCII art): +-----+-------------------------------------+ | 1.2 | Section name | +-----+---------...
27
votes
5answers
12k views

how to get the current chapter name, section name, subsection name, etc?

How can one get the current name of the following: Chapter, Section, Subsection(s), frame, label, mdframed?
27
votes
3answers
17k views

How to reference \paragraph?

It is well-known that \section environment may be assigned a label \label{refname} and then the refname may be used in order to reference this section: \section{My nice section} \label{sec:my-nice-...
26
votes
5answers
2k views

Managing volumes of books

I would like to compile all of the books in a series at the same time. This would: Guarantee that everything compiled with consistency. Easily allow for cross-references between books. Allow ...
26
votes
2answers
21k views

How do I control the spacing above a new \paragraph?

I'm sorry if this question has been answered earlier or is too basic for this site, but I couldn't find a reference. I'm using LaTeX using the article documentclass. I haven't customized any of ...
25
votes
5answers
11k views

How to avoid splitting tables between sections

I have 5 tables and a section after them. After creation of an output file I have two tables on one page, then a section and last 3 tables on next page. What I want to achieve is to put tables and ...
25
votes
1answer
33k views

Change section fonts

I am trying to emulate MS Word 2010 functionality with LaTeX since I am fed up with word. I am using TexShop, and I have been able to set the main font to Calibri through the use of XeTeX. How do I ...
24
votes
3answers
23k views

Generate table of contents when \section* (sections without numbering) has been used

Is it possible just to generate a table of contents based on sections in asterisk mode, i.e., \section*? I basically just want the table of contents without section numbers. Like a list of headings ...
24
votes
1answer
2k views

Book layout Contents, Chapter, Section,

my goal is to get new style of Table of Contents, new style of Chapter and new style of section. I there is one more: how to change itemize native symbol for a black square? Table of Contents: text ...
24
votes
1answer
705 views

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 ...
23
votes
5answers
4k views

How can I indent the paragraphs which follow a heading?

I am trying to write a text where the first line of each paragraph has an indent(tab). But for some reason, in a chapter or a section or subsection, except the first paragraph, the rest of the ...
23
votes
3answers
16k views

Correct use of \paragraph titles?

How should I use \paragraph? I mean, If I want to put "Characteristics", should I put \paragraph{Characteristics} or \paragraph{Characteristics:}. Or is it up to me which one to use?
23
votes
1answer
17k views

LaTeX Beamer: Frame outside sections?

At the end of a Beamer presentation, I want a "Thank you for your attention"-slide that is not part of the sections in my presentation. More specifically, I want no section in the navigation bar to be ...
22
votes
2answers
474 views

How could I check what font size is in pt for \section, \subsection, and \subsubsection?

There are a lot of results for "setting" the font size, but I can't find one how to "get" them. Here's some code from What point (pt) font size are \Large etc.? I can use to check what font size for \...