Redefine chapter to add printMiniToc
I want every chapter to have printMiniToc
after it. However I don't want to have to add printMiniToc
after every chapter
.
So I tried using etoolbox
and tried this:
xapptocmd{chapter}{printMiniToc}{message{** patching of stringchapter succeeded **}}{message{** patching of stringchapter failed **}}
However that's resulted in this message:
Argument of select@group has an extra }.
Paragraph ended before select@group was
Which appears about 50 times.
NB: I've seen Problem with redefining chapter{...} command seems to be about changing the style and so the answers seem to be along the line of:
RequirePackage{etoolbox}[2010/09/12]%
patchcmd{chapter}{plain}{empty}{%
wlog{* Chapter patched by stringpatchcmd.}%
}{%
Which I can't see applying in this case.
NB2: I'm also using KOMA-script
NB3: This is printMiniToc
makeatletter
newcommand{printMiniToc}{
vfill
hspace*{3.2cm}parbox[t]{textwidth-4cm}{
hspace*{-5mm}raisebox{0.25mm}{fontsize{0.6cm}{1ex}selectfont color{contrastColour}faList}
hspace*{5.5mm} {huge{Summary}}
vspace*{2mm}
startcontents[chapters]
hypersetup{linkcolor=black}
begin{spacing}{1}
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
end{spacing}
}
vfill
newpage
}
makeatother
macros chapters koma-script etoolbox
add a comment |
I want every chapter to have printMiniToc
after it. However I don't want to have to add printMiniToc
after every chapter
.
So I tried using etoolbox
and tried this:
xapptocmd{chapter}{printMiniToc}{message{** patching of stringchapter succeeded **}}{message{** patching of stringchapter failed **}}
However that's resulted in this message:
Argument of select@group has an extra }.
Paragraph ended before select@group was
Which appears about 50 times.
NB: I've seen Problem with redefining chapter{...} command seems to be about changing the style and so the answers seem to be along the line of:
RequirePackage{etoolbox}[2010/09/12]%
patchcmd{chapter}{plain}{empty}{%
wlog{* Chapter patched by stringpatchcmd.}%
}{%
Which I can't see applying in this case.
NB2: I'm also using KOMA-script
NB3: This is printMiniToc
makeatletter
newcommand{printMiniToc}{
vfill
hspace*{3.2cm}parbox[t]{textwidth-4cm}{
hspace*{-5mm}raisebox{0.25mm}{fontsize{0.6cm}{1ex}selectfont color{contrastColour}faList}
hspace*{5.5mm} {huge{Summary}}
vspace*{2mm}
startcontents[chapters]
hypersetup{linkcolor=black}
begin{spacing}{1}
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
end{spacing}
}
vfill
newpage
}
makeatother
macros chapters koma-script etoolbox
What package or setup do you use to produceprintMiniToc
? Can you provide a minimal example?
– Werner
Nov 13 '18 at 4:16
I added the info :)
– tecosaur
Nov 13 '18 at 4:18
So you're using this template...
– Werner
Nov 13 '18 at 4:22
Yep! Don't tell me you got that just from a google search?
– tecosaur
Nov 13 '18 at 5:56
add a comment |
I want every chapter to have printMiniToc
after it. However I don't want to have to add printMiniToc
after every chapter
.
So I tried using etoolbox
and tried this:
xapptocmd{chapter}{printMiniToc}{message{** patching of stringchapter succeeded **}}{message{** patching of stringchapter failed **}}
However that's resulted in this message:
Argument of select@group has an extra }.
Paragraph ended before select@group was
Which appears about 50 times.
NB: I've seen Problem with redefining chapter{...} command seems to be about changing the style and so the answers seem to be along the line of:
RequirePackage{etoolbox}[2010/09/12]%
patchcmd{chapter}{plain}{empty}{%
wlog{* Chapter patched by stringpatchcmd.}%
}{%
Which I can't see applying in this case.
NB2: I'm also using KOMA-script
NB3: This is printMiniToc
makeatletter
newcommand{printMiniToc}{
vfill
hspace*{3.2cm}parbox[t]{textwidth-4cm}{
hspace*{-5mm}raisebox{0.25mm}{fontsize{0.6cm}{1ex}selectfont color{contrastColour}faList}
hspace*{5.5mm} {huge{Summary}}
vspace*{2mm}
startcontents[chapters]
hypersetup{linkcolor=black}
begin{spacing}{1}
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
end{spacing}
}
vfill
newpage
}
makeatother
macros chapters koma-script etoolbox
I want every chapter to have printMiniToc
after it. However I don't want to have to add printMiniToc
after every chapter
.
So I tried using etoolbox
and tried this:
xapptocmd{chapter}{printMiniToc}{message{** patching of stringchapter succeeded **}}{message{** patching of stringchapter failed **}}
However that's resulted in this message:
Argument of select@group has an extra }.
Paragraph ended before select@group was
Which appears about 50 times.
NB: I've seen Problem with redefining chapter{...} command seems to be about changing the style and so the answers seem to be along the line of:
RequirePackage{etoolbox}[2010/09/12]%
patchcmd{chapter}{plain}{empty}{%
wlog{* Chapter patched by stringpatchcmd.}%
}{%
Which I can't see applying in this case.
NB2: I'm also using KOMA-script
NB3: This is printMiniToc
makeatletter
newcommand{printMiniToc}{
vfill
hspace*{3.2cm}parbox[t]{textwidth-4cm}{
hspace*{-5mm}raisebox{0.25mm}{fontsize{0.6cm}{1ex}selectfont color{contrastColour}faList}
hspace*{5.5mm} {huge{Summary}}
vspace*{2mm}
startcontents[chapters]
hypersetup{linkcolor=black}
begin{spacing}{1}
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
end{spacing}
}
vfill
newpage
}
makeatother
macros chapters koma-script etoolbox
macros chapters koma-script etoolbox
edited Nov 13 '18 at 8:29
esdd
59k34590
59k34590
asked Nov 13 '18 at 3:12
tecosaurtecosaur
1928
1928
What package or setup do you use to produceprintMiniToc
? Can you provide a minimal example?
– Werner
Nov 13 '18 at 4:16
I added the info :)
– tecosaur
Nov 13 '18 at 4:18
So you're using this template...
– Werner
Nov 13 '18 at 4:22
Yep! Don't tell me you got that just from a google search?
– tecosaur
Nov 13 '18 at 5:56
add a comment |
What package or setup do you use to produceprintMiniToc
? Can you provide a minimal example?
– Werner
Nov 13 '18 at 4:16
I added the info :)
– tecosaur
Nov 13 '18 at 4:18
So you're using this template...
– Werner
Nov 13 '18 at 4:22
Yep! Don't tell me you got that just from a google search?
– tecosaur
Nov 13 '18 at 5:56
What package or setup do you use to produce
printMiniToc
? Can you provide a minimal example?– Werner
Nov 13 '18 at 4:16
What package or setup do you use to produce
printMiniToc
? Can you provide a minimal example?– Werner
Nov 13 '18 at 4:16
I added the info :)
– tecosaur
Nov 13 '18 at 4:18
I added the info :)
– tecosaur
Nov 13 '18 at 4:18
So you're using this template...
– Werner
Nov 13 '18 at 4:22
So you're using this template...
– Werner
Nov 13 '18 at 4:22
Yep! Don't tell me you got that just from a google search?
– tecosaur
Nov 13 '18 at 5:56
Yep! Don't tell me you got that just from a google search?
– tecosaur
Nov 13 '18 at 5:56
add a comment |
2 Answers
2
active
oldest
votes
You can update scr@@startchapter
to append printMiniToc
:
documentclass{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
makeatletter
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
letoldscr@@startchapterscr@@startchapter
defscr@@startchapter#1[#2]#3{%
oldscr@@startchapter{#1}[#2]{#3}%
printMiniToc
}
makeatother
begin{document}
tableofcontents
sloppy
chapter{A chapter}lipsum[1-10]
section{First section}lipsum[11-20]
section{Second section}lipsum[21-30]
section{Third section}lipsum[31-40]
section{Last section}lipsum[41-50]
end{document}
Worked like a charm :)
– tecosaur
Nov 13 '18 at 5:55
add a comment |
Avoid patching internal and undocumented KOMA-Script commands. So here is a suggestion patching chapterlinesformat
:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
If option chapterprefix
is set, chapterlineswithprefix
must be patched in the same way:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
Example which works with and without option chapterprefix
:
documentclass[
%chapterprefix
]{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
newcommand{addMiniTocToChapter}[2]{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}%
}
usepackage{xpatch}
xapptocmd{chapterlinesformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
xapptocmd{chapterlineswithprefixformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
begin{document}
tableofcontents
chapter{A chapter}lipsum[1-5]
section{First section}lipsum[6-10]
section{Second section}lipsum[11-15]
section{Third section}lipsum[16-20]
section{Last section}lipsum[21-25]
end{document}
For some reason with my document, this doesn't seem to successfully prependprintMiniToc
— though I can see it clearly works in yours. The full 'context' of my excerpt can be found here github.com/tecosaur/mgdt/blob/master/mgdt.cls if that's of any use.
– tecosaur
Nov 14 '18 at 2:20
Note the warnings regarding the usage of packagetitlesec
together with a KOMA-Script class. This package breaks some of the KOMA possibilities (option settings etc.)
– esdd
Nov 14 '18 at 8:20
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%2f459725%2fredefine-chapter-to-add-printminitoc%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
You can update scr@@startchapter
to append printMiniToc
:
documentclass{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
makeatletter
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
letoldscr@@startchapterscr@@startchapter
defscr@@startchapter#1[#2]#3{%
oldscr@@startchapter{#1}[#2]{#3}%
printMiniToc
}
makeatother
begin{document}
tableofcontents
sloppy
chapter{A chapter}lipsum[1-10]
section{First section}lipsum[11-20]
section{Second section}lipsum[21-30]
section{Third section}lipsum[31-40]
section{Last section}lipsum[41-50]
end{document}
Worked like a charm :)
– tecosaur
Nov 13 '18 at 5:55
add a comment |
You can update scr@@startchapter
to append printMiniToc
:
documentclass{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
makeatletter
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
letoldscr@@startchapterscr@@startchapter
defscr@@startchapter#1[#2]#3{%
oldscr@@startchapter{#1}[#2]{#3}%
printMiniToc
}
makeatother
begin{document}
tableofcontents
sloppy
chapter{A chapter}lipsum[1-10]
section{First section}lipsum[11-20]
section{Second section}lipsum[21-30]
section{Third section}lipsum[31-40]
section{Last section}lipsum[41-50]
end{document}
Worked like a charm :)
– tecosaur
Nov 13 '18 at 5:55
add a comment |
You can update scr@@startchapter
to append printMiniToc
:
documentclass{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
makeatletter
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
letoldscr@@startchapterscr@@startchapter
defscr@@startchapter#1[#2]#3{%
oldscr@@startchapter{#1}[#2]{#3}%
printMiniToc
}
makeatother
begin{document}
tableofcontents
sloppy
chapter{A chapter}lipsum[1-10]
section{First section}lipsum[11-20]
section{Second section}lipsum[21-30]
section{Third section}lipsum[31-40]
section{Last section}lipsum[41-50]
end{document}
You can update scr@@startchapter
to append printMiniToc
:
documentclass{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
makeatletter
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
letoldscr@@startchapterscr@@startchapter
defscr@@startchapter#1[#2]#3{%
oldscr@@startchapter{#1}[#2]{#3}%
printMiniToc
}
makeatother
begin{document}
tableofcontents
sloppy
chapter{A chapter}lipsum[1-10]
section{First section}lipsum[11-20]
section{Second section}lipsum[21-30]
section{Third section}lipsum[31-40]
section{Last section}lipsum[41-50]
end{document}
answered Nov 13 '18 at 4:40
WernerWerner
441k679731668
441k679731668
Worked like a charm :)
– tecosaur
Nov 13 '18 at 5:55
add a comment |
Worked like a charm :)
– tecosaur
Nov 13 '18 at 5:55
Worked like a charm :)
– tecosaur
Nov 13 '18 at 5:55
Worked like a charm :)
– tecosaur
Nov 13 '18 at 5:55
add a comment |
Avoid patching internal and undocumented KOMA-Script commands. So here is a suggestion patching chapterlinesformat
:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
If option chapterprefix
is set, chapterlineswithprefix
must be patched in the same way:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
Example which works with and without option chapterprefix
:
documentclass[
%chapterprefix
]{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
newcommand{addMiniTocToChapter}[2]{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}%
}
usepackage{xpatch}
xapptocmd{chapterlinesformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
xapptocmd{chapterlineswithprefixformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
begin{document}
tableofcontents
chapter{A chapter}lipsum[1-5]
section{First section}lipsum[6-10]
section{Second section}lipsum[11-15]
section{Third section}lipsum[16-20]
section{Last section}lipsum[21-25]
end{document}
For some reason with my document, this doesn't seem to successfully prependprintMiniToc
— though I can see it clearly works in yours. The full 'context' of my excerpt can be found here github.com/tecosaur/mgdt/blob/master/mgdt.cls if that's of any use.
– tecosaur
Nov 14 '18 at 2:20
Note the warnings regarding the usage of packagetitlesec
together with a KOMA-Script class. This package breaks some of the KOMA possibilities (option settings etc.)
– esdd
Nov 14 '18 at 8:20
add a comment |
Avoid patching internal and undocumented KOMA-Script commands. So here is a suggestion patching chapterlinesformat
:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
If option chapterprefix
is set, chapterlineswithprefix
must be patched in the same way:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
Example which works with and without option chapterprefix
:
documentclass[
%chapterprefix
]{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
newcommand{addMiniTocToChapter}[2]{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}%
}
usepackage{xpatch}
xapptocmd{chapterlinesformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
xapptocmd{chapterlineswithprefixformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
begin{document}
tableofcontents
chapter{A chapter}lipsum[1-5]
section{First section}lipsum[6-10]
section{Second section}lipsum[11-15]
section{Third section}lipsum[16-20]
section{Last section}lipsum[21-25]
end{document}
For some reason with my document, this doesn't seem to successfully prependprintMiniToc
— though I can see it clearly works in yours. The full 'context' of my excerpt can be found here github.com/tecosaur/mgdt/blob/master/mgdt.cls if that's of any use.
– tecosaur
Nov 14 '18 at 2:20
Note the warnings regarding the usage of packagetitlesec
together with a KOMA-Script class. This package breaks some of the KOMA possibilities (option settings etc.)
– esdd
Nov 14 '18 at 8:20
add a comment |
Avoid patching internal and undocumented KOMA-Script commands. So here is a suggestion patching chapterlinesformat
:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
If option chapterprefix
is set, chapterlineswithprefix
must be patched in the same way:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
Example which works with and without option chapterprefix
:
documentclass[
%chapterprefix
]{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
newcommand{addMiniTocToChapter}[2]{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}%
}
usepackage{xpatch}
xapptocmd{chapterlinesformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
xapptocmd{chapterlineswithprefixformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
begin{document}
tableofcontents
chapter{A chapter}lipsum[1-5]
section{First section}lipsum[6-10]
section{Second section}lipsum[11-15]
section{Third section}lipsum[16-20]
section{Last section}lipsum[21-25]
end{document}
Avoid patching internal and undocumented KOMA-Script commands. So here is a suggestion patching chapterlinesformat
:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
If option chapterprefix
is set, chapterlineswithprefix
must be patched in the same way:
usepackage{xpatch}
xapptocmd{chapterlinesformat}{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}}{}{PatchFailed}
Example which works with and without option chapterprefix
:
documentclass[
%chapterprefix
]{scrreprt}
usepackage{lipsum}
usepackage{titletoc}
newcommand{printMiniToc}{
startcontents[chapters]
printcontents[chapters]{p}{1}{setcounter{tocdepth}{2}}
}
newcommand{addMiniTocToChapter}[2]{%
ifstr{#1}{chapter}{ifstr{#2}{}{}{%
parchapterheadendvskip
normalfontnormalsizeprintMiniToc
vspace{-baselineskip}%
}}{}%
}
usepackage{xpatch}
xapptocmd{chapterlinesformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
xapptocmd{chapterlineswithprefixformat}{addMiniTocToChapter{#1}{#2}}{}{PatchFailed}
begin{document}
tableofcontents
chapter{A chapter}lipsum[1-5]
section{First section}lipsum[6-10]
section{Second section}lipsum[11-15]
section{Third section}lipsum[16-20]
section{Last section}lipsum[21-25]
end{document}
answered Nov 13 '18 at 8:28
esddesdd
59k34590
59k34590
For some reason with my document, this doesn't seem to successfully prependprintMiniToc
— though I can see it clearly works in yours. The full 'context' of my excerpt can be found here github.com/tecosaur/mgdt/blob/master/mgdt.cls if that's of any use.
– tecosaur
Nov 14 '18 at 2:20
Note the warnings regarding the usage of packagetitlesec
together with a KOMA-Script class. This package breaks some of the KOMA possibilities (option settings etc.)
– esdd
Nov 14 '18 at 8:20
add a comment |
For some reason with my document, this doesn't seem to successfully prependprintMiniToc
— though I can see it clearly works in yours. The full 'context' of my excerpt can be found here github.com/tecosaur/mgdt/blob/master/mgdt.cls if that's of any use.
– tecosaur
Nov 14 '18 at 2:20
Note the warnings regarding the usage of packagetitlesec
together with a KOMA-Script class. This package breaks some of the KOMA possibilities (option settings etc.)
– esdd
Nov 14 '18 at 8:20
For some reason with my document, this doesn't seem to successfully prepend
printMiniToc
— though I can see it clearly works in yours. The full 'context' of my excerpt can be found here github.com/tecosaur/mgdt/blob/master/mgdt.cls if that's of any use.– tecosaur
Nov 14 '18 at 2:20
For some reason with my document, this doesn't seem to successfully prepend
printMiniToc
— though I can see it clearly works in yours. The full 'context' of my excerpt can be found here github.com/tecosaur/mgdt/blob/master/mgdt.cls if that's of any use.– tecosaur
Nov 14 '18 at 2:20
Note the warnings regarding the usage of package
titlesec
together with a KOMA-Script class. This package breaks some of the KOMA possibilities (option settings etc.)– esdd
Nov 14 '18 at 8:20
Note the warnings regarding the usage of package
titlesec
together with a KOMA-Script class. This package breaks some of the KOMA possibilities (option settings etc.)– esdd
Nov 14 '18 at 8:20
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%2f459725%2fredefine-chapter-to-add-printminitoc%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
What package or setup do you use to produce
printMiniToc
? Can you provide a minimal example?– Werner
Nov 13 '18 at 4:16
I added the info :)
– tecosaur
Nov 13 '18 at 4:18
So you're using this template...
– Werner
Nov 13 '18 at 4:22
Yep! Don't tell me you got that just from a google search?
– tecosaur
Nov 13 '18 at 5:56