The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [sections-paragraphs]

{sections-paragraphs} is about the lower-level sectioning commands from \section to \subparagraph that help to form the logical structure of documents. This tag should only be used *in addition* to the more general {sectioning}.

Filter by
Sorted by
Tagged with
243
votes
5answers
559k 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 ...
173
votes
4answers
102k 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 ...
124
votes
4answers
334k 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 LaTeX ...
70
votes
6answers
86k 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}
46
votes
1answer
66k views

\par vs \paragraph

What is the difference between \par and \paragraph? I can skip a space between two paragraphs and have it retained on in the output on XeLaTeX. How is the effect different from using paragraph ...
42
votes
3answers
35k 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 ...
39
votes
7answers
13k 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 \...
38
votes
4answers
37k 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-...
33
votes
3answers
31k views

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

I'm using LaTeX using the article type documentclass. I haven't customized any of the LaTeX variables that determine lengths, such as \parindent, \topskip etc. I want to control the amount of ...
32
votes
4answers
6k 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 ...
28
votes
5answers
16k 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 ...
28
votes
6answers
3k 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 ...
27
votes
3answers
27k 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?
25
votes
6answers
17k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
24
votes
1answer
10k views

LaTeX - Different section names in TOC from body

Sorry if this question already appears elsewhere, I couldn't find it. Is there a way to label a section in the text but give it a different name in the table of contents? I have very long section ...
22
votes
4answers
3k views

Centering \section* and adding them to the ToC

I'm using LaTeX and the book class and have one problem: I want that my starred sections (only starred sections) appear in the center of the pages instead of the left side of the pages and also these ...
22
votes
1answer
28k views

How to make \subsection not appear in the ToC

How do I get a sub \subsection{title} I choose not not appear in the ToC and not interfere with the counting of the other \subsection's?
19
votes
2answers
9k views

Formatting a \paragraph to look like a \section

I'm writing a document that contains a rather deep tree of nested lists, and was wondering if how I would go about reformatting the \paragraph macro to format the text contained within it as a \...
18
votes
3answers
3k views

How can I put a line above a section heading and prevent a page break between?

We have designed a class for some journal. We wanted our section titles to be separated by a horizontal line from the previous line. Here is the code: \def\section{% \vskip 1.2\@bls% \hrule ...
17
votes
1answer
3k views

What's the difference between \paragraph and \paragraph*?

Is there any difference between \paragraph{} and \paragraph*{}? When it's used (if nothing has been modified before, i.e. like in this post: Paragraph header), there's no difference in the created ...
16
votes
2answers
540 views

Why does \color{blue} after \paragraph{…} color the paragraph title blue?

MWE: \documentclass{article} \usepackage{color} \begin{document} \paragraph{Why am I blue?} {\color{blue} Only I am supposed to be blue!} \end{document} Output (plus my scribble): Question: ...
16
votes
2answers
13k views

How to remove “zero” preceding section number?

\documentclass[11pt]{book} \usepackage[svgnames]{xcolor} \makeatletter \let\stdl@section\l@section \renewcommand*{\l@section}[2]{% \stdl@section{\textcolor{blue}{#1}}{\textcolor{blue}{#2}}} \let\...
16
votes
2answers
2k views

Should \paragraph be used only under \subsubsection?

Very simple question: Is \paragraph supposed to be used only under \subsubsection or do you use it directly under \section or \subsection as well (e.g., if there are no further sub sections necessary)...
15
votes
4answers
22k views

Redefining commands in Latex (\section in particular)

A few days ago I asked a question about how to redefine the \section command to be able to write content just after the head of the section with no line breaking: Redefining \section command (I ...
14
votes
1answer
27k views

Paragraph header

I want to include an indented, underlined, upper- and lowercase paragraph heading ending with a period in my document instead of using \subsubsection. Anyone who knows how I can define the command for ...
13
votes
2answers
5k views

Subtitle for a section

I'm using XeLaTeX to take notes in class, and I am using a new section for each lecture. Since the lectures have different teachers, I'd like a small italic subtitle for each \section. I'm using the ...
13
votes
2answers
5k views

How can I format sections/subsections/etc. like nested lists?

I would like to format sections/subsections/etc. so that the entire body text of subsections is indented relative to the body text of the parent section as it is for nested lists, i.e. 1. Section ...
13
votes
1answer
16k views

Hyperref, Table of Contents and subsections

I have encountered a problem in latex that I have not been able to solve. While the hyperref package generates clickable links in the table of contents, it does not link any subsection to the actual ...
12
votes
1answer
445 views

How to get this fancier line to divide paragraphs?

Here I found lecture notes in which the author uses the following symbol when a certain thought is finished but no new chapter or similar follows. Since the user doesn't share his source I code I ...
12
votes
4answers
4k views

Section headers in margins

I'm working on my resume in LyX and I would like my section headers to look like this. What should I write in the preamble to achieve this?
12
votes
2answers
3k views

Starting a proof with \paragraph

I would like to break a proof into paragraphs, but I don't seem to be able to start a proof with a paragraph. \documentclass{article} \usepackage{amsthm} \begin{document} \begin{proof} \paragraph{...
12
votes
1answer
524 views

Why does titlesec cause bizarre line breaks within \paragraph?

Consider the following example: \documentclass[12pt,a6paper]{article} %\usepackage{titlesec} \usepackage[textwidth=79mm]{geometry} \begin{document} \paragraph{I guess we'll have to make a few trade-...
12
votes
3answers
14k views

Redefining sectioning commands

I'm trying to redefine the \subsubsection of the report class to behave like \paragraph and not have a linebreak after the title. It's closely related to this question but I have no idea how to ...
11
votes
1answer
521 views

Why is \paragraph treated as level below \subsubsection?

Note: This is meant as a question about the historical development of LaTeX conventions, and how they influence Editor design, not as question about how to implement it differently. One of my pet-...
11
votes
1answer
8k views

What under \subsubsection?

In a \subsubsection, I'm describing a software component, and I have to describe the classes it is composed of. I'm thinking to add some "titles" like "Class 1", "Class 2", but what's the best way to ...
11
votes
1answer
608 views

A zero \parskip and an unusual \paragraph result in overlapping paragraphs

I'm trying to debug a class provided by some journal. From times to times, the text appears completely garbled, or does not appear at all (I believe it is printed somewhere but probably out of the ...
11
votes
1answer
7k views

Subsubsection: remove the newline (like paragraph)

Using the article document class, how can one remove the newline at the end of a subsubsection title? I am using \documentclass{article}; I do not currently use titlesec or any of the alternatives; I ...
10
votes
4answers
2k views

Why do I need to use \paragraph{} after a \section{} to get correct indenting whereas a blank line suffices for subsequent paragraphs?

I have noticed that whenever I start a new section, subsection, etc., I need to preface my text block with \paragraph{} to get correct indentation for the first paragraph. In subsequent paragraphs, ...
10
votes
2answers
7k views

Prevent a paragraph break after a section heading

In my .cls file for my thesis, I have defined \subsection as follows: \newcommand{\subsection}[1]{% \pagebreak[2] \refstepcounter{subsection} \addcontentsline{toc}{subsection}{ {\protect\...
10
votes
2answers
1k views

Make \section unaffected by \parfillskip

To avoid widow words at the last line of a paragraph, I adjust parfillskip: \parfillskip 0pt plus 0.75\textwidth While this gives nicer paragraphs, it also stretches section titles a little, as you ...
10
votes
3answers
3k views

scrreprt - add levels below \subparagraph

I have to write my thesis in (German) law and we usually use a very nested headline system. I use scrreprt and have these levels: (part) chapter section subsection subsubsection paragraph ...
10
votes
0answers
145 views

How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec?

How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec? In this answer I provide a tentative patch which allows character protrusion to work normally in ...
9
votes
3answers
828 views

Prevent widowing/orphaning of sections that can fit on one page

In my LaTeX document, I want to make it so that sections that can fit entirely on one page are automatically forced to start on the next page so that the section does not get widowed/orphaned. The ...
9
votes
3answers
6k views

Make sections begin on even-numbered pages in documentclass article

I've understood that it's easily solved in the book class. But is there a simple solution for how to do this in the article class?
9
votes
3answers
1k views

How to reverse section numbering for right-to-left languages?

I use XePersian to typeset Persian, but I don't want my section number mirrored! For example, section 3-1 is written as section 1-3, which is embaressing! So, I want my numbers back :-) This issue is ...
9
votes
2answers
13k views

Creating a subsubparagraph

I want to create a subsubparagraph heading (in order to comply with phd guidlines for formatting). I've copied code from article.cls and just made everything 'lower'. However, when I do, although the ...
9
votes
2answers
1k views

How to make the numbering of subsections independent from the numbering of sections?

I am writing a constitution for a society. I would like to have the subsections numbered independently of the way that the sections are numbered, i.e: Section 1 Subsection 1 Subsection 2 ...
9
votes
2answers
1k views

How to make a rule under each section title with KOMA-Script?

This question is more or less a duplicate of this similarly named question, but is not exactly the same. I also want to place a horizontal rule below each section title (exactly like in the linked ...
9
votes
2answers
1k views

How to append code to a section?

In my scrartcl document I want to change the spacing between sections and the first paragraph. Since I am using the parskip package, the parskip is set to a non-zero value. The \section command uses \...
9
votes
1answer
10k views

numbering of \paragraph command

Due to the limitations of the number of subsubsections, subsubsubsections that we can use, I notice that I could replace that with the command \paragraph. Now when I use that, I am amazed by its ...