Modifying toc in KOMA-Script
up vote
3
down vote
favorite
I have found out that, in KOMA-Script, I can modify the TOC (see the KOMA-manual, page 72). It can be done by using the option toc
.
However, how do I use this option? To which command do I have to add it?
And (teaching a man to fish) - how can I find this out from the manual?
table-of-contents koma-script
add a comment |
up vote
3
down vote
favorite
I have found out that, in KOMA-Script, I can modify the TOC (see the KOMA-manual, page 72). It can be done by using the option toc
.
However, how do I use this option? To which command do I have to add it?
And (teaching a man to fish) - how can I find this out from the manual?
table-of-contents koma-script
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have found out that, in KOMA-Script, I can modify the TOC (see the KOMA-manual, page 72). It can be done by using the option toc
.
However, how do I use this option? To which command do I have to add it?
And (teaching a man to fish) - how can I find this out from the manual?
table-of-contents koma-script
I have found out that, in KOMA-Script, I can modify the TOC (see the KOMA-manual, page 72). It can be done by using the option toc
.
However, how do I use this option? To which command do I have to add it?
And (teaching a man to fish) - how can I find this out from the manual?
table-of-contents koma-script
table-of-contents koma-script
edited Nov 23 at 12:11
Kurt
35k847158
35k847158
asked Nov 23 at 10:15
Lukas
705
705
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
5
down vote
accepted
You can add option toc=<value>
as class option
documentclass[toc=<value>]{<KOMA-Script class>}
or later using
KOMAoptions{toc=<value>}
or you can use
KOMAoption{toc}{<value list>}
Examples:
documentclass[toc=flat,toc=listof]{scrartcl}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoptions{toc=flat,toc=listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoption{toc}{flat,listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
results all in
There is a table with all possible values of option toc
in the documentation (»Table 3.5.: Available values of the toc option to set the format and contents of the table of contents«).
More information regarding the setting of KOMA-Script options can be found eg in section »3.1. Early or Late Selection of Options«.
Additional remark:
Note that the KOMA-Script classes load and use package tocbasic
for the TOC, LOF, LOT and maybe other lists. So you could also use the macros and settings of tocbasic
to modify TOC entries. See »Chapter 15: Managing Content Lists with tocbasic« in »Part II. KOMA -Script for Advanced Users and Experts«.
add a comment |
up vote
2
down vote
Well, in chapter 3.9 you can read:
3.9. Table of Contents The title and optional abstract are normally followed by a table of contents. Often you also find additional lists
of the floating environments, such as tables and figures, after the
table of contents (see section 3.20). In addition to the options
documented in this section,
The last sentence tells it to you: chapter 3 discussed the main classes and toc
is a class option for them ...
So try the follwing MWE
documentclass[%
fontsize=12pt,
div=12,
toc=left % <==========================================================
]{scrreprt}
usepackage[ngerman]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{blindtext} % dummy text
usepackage{lmodern}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{2}
begin{document}
tableofcontents
Blinddocument
end{document}
you get the toc:
Change the option for toc=bibliographynumbered
you get the following resulting toc:
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%2f461390%2fmodifying-toc-in-koma-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
You can add option toc=<value>
as class option
documentclass[toc=<value>]{<KOMA-Script class>}
or later using
KOMAoptions{toc=<value>}
or you can use
KOMAoption{toc}{<value list>}
Examples:
documentclass[toc=flat,toc=listof]{scrartcl}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoptions{toc=flat,toc=listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoption{toc}{flat,listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
results all in
There is a table with all possible values of option toc
in the documentation (»Table 3.5.: Available values of the toc option to set the format and contents of the table of contents«).
More information regarding the setting of KOMA-Script options can be found eg in section »3.1. Early or Late Selection of Options«.
Additional remark:
Note that the KOMA-Script classes load and use package tocbasic
for the TOC, LOF, LOT and maybe other lists. So you could also use the macros and settings of tocbasic
to modify TOC entries. See »Chapter 15: Managing Content Lists with tocbasic« in »Part II. KOMA -Script for Advanced Users and Experts«.
add a comment |
up vote
5
down vote
accepted
You can add option toc=<value>
as class option
documentclass[toc=<value>]{<KOMA-Script class>}
or later using
KOMAoptions{toc=<value>}
or you can use
KOMAoption{toc}{<value list>}
Examples:
documentclass[toc=flat,toc=listof]{scrartcl}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoptions{toc=flat,toc=listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoption{toc}{flat,listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
results all in
There is a table with all possible values of option toc
in the documentation (»Table 3.5.: Available values of the toc option to set the format and contents of the table of contents«).
More information regarding the setting of KOMA-Script options can be found eg in section »3.1. Early or Late Selection of Options«.
Additional remark:
Note that the KOMA-Script classes load and use package tocbasic
for the TOC, LOF, LOT and maybe other lists. So you could also use the macros and settings of tocbasic
to modify TOC entries. See »Chapter 15: Managing Content Lists with tocbasic« in »Part II. KOMA -Script for Advanced Users and Experts«.
add a comment |
up vote
5
down vote
accepted
up vote
5
down vote
accepted
You can add option toc=<value>
as class option
documentclass[toc=<value>]{<KOMA-Script class>}
or later using
KOMAoptions{toc=<value>}
or you can use
KOMAoption{toc}{<value list>}
Examples:
documentclass[toc=flat,toc=listof]{scrartcl}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoptions{toc=flat,toc=listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoption{toc}{flat,listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
results all in
There is a table with all possible values of option toc
in the documentation (»Table 3.5.: Available values of the toc option to set the format and contents of the table of contents«).
More information regarding the setting of KOMA-Script options can be found eg in section »3.1. Early or Late Selection of Options«.
Additional remark:
Note that the KOMA-Script classes load and use package tocbasic
for the TOC, LOF, LOT and maybe other lists. So you could also use the macros and settings of tocbasic
to modify TOC entries. See »Chapter 15: Managing Content Lists with tocbasic« in »Part II. KOMA -Script for Advanced Users and Experts«.
You can add option toc=<value>
as class option
documentclass[toc=<value>]{<KOMA-Script class>}
or later using
KOMAoptions{toc=<value>}
or you can use
KOMAoption{toc}{<value list>}
Examples:
documentclass[toc=flat,toc=listof]{scrartcl}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoptions{toc=flat,toc=listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
or
documentclass{scrartcl}
KOMAoption{toc}{flat,listof}
usepackage{blindtext}
begin{document}
tableofcontents
listoffigures
Blinddocument
end{document}
results all in
There is a table with all possible values of option toc
in the documentation (»Table 3.5.: Available values of the toc option to set the format and contents of the table of contents«).
More information regarding the setting of KOMA-Script options can be found eg in section »3.1. Early or Late Selection of Options«.
Additional remark:
Note that the KOMA-Script classes load and use package tocbasic
for the TOC, LOF, LOT and maybe other lists. So you could also use the macros and settings of tocbasic
to modify TOC entries. See »Chapter 15: Managing Content Lists with tocbasic« in »Part II. KOMA -Script for Advanced Users and Experts«.
edited Nov 23 at 11:01
answered Nov 23 at 10:49
esdd
58.4k34486
58.4k34486
add a comment |
add a comment |
up vote
2
down vote
Well, in chapter 3.9 you can read:
3.9. Table of Contents The title and optional abstract are normally followed by a table of contents. Often you also find additional lists
of the floating environments, such as tables and figures, after the
table of contents (see section 3.20). In addition to the options
documented in this section,
The last sentence tells it to you: chapter 3 discussed the main classes and toc
is a class option for them ...
So try the follwing MWE
documentclass[%
fontsize=12pt,
div=12,
toc=left % <==========================================================
]{scrreprt}
usepackage[ngerman]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{blindtext} % dummy text
usepackage{lmodern}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{2}
begin{document}
tableofcontents
Blinddocument
end{document}
you get the toc:
Change the option for toc=bibliographynumbered
you get the following resulting toc:
add a comment |
up vote
2
down vote
Well, in chapter 3.9 you can read:
3.9. Table of Contents The title and optional abstract are normally followed by a table of contents. Often you also find additional lists
of the floating environments, such as tables and figures, after the
table of contents (see section 3.20). In addition to the options
documented in this section,
The last sentence tells it to you: chapter 3 discussed the main classes and toc
is a class option for them ...
So try the follwing MWE
documentclass[%
fontsize=12pt,
div=12,
toc=left % <==========================================================
]{scrreprt}
usepackage[ngerman]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{blindtext} % dummy text
usepackage{lmodern}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{2}
begin{document}
tableofcontents
Blinddocument
end{document}
you get the toc:
Change the option for toc=bibliographynumbered
you get the following resulting toc:
add a comment |
up vote
2
down vote
up vote
2
down vote
Well, in chapter 3.9 you can read:
3.9. Table of Contents The title and optional abstract are normally followed by a table of contents. Often you also find additional lists
of the floating environments, such as tables and figures, after the
table of contents (see section 3.20). In addition to the options
documented in this section,
The last sentence tells it to you: chapter 3 discussed the main classes and toc
is a class option for them ...
So try the follwing MWE
documentclass[%
fontsize=12pt,
div=12,
toc=left % <==========================================================
]{scrreprt}
usepackage[ngerman]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{blindtext} % dummy text
usepackage{lmodern}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{2}
begin{document}
tableofcontents
Blinddocument
end{document}
you get the toc:
Change the option for toc=bibliographynumbered
you get the following resulting toc:
Well, in chapter 3.9 you can read:
3.9. Table of Contents The title and optional abstract are normally followed by a table of contents. Often you also find additional lists
of the floating environments, such as tables and figures, after the
table of contents (see section 3.20). In addition to the options
documented in this section,
The last sentence tells it to you: chapter 3 discussed the main classes and toc
is a class option for them ...
So try the follwing MWE
documentclass[%
fontsize=12pt,
div=12,
toc=left % <==========================================================
]{scrreprt}
usepackage[ngerman]{babel}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{blindtext} % dummy text
usepackage{lmodern}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{2}
begin{document}
tableofcontents
Blinddocument
end{document}
you get the toc:
Change the option for toc=bibliographynumbered
you get the following resulting toc:
answered Nov 23 at 10:47
Kurt
35k847158
35k847158
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f461390%2fmodifying-toc-in-koma-script%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