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

learn more… | top users | synonyms

1
vote
1answer
14 views

Include sections of some chapters but not others in table of contents

The title pretty much says it all. I have a long document, which contains chapters, sections, subsections.... The table of contents should only include sections for most of the chapters, but ...
0
votes
1answer
43 views

Command \excludeonly for sections

I understand that there is an \excludeonly{xyz} command where xyz is a LaTeX file name (explained here). This excludes the specified file(s) from compilation. My question is if there is equivalent ...
1
vote
1answer
50 views

How to globally left align the text of paragraphs containing variable-length headers with the first line of the paragraph?

I have several paragraphs each with unique headers of differing lengths: \documentclass[12pt]{article} \begin{document} \subsection{Subsection 1} \paragraph{Title} Paragraph text here. Paragraph ...
4
votes
2answers
88 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 ...
4
votes
1answer
60 views

Empty line after \paragraph?

In order to have a subsubsubsection I have used \paragraph. The problem is that I get text immediately after the tittle. How do I make to get a empty line after \paragraph?
5
votes
1answer
36 views

Spacing after first line with titlesec using runin option in titleformat

I'm using the titlesec package to format my (sub)section titles. I'd like to use the runin option in \titleformat to place my subsections titles within the first paragraph of each subsection. However, ...
0
votes
1answer
65 views

Wrapfigure, \baselineskip if not top of page

TL;DR The wrapfigure environment aligns wrapped content differently, depending on if the page is still empty or not. If the page is not empty, it will lower the wrapped content by \intextsep. I am ...
3
votes
1answer
30 views

How to force part of a paragraph title to correctly align with right marging (using e.g. \hfill)

I would like to have a \paragraph{A paragraph title 2000} with the term '2000' aligned to the right margin. If I use \subsubsection{A subsubsection title \hfill 2000}the term 2000is correctly aligned ...
5
votes
1answer
106 views

Reducing chapter and section spacing for scrbook

I'm using scrbook document class and using chapters and sections. The spacing between chapters and sections is quite large, too large for my taste (before and after the chapter and section). So my ...
5
votes
2answers
59 views

How to renewcommand the word-size in section titles?

I type \section{\Large Section title} to make the section title larger than what it originally appears. Please could you tell me how to achieve this effect by redefining the command \section ...
2
votes
1answer
43 views

Should the sectioning command \paragraph be used to delimit blocks of text of more than one paragraph?

1 An example section I've read that \paragraph is a sectioning command one level lower than \subsubsection. However, it seems to work a little differently. For one thing, it is unnumbered (unless ...
4
votes
1answer
77 views

How to underline a section's title without using the sectsty package (memoir class)?

Can anyone tell me how to underline a section's title without using the sectsty package please? Indeed I am using the memoir class which prohibits this package. Thank You.
0
votes
2answers
40 views

Indentation inside of text

I know that the title of this question might be a little bit confusing, but I don't know how can I solve my problem and even how to search for the solution. I want to make inside a long text something ...
0
votes
2answers
44 views

How can I keep the size of my subsubsection the same size as the paragraph font size?

I would like to keep my subsubsection header the same size of the paragraph font, can someone help me? at the moment the subsubsection font is the equivalent of \small whilst the paragraph font is ...
2
votes
0answers
61 views

Add \paragraph type entries to beamer table of contents

I want a beamer TOC slide like this: SECTION 1 ..Subsection 1 ......Slide Title 1 ..Subsection 2 ......Slide Title 2 ......Slide Title 2 NEXT SECTION ......Another Slide Title In documents I use ...
2
votes
1answer
36 views

In LyX, how can I remove the title and newline in a subsubsection?

I'm using the KOMA-script article class (\documentclass{scrartcl})and would like to remove the title and newline from the subsubsection, leaving me with a number followed by standard text. Ideally ...
4
votes
1answer
41 views

How not show on the Table of Contents the subsubsubsection?

I found this little snippet to get subsubsubsection: % -- For subsubsubsections: \setcounter{secnumdepth}{4} \setcounter{tocdepth}{3} \makeatletter \newcounter {subsubsubsection}[subsubsection] ...
4
votes
3answers
113 views

Control line spacing of section headings

I use macro and titlesec package to create custom \section heading. \documentclass[final]{book} \usepackage{lipsum} \usepackage{titlesec} \titlespacing*{\section}{0pt}{1em}{0.3em} \def ...
1
vote
2answers
107 views

Hanging indents for \section headings

Sometimes, I do have long section headings that take more than one line. I would like to make second and each subsequent line of \section heading indented (so called 'hanging indent'). I know I can ...
1
vote
1answer
18 views

dont apply color in section of Annexs

I create a specific color font for my section and subsection .. \chapterfont{\color{blue}} % sets colour of chapters \sectionfont{\color{purple}} % sets colour of sections ...
2
votes
2answers
90 views

Create new section commands (with correct TOC entries) in KOMA-Script

What is needed to make a new sectioning command which outputs a correct entry in the TOC? For example, a command \foo which outputs something similar to \subsection in the TOC (and in the main ...
3
votes
1answer
96 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 ...
5
votes
1answer
73 views

Figure as superscript in section title

I would like to have a section title of special type: I need it to be a letter with a figure in superscript. My code (that does not work) would be: \documentclass[12pt,a4paper]{article} ...
4
votes
1answer
66 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 : ...
0
votes
1answer
76 views

Titlesec, paragraph title disappears using \titleformat

I am using th titlesec package to redefine paragraphs (as well as a few minor changes). Essentially, I just want to change the format from bold to italic font. Here's my code: ...
3
votes
1answer
85 views

pdflatex raise error when \paragraph inside quote environment

Why I get a error when there is a \paragraph{} (or \subparagraph{}) inside a quote environment? For the example below \documentclass[]{article} \begin{document} \begin{quote} \paragraph{My header} ...
3
votes
1answer
39 views

How can I put an environment within a subsection?

I have this code, but the environment is put at the top of the page above the sections. \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} ...
4
votes
1answer
171 views

Adjusting spacing before and after subparagraph with sectsty

I am helping a friend that is using sectsty to format the titles in his document. How can I adjust the spacing before and after the titles, in particular the subparagraph one? (I know that titlesec ...
5
votes
1answer
106 views

How to set counter for paragraphs in sections?

I want to counter paragraphs, always like x.y where x is section number and y is paragraph number in that section. \documentclass[11pt, twocolumn, a4paper]{article} \usepackage[left=1.5cm, ...
2
votes
1answer
119 views

How to disable indentation in subsubsection using IEEEtran?

I am using IEEEtran and my sub subsections are indented. I tried using \parindent0pt but that removes the indentation of the paragraphs too. Any suggestion?
0
votes
1answer
82 views

Vertical spacing between sections

I would like to know how I can define the vertical space between: a previous section and the new section title; the new section title and the following text. Now it looks like both space measure ...
4
votes
2answers
95 views

Different names of sections

I wish to name my sections as "Exercise x - name" in the text but as "Exercise x" in the ToC and in the \leftmark. Does anyone have an idea for this? I have tried just manipulating my \leftmark by ...
4
votes
1answer
1k 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 ...
1
vote
1answer
92 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 ...
4
votes
1answer
53 views

Fix spacing from sections in toc, and part title

I've got to fix a friend's work that was done with latex. I've got almost all done, but there are a couple of issues that I couldn't fix, so I would like if you can help me please (an article ...
4
votes
1answer
43 views

Removing section separation line just if on top of page

I have horizontal lines separating my subsections and I would like to remove them only if they are on top of the page. Anybody can help me? Thanks! Here is the code snippet of the header of the ...
3
votes
1answer
108 views

Changing heading style of a section

I'm porting my CV from Word to latex. I want to include my publication list, but I want to split it into two halves, my thesis and my journal articles, with the appropriate subheadings. Since academic ...
1
vote
1answer
88 views

How to create inner section like environment with sub-table of contents?

Is there an easy way to create a inner section like environment that can produce a sub-table of contents at a preferred location? The sub-table does not necessarily need to give page numbers, but it ...
1
vote
0answers
46 views

How to get “subsubsections” in the table of contents if the document class is book? [duplicate]

I want to use the book class for a thesis and need to provide the table of content with chapter-section-subsection-subsubsection, all four should be displayed. Is there any trick to make it, as I ...
8
votes
2answers
223 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 ...
6
votes
1answer
236 views

Numbering subsubsections in beamer

I tried using \setbeamertemplate{subsubsection in toc}[subsubsections numbered] but this does not seem to work. Here is a full example: \documentclass{beamer} \setbeamertemplate{section in ...
4
votes
1answer
377 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 ...
3
votes
1answer
61 views

Can I use patchcmd to modify definitions in book.cls?

Below are the commands for \paragraph and \subparagraph in book.cls. \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}% {3.25ex \@plus1ex ...
10
votes
1answer
176 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 ...
0
votes
0answers
35 views

Retrieve current subsection and subsubsection name without label [duplicate]

How do I retrieve the current subsection and subsubsection and paragarph name without using \label. The reason is that then I would have to \label everything and I want a more automated solution. ...
3
votes
1answer
74 views

Why does my new subsectioning heading not gobble the subsection title?

I hope I'm not missing anything obvious. Instead of trying to elaborate on my title, let me illustrate with an MWE: \documentclass[twocolumn]{article} \makeatletter \setcounter{secnumdepth}{4} ...
3
votes
1answer
94 views

Make \vspace appear below empty \subparagraph

I was doing some homework in LaTeX, and I wanted to put some blank space below a subparagraph heading so that I could draw a diagram in after printing it out. For the subparagraphs where I had content ...
3
votes
1answer
54 views

Change the spacing around select paragraphs

How would I make only specified paragraphs have a little extra space above and/or below them compared to the default setting (which seems to be no--or very little--extra space between paragraphs)? An ...
4
votes
2answers
67 views

multido variable in \paragraph prematurely incremented by one

The compilation of the following MCE: \documentclass{report} \usepackage{fixltx2e} \usepackage{multido} \begin{document} \multido{\i=1+1}{4}{% \chapter{I am the chapter \i} \section{I am a ...
2
votes
1answer
170 views

Is it possible to have section titles inside paragraphs?

Is there a way to have section titles that are inside paragraphs, especially when using titlesec package? The runin style and others cause a paragraph break after the input line. What I am aiming for ...