24
votes
How to add an extra level of sections with headings below \subsubsection
I know this is an old question, but I found it with Google and I think the solutions are too complicated.
For me this is the easiest way for a subsubsubsection:
\newcommand{\subsubsubsection}[1]{\...
22
votes
Accepted
Why is \paragraph treated as level below \subsubsection?
Historically speaking this is inherited from Scribe (designed by Brian Reid in 1979 or so). This system heavily influenced many decisions that Leslie made and you can trace a lot of LaTeX back to ...
22
votes
Accepted
How to get this fancier line to divide paragraphs?
The requested symbol and several other similar ones are part of the package https://ctan.org/pkg/pgfornament. Below is a screenshot from the pages 20 and 21 of the manual. You see that your ornament ...
20
votes
Accepted
Why does \color{blue} after \paragraph{...} color the paragraph title blue?
\paragraph is set at the start of the next paragraph. The next paragraph starts with the first letter O of Only after \color{blue}.
Fixes:
\leavevmode to explicitly start the paragraph before the ...
16
votes
Accepted
How to suppress the final period (".") in paragraph titles?
The definition in elsarticle is badly written, because it unconditionally adds a period.
You can change it in a way that will add the period only if no punctuation follows the title with the help of ...
15
votes
paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?
I have seen many hacks for this, including \mbox{} and other approaches but this one is the most convenient!
\paragraph ~\\
Source for the answer
15
votes
How to add an extra level of sections with headings below \subsubsection
The are two good answers to show how to add a new level section or modify an existing one. But both are assuming some basic knowledge of LaTeX and typography. Maybe these remarks can help to new ...
14
votes
How to write the following section in LaTeX?
You can use the enumitem package to make your life easy:
\documentclass{article}
\usepackage{amsmath}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[start=42]
\item Prove that,
\begin{...
14
votes
Why does \color{blue} after \paragraph{...} color the paragraph title blue?
To complement Heiko’s (as usual) fine answer, some more words about the workings of \paragraph.
The command is defined in terms of \@startsection with a certain set of parameters, one of which is ...
11
votes
Accepted
How to reverse section numbering for right-to-left languages?
Using the solution from Fix nested section numbers in RTL languages with polyglossia (and no, I haven't gotten down to why this works yet):
\documentclass{book}
\usepackage{polyglossia}
\...
11
votes
Accepted
How to add rectangle or other symbols before section name?
You already added titlesec to your tags, so you could use this package. For example like this:
\documentclass[utf8]{article}
\usepackage{titlesec,xcolor}
\titleformat{\section}{\bfseries\Large}{\...
10
votes
How to add an extra level of sections with headings below \subsubsection
This very excellent answer can also very easily be expanded to add \subsubsubsection and \subsubsubsubsection commands:
\documentclass{article}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\...
10
votes
Accepted
Start new page with each section
With an uptodate TeX distribution you can use
\AddToHook{cmd/section/before}{\clearpage}
Example:
\documentclass{article}
\AddToHook{cmd/section/before}{\clearpage}
\begin{document}
\tableofcontents
...
10
votes
Accepted
10
votes
How to write in the following manner?
Combining one of the examples from the Wikibook and the matching package documentation, we get the following.
\documentclass[12pt]{exam}
\usepackage{tasks}
\settasks{
counter-format=(tsk[r]),
...
9
votes
How to reference \paragraph?
If you use the hyperref and the nameref package and label your paragraph:
\paragraph{The Elephant}\label{para:xyz}
Than you can use \autoref{para:xyz}, \nameref{para:xyz} within your code to get e....
9
votes
How to add an extra level of sections with headings below \subsubsection
With KOMA-Script classes you do not need nor should use an extra package to redefine sectioning commands or define new sectioning levels. And you don't need and should not use low level code.
These ...
9
votes
Accepted
How to create subsubparagraph and subsubsubparagraph?
Note that package titlesec breaks some of the KOMA-Script features. So it is not recommended to use this package together with scrartcl.
You can use \DeclareNewSectionCommands and \...
8
votes
Start new page with each section
The accepted answer in that form won't work as expected in LyX. This solution causes problems when the document includes a ToC and hyperref support: It makes the paging of the hyperref links be off-...
8
votes
How to suppress the final period (".") in paragraph titles?
And for the case that the puplisher complains that you did redefine internal commands here an add-hoc solution:
\documentclass{elsarticle}
\newcommand\eatpunct[1]{}
\begin{document}
\paragraph[Bla?]{...
8
votes
Prevent widowing/orphaning of sections that can fit on one page
Here is one suggestion.
Change the auto-generation of the code so that
\section{<title>}
...
is replaced by
\begin{chunk}{<title>}
...
\end{chunk}
Use environ to define the ...
8
votes
Accepted
Paragraph title in ConTeXt (similar to LaTeX \paragraph{})
Simply set alternative=text to get the correct spacing. With altenative=text, before and after keys are ignored. Instead you can use commandafter to set the bullet after the section title. By default, ...
8
votes
How to manually set the subsection number
Is there a way to start the page with a 5.2 subsection?
How about
\clearpage % start a new page here
\setcounter{section}{5}
\setcounter{subsection}{1}
\subsection{Hello World} % increments '...
8
votes
Accepted
Beamer automating numbering sections and subsections
Numbering of sections and subsection is automatic in latex - so I guess your question might be how to display these numbers?
To display them in the toc:
\setbeamertemplate{section in toc}[sections ...
8
votes
Accepted
KOMA-Script scrbook: How to remove period after sections and subsections?
If only chapters should get a dot at the end of the numbers, you can use numbers=noenddot to remove the enddot for all numbers. The dot for chapters in headings and ToC can be added by
\usepackage{...
8
votes
Accepted
Change "paragraph" to "subsubsubsubsection"
To make \autoref work properly you need to add
\def\paragraphautorefname{subsubsubsubsection}
or better, if you use babel(for example \usepackage[english]{babel}) :
\addto\extrasenglish{%
\def\...
7
votes
Start new page with each section
Another solution, which uses the sectsty package:
\usepackage{sectsty}
\sectionfont{\clearpage}
7
votes
How to reference \paragraph?
I agree that the \setcounter{secnumdepth}{6} is an answer (though, \setcounter{secnumdepth}{4} is enough, because 5 is a subparagraph. The side effect is, however, that paragraph appears numbered.
...
7
votes
Accepted
referencing Subsubsection is not working as intended
You need to set the secnumdepth counter to at least 3 to get the correct sectioning numbers to be generated:
\documentclass[12pt]{report}
\setcounter{secnumdepth}{3}
\begin{document}
\chapter{...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sections-paragraphs × 455sectioning × 262
numbering × 50
spacing × 45
table-of-contents × 39
titlesec × 35
paragraphs × 35
formatting × 32
indentation × 24
koma-script × 21
chapters × 19
page-breaking × 16
floats × 11
positioning × 11
line-breaking × 11
line-spacing × 11
beamer × 10
hyperref × 10
cross-referencing × 10
macros × 9
lyx × 8
memoir × 8
header-footer × 7
lists × 7
enumerate × 7