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
0
votes
0answers
48 views

Avoid new line after \paragraph{Blah blah} command

My corporate template bolds the text provided to the \paragraph{Blah blah} command and adds a new line. I want the bolding, but I don't want the new line. Too many paragraphs, and it just uses up so ...
2
votes
2answers
28 views

Getting error when using multiple “\paragraph”s

I am trying to make two paragraps one after another using \paragraph: \begin{proof} \paragraph{Case 1} If $ \mu E_N = \infty $ for some $ N $, then $ \mu E_m = \infty $ for all $ m \geq N $. Also $ \...
1
vote
2answers
58 views

Format \section like \subsection (except for numbering)

Is there an easy way to have \section headings be numbered in the usual way, but inherit their formatting from \subsection, so that section 3 below is formatted exactly like subsection 1.1, including ...
1
vote
1answer
28 views

Customise space after \paragraph

This is a simple question but somewhat hard to search for, so it may already have been asked. What’s the easiest way to customise the spacing that appears after the \paragraph section heading so that ...
0
votes
1answer
24 views

adding subsubsection to Koma-script scrreprt

The Koma-script class scrreprt does not provide numbering of \subsubsection. I would like to have, if possible, \subsubsection available like \subsection. I have found a solution but the question is ...
0
votes
1answer
28 views

Beamer subsections

I tried to point my subsections. I have a table of content and I want to show the subsection I will talk about before the frame in which I will talk about it. I managed to do such thing with sections ...
1
vote
1answer
37 views

How to define \section to compile conditionally

I would like to create a structural delimiter that behaves identically to \section but compiles conditionally. In the MWE below I have labeled it \draftsection. The content of this section should ...
2
votes
1answer
96 views

Keeping section heading with body paragraph & image (context)

How can you get Context MkIV to automatically put in page breaks to keep \section, etc. headings with the paragraph when accompanied with a floating image, instead of putting the heading at the end of ...
2
votes
1answer
46 views

“Loose” section/paragraph numbering

EDIT Playing around with the nice amsthm solution by egreg below I realized that I really would prefer an equivalent ntheorem construction. Can anyone help out here? There are Math books which use a "...
1
vote
1answer
33 views

Command for switching exercise styles

I am trying to create a command that allows me (or the user) to switch between two different styles for typesetting problems. One is the runin in the margin, while the other one is defined by ...
1
vote
1answer
64 views

Adding the fourth level of section

I am using overleaf and I want to go to the fourth section. I am using \chapter, \section \subsection and \subsubsection. I want the (1.1.1.1 desired) mark. I tried using \paragraph but it is not ...
0
votes
0answers
18 views

Why does my text insert on the same line as my section title? [duplicate]

I want to use section numbers with the following sequence: 1 Section 1.1 Sub Section 1.1.1 Sub Sub Section 1.1.1.1 Sub Sub Sub Section I have found a way to do this using the following code but ...
2
votes
0answers
57 views

Extremely weird formatting of text in section

\documentclass[a4paper, 11pt]{book} % Packages \usepackage[utf8]{inputenc} \usepackage{graphicx} % For images \usepackage{titling} % For adjusting white space above headers \usepackage{titlesec} % ...
1
vote
1answer
34 views

How to change the color in ' \section{.} '

\documentclass[12]{article} \usepackage{lmodern} \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathrsfs} \usepackage{amsthm} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[...
36
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 ...
0
votes
2answers
18 views

Remove spacing between repeated empty subsubsections

I'm writing a technical specification document, and each section is one part of the specification. But in many situations it makes sense to group together multiple parts of the specification and ...
0
votes
0answers
20 views

How to make a space between section's number and the title

I was so confused of thinking about this. I'm trying to make a space between the section number and the text after it. I want to make a chapter as illustrated below. I have no idea about this because ...
2
votes
1answer
172 views

KOMA-Script - paragraph new line without space and parskip

I am currently writing my master thesis with KOMA-Class srcreprt and I am a little bit weird about blank lines in paragraphs, parskips and sectioning vertical space. As I have learned usage of \\ as ...
1
vote
1answer
27 views

How to assign titles to paragraphs, followed by a line break?

If I want to give a title to a paragraph I can just use \paragraph{Respective Title} *Text* However, I cannot put a line break between the title and the text, since it would give a compilation error. ...
0
votes
0answers
52 views

Paragraph Styles

Trying to set up a section mimicking U.S.C. format: Question - Is there a way to set up personal paragraph styles. ie. paragraph section; paragraph subsection; clause, etc. Indents are set at 2em ...
0
votes
0answers
19 views

why \subparagraph in text does not appear in Table of Content and no numbering? [duplicate]

\section{section} \subsection{subsection} \subsubsection{subsubsection} \paragraph{paragraph} \subparagraph{subparagraph} Outcome: Why in table of content or text as 1.1.1.1.1 subparagraph I am ...
2
votes
1answer
36 views

How to make different command for subparagraph (or any other sectioning) with empty and nonempty title?

I want to make a sectioning command (for example subparagraph) that will have a different behavior for command with empty title. This is my MWE, showing somewhat about i want to get: \documentclass{...
0
votes
0answers
30 views

(Section in Latex) How to added 1.1.1.2 [duplicate]

\section{First,1 } \subsection{Second,2} \subsubsection{Third,3} \subsubsection{Third,3} \paragraph{Fourth, 4} \subparagraph{Fifth,5} Output: 1 First,1 1.1 Second,2 1.1.1 Third,3 1.1.2 Third,3 ...
1
vote
1answer
678 views

Starting text right after section in -res- class

Is it possible to start your text right after the section in the res class? As an alternative, one could also fake a section title's look (font) etc. However, how would you fully indent it to the left ...
0
votes
1answer
37 views

How do I indent the first line of \paragraph{Title}

When using \paragraph{}, the first line is not indented by default. How can I change the setting so the default will be indented? Update: Here is an example of what I want to do. I have \...
1
vote
1answer
47 views

Prevent line break after SOME (sub)section declarations

I am trying to prevent the automatic line break that happens after a (sub)section declaration, but only for some subsections. I know that I could use: \titleformat{\subsection}[runin] but this ...
0
votes
1answer
48 views

How to use the \plainfancybreak* command from the memoir class with the book class

I would like to use something similar to \plainfancybreak* as defined in the memoir class doc (pg 99), but in the book class. Is it possible? FYI: The \plainfancybreak*{<space>}{<num>}{&...
0
votes
0answers
36 views

Unwanted vertical space between \paragraph objects

I have the following LaTeX code: \section{Related Work} \paragraph{Paragraph 1.} This is a very nice paragraph, it contains some words. \paragraph{Paragraph 2.} This is a very nice paragraph as well, ...
3
votes
1answer
49 views

How to center particular sections?

I am a very new in LaTex. Can anybody help me with this: I need that some my sections will be centred and without a number, but other will be with the number and be aligned to the begining of text. ...
7
votes
1answer
313 views

numbering from Indian to arabic “arabic babel”

\documentclass[12pt]{arabbook} %%%%%%%%%%% packages \usepackage{fancyhdr} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english, arabic]{babel} \usepackage{t1enc} \usepackage{float} ...
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 ...
0
votes
0answers
26 views

Why vertical spacing discrepancy with parskip for paragraph command?

I have a LaTeX document that contains something similar to the code below. When I compile with pdflatex on Windows and Linux, there is extra vertical space just before the \paragraph command on the ...
1
vote
3answers
7k views

How to change the numbers on a section?

I would like to relabel the numbering on the \section{} to match the lecture number. Issue is don't I start the document at lecture 1, hence the discrepancies. Any help would be most appreciated.
1
vote
2answers
2k views

How to manually set the subsection number

Is there a way to start the page with a 5.2 subsection: 5.2 Section 5.2.5 Subsection 5.2.6 Subsection Otherwise, i get the 1 section and 0.1 subsection, which i don't need. Is there a package or a ...
1
vote
1answer
159 views

Repeated section titles clipping / overflowing through page

So I am currently writing a report in Latex, I chose to use the "classicthesis" template in the Overleaf editor. The problem I have is that the repeated section titles (i.e. if I begin a section and ...
2
votes
2answers
69 views

Anonymous division in memoir with small caps

I want to create "anonymous divisions" -- breaks in the text that do not have their own section titles. I'm using the memoir class, and it provides \plainbreak{} and \fancybreak{} for this purpose. ...
0
votes
1answer
37 views

Less distance subsubsection in cleanthesis style

How can I reduce the distance between the subsubsection heading and the text in the Clean Thesis Style? I didn't find anything about it.
9
votes
2answers
2k 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 ...
252
votes
5answers
595k 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 ...
6
votes
1answer
921 views

Titlesec package - paragraph level headings as margin notes

After hours of pointless googling around I did not manage to find out how... I'm new to LaTeX templates and now I'm trying to make simple (?) modification so that I could have paragraph level headings ...
0
votes
1answer
32 views

Indent 2nd line of multi-line header \paragraph

Writing a text in the article class, there are levels of headers until \subsubsection. However, for the next lower header type, \paragraph needs to be used. If this is a multi-line header, it is not ...
0
votes
0answers
25 views

How to set a fixed distance between section and the text in a twocolumn document

I would like to know how to set a fixd distance bewteen the title of a section and corresponding text. \documentclass[twocolumn,prl,nobalancelastpage,aps,10pt]{revtex4-1} %\documentclass[rmp,...
1
vote
0answers
55 views

\paragraph does not act as \section, the body text continues on the same line [duplicate]

Hi My \paragraph after \subsubsection does not act as a section, the text continues on the same line as title. Please help.
3
votes
2answers
141 views

How to remove space in section title at KOMA-Script

Here is MWE: \documentclass{scrartcl} \usepackage{adforn} \renewcommand{\sectionlinesformat}[4]{% \ifstr{#1}{section}{% {\adforn{30} {#3}. {#4} \adforn{58}} } {{\...
0
votes
0answers
35 views

Formatting section, subsection, subsubsection, paragraph titles and text

Background: I did my master's thesis 18 years ago in LaTeX, but basically haven't touched it since. I am trying to format a xelatex document to look like the following sample: 1 So the short ...
12
votes
1answer
483 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 ...
1
vote
1answer
110 views

Section styling similar to the elsarticle class

Since I have become quite used to the style of Elsevier articles, I would like to adopt a similar style also for notes that are not intended for submission. In particular, I attempted to mimic the ...
0
votes
2answers
231 views

argument of @sect has an extra run away argument

I am new to latex, so excuse me. I keep getting "argument of @sect has an extra run away argument" and I don't know how to fix it. Thanks \documentclass{article} \usepackage{amsmath} \usepackage{...
1
vote
1answer
137 views

Placing a figure with subfigures immediately below paragraph title

I would like to have some paragraphs including a sequence of figures (no text at all). However I am not succeeding in placing the figures right below the paragraph title. What happens is that the ...
0
votes
1answer
67 views

Section title running into margin

In the below MWE one can see that the section title runs into the margin of the page. This is due to the use of the \mbox{...}, but the \mbox is unfortunately in the normal case, automatically ...