Adding chapter thumbs to an appendix with KOMA-Script












0















Including an appendix chapter using include{chapter_appendixA} results in a 'weird error' in overleaf (compiling with XeLaTeX):




! Missing number, treated as zero.

p
l.1 chapter{chapter_appendixA}
A number should have been here; I inserted `0'.



! Package PGF Math Error: Unknown function `A' (in '-A*LabelSize ').
See the PGF Math package documentation for explanation.
Type H for immediate help.




The chapter_appendixA.tex file only includes the following:



chapter{Appendix}
Some text


Other appendix examples do not include a number there. The error arises when activating the gray chapter label boxes using AddLabels from "Show current chapter number on each page margin"
Does anyone have an idea?



My main code is the following:



documentclass[10pt,twoside,parskip=half,table,xcdraw]{scrbook}
usepackage[
paperwidth=170mm,
paperheight=240mm,
top=2.5cm,
bottom=3cm,
inner=30mm,
outer=25mm,
heightrounded=true
]{geometry}

input{preamble.tex}

raggedbottom

% avoid annoying errors when using Koma-Script with bibtex
DeclareOldFontCommand{bf}{normalfontbfseries}{mathbf}


begin{document}

%%%%%%%%%%%%%%%%%%
%% FRONT MATTER %%
%%%%%%%%%%%%%%%%%%

frontmatter
tableofcontents

%%%%%%%%%%%%%%%%%
%% MAIN MATTER %%
%%%%%%%%%%%%%%%%%

mainmatter
rehead{small{Chapter thechapter}}

chapter{A chapter}
Some text
AddLabels

%%%%%%%%%%%%%%
%% APPENDIX %%
%%%%%%%%%%%%%%

appendix
include{chapter_appendixA}

end{document}


With accompanyingpreamble.tex:



%%%%%%%%%%%
%% FONTS %%
%%%%%%%%%%%
usepackage{xcolor}
usepackage{libertine}
setmainfont{Linux Libertine O}
setsansfont{Linux Biolinum O}

%Set chapter titles and numbering
usepackage[headsepline=true]{scrlayer-scrpage}
clearpairofpagestyles


%%%%%%%%%%%%%%%%%%%%%%%
%% chapter numbering %%
%%%%%%%%%%%%%%%%%%%%%%%

%renewcommand*{thesection}{thechapter.arabic{section}}
renewcommand{sectionmark}[1]{markright{#1}{}}

% Create header for odd (o) and even (e) pages
lehead{thepage}rohead{thepage}
lohead{{smallrightmark}}
setkomafont{pagehead}{normalfontnormalcolor}

usepackage[times]{quotchap} % fancy chapter beginning

pretolerance=10000
tolerance=10000

% Gray boxes for chapter numbering on pages
usepackage[contents={},opacity=1,scale=1,color=white]{background}
usepackage{tikzpagenodes}
usepackage{totcount}
usetikzlibrary{calc}

newififMaterial

newlengthLabelSize
setlengthLabelSize{2.5cm}
AtBeginDocument{%
regtotcounter{chapter}
%setlengthLabelSize{dimexprtextheight/totvalue{chapter}relax}
ifdimLabelSize>2.5cmrelax
globalsetlengthLabelSize{2.5cm}
fi}

newcommandAddLabels{%
Materialtrue%
AddEverypageHook{%
ifMaterial%
ifoddvalue{page} %
backgroundsetup{
angle=90, position={current page.east|-current page text area.north east}, vshift=8pt, hshift=-thechapter*LabelSize,
contents={%
tikznode[fill=gray!30,anchor=west,text width=LabelSize,
align=center,text height=15pt,text depth=10pt,font=largesffamily] {thechapter}; }%
}
else
backgroundsetup{
angle=90, position={current page.west|-current page text area.north west}, vshift=-8pt, hshift=-thechapter*LabelSize,
contents={%
tikznode[fill=gray!30,anchor=west,text width=LabelSize,
align=center,text height=15pt,text depth=10pt,font=largesffamily] {thechapter}; }%
}
fi
BgMaterial%
elserelaxfi}%
}

newcommandRemoveLabels{Materialfalse}
usepackage{afterpage}
newcommandRemoveThisLabel{%
Materialfalse
afterpage{globalMaterialtrue}%
}









share|improve this question

























  • I'm not able to reproduce the problem with what you have provided, but I've given my best guess – see the notes on how to produce a minimum working example.

    – Andrew Dunning
    Jan 22 at 21:40











  • Thank you for your comment! I have edited the question. Compilation is with XeLaTeX. The problem only appears if I include a chapter chapter{A chapter} Some text and AddLabels for creating the gray chapter number boxes.

    – TGterpa
    Jan 23 at 7:36











  • Take a look at that link on MWEs – essentially you want to cut out everything that isn't relevant to the problem (e.g. all the extra bits in your separate preamble). You want to have one (ideally short) piece of text that respondents can paste into their computer to test.

    – Andrew Dunning
    Jan 24 at 14:20






  • 1





    In AddLabels you are using hshift=-thechapter*LabelSize. Here you use thechapter as a number which is wrong, because it need not be an arabic number. For example in the appendix it is A, B etc. So you have to use either value{chapter} or the value of another counter related to chapter.

    – Schweinebacke
    Jan 24 at 15:27
















0















Including an appendix chapter using include{chapter_appendixA} results in a 'weird error' in overleaf (compiling with XeLaTeX):




! Missing number, treated as zero.

p
l.1 chapter{chapter_appendixA}
A number should have been here; I inserted `0'.



! Package PGF Math Error: Unknown function `A' (in '-A*LabelSize ').
See the PGF Math package documentation for explanation.
Type H for immediate help.




The chapter_appendixA.tex file only includes the following:



chapter{Appendix}
Some text


Other appendix examples do not include a number there. The error arises when activating the gray chapter label boxes using AddLabels from "Show current chapter number on each page margin"
Does anyone have an idea?



My main code is the following:



documentclass[10pt,twoside,parskip=half,table,xcdraw]{scrbook}
usepackage[
paperwidth=170mm,
paperheight=240mm,
top=2.5cm,
bottom=3cm,
inner=30mm,
outer=25mm,
heightrounded=true
]{geometry}

input{preamble.tex}

raggedbottom

% avoid annoying errors when using Koma-Script with bibtex
DeclareOldFontCommand{bf}{normalfontbfseries}{mathbf}


begin{document}

%%%%%%%%%%%%%%%%%%
%% FRONT MATTER %%
%%%%%%%%%%%%%%%%%%

frontmatter
tableofcontents

%%%%%%%%%%%%%%%%%
%% MAIN MATTER %%
%%%%%%%%%%%%%%%%%

mainmatter
rehead{small{Chapter thechapter}}

chapter{A chapter}
Some text
AddLabels

%%%%%%%%%%%%%%
%% APPENDIX %%
%%%%%%%%%%%%%%

appendix
include{chapter_appendixA}

end{document}


With accompanyingpreamble.tex:



%%%%%%%%%%%
%% FONTS %%
%%%%%%%%%%%
usepackage{xcolor}
usepackage{libertine}
setmainfont{Linux Libertine O}
setsansfont{Linux Biolinum O}

%Set chapter titles and numbering
usepackage[headsepline=true]{scrlayer-scrpage}
clearpairofpagestyles


%%%%%%%%%%%%%%%%%%%%%%%
%% chapter numbering %%
%%%%%%%%%%%%%%%%%%%%%%%

%renewcommand*{thesection}{thechapter.arabic{section}}
renewcommand{sectionmark}[1]{markright{#1}{}}

% Create header for odd (o) and even (e) pages
lehead{thepage}rohead{thepage}
lohead{{smallrightmark}}
setkomafont{pagehead}{normalfontnormalcolor}

usepackage[times]{quotchap} % fancy chapter beginning

pretolerance=10000
tolerance=10000

% Gray boxes for chapter numbering on pages
usepackage[contents={},opacity=1,scale=1,color=white]{background}
usepackage{tikzpagenodes}
usepackage{totcount}
usetikzlibrary{calc}

newififMaterial

newlengthLabelSize
setlengthLabelSize{2.5cm}
AtBeginDocument{%
regtotcounter{chapter}
%setlengthLabelSize{dimexprtextheight/totvalue{chapter}relax}
ifdimLabelSize>2.5cmrelax
globalsetlengthLabelSize{2.5cm}
fi}

newcommandAddLabels{%
Materialtrue%
AddEverypageHook{%
ifMaterial%
ifoddvalue{page} %
backgroundsetup{
angle=90, position={current page.east|-current page text area.north east}, vshift=8pt, hshift=-thechapter*LabelSize,
contents={%
tikznode[fill=gray!30,anchor=west,text width=LabelSize,
align=center,text height=15pt,text depth=10pt,font=largesffamily] {thechapter}; }%
}
else
backgroundsetup{
angle=90, position={current page.west|-current page text area.north west}, vshift=-8pt, hshift=-thechapter*LabelSize,
contents={%
tikznode[fill=gray!30,anchor=west,text width=LabelSize,
align=center,text height=15pt,text depth=10pt,font=largesffamily] {thechapter}; }%
}
fi
BgMaterial%
elserelaxfi}%
}

newcommandRemoveLabels{Materialfalse}
usepackage{afterpage}
newcommandRemoveThisLabel{%
Materialfalse
afterpage{globalMaterialtrue}%
}









share|improve this question

























  • I'm not able to reproduce the problem with what you have provided, but I've given my best guess – see the notes on how to produce a minimum working example.

    – Andrew Dunning
    Jan 22 at 21:40











  • Thank you for your comment! I have edited the question. Compilation is with XeLaTeX. The problem only appears if I include a chapter chapter{A chapter} Some text and AddLabels for creating the gray chapter number boxes.

    – TGterpa
    Jan 23 at 7:36











  • Take a look at that link on MWEs – essentially you want to cut out everything that isn't relevant to the problem (e.g. all the extra bits in your separate preamble). You want to have one (ideally short) piece of text that respondents can paste into their computer to test.

    – Andrew Dunning
    Jan 24 at 14:20






  • 1





    In AddLabels you are using hshift=-thechapter*LabelSize. Here you use thechapter as a number which is wrong, because it need not be an arabic number. For example in the appendix it is A, B etc. So you have to use either value{chapter} or the value of another counter related to chapter.

    – Schweinebacke
    Jan 24 at 15:27














0












0








0








Including an appendix chapter using include{chapter_appendixA} results in a 'weird error' in overleaf (compiling with XeLaTeX):




! Missing number, treated as zero.

p
l.1 chapter{chapter_appendixA}
A number should have been here; I inserted `0'.



! Package PGF Math Error: Unknown function `A' (in '-A*LabelSize ').
See the PGF Math package documentation for explanation.
Type H for immediate help.




The chapter_appendixA.tex file only includes the following:



chapter{Appendix}
Some text


Other appendix examples do not include a number there. The error arises when activating the gray chapter label boxes using AddLabels from "Show current chapter number on each page margin"
Does anyone have an idea?



My main code is the following:



documentclass[10pt,twoside,parskip=half,table,xcdraw]{scrbook}
usepackage[
paperwidth=170mm,
paperheight=240mm,
top=2.5cm,
bottom=3cm,
inner=30mm,
outer=25mm,
heightrounded=true
]{geometry}

input{preamble.tex}

raggedbottom

% avoid annoying errors when using Koma-Script with bibtex
DeclareOldFontCommand{bf}{normalfontbfseries}{mathbf}


begin{document}

%%%%%%%%%%%%%%%%%%
%% FRONT MATTER %%
%%%%%%%%%%%%%%%%%%

frontmatter
tableofcontents

%%%%%%%%%%%%%%%%%
%% MAIN MATTER %%
%%%%%%%%%%%%%%%%%

mainmatter
rehead{small{Chapter thechapter}}

chapter{A chapter}
Some text
AddLabels

%%%%%%%%%%%%%%
%% APPENDIX %%
%%%%%%%%%%%%%%

appendix
include{chapter_appendixA}

end{document}


With accompanyingpreamble.tex:



%%%%%%%%%%%
%% FONTS %%
%%%%%%%%%%%
usepackage{xcolor}
usepackage{libertine}
setmainfont{Linux Libertine O}
setsansfont{Linux Biolinum O}

%Set chapter titles and numbering
usepackage[headsepline=true]{scrlayer-scrpage}
clearpairofpagestyles


%%%%%%%%%%%%%%%%%%%%%%%
%% chapter numbering %%
%%%%%%%%%%%%%%%%%%%%%%%

%renewcommand*{thesection}{thechapter.arabic{section}}
renewcommand{sectionmark}[1]{markright{#1}{}}

% Create header for odd (o) and even (e) pages
lehead{thepage}rohead{thepage}
lohead{{smallrightmark}}
setkomafont{pagehead}{normalfontnormalcolor}

usepackage[times]{quotchap} % fancy chapter beginning

pretolerance=10000
tolerance=10000

% Gray boxes for chapter numbering on pages
usepackage[contents={},opacity=1,scale=1,color=white]{background}
usepackage{tikzpagenodes}
usepackage{totcount}
usetikzlibrary{calc}

newififMaterial

newlengthLabelSize
setlengthLabelSize{2.5cm}
AtBeginDocument{%
regtotcounter{chapter}
%setlengthLabelSize{dimexprtextheight/totvalue{chapter}relax}
ifdimLabelSize>2.5cmrelax
globalsetlengthLabelSize{2.5cm}
fi}

newcommandAddLabels{%
Materialtrue%
AddEverypageHook{%
ifMaterial%
ifoddvalue{page} %
backgroundsetup{
angle=90, position={current page.east|-current page text area.north east}, vshift=8pt, hshift=-thechapter*LabelSize,
contents={%
tikznode[fill=gray!30,anchor=west,text width=LabelSize,
align=center,text height=15pt,text depth=10pt,font=largesffamily] {thechapter}; }%
}
else
backgroundsetup{
angle=90, position={current page.west|-current page text area.north west}, vshift=-8pt, hshift=-thechapter*LabelSize,
contents={%
tikznode[fill=gray!30,anchor=west,text width=LabelSize,
align=center,text height=15pt,text depth=10pt,font=largesffamily] {thechapter}; }%
}
fi
BgMaterial%
elserelaxfi}%
}

newcommandRemoveLabels{Materialfalse}
usepackage{afterpage}
newcommandRemoveThisLabel{%
Materialfalse
afterpage{globalMaterialtrue}%
}









share|improve this question
















Including an appendix chapter using include{chapter_appendixA} results in a 'weird error' in overleaf (compiling with XeLaTeX):




! Missing number, treated as zero.

p
l.1 chapter{chapter_appendixA}
A number should have been here; I inserted `0'.



! Package PGF Math Error: Unknown function `A' (in '-A*LabelSize ').
See the PGF Math package documentation for explanation.
Type H for immediate help.




The chapter_appendixA.tex file only includes the following:



chapter{Appendix}
Some text


Other appendix examples do not include a number there. The error arises when activating the gray chapter label boxes using AddLabels from "Show current chapter number on each page margin"
Does anyone have an idea?



My main code is the following:



documentclass[10pt,twoside,parskip=half,table,xcdraw]{scrbook}
usepackage[
paperwidth=170mm,
paperheight=240mm,
top=2.5cm,
bottom=3cm,
inner=30mm,
outer=25mm,
heightrounded=true
]{geometry}

input{preamble.tex}

raggedbottom

% avoid annoying errors when using Koma-Script with bibtex
DeclareOldFontCommand{bf}{normalfontbfseries}{mathbf}


begin{document}

%%%%%%%%%%%%%%%%%%
%% FRONT MATTER %%
%%%%%%%%%%%%%%%%%%

frontmatter
tableofcontents

%%%%%%%%%%%%%%%%%
%% MAIN MATTER %%
%%%%%%%%%%%%%%%%%

mainmatter
rehead{small{Chapter thechapter}}

chapter{A chapter}
Some text
AddLabels

%%%%%%%%%%%%%%
%% APPENDIX %%
%%%%%%%%%%%%%%

appendix
include{chapter_appendixA}

end{document}


With accompanyingpreamble.tex:



%%%%%%%%%%%
%% FONTS %%
%%%%%%%%%%%
usepackage{xcolor}
usepackage{libertine}
setmainfont{Linux Libertine O}
setsansfont{Linux Biolinum O}

%Set chapter titles and numbering
usepackage[headsepline=true]{scrlayer-scrpage}
clearpairofpagestyles


%%%%%%%%%%%%%%%%%%%%%%%
%% chapter numbering %%
%%%%%%%%%%%%%%%%%%%%%%%

%renewcommand*{thesection}{thechapter.arabic{section}}
renewcommand{sectionmark}[1]{markright{#1}{}}

% Create header for odd (o) and even (e) pages
lehead{thepage}rohead{thepage}
lohead{{smallrightmark}}
setkomafont{pagehead}{normalfontnormalcolor}

usepackage[times]{quotchap} % fancy chapter beginning

pretolerance=10000
tolerance=10000

% Gray boxes for chapter numbering on pages
usepackage[contents={},opacity=1,scale=1,color=white]{background}
usepackage{tikzpagenodes}
usepackage{totcount}
usetikzlibrary{calc}

newififMaterial

newlengthLabelSize
setlengthLabelSize{2.5cm}
AtBeginDocument{%
regtotcounter{chapter}
%setlengthLabelSize{dimexprtextheight/totvalue{chapter}relax}
ifdimLabelSize>2.5cmrelax
globalsetlengthLabelSize{2.5cm}
fi}

newcommandAddLabels{%
Materialtrue%
AddEverypageHook{%
ifMaterial%
ifoddvalue{page} %
backgroundsetup{
angle=90, position={current page.east|-current page text area.north east}, vshift=8pt, hshift=-thechapter*LabelSize,
contents={%
tikznode[fill=gray!30,anchor=west,text width=LabelSize,
align=center,text height=15pt,text depth=10pt,font=largesffamily] {thechapter}; }%
}
else
backgroundsetup{
angle=90, position={current page.west|-current page text area.north west}, vshift=-8pt, hshift=-thechapter*LabelSize,
contents={%
tikznode[fill=gray!30,anchor=west,text width=LabelSize,
align=center,text height=15pt,text depth=10pt,font=largesffamily] {thechapter}; }%
}
fi
BgMaterial%
elserelaxfi}%
}

newcommandRemoveLabels{Materialfalse}
usepackage{afterpage}
newcommandRemoveThisLabel{%
Materialfalse
afterpage{globalMaterialtrue}%
}






koma-script chapterthumb thumb-index appendix






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 24 at 15:00









Andrew Dunning

568214




568214










asked Jan 22 at 21:02









TGterpaTGterpa

34




34













  • I'm not able to reproduce the problem with what you have provided, but I've given my best guess – see the notes on how to produce a minimum working example.

    – Andrew Dunning
    Jan 22 at 21:40











  • Thank you for your comment! I have edited the question. Compilation is with XeLaTeX. The problem only appears if I include a chapter chapter{A chapter} Some text and AddLabels for creating the gray chapter number boxes.

    – TGterpa
    Jan 23 at 7:36











  • Take a look at that link on MWEs – essentially you want to cut out everything that isn't relevant to the problem (e.g. all the extra bits in your separate preamble). You want to have one (ideally short) piece of text that respondents can paste into their computer to test.

    – Andrew Dunning
    Jan 24 at 14:20






  • 1





    In AddLabels you are using hshift=-thechapter*LabelSize. Here you use thechapter as a number which is wrong, because it need not be an arabic number. For example in the appendix it is A, B etc. So you have to use either value{chapter} or the value of another counter related to chapter.

    – Schweinebacke
    Jan 24 at 15:27



















  • I'm not able to reproduce the problem with what you have provided, but I've given my best guess – see the notes on how to produce a minimum working example.

    – Andrew Dunning
    Jan 22 at 21:40











  • Thank you for your comment! I have edited the question. Compilation is with XeLaTeX. The problem only appears if I include a chapter chapter{A chapter} Some text and AddLabels for creating the gray chapter number boxes.

    – TGterpa
    Jan 23 at 7:36











  • Take a look at that link on MWEs – essentially you want to cut out everything that isn't relevant to the problem (e.g. all the extra bits in your separate preamble). You want to have one (ideally short) piece of text that respondents can paste into their computer to test.

    – Andrew Dunning
    Jan 24 at 14:20






  • 1





    In AddLabels you are using hshift=-thechapter*LabelSize. Here you use thechapter as a number which is wrong, because it need not be an arabic number. For example in the appendix it is A, B etc. So you have to use either value{chapter} or the value of another counter related to chapter.

    – Schweinebacke
    Jan 24 at 15:27

















I'm not able to reproduce the problem with what you have provided, but I've given my best guess – see the notes on how to produce a minimum working example.

– Andrew Dunning
Jan 22 at 21:40





I'm not able to reproduce the problem with what you have provided, but I've given my best guess – see the notes on how to produce a minimum working example.

– Andrew Dunning
Jan 22 at 21:40













Thank you for your comment! I have edited the question. Compilation is with XeLaTeX. The problem only appears if I include a chapter chapter{A chapter} Some text and AddLabels for creating the gray chapter number boxes.

– TGterpa
Jan 23 at 7:36





Thank you for your comment! I have edited the question. Compilation is with XeLaTeX. The problem only appears if I include a chapter chapter{A chapter} Some text and AddLabels for creating the gray chapter number boxes.

– TGterpa
Jan 23 at 7:36













Take a look at that link on MWEs – essentially you want to cut out everything that isn't relevant to the problem (e.g. all the extra bits in your separate preamble). You want to have one (ideally short) piece of text that respondents can paste into their computer to test.

– Andrew Dunning
Jan 24 at 14:20





Take a look at that link on MWEs – essentially you want to cut out everything that isn't relevant to the problem (e.g. all the extra bits in your separate preamble). You want to have one (ideally short) piece of text that respondents can paste into their computer to test.

– Andrew Dunning
Jan 24 at 14:20




1




1





In AddLabels you are using hshift=-thechapter*LabelSize. Here you use thechapter as a number which is wrong, because it need not be an arabic number. For example in the appendix it is A, B etc. So you have to use either value{chapter} or the value of another counter related to chapter.

– Schweinebacke
Jan 24 at 15:27





In AddLabels you are using hshift=-thechapter*LabelSize. Here you use thechapter as a number which is wrong, because it need not be an arabic number. For example in the appendix it is A, B etc. So you have to use either value{chapter} or the value of another counter related to chapter.

– Schweinebacke
Jan 24 at 15:27










1 Answer
1






active

oldest

votes


















2














KOMA-Script has a more robust approach to adding chapter thumbs using its scrlayer-scrpage package. Download the examples from the KOMA-Script book, and use the files in the Anhang-B folder. Here is a translated version of the example with an appendix added, which will work if the chapterthumb.sty file from the examples is in the same folder:



documentclass{scrbook}
usepackage{chapterthumb}
usepackage{scrlayer-scrpage}
AddLayersToPageStyle{@everystyle@}{chapterthumb}
addtokomafont{chapterthumb}{bfseries}

begin{document}
chapter{In the beginning it starts}dots
chapter{continuing}dots
chapter{further}dots
chapter{and even further}dots
chapter{And always on}dots
chapter{Goes the journey}dots
chapter{out}dots
chapter{And further out}dots
chapter{Always further out}dots

appendix

chapter{Until the end}dots

end{document}


KOMA-Script chapterthumb example: chapter



KOMA-Script chapterthumb example: appendix



If you wish to customize it, this has been addressed several times before; see the chapterthumb tag.






share|improve this answer


























  • Thank you for your suggestion. I have removed the inclusion of the appendixpackage. However, I just found out that the problem arises when including the gray chapter boxes in the margin using AddLabels. I have edited the question accordingly.

    – TGterpa
    Jan 23 at 8:10











  • I've modified my answer to show a cleaner method of adding chapter thumbs.

    – Andrew Dunning
    Jan 24 at 14:46











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471382%2fadding-chapter-thumbs-to-an-appendix-with-koma-script%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














KOMA-Script has a more robust approach to adding chapter thumbs using its scrlayer-scrpage package. Download the examples from the KOMA-Script book, and use the files in the Anhang-B folder. Here is a translated version of the example with an appendix added, which will work if the chapterthumb.sty file from the examples is in the same folder:



documentclass{scrbook}
usepackage{chapterthumb}
usepackage{scrlayer-scrpage}
AddLayersToPageStyle{@everystyle@}{chapterthumb}
addtokomafont{chapterthumb}{bfseries}

begin{document}
chapter{In the beginning it starts}dots
chapter{continuing}dots
chapter{further}dots
chapter{and even further}dots
chapter{And always on}dots
chapter{Goes the journey}dots
chapter{out}dots
chapter{And further out}dots
chapter{Always further out}dots

appendix

chapter{Until the end}dots

end{document}


KOMA-Script chapterthumb example: chapter



KOMA-Script chapterthumb example: appendix



If you wish to customize it, this has been addressed several times before; see the chapterthumb tag.






share|improve this answer


























  • Thank you for your suggestion. I have removed the inclusion of the appendixpackage. However, I just found out that the problem arises when including the gray chapter boxes in the margin using AddLabels. I have edited the question accordingly.

    – TGterpa
    Jan 23 at 8:10











  • I've modified my answer to show a cleaner method of adding chapter thumbs.

    – Andrew Dunning
    Jan 24 at 14:46
















2














KOMA-Script has a more robust approach to adding chapter thumbs using its scrlayer-scrpage package. Download the examples from the KOMA-Script book, and use the files in the Anhang-B folder. Here is a translated version of the example with an appendix added, which will work if the chapterthumb.sty file from the examples is in the same folder:



documentclass{scrbook}
usepackage{chapterthumb}
usepackage{scrlayer-scrpage}
AddLayersToPageStyle{@everystyle@}{chapterthumb}
addtokomafont{chapterthumb}{bfseries}

begin{document}
chapter{In the beginning it starts}dots
chapter{continuing}dots
chapter{further}dots
chapter{and even further}dots
chapter{And always on}dots
chapter{Goes the journey}dots
chapter{out}dots
chapter{And further out}dots
chapter{Always further out}dots

appendix

chapter{Until the end}dots

end{document}


KOMA-Script chapterthumb example: chapter



KOMA-Script chapterthumb example: appendix



If you wish to customize it, this has been addressed several times before; see the chapterthumb tag.






share|improve this answer


























  • Thank you for your suggestion. I have removed the inclusion of the appendixpackage. However, I just found out that the problem arises when including the gray chapter boxes in the margin using AddLabels. I have edited the question accordingly.

    – TGterpa
    Jan 23 at 8:10











  • I've modified my answer to show a cleaner method of adding chapter thumbs.

    – Andrew Dunning
    Jan 24 at 14:46














2












2








2







KOMA-Script has a more robust approach to adding chapter thumbs using its scrlayer-scrpage package. Download the examples from the KOMA-Script book, and use the files in the Anhang-B folder. Here is a translated version of the example with an appendix added, which will work if the chapterthumb.sty file from the examples is in the same folder:



documentclass{scrbook}
usepackage{chapterthumb}
usepackage{scrlayer-scrpage}
AddLayersToPageStyle{@everystyle@}{chapterthumb}
addtokomafont{chapterthumb}{bfseries}

begin{document}
chapter{In the beginning it starts}dots
chapter{continuing}dots
chapter{further}dots
chapter{and even further}dots
chapter{And always on}dots
chapter{Goes the journey}dots
chapter{out}dots
chapter{And further out}dots
chapter{Always further out}dots

appendix

chapter{Until the end}dots

end{document}


KOMA-Script chapterthumb example: chapter



KOMA-Script chapterthumb example: appendix



If you wish to customize it, this has been addressed several times before; see the chapterthumb tag.






share|improve this answer















KOMA-Script has a more robust approach to adding chapter thumbs using its scrlayer-scrpage package. Download the examples from the KOMA-Script book, and use the files in the Anhang-B folder. Here is a translated version of the example with an appendix added, which will work if the chapterthumb.sty file from the examples is in the same folder:



documentclass{scrbook}
usepackage{chapterthumb}
usepackage{scrlayer-scrpage}
AddLayersToPageStyle{@everystyle@}{chapterthumb}
addtokomafont{chapterthumb}{bfseries}

begin{document}
chapter{In the beginning it starts}dots
chapter{continuing}dots
chapter{further}dots
chapter{and even further}dots
chapter{And always on}dots
chapter{Goes the journey}dots
chapter{out}dots
chapter{And further out}dots
chapter{Always further out}dots

appendix

chapter{Until the end}dots

end{document}


KOMA-Script chapterthumb example: chapter



KOMA-Script chapterthumb example: appendix



If you wish to customize it, this has been addressed several times before; see the chapterthumb tag.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 24 at 15:11

























answered Jan 22 at 21:30









Andrew DunningAndrew Dunning

568214




568214













  • Thank you for your suggestion. I have removed the inclusion of the appendixpackage. However, I just found out that the problem arises when including the gray chapter boxes in the margin using AddLabels. I have edited the question accordingly.

    – TGterpa
    Jan 23 at 8:10











  • I've modified my answer to show a cleaner method of adding chapter thumbs.

    – Andrew Dunning
    Jan 24 at 14:46



















  • Thank you for your suggestion. I have removed the inclusion of the appendixpackage. However, I just found out that the problem arises when including the gray chapter boxes in the margin using AddLabels. I have edited the question accordingly.

    – TGterpa
    Jan 23 at 8:10











  • I've modified my answer to show a cleaner method of adding chapter thumbs.

    – Andrew Dunning
    Jan 24 at 14:46

















Thank you for your suggestion. I have removed the inclusion of the appendixpackage. However, I just found out that the problem arises when including the gray chapter boxes in the margin using AddLabels. I have edited the question accordingly.

– TGterpa
Jan 23 at 8:10





Thank you for your suggestion. I have removed the inclusion of the appendixpackage. However, I just found out that the problem arises when including the gray chapter boxes in the margin using AddLabels. I have edited the question accordingly.

– TGterpa
Jan 23 at 8:10













I've modified my answer to show a cleaner method of adding chapter thumbs.

– Andrew Dunning
Jan 24 at 14:46





I've modified my answer to show a cleaner method of adding chapter thumbs.

– Andrew Dunning
Jan 24 at 14:46


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471382%2fadding-chapter-thumbs-to-an-appendix-with-koma-script%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?