subsubsubsection for scrbook
Why does subsubsubsection not work for documentclass{scrbook} and how can I force it anyway?
There is a MWE:
documentclass{scrbook}
setcounter{secnumdepth}{3}
begin{document}
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
end{document}
With this MWE a get an error: "undefined control sequence subsubsubsection" and the pdf looks like this:

But I need "1.1.1.1.1. Subsubsubsection" in the last line.
sectioning koma-script
|
show 3 more comments
Why does subsubsubsection not work for documentclass{scrbook} and how can I force it anyway?
There is a MWE:
documentclass{scrbook}
setcounter{secnumdepth}{3}
begin{document}
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
end{document}
With this MWE a get an error: "undefined control sequence subsubsubsection" and the pdf looks like this:

But I need "1.1.1.1.1. Subsubsubsection" in the last line.
sectioning koma-script
3
paragraphis the next level aftersubsubsection. Set thesecnumdepthto 4, if you want it numbered as well.
– Troy
Mar 2 '17 at 16:06
I have the same problem and I use paragraph{} or subsubsection*{}.
– domi
Mar 2 '17 at 16:06
2
See this, and this..
– Troy
Mar 2 '17 at 16:07
1
@Troy The questions aims at KOMA-script. The solutions you are refering to seem to require a standard documentclass. Years ago I used the alnumsec package for the additional level, but maybe KOMA-script supports additional levels out of the box now.
– Keks Dose
Mar 2 '17 at 16:12
1
@samcarter That's not the issue. The questions are different, the older questions use standard classes, this one a KOMA-script class. The answers here are not a hack into the internals of LaTeX, but use a well documented feature of KOMA-script.
– Keks Dose
Mar 3 '17 at 12:16
|
show 3 more comments
Why does subsubsubsection not work for documentclass{scrbook} and how can I force it anyway?
There is a MWE:
documentclass{scrbook}
setcounter{secnumdepth}{3}
begin{document}
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
end{document}
With this MWE a get an error: "undefined control sequence subsubsubsection" and the pdf looks like this:

But I need "1.1.1.1.1. Subsubsubsection" in the last line.
sectioning koma-script
Why does subsubsubsection not work for documentclass{scrbook} and how can I force it anyway?
There is a MWE:
documentclass{scrbook}
setcounter{secnumdepth}{3}
begin{document}
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
end{document}
With this MWE a get an error: "undefined control sequence subsubsubsection" and the pdf looks like this:

But I need "1.1.1.1.1. Subsubsubsection" in the last line.
sectioning koma-script
sectioning koma-script
asked Mar 2 '17 at 15:52
GuestUserGuestUser
255312
255312
3
paragraphis the next level aftersubsubsection. Set thesecnumdepthto 4, if you want it numbered as well.
– Troy
Mar 2 '17 at 16:06
I have the same problem and I use paragraph{} or subsubsection*{}.
– domi
Mar 2 '17 at 16:06
2
See this, and this..
– Troy
Mar 2 '17 at 16:07
1
@Troy The questions aims at KOMA-script. The solutions you are refering to seem to require a standard documentclass. Years ago I used the alnumsec package for the additional level, but maybe KOMA-script supports additional levels out of the box now.
– Keks Dose
Mar 2 '17 at 16:12
1
@samcarter That's not the issue. The questions are different, the older questions use standard classes, this one a KOMA-script class. The answers here are not a hack into the internals of LaTeX, but use a well documented feature of KOMA-script.
– Keks Dose
Mar 3 '17 at 12:16
|
show 3 more comments
3
paragraphis the next level aftersubsubsection. Set thesecnumdepthto 4, if you want it numbered as well.
– Troy
Mar 2 '17 at 16:06
I have the same problem and I use paragraph{} or subsubsection*{}.
– domi
Mar 2 '17 at 16:06
2
See this, and this..
– Troy
Mar 2 '17 at 16:07
1
@Troy The questions aims at KOMA-script. The solutions you are refering to seem to require a standard documentclass. Years ago I used the alnumsec package for the additional level, but maybe KOMA-script supports additional levels out of the box now.
– Keks Dose
Mar 2 '17 at 16:12
1
@samcarter That's not the issue. The questions are different, the older questions use standard classes, this one a KOMA-script class. The answers here are not a hack into the internals of LaTeX, but use a well documented feature of KOMA-script.
– Keks Dose
Mar 3 '17 at 12:16
3
3
paragraph is the next level after subsubsection. Set the secnumdepth to 4, if you want it numbered as well.– Troy
Mar 2 '17 at 16:06
paragraph is the next level after subsubsection. Set the secnumdepth to 4, if you want it numbered as well.– Troy
Mar 2 '17 at 16:06
I have the same problem and I use paragraph{} or subsubsection*{}.
– domi
Mar 2 '17 at 16:06
I have the same problem and I use paragraph{} or subsubsection*{}.
– domi
Mar 2 '17 at 16:06
2
2
See this, and this..
– Troy
Mar 2 '17 at 16:07
See this, and this..
– Troy
Mar 2 '17 at 16:07
1
1
@Troy The questions aims at KOMA-script. The solutions you are refering to seem to require a standard documentclass. Years ago I used the alnumsec package for the additional level, but maybe KOMA-script supports additional levels out of the box now.
– Keks Dose
Mar 2 '17 at 16:12
@Troy The questions aims at KOMA-script. The solutions you are refering to seem to require a standard documentclass. Years ago I used the alnumsec package for the additional level, but maybe KOMA-script supports additional levels out of the box now.
– Keks Dose
Mar 2 '17 at 16:12
1
1
@samcarter That's not the issue. The questions are different, the older questions use standard classes, this one a KOMA-script class. The answers here are not a hack into the internals of LaTeX, but use a well documented feature of KOMA-script.
– Keks Dose
Mar 3 '17 at 12:16
@samcarter That's not the issue. The questions are different, the older questions use standard classes, this one a KOMA-script class. The answers here are not a hack into the internals of LaTeX, but use a well documented feature of KOMA-script.
– Keks Dose
Mar 3 '17 at 12:16
|
show 3 more comments
3 Answers
3
active
oldest
votes
Update (needs KOMA-Script version 3.26b)
The original answer below is still correct. But there are the new command RedeclareSectionCommands, the new options runin and afterindent. And there are some options predefined for new section levels using style=section.
Suggestion 1: Declaring new section level subsubsubsection as a displayed title
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
afterskip=1.5ex plus .2ex,
beforeskip=3.25ex plus 1ex minus .2ex,
afterindent=false,
level=paragraphnumdepth,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subparagraphtocdepth}
RedeclareSectionCommands[
level=numexprsubsubsubsectionnumdepth+1relax,
toclevel=numexprsubsubsubsectiontocdepth+1relax,
increaselevel
]{paragraph,subparagraph}
RedeclareSectionCommand[
counterwithin=subsubsubsection,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}
Suggestion 2: Redefining paragraph as a displayed title:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
afterindent=false
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}
Original answer
You can declare a new section level subsubsubsection. But then you have to redeclare paragraph and subparagraph to adjust the its levels etc.:
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
RedeclareSectionCommand[
level=5,
counterwithin=subsubsubsection,
toclevel=5,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
level=6,
toclevel=6,
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}

If do not use paragraph as a runin title, you can redeclare section level paragraph using a positive value for afterskip:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}

add a comment |
The easiest way is to use paragraph and to redefine its formatting:
documentclass{scrbook}
setcounter{secnumdepth}{5}
RedeclareSectionCommand[
counterwithin=subsubsection,
toclinefill=hfill,
tocindent=3.5ex,
tocnumwidth=1ex,
tocdynnumwidth=true,
tocraggedentrytext=true,
tocentryformat=fontintocitshape,
tocpagenumberformat=fontintoc,
beforeskip=10pt,%
afterskip=1pt,
font=normalfontitshape
]{paragraph}
begin{document}
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Subsubsubsection}
end{document}

add a comment |
If you want to leave paragraph and subparagraph as is, then you need only new level numbers for it and can then define subsubsubsection:
documentclass{scrbook}
RedeclareSectionCommand[level=6,toclevel=6]{subparagraph}
RedeclareSectionCommand[level=5,toclevel=5]{paragraph}
DeclareSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1ex plus .2ex,
beforeskip=-3.25ex plus -1ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
paragraph{foo} lipsum[1]
subparagraph{bar} lipsum[1]
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f356567%2fsubsubsubsection-for-scrbook%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Update (needs KOMA-Script version 3.26b)
The original answer below is still correct. But there are the new command RedeclareSectionCommands, the new options runin and afterindent. And there are some options predefined for new section levels using style=section.
Suggestion 1: Declaring new section level subsubsubsection as a displayed title
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
afterskip=1.5ex plus .2ex,
beforeskip=3.25ex plus 1ex minus .2ex,
afterindent=false,
level=paragraphnumdepth,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subparagraphtocdepth}
RedeclareSectionCommands[
level=numexprsubsubsubsectionnumdepth+1relax,
toclevel=numexprsubsubsubsectiontocdepth+1relax,
increaselevel
]{paragraph,subparagraph}
RedeclareSectionCommand[
counterwithin=subsubsubsection,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}
Suggestion 2: Redefining paragraph as a displayed title:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
afterindent=false
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}
Original answer
You can declare a new section level subsubsubsection. But then you have to redeclare paragraph and subparagraph to adjust the its levels etc.:
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
RedeclareSectionCommand[
level=5,
counterwithin=subsubsubsection,
toclevel=5,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
level=6,
toclevel=6,
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}

If do not use paragraph as a runin title, you can redeclare section level paragraph using a positive value for afterskip:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}

add a comment |
Update (needs KOMA-Script version 3.26b)
The original answer below is still correct. But there are the new command RedeclareSectionCommands, the new options runin and afterindent. And there are some options predefined for new section levels using style=section.
Suggestion 1: Declaring new section level subsubsubsection as a displayed title
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
afterskip=1.5ex plus .2ex,
beforeskip=3.25ex plus 1ex minus .2ex,
afterindent=false,
level=paragraphnumdepth,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subparagraphtocdepth}
RedeclareSectionCommands[
level=numexprsubsubsubsectionnumdepth+1relax,
toclevel=numexprsubsubsubsectiontocdepth+1relax,
increaselevel
]{paragraph,subparagraph}
RedeclareSectionCommand[
counterwithin=subsubsubsection,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}
Suggestion 2: Redefining paragraph as a displayed title:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
afterindent=false
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}
Original answer
You can declare a new section level subsubsubsection. But then you have to redeclare paragraph and subparagraph to adjust the its levels etc.:
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
RedeclareSectionCommand[
level=5,
counterwithin=subsubsubsection,
toclevel=5,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
level=6,
toclevel=6,
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}

If do not use paragraph as a runin title, you can redeclare section level paragraph using a positive value for afterskip:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}

add a comment |
Update (needs KOMA-Script version 3.26b)
The original answer below is still correct. But there are the new command RedeclareSectionCommands, the new options runin and afterindent. And there are some options predefined for new section levels using style=section.
Suggestion 1: Declaring new section level subsubsubsection as a displayed title
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
afterskip=1.5ex plus .2ex,
beforeskip=3.25ex plus 1ex minus .2ex,
afterindent=false,
level=paragraphnumdepth,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subparagraphtocdepth}
RedeclareSectionCommands[
level=numexprsubsubsubsectionnumdepth+1relax,
toclevel=numexprsubsubsubsectiontocdepth+1relax,
increaselevel
]{paragraph,subparagraph}
RedeclareSectionCommand[
counterwithin=subsubsubsection,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}
Suggestion 2: Redefining paragraph as a displayed title:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
afterindent=false
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}
Original answer
You can declare a new section level subsubsubsection. But then you have to redeclare paragraph and subparagraph to adjust the its levels etc.:
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
RedeclareSectionCommand[
level=5,
counterwithin=subsubsubsection,
toclevel=5,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
level=6,
toclevel=6,
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}

If do not use paragraph as a runin title, you can redeclare section level paragraph using a positive value for afterskip:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}

Update (needs KOMA-Script version 3.26b)
The original answer below is still correct. But there are the new command RedeclareSectionCommands, the new options runin and afterindent. And there are some options predefined for new section levels using style=section.
Suggestion 1: Declaring new section level subsubsubsection as a displayed title
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
afterskip=1.5ex plus .2ex,
beforeskip=3.25ex plus 1ex minus .2ex,
afterindent=false,
level=paragraphnumdepth,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subparagraphtocdepth}
RedeclareSectionCommands[
level=numexprsubsubsubsectionnumdepth+1relax,
toclevel=numexprsubsubsubsectiontocdepth+1relax,
increaselevel
]{paragraph,subparagraph}
RedeclareSectionCommand[
counterwithin=subsubsubsection,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}
Suggestion 2: Redefining paragraph as a displayed title:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
afterindent=false
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}
Original answer
You can declare a new section level subsubsubsection. But then you have to redeclare paragraph and subparagraph to adjust the its levels etc.:
documentclass{scrbook}
DeclareNewSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
RedeclareSectionCommand[
level=5,
counterwithin=subsubsubsection,
toclevel=5,
tocindent=12em,
tocnumwidth=6em
]{paragraph}
RedeclareSectionCommand[
level=6,
toclevel=6,
tocindent=14em,
tocnumwidth=7em
]{subparagraph}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
end{document}

If do not use paragraph as a runin title, you can redeclare section level paragraph using a positive value for afterskip:
documentclass{scrbook}
RedeclareSectionCommand[
afterskip=1.5ex plus .2ex,
beforeskip=-3.25ex plus -1ex minus -.2ex
]{paragraph}
setcounter{secnumdepth}{paragraphnumdepth}
setcounter{tocdepth}{paragraphtocdepth}
usepackage{lipsum}% dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Paragraph}
lipsum[1-2]
end{document}

edited 5 hours ago
answered Mar 2 '17 at 16:26
esddesdd
60k34793
60k34793
add a comment |
add a comment |
The easiest way is to use paragraph and to redefine its formatting:
documentclass{scrbook}
setcounter{secnumdepth}{5}
RedeclareSectionCommand[
counterwithin=subsubsection,
toclinefill=hfill,
tocindent=3.5ex,
tocnumwidth=1ex,
tocdynnumwidth=true,
tocraggedentrytext=true,
tocentryformat=fontintocitshape,
tocpagenumberformat=fontintoc,
beforeskip=10pt,%
afterskip=1pt,
font=normalfontitshape
]{paragraph}
begin{document}
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Subsubsubsection}
end{document}

add a comment |
The easiest way is to use paragraph and to redefine its formatting:
documentclass{scrbook}
setcounter{secnumdepth}{5}
RedeclareSectionCommand[
counterwithin=subsubsection,
toclinefill=hfill,
tocindent=3.5ex,
tocnumwidth=1ex,
tocdynnumwidth=true,
tocraggedentrytext=true,
tocentryformat=fontintocitshape,
tocpagenumberformat=fontintoc,
beforeskip=10pt,%
afterskip=1pt,
font=normalfontitshape
]{paragraph}
begin{document}
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Subsubsubsection}
end{document}

add a comment |
The easiest way is to use paragraph and to redefine its formatting:
documentclass{scrbook}
setcounter{secnumdepth}{5}
RedeclareSectionCommand[
counterwithin=subsubsection,
toclinefill=hfill,
tocindent=3.5ex,
tocnumwidth=1ex,
tocdynnumwidth=true,
tocraggedentrytext=true,
tocentryformat=fontintocitshape,
tocpagenumberformat=fontintoc,
beforeskip=10pt,%
afterskip=1pt,
font=normalfontitshape
]{paragraph}
begin{document}
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Subsubsubsection}
end{document}

The easiest way is to use paragraph and to redefine its formatting:
documentclass{scrbook}
setcounter{secnumdepth}{5}
RedeclareSectionCommand[
counterwithin=subsubsection,
toclinefill=hfill,
tocindent=3.5ex,
tocnumwidth=1ex,
tocdynnumwidth=true,
tocraggedentrytext=true,
tocentryformat=fontintocitshape,
tocpagenumberformat=fontintoc,
beforeskip=10pt,%
afterskip=1pt,
font=normalfontitshape
]{paragraph}
begin{document}
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
paragraph{Subsubsubsection}
end{document}

edited Mar 2 '17 at 16:30
answered Mar 2 '17 at 16:25
Keks DoseKeks Dose
21.4k35495
21.4k35495
add a comment |
add a comment |
If you want to leave paragraph and subparagraph as is, then you need only new level numbers for it and can then define subsubsubsection:
documentclass{scrbook}
RedeclareSectionCommand[level=6,toclevel=6]{subparagraph}
RedeclareSectionCommand[level=5,toclevel=5]{paragraph}
DeclareSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1ex plus .2ex,
beforeskip=-3.25ex plus -1ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
paragraph{foo} lipsum[1]
subparagraph{bar} lipsum[1]
end{document}
add a comment |
If you want to leave paragraph and subparagraph as is, then you need only new level numbers for it and can then define subsubsubsection:
documentclass{scrbook}
RedeclareSectionCommand[level=6,toclevel=6]{subparagraph}
RedeclareSectionCommand[level=5,toclevel=5]{paragraph}
DeclareSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1ex plus .2ex,
beforeskip=-3.25ex plus -1ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
paragraph{foo} lipsum[1]
subparagraph{bar} lipsum[1]
end{document}
add a comment |
If you want to leave paragraph and subparagraph as is, then you need only new level numbers for it and can then define subsubsubsection:
documentclass{scrbook}
RedeclareSectionCommand[level=6,toclevel=6]{subparagraph}
RedeclareSectionCommand[level=5,toclevel=5]{paragraph}
DeclareSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1ex plus .2ex,
beforeskip=-3.25ex plus -1ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
paragraph{foo} lipsum[1]
subparagraph{bar} lipsum[1]
end{document}
If you want to leave paragraph and subparagraph as is, then you need only new level numbers for it and can then define subsubsubsection:
documentclass{scrbook}
RedeclareSectionCommand[level=6,toclevel=6]{subparagraph}
RedeclareSectionCommand[level=5,toclevel=5]{paragraph}
DeclareSectionCommand[
style=section,
counterwithin=subsubsection,
font=normalsize,
afterskip=1ex plus .2ex,
beforeskip=-3.25ex plus -1ex,
indent=0pt,
level=4,
tocstyle=section,
toclevel=4,
tocindent=10em,
tocnumwidth=5em
]{subsubsubsection}
setcounter{secnumdepth}{subsubsubsectionnumdepth}
setcounter{tocdepth}{subsubsubsectiontocdepth}
usepackage{lipsum}% only for dummy text
begin{document}
tableofcontents
chapter{Chapter}
section{Section}
subsection{Subsection}
subsubsection{Subsubsection}
subsubsubsection{Subsubsubsection}
lipsum[1-2]
paragraph{foo} lipsum[1]
subparagraph{bar} lipsum[1]
end{document}
answered Mar 2 '17 at 17:27
user2478
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f356567%2fsubsubsubsection-for-scrbook%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
paragraphis the next level aftersubsubsection. Set thesecnumdepthto 4, if you want it numbered as well.– Troy
Mar 2 '17 at 16:06
I have the same problem and I use paragraph{} or subsubsection*{}.
– domi
Mar 2 '17 at 16:06
2
See this, and this..
– Troy
Mar 2 '17 at 16:07
1
@Troy The questions aims at KOMA-script. The solutions you are refering to seem to require a standard documentclass. Years ago I used the alnumsec package for the additional level, but maybe KOMA-script supports additional levels out of the box now.
– Keks Dose
Mar 2 '17 at 16:12
1
@samcarter That's not the issue. The questions are different, the older questions use standard classes, this one a KOMA-script class. The answers here are not a hack into the internals of LaTeX, but use a well documented feature of KOMA-script.
– Keks Dose
Mar 3 '17 at 12:16