Add dot after chapter title (scrreprt document)Redefining commands in Latex (section in particular)Remove last dot in title numberingKOMA-Script scrbook: How to remove period after sections and subsections?Appendix Title with scrreprtChange title of Table of ContentsChanging Chapter Title in scrrprt-classUnwanted page after titlepage in scrreprtsectsty interferes with documentclass scrreprt Chapter Titles!Formatting of multi-line Chapter heading with scrreprt: vertical alignment
Rock, Paper, Scissors in C++
Which species is proud of being conquered many times?
apply_filters() slices away needed arguments
What does 我们已经帮您踩过了 mean in this peculiarly translated escalator sticker?
Site is accessible by domain in all browsers but Chrome
Largest smallest gap
Why did they design new connectors for USB?
High short circuit failure rate of aluminum electrolytic capacitors during the production processes
Help me pair my left and right socks!
C - random password generator
Is there any way to write words the same as TeX/LaTeX logo typography?
New manager unapproved PTO my old manager approved, because of a conference at the same time that's now a "condition of my employment here"
Keeping a healthy immune system on a generation-ship
Filter 500 files with awk, then cat results to single file
Why is "runway behind you" useless?
Is there a way to plan/organize your LEGO project like a github hosted software?
Are there examples of democratic states peacefully changing their constitution without abiding by the rules spelled out in the former constitution?
Expectation of 500 coin flips after 500 realizations
What if I take Necrotic damage from a wraith, more than my hit point total?
Can I be fired the same day that I hand in my notice?
What other scales can be played over ii chord in ii-V-I besides Dorian?
What was in the noses of airliners before the weather radar?
Very large axiom of choice
How do planes maintain constant speeds at cruise altitudes?
Add dot after chapter title (scrreprt document)
Redefining commands in Latex (section in particular)Remove last dot in title numberingKOMA-Script scrbook: How to remove period after sections and subsections?Appendix Title with scrreprtChange title of Table of ContentsChanging Chapter Title in scrrprt-classUnwanted page after titlepage in scrreprtsectsty interferes with documentclass scrreprt Chapter Titles!Formatting of multi-line Chapter heading with scrreprt: vertical alignment
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I have a problem with the numbers added to the chapters of my document: There is no dot after the number, e. g. "2 Theory" instead of "2. Theory".
I tried adding a dot before the chapter title but then it looks like "2 . Theory".
I also tried documentclass[a4paper,11pt,numbers=endperiod]scrreprt and %renewcommandthechapterarabicchapter. but both add a dot after every number, even "1.1. Title" where I want "1.1 Title".
My document looks like this:
documentclass[a4paper,11pt]scrreprt
usepackage[utf8]inputenc
usepackage[ngerman]babel
usepackage[T1]fontenc
graphicspathimg/
usepackagefancyhdr
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption
usepackagetextcomp
addtokomafontsectionsmall
addtokomafontsubsectionsmall
addtokomafontsubsubsectionsmall
begindocument
includetheory
includeexperiment
enddocument
titles chapters scrreprt
add a comment
|
I have a problem with the numbers added to the chapters of my document: There is no dot after the number, e. g. "2 Theory" instead of "2. Theory".
I tried adding a dot before the chapter title but then it looks like "2 . Theory".
I also tried documentclass[a4paper,11pt,numbers=endperiod]scrreprt and %renewcommandthechapterarabicchapter. but both add a dot after every number, even "1.1. Title" where I want "1.1 Title".
My document looks like this:
documentclass[a4paper,11pt]scrreprt
usepackage[utf8]inputenc
usepackage[ngerman]babel
usepackage[T1]fontenc
graphicspathimg/
usepackagefancyhdr
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption
usepackagetextcomp
addtokomafontsectionsmall
addtokomafontsubsectionsmall
addtokomafontsubsubsectionsmall
begindocument
includetheory
includeexperiment
enddocument
titles chapters scrreprt
tex.stackexchange.com/a/446836/134144 might be interesting.
– leandriis
Sep 29 at 10:38
Please note that your example is not a working example. The include command could be replaced with a simple chapter command.
– Philipp
Sep 29 at 10:46
@leandriis This works perfectly, thank you again, you are saving my thesis!
– Tatjana Schmidt
Sep 29 at 10:54
@leandriis: I really should have red the question in extenso ;o)
– Bernard
Sep 29 at 10:59
add a comment
|
I have a problem with the numbers added to the chapters of my document: There is no dot after the number, e. g. "2 Theory" instead of "2. Theory".
I tried adding a dot before the chapter title but then it looks like "2 . Theory".
I also tried documentclass[a4paper,11pt,numbers=endperiod]scrreprt and %renewcommandthechapterarabicchapter. but both add a dot after every number, even "1.1. Title" where I want "1.1 Title".
My document looks like this:
documentclass[a4paper,11pt]scrreprt
usepackage[utf8]inputenc
usepackage[ngerman]babel
usepackage[T1]fontenc
graphicspathimg/
usepackagefancyhdr
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption
usepackagetextcomp
addtokomafontsectionsmall
addtokomafontsubsectionsmall
addtokomafontsubsubsectionsmall
begindocument
includetheory
includeexperiment
enddocument
titles chapters scrreprt
I have a problem with the numbers added to the chapters of my document: There is no dot after the number, e. g. "2 Theory" instead of "2. Theory".
I tried adding a dot before the chapter title but then it looks like "2 . Theory".
I also tried documentclass[a4paper,11pt,numbers=endperiod]scrreprt and %renewcommandthechapterarabicchapter. but both add a dot after every number, even "1.1. Title" where I want "1.1 Title".
My document looks like this:
documentclass[a4paper,11pt]scrreprt
usepackage[utf8]inputenc
usepackage[ngerman]babel
usepackage[T1]fontenc
graphicspathimg/
usepackagefancyhdr
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption
usepackagetextcomp
addtokomafontsectionsmall
addtokomafontsubsectionsmall
addtokomafontsubsubsectionsmall
begindocument
includetheory
includeexperiment
enddocument
titles chapters scrreprt
titles chapters scrreprt
asked Sep 29 at 10:17
Tatjana SchmidtTatjana Schmidt
211 bronze badge
211 bronze badge
tex.stackexchange.com/a/446836/134144 might be interesting.
– leandriis
Sep 29 at 10:38
Please note that your example is not a working example. The include command could be replaced with a simple chapter command.
– Philipp
Sep 29 at 10:46
@leandriis This works perfectly, thank you again, you are saving my thesis!
– Tatjana Schmidt
Sep 29 at 10:54
@leandriis: I really should have red the question in extenso ;o)
– Bernard
Sep 29 at 10:59
add a comment
|
tex.stackexchange.com/a/446836/134144 might be interesting.
– leandriis
Sep 29 at 10:38
Please note that your example is not a working example. The include command could be replaced with a simple chapter command.
– Philipp
Sep 29 at 10:46
@leandriis This works perfectly, thank you again, you are saving my thesis!
– Tatjana Schmidt
Sep 29 at 10:54
@leandriis: I really should have red the question in extenso ;o)
– Bernard
Sep 29 at 10:59
tex.stackexchange.com/a/446836/134144 might be interesting.
– leandriis
Sep 29 at 10:38
tex.stackexchange.com/a/446836/134144 might be interesting.
– leandriis
Sep 29 at 10:38
Please note that your example is not a working example. The include command could be replaced with a simple chapter command.
– Philipp
Sep 29 at 10:46
Please note that your example is not a working example. The include command could be replaced with a simple chapter command.
– Philipp
Sep 29 at 10:46
@leandriis This works perfectly, thank you again, you are saving my thesis!
– Tatjana Schmidt
Sep 29 at 10:54
@leandriis This works perfectly, thank you again, you are saving my thesis!
– Tatjana Schmidt
Sep 29 at 10:54
@leandriis: I really should have red the question in extenso ;o)
– Bernard
Sep 29 at 10:59
@leandriis: I really should have red the question in extenso ;o)
– Bernard
Sep 29 at 10:59
add a comment
|
3 Answers
3
active
oldest
votes
If sections, subsections etc. should not get a dot after the number, use option numbers=noenddot. One possibility to add the dot after chapter number is
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
Example (with additional remarks):
documentclass[
%a4paper,11pt,% default
numbers=noenddot% default value: autoenddot
]scrreprt
%usepackage[utf8]inputenc% needed with older TeX distributions
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackagegraphicx% <- added
graphicspathimg/
usepackagefancyhdr% it is suggested to use package scrlayer-scrheadings
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption% maybe you can use KOMA-Script commands?
usepackagetextcomp
RedeclareSectionCommands[
font=small
]section,subsection,subsubsection
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
This works, thank you so much!
– Tatjana Schmidt
Sep 29 at 11:17
add a comment
|
you can use the koma option
numbers=enddot
so the first line will be
documentclass[a4paper,11pt,numbers=enddot]scrreprt
Edit:
This will set points also after section numbers.
You may want to go with: Remove last dot in title numbering
This is a solution specifically for KOMA-Script
1
As the OP already mentioned in her question, this will also add a period after the section number which seems to be undesired. " I also trieddocumentclass[a4paper,11pt,numbers=endperiod]scrreprt[...] add a dot after every number, even "1.1. Title" where I want "1.1 Title". "
– leandriis
Sep 29 at 10:51
add a comment
|
This should work in every documentclass and it is based on my answer here
documentclass[a4paper,11pt]scrreprt
usepackage[utf8]inputenc
usepackage[ngerman]babel
usepackage[T1]fontenc
%graphicspathimg/
usepackagefancyhdr
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption
usepackagetextcomp
addtokomafontsectionsmall
addtokomafontsubsectionsmall
addtokomafontsubsubsectionsmall
letoldchapterchapter
makeatletter
defchapter%
defthechapterarabicchapter.%
@ifstar@Starred@nonStarred%
def@Starred%
@ifnextchar[%
GenericWarningWarning: A starred section can not have parameters. I am going to ignore them!@StarredWith%
@StarredWithout%
def@StarredWith[#1]#2%
oldchapter*#2%
defthechapterarabicchapter%
def@StarredWithout#1
oldchapter*#1%
defthechapterarabicchapter%
def@nonStarred%
@ifnextchar[%
@nonStarredWith%
@nonStarredWithout%
def@nonStarredWith[#1]#2%
oldchapter[#1]#2%
defthechapterarabicchapter%
def@nonStarredWithout#1%
oldchapter#1%
defthechapterarabicchapter%
makeatother
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
Adding in order to be able to help people with other document classes or even for the OP's request if he would like to be able to change documentclass later.
1
Then chapters in appendix also get arabic numbers. Additionally the dot is in references, if you uselabel...andref...for a chapter.
– esdd
Sep 29 at 12:43
Thanks for the comment @esdd ... You are right ... Could take care of the first easily ... but not of the second (not so easy but with some effort -as far as I can think right now- ...) Anyway ... thanks! Useful comment ... and more useful answer!
– koleygr
Sep 29 at 12:56
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/4.0/"u003ecc by-sa 4.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%2f510231%2fadd-dot-after-chapter-title-scrreprt-document%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
If sections, subsections etc. should not get a dot after the number, use option numbers=noenddot. One possibility to add the dot after chapter number is
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
Example (with additional remarks):
documentclass[
%a4paper,11pt,% default
numbers=noenddot% default value: autoenddot
]scrreprt
%usepackage[utf8]inputenc% needed with older TeX distributions
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackagegraphicx% <- added
graphicspathimg/
usepackagefancyhdr% it is suggested to use package scrlayer-scrheadings
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption% maybe you can use KOMA-Script commands?
usepackagetextcomp
RedeclareSectionCommands[
font=small
]section,subsection,subsubsection
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
This works, thank you so much!
– Tatjana Schmidt
Sep 29 at 11:17
add a comment
|
If sections, subsections etc. should not get a dot after the number, use option numbers=noenddot. One possibility to add the dot after chapter number is
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
Example (with additional remarks):
documentclass[
%a4paper,11pt,% default
numbers=noenddot% default value: autoenddot
]scrreprt
%usepackage[utf8]inputenc% needed with older TeX distributions
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackagegraphicx% <- added
graphicspathimg/
usepackagefancyhdr% it is suggested to use package scrlayer-scrheadings
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption% maybe you can use KOMA-Script commands?
usepackagetextcomp
RedeclareSectionCommands[
font=small
]section,subsection,subsubsection
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
This works, thank you so much!
– Tatjana Schmidt
Sep 29 at 11:17
add a comment
|
If sections, subsections etc. should not get a dot after the number, use option numbers=noenddot. One possibility to add the dot after chapter number is
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
Example (with additional remarks):
documentclass[
%a4paper,11pt,% default
numbers=noenddot% default value: autoenddot
]scrreprt
%usepackage[utf8]inputenc% needed with older TeX distributions
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackagegraphicx% <- added
graphicspathimg/
usepackagefancyhdr% it is suggested to use package scrlayer-scrheadings
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption% maybe you can use KOMA-Script commands?
usepackagetextcomp
RedeclareSectionCommands[
font=small
]section,subsection,subsubsection
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
If sections, subsections etc. should not get a dot after the number, use option numbers=noenddot. One possibility to add the dot after chapter number is
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
Example (with additional remarks):
documentclass[
%a4paper,11pt,% default
numbers=noenddot% default value: autoenddot
]scrreprt
%usepackage[utf8]inputenc% needed with older TeX distributions
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackagegraphicx% <- added
graphicspathimg/
usepackagefancyhdr% it is suggested to use package scrlayer-scrheadings
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption% maybe you can use KOMA-Script commands?
usepackagetextcomp
RedeclareSectionCommands[
font=small
]section,subsection,subsubsection
usepackagexpatch
xpatchcmdchapterformatautodot.PatchFailed
DeclareTOCStyleEntry[
entrynumberformat=entrynumberwithdot
]chapterchapter
newcommand*entrynumberwithdot[1]defautodot.#1
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
answered Sep 29 at 11:07
esddesdd
66.3k3 gold badges53 silver badges99 bronze badges
66.3k3 gold badges53 silver badges99 bronze badges
This works, thank you so much!
– Tatjana Schmidt
Sep 29 at 11:17
add a comment
|
This works, thank you so much!
– Tatjana Schmidt
Sep 29 at 11:17
This works, thank you so much!
– Tatjana Schmidt
Sep 29 at 11:17
This works, thank you so much!
– Tatjana Schmidt
Sep 29 at 11:17
add a comment
|
you can use the koma option
numbers=enddot
so the first line will be
documentclass[a4paper,11pt,numbers=enddot]scrreprt
Edit:
This will set points also after section numbers.
You may want to go with: Remove last dot in title numbering
This is a solution specifically for KOMA-Script
1
As the OP already mentioned in her question, this will also add a period after the section number which seems to be undesired. " I also trieddocumentclass[a4paper,11pt,numbers=endperiod]scrreprt[...] add a dot after every number, even "1.1. Title" where I want "1.1 Title". "
– leandriis
Sep 29 at 10:51
add a comment
|
you can use the koma option
numbers=enddot
so the first line will be
documentclass[a4paper,11pt,numbers=enddot]scrreprt
Edit:
This will set points also after section numbers.
You may want to go with: Remove last dot in title numbering
This is a solution specifically for KOMA-Script
1
As the OP already mentioned in her question, this will also add a period after the section number which seems to be undesired. " I also trieddocumentclass[a4paper,11pt,numbers=endperiod]scrreprt[...] add a dot after every number, even "1.1. Title" where I want "1.1 Title". "
– leandriis
Sep 29 at 10:51
add a comment
|
you can use the koma option
numbers=enddot
so the first line will be
documentclass[a4paper,11pt,numbers=enddot]scrreprt
Edit:
This will set points also after section numbers.
You may want to go with: Remove last dot in title numbering
This is a solution specifically for KOMA-Script
you can use the koma option
numbers=enddot
so the first line will be
documentclass[a4paper,11pt,numbers=enddot]scrreprt
Edit:
This will set points also after section numbers.
You may want to go with: Remove last dot in title numbering
This is a solution specifically for KOMA-Script
edited Sep 29 at 10:54
answered Sep 29 at 10:46
PhilippPhilipp
2071 silver badge5 bronze badges
2071 silver badge5 bronze badges
1
As the OP already mentioned in her question, this will also add a period after the section number which seems to be undesired. " I also trieddocumentclass[a4paper,11pt,numbers=endperiod]scrreprt[...] add a dot after every number, even "1.1. Title" where I want "1.1 Title". "
– leandriis
Sep 29 at 10:51
add a comment
|
1
As the OP already mentioned in her question, this will also add a period after the section number which seems to be undesired. " I also trieddocumentclass[a4paper,11pt,numbers=endperiod]scrreprt[...] add a dot after every number, even "1.1. Title" where I want "1.1 Title". "
– leandriis
Sep 29 at 10:51
1
1
As the OP already mentioned in her question, this will also add a period after the section number which seems to be undesired. " I also tried
documentclass[a4paper,11pt,numbers=endperiod]scrreprt[...] add a dot after every number, even "1.1. Title" where I want "1.1 Title". "– leandriis
Sep 29 at 10:51
As the OP already mentioned in her question, this will also add a period after the section number which seems to be undesired. " I also tried
documentclass[a4paper,11pt,numbers=endperiod]scrreprt[...] add a dot after every number, even "1.1. Title" where I want "1.1 Title". "– leandriis
Sep 29 at 10:51
add a comment
|
This should work in every documentclass and it is based on my answer here
documentclass[a4paper,11pt]scrreprt
usepackage[utf8]inputenc
usepackage[ngerman]babel
usepackage[T1]fontenc
%graphicspathimg/
usepackagefancyhdr
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption
usepackagetextcomp
addtokomafontsectionsmall
addtokomafontsubsectionsmall
addtokomafontsubsubsectionsmall
letoldchapterchapter
makeatletter
defchapter%
defthechapterarabicchapter.%
@ifstar@Starred@nonStarred%
def@Starred%
@ifnextchar[%
GenericWarningWarning: A starred section can not have parameters. I am going to ignore them!@StarredWith%
@StarredWithout%
def@StarredWith[#1]#2%
oldchapter*#2%
defthechapterarabicchapter%
def@StarredWithout#1
oldchapter*#1%
defthechapterarabicchapter%
def@nonStarred%
@ifnextchar[%
@nonStarredWith%
@nonStarredWithout%
def@nonStarredWith[#1]#2%
oldchapter[#1]#2%
defthechapterarabicchapter%
def@nonStarredWithout#1%
oldchapter#1%
defthechapterarabicchapter%
makeatother
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
Adding in order to be able to help people with other document classes or even for the OP's request if he would like to be able to change documentclass later.
1
Then chapters in appendix also get arabic numbers. Additionally the dot is in references, if you uselabel...andref...for a chapter.
– esdd
Sep 29 at 12:43
Thanks for the comment @esdd ... You are right ... Could take care of the first easily ... but not of the second (not so easy but with some effort -as far as I can think right now- ...) Anyway ... thanks! Useful comment ... and more useful answer!
– koleygr
Sep 29 at 12:56
add a comment
|
This should work in every documentclass and it is based on my answer here
documentclass[a4paper,11pt]scrreprt
usepackage[utf8]inputenc
usepackage[ngerman]babel
usepackage[T1]fontenc
%graphicspathimg/
usepackagefancyhdr
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption
usepackagetextcomp
addtokomafontsectionsmall
addtokomafontsubsectionsmall
addtokomafontsubsubsectionsmall
letoldchapterchapter
makeatletter
defchapter%
defthechapterarabicchapter.%
@ifstar@Starred@nonStarred%
def@Starred%
@ifnextchar[%
GenericWarningWarning: A starred section can not have parameters. I am going to ignore them!@StarredWith%
@StarredWithout%
def@StarredWith[#1]#2%
oldchapter*#2%
defthechapterarabicchapter%
def@StarredWithout#1
oldchapter*#1%
defthechapterarabicchapter%
def@nonStarred%
@ifnextchar[%
@nonStarredWith%
@nonStarredWithout%
def@nonStarredWith[#1]#2%
oldchapter[#1]#2%
defthechapterarabicchapter%
def@nonStarredWithout#1%
oldchapter#1%
defthechapterarabicchapter%
makeatother
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
Adding in order to be able to help people with other document classes or even for the OP's request if he would like to be able to change documentclass later.
1
Then chapters in appendix also get arabic numbers. Additionally the dot is in references, if you uselabel...andref...for a chapter.
– esdd
Sep 29 at 12:43
Thanks for the comment @esdd ... You are right ... Could take care of the first easily ... but not of the second (not so easy but with some effort -as far as I can think right now- ...) Anyway ... thanks! Useful comment ... and more useful answer!
– koleygr
Sep 29 at 12:56
add a comment
|
This should work in every documentclass and it is based on my answer here
documentclass[a4paper,11pt]scrreprt
usepackage[utf8]inputenc
usepackage[ngerman]babel
usepackage[T1]fontenc
%graphicspathimg/
usepackagefancyhdr
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption
usepackagetextcomp
addtokomafontsectionsmall
addtokomafontsubsectionsmall
addtokomafontsubsubsectionsmall
letoldchapterchapter
makeatletter
defchapter%
defthechapterarabicchapter.%
@ifstar@Starred@nonStarred%
def@Starred%
@ifnextchar[%
GenericWarningWarning: A starred section can not have parameters. I am going to ignore them!@StarredWith%
@StarredWithout%
def@StarredWith[#1]#2%
oldchapter*#2%
defthechapterarabicchapter%
def@StarredWithout#1
oldchapter*#1%
defthechapterarabicchapter%
def@nonStarred%
@ifnextchar[%
@nonStarredWith%
@nonStarredWithout%
def@nonStarredWith[#1]#2%
oldchapter[#1]#2%
defthechapterarabicchapter%
def@nonStarredWithout#1%
oldchapter#1%
defthechapterarabicchapter%
makeatother
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
Adding in order to be able to help people with other document classes or even for the OP's request if he would like to be able to change documentclass later.
This should work in every documentclass and it is based on my answer here
documentclass[a4paper,11pt]scrreprt
usepackage[utf8]inputenc
usepackage[ngerman]babel
usepackage[T1]fontenc
%graphicspathimg/
usepackagefancyhdr
usepackagelmodern
usepackage[T1]fontenc
usepackagecaption
usepackagetextcomp
addtokomafontsectionsmall
addtokomafontsubsectionsmall
addtokomafontsubsubsectionsmall
letoldchapterchapter
makeatletter
defchapter%
defthechapterarabicchapter.%
@ifstar@Starred@nonStarred%
def@Starred%
@ifnextchar[%
GenericWarningWarning: A starred section can not have parameters. I am going to ignore them!@StarredWith%
@StarredWithout%
def@StarredWith[#1]#2%
oldchapter*#2%
defthechapterarabicchapter%
def@StarredWithout#1
oldchapter*#1%
defthechapterarabicchapter%
def@nonStarred%
@ifnextchar[%
@nonStarredWith%
@nonStarredWithout%
def@nonStarredWith[#1]#2%
oldchapter[#1]#2%
defthechapterarabicchapter%
def@nonStarredWithout#1%
oldchapter#1%
defthechapterarabicchapter%
makeatother
usepackageblindtext% only for dummy text in the MWE
begindocument
tableofcontents
Blinddocument
enddocument
Adding in order to be able to help people with other document classes or even for the OP's request if he would like to be able to change documentclass later.
answered Sep 29 at 11:29
koleygrkoleygr
16.3k1 gold badge12 silver badges44 bronze badges
16.3k1 gold badge12 silver badges44 bronze badges
1
Then chapters in appendix also get arabic numbers. Additionally the dot is in references, if you uselabel...andref...for a chapter.
– esdd
Sep 29 at 12:43
Thanks for the comment @esdd ... You are right ... Could take care of the first easily ... but not of the second (not so easy but with some effort -as far as I can think right now- ...) Anyway ... thanks! Useful comment ... and more useful answer!
– koleygr
Sep 29 at 12:56
add a comment
|
1
Then chapters in appendix also get arabic numbers. Additionally the dot is in references, if you uselabel...andref...for a chapter.
– esdd
Sep 29 at 12:43
Thanks for the comment @esdd ... You are right ... Could take care of the first easily ... but not of the second (not so easy but with some effort -as far as I can think right now- ...) Anyway ... thanks! Useful comment ... and more useful answer!
– koleygr
Sep 29 at 12:56
1
1
Then chapters in appendix also get arabic numbers. Additionally the dot is in references, if you use
label... and ref... for a chapter.– esdd
Sep 29 at 12:43
Then chapters in appendix also get arabic numbers. Additionally the dot is in references, if you use
label... and ref... for a chapter.– esdd
Sep 29 at 12:43
Thanks for the comment @esdd ... You are right ... Could take care of the first easily ... but not of the second (not so easy but with some effort -as far as I can think right now- ...) Anyway ... thanks! Useful comment ... and more useful answer!
– koleygr
Sep 29 at 12:56
Thanks for the comment @esdd ... You are right ... Could take care of the first easily ... but not of the second (not so easy but with some effort -as far as I can think right now- ...) Anyway ... thanks! Useful comment ... and more useful answer!
– koleygr
Sep 29 at 12:56
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%2f510231%2fadd-dot-after-chapter-title-scrreprt-document%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
tex.stackexchange.com/a/446836/134144 might be interesting.
– leandriis
Sep 29 at 10:38
Please note that your example is not a working example. The include command could be replaced with a simple chapter command.
– Philipp
Sep 29 at 10:46
@leandriis This works perfectly, thank you again, you are saving my thesis!
– Tatjana Schmidt
Sep 29 at 10:54
@leandriis: I really should have red the question in extenso ;o)
– Bernard
Sep 29 at 10:59