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
191
votes
4answers
130k 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 ...
307
votes
6answers
736k 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 ...
30
votes
5answers
17k 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 ...
21
votes
4answers
30k 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 ...
82
votes
6answers
113k 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
9answers
24k 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 ...
43
votes
7answers
14k 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 \...
23
votes
4answers
4k 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 ...
27
votes
1answer
13k 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 ...
156
votes
4answers
416k 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 ...
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?
18
votes
2answers
16k 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\...
9
votes
3answers
2k views

Section should automatically start new page if the whole section does not fit on current page

I would like my sections to start on a new page if they do not fit on the current page. In other words: if a section fits on the current page print it, if it does not fit start printing it on the ...
11
votes
1answer
8k 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 ...
11
votes
3answers
2k 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
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\...
9
votes
3answers
1k 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
2answers
17k 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 ...
10
votes
3answers
4k 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 ...
4
votes
1answer
614 views

Small caps in section but not in ToC

With LaTeX, I would like to set all my section titles in small capitals but I need the \textsc to be 'cancelled' in my table of content. Is that possible somehow ? I currently do this : \section[...
58
votes
1answer
85k 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 ...
12
votes
3answers
15k 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 ...
9
votes
1answer
17k views

Add paragraph symbol to section

I would like to ask how can I add the paragraph symbol § so that it will be displayed as below: §4 First section §5 Second section By default it is generated as below when a \...
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?
46
votes
4answers
47k 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-...
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 ...
10
votes
0answers
161 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 ...
10
votes
2answers
2k 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 \...
4
votes
1answer
5k views

How could make the topic of \paragraph not bold?

I am writing a paper for a journal. So I download a template for LaTeX. But it does not define \subsubsubsection. So I use: \setcounter{secnumdepth}{5}% for \subsubsubsection \paragraph{Topic}\mbox{}...
3
votes
1answer
470 views

How to write the “subtitle” like this?

I want to write some subtitle like the bold sentence inside the box, could anyone give me some guide on how to do it? Basically this subtitle is inside a section environment. I have no idea how to ...
3
votes
1answer
392 views

Paragraph and subparagraph titles inherit color settings from TeX group *after* them

I'm getting some strange behaviour when using the color package at paragraph and subparagraph level. See the code snippet below: \usepackage[usenames,dvips]{color} \section{A} {\color{Green} \...
1
vote
1answer
637 views

Beamer miniframes: horizontal space between dots when using the compress option

I'm using the beamer miniframes theme (with subsection=false) and the compress option. Currently the navigation shows the dots for each subsection side-by-side. I would prefer if there would be a ...
7
votes
1answer
11k views

Subsection starting in same line as subsection name [duplicate]

Many articles are structured in the following way: 1. [Title of section 1] 1.1.[title of subsection 1.1].text of subsection 1.1 1.2.[title of subsection 1.2].text of subsection 1.2. 2. [Title os ...
7
votes
1answer
1k views

Numbering of subsections and paragraphs

I have a document style for a report which I'm having to copy to LaTeX format. I'm using pdfLaTeX, for information. In essence, the system is that paragraphs are on the same level as subsections, ...
6
votes
2answers
2k views

How can I inhibit LaTeX to float a table across a section boundary? [duplicate]

Possible Duplicates: Keeping tables/figures close to where they are mentioned How to avoid splitting tables between sections. How do I ensure that figures appear in the section they're associated with?...
3
votes
1answer
793 views

\section with empty title. Show number next to first paragraph

I am working on a document in which the numbers of headers are displayed in a left margin, e.g. 1 Main header some text within the given section. 1.1 A Subheader Some text within ...
1
vote
1answer
506 views

Change headsep only for \section titles

Problem I would like to increase the headsep on pages that start with a section\subsection or paragraph title. I redefined the chapter spacing settings (before and afterskip) according to my wishes ...
1
vote
2answers
73 views

How to use sections/headings in a scrlttr2 letter?

I use scrlttr2 as a letter template? (Together with mailmerge in case that is relevant.) How can I use sections or headings inside of a long letter to structure it? Of course, I don't want to make use ...
44
votes
3answers
42k 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 ...
42
votes
3answers
34k 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 ...
19
votes
2answers
11k 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 \...
9
votes
1answer
40k views

\subsubsubsection, \paragraph and \subparagraph count not reset when starting a new section, subsection, etc

I am trying to use subsection, subsubsection, subsubsubsection, paragraph and subparagraph on my article, and I using a code that was given below. How to add an extra level of sections with headings ...
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 ...
33
votes
3answers
33k 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?
33
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 ...
23
votes
1answer
34k 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
1answer
36k 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 ...
8
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 ...
5
votes
2answers
2k views

Change numbering level for one chapter only

Apologies if this is duplicate but couldn't find it. I have a document using amsmath for chapter, section & subsection numbering, & everything (theorems, lemmas etc) uses the same numbering ...
5
votes
1answer
3k views

End a paragraph and continue normal section

Inside a section, I have plain text and a paragraph. The section starts with normal text, then there is a short paragraph, and finally the normal section text continues. The last part of the text ...