Section Numbers in Table of Contents using turabian-formatting
I am currently writing my dissertation in latex using turabian-formatting's thesis class, https://ctan.org/pkg/turabian-formatting. By default, the class does not show section and subsection numbers. I have figured out how to get it to show these by commenting out the line in the package that disables them. However, in the table of contents it now tries to write the section (and subsection) numbers over the names, making a mess. Here is the (I think) relevant part of the package that controls how the table of contents looks:
renewcommand*{l@chapter}[2]{%
ifnum c@tocdepth >m@ne
addpenalty{-@highpenalty}%
setlength@tempdima{1.25in}%
vskip 1baselineskip
{ parindent z@
rightskip @tocrmarg
parfillskip -rightskip
leavevmode
advanceleftskip@tempdima
hskip -leftskip
#1nobreakhfil nobreakhb@xt@@pnumwidth{hss #2}par
penalty@highpenalty}
fi}
renewcommand*{l@section}{%
ifnum c@tocdepth >z@ vskip tf@singlelineskip fi
@dottedtocline{1}{1.5in}{z@}}
renewcommand*{l@subsection}{%
ifnum c@tocdepth >1 vskip tf@singlelineskip fi
@dottedtocline{2}{1.75in}{z@}}
Sadly, this is all Greek to me. The chapters look fine in the table of contents. Does anyone have any ideas about how to fix the section and subsection formattings so that it displays properly?
table-of-contents
add a comment |
I am currently writing my dissertation in latex using turabian-formatting's thesis class, https://ctan.org/pkg/turabian-formatting. By default, the class does not show section and subsection numbers. I have figured out how to get it to show these by commenting out the line in the package that disables them. However, in the table of contents it now tries to write the section (and subsection) numbers over the names, making a mess. Here is the (I think) relevant part of the package that controls how the table of contents looks:
renewcommand*{l@chapter}[2]{%
ifnum c@tocdepth >m@ne
addpenalty{-@highpenalty}%
setlength@tempdima{1.25in}%
vskip 1baselineskip
{ parindent z@
rightskip @tocrmarg
parfillskip -rightskip
leavevmode
advanceleftskip@tempdima
hskip -leftskip
#1nobreakhfil nobreakhb@xt@@pnumwidth{hss #2}par
penalty@highpenalty}
fi}
renewcommand*{l@section}{%
ifnum c@tocdepth >z@ vskip tf@singlelineskip fi
@dottedtocline{1}{1.5in}{z@}}
renewcommand*{l@subsection}{%
ifnum c@tocdepth >1 vskip tf@singlelineskip fi
@dottedtocline{2}{1.75in}{z@}}
Sadly, this is all Greek to me. The chapters look fine in the table of contents. Does anyone have any ideas about how to fix the section and subsection formattings so that it displays properly?
table-of-contents
1
Please -- as usual here -- add an short compilable code resulting in your issue. That is called an MWE: tex.meta.stackexchange.com/questions/228/…
– Kurt
Feb 1 at 20:05
Crosspost
– Johannes_B
Feb 2 at 6:15
add a comment |
I am currently writing my dissertation in latex using turabian-formatting's thesis class, https://ctan.org/pkg/turabian-formatting. By default, the class does not show section and subsection numbers. I have figured out how to get it to show these by commenting out the line in the package that disables them. However, in the table of contents it now tries to write the section (and subsection) numbers over the names, making a mess. Here is the (I think) relevant part of the package that controls how the table of contents looks:
renewcommand*{l@chapter}[2]{%
ifnum c@tocdepth >m@ne
addpenalty{-@highpenalty}%
setlength@tempdima{1.25in}%
vskip 1baselineskip
{ parindent z@
rightskip @tocrmarg
parfillskip -rightskip
leavevmode
advanceleftskip@tempdima
hskip -leftskip
#1nobreakhfil nobreakhb@xt@@pnumwidth{hss #2}par
penalty@highpenalty}
fi}
renewcommand*{l@section}{%
ifnum c@tocdepth >z@ vskip tf@singlelineskip fi
@dottedtocline{1}{1.5in}{z@}}
renewcommand*{l@subsection}{%
ifnum c@tocdepth >1 vskip tf@singlelineskip fi
@dottedtocline{2}{1.75in}{z@}}
Sadly, this is all Greek to me. The chapters look fine in the table of contents. Does anyone have any ideas about how to fix the section and subsection formattings so that it displays properly?
table-of-contents
I am currently writing my dissertation in latex using turabian-formatting's thesis class, https://ctan.org/pkg/turabian-formatting. By default, the class does not show section and subsection numbers. I have figured out how to get it to show these by commenting out the line in the package that disables them. However, in the table of contents it now tries to write the section (and subsection) numbers over the names, making a mess. Here is the (I think) relevant part of the package that controls how the table of contents looks:
renewcommand*{l@chapter}[2]{%
ifnum c@tocdepth >m@ne
addpenalty{-@highpenalty}%
setlength@tempdima{1.25in}%
vskip 1baselineskip
{ parindent z@
rightskip @tocrmarg
parfillskip -rightskip
leavevmode
advanceleftskip@tempdima
hskip -leftskip
#1nobreakhfil nobreakhb@xt@@pnumwidth{hss #2}par
penalty@highpenalty}
fi}
renewcommand*{l@section}{%
ifnum c@tocdepth >z@ vskip tf@singlelineskip fi
@dottedtocline{1}{1.5in}{z@}}
renewcommand*{l@subsection}{%
ifnum c@tocdepth >1 vskip tf@singlelineskip fi
@dottedtocline{2}{1.75in}{z@}}
Sadly, this is all Greek to me. The chapters look fine in the table of contents. Does anyone have any ideas about how to fix the section and subsection formattings so that it displays properly?
table-of-contents
table-of-contents
asked Feb 1 at 19:57
bopgahbopgah
62
62
1
Please -- as usual here -- add an short compilable code resulting in your issue. That is called an MWE: tex.meta.stackexchange.com/questions/228/…
– Kurt
Feb 1 at 20:05
Crosspost
– Johannes_B
Feb 2 at 6:15
add a comment |
1
Please -- as usual here -- add an short compilable code resulting in your issue. That is called an MWE: tex.meta.stackexchange.com/questions/228/…
– Kurt
Feb 1 at 20:05
Crosspost
– Johannes_B
Feb 2 at 6:15
1
1
Please -- as usual here -- add an short compilable code resulting in your issue. That is called an MWE: tex.meta.stackexchange.com/questions/228/…
– Kurt
Feb 1 at 20:05
Please -- as usual here -- add an short compilable code resulting in your issue. That is called an MWE: tex.meta.stackexchange.com/questions/228/…
– Kurt
Feb 1 at 20:05
Crosspost
– Johannes_B
Feb 2 at 6:15
Crosspost
– Johannes_B
Feb 2 at 6:15
add a comment |
0
active
oldest
votes
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%2f472940%2fsection-numbers-in-table-of-contents-using-turabian-formatting%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f472940%2fsection-numbers-in-table-of-contents-using-turabian-formatting%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
1
Please -- as usual here -- add an short compilable code resulting in your issue. That is called an MWE: tex.meta.stackexchange.com/questions/228/…
– Kurt
Feb 1 at 20:05
Crosspost
– Johannes_B
Feb 2 at 6:15