controlling spacing between lines in tree of contents
Since yesterday I have learned that doing a hard reset on a git branch also throws away stashed changes. So, I need to recreate some steps that I have inadvertently thrown away. Unfortunately I cannot remember how I decreased the spacing between lines of contents table. I have tried
renewcommand{cftsubsecafterpnum}{vspace{-8pt}}
renewcommand{cftsubsubsecafterpnum}{vspace{-8pt}}
which works, but unfortunately I also have the custom defined subsubsubsection which I am unable to modify using the above logic using tocloft package.
I have also tried
renewcommand{baselinestretch}{0.8}normalsize
tableofcontents
renewcommand{baselinestretch}{1.0}normalsize
but this controls only the space of multilines in TOC.
Below are images of what I have now and what it used to look like. Any hints on how to decrease spacing between the lines would be much appreciated.
This is "before" look of how I managed to decrease the spacing.

This is what it looks now.

table-of-contents line-spacing tocloft
add a comment |
Since yesterday I have learned that doing a hard reset on a git branch also throws away stashed changes. So, I need to recreate some steps that I have inadvertently thrown away. Unfortunately I cannot remember how I decreased the spacing between lines of contents table. I have tried
renewcommand{cftsubsecafterpnum}{vspace{-8pt}}
renewcommand{cftsubsubsecafterpnum}{vspace{-8pt}}
which works, but unfortunately I also have the custom defined subsubsubsection which I am unable to modify using the above logic using tocloft package.
I have also tried
renewcommand{baselinestretch}{0.8}normalsize
tableofcontents
renewcommand{baselinestretch}{1.0}normalsize
but this controls only the space of multilines in TOC.
Below are images of what I have now and what it used to look like. Any hints on how to decrease spacing between the lines would be much appreciated.
This is "before" look of how I managed to decrease the spacing.

This is what it looks now.

table-of-contents line-spacing tocloft
subsubsubsectionis no level by default for most document classes, sotocloftcan not get grip of this level with itscftX....macros. You have must either changel@subsubsubsectionor providenewlistentry, which will lead to a problem, most likely, since you might have defined a counter namedsubsubsubsection, whichnewlistentrytries to define again. Since you have not posted working code, it is hard to tell which solution works best and 99% is guessing only
– Christian Hupfer
9 mins ago
Perhapssubsubsubsectionis nothing different thanparagraphand you should changecftparaafterpnuminstead
– Christian Hupfer
4 mins ago
add a comment |
Since yesterday I have learned that doing a hard reset on a git branch also throws away stashed changes. So, I need to recreate some steps that I have inadvertently thrown away. Unfortunately I cannot remember how I decreased the spacing between lines of contents table. I have tried
renewcommand{cftsubsecafterpnum}{vspace{-8pt}}
renewcommand{cftsubsubsecafterpnum}{vspace{-8pt}}
which works, but unfortunately I also have the custom defined subsubsubsection which I am unable to modify using the above logic using tocloft package.
I have also tried
renewcommand{baselinestretch}{0.8}normalsize
tableofcontents
renewcommand{baselinestretch}{1.0}normalsize
but this controls only the space of multilines in TOC.
Below are images of what I have now and what it used to look like. Any hints on how to decrease spacing between the lines would be much appreciated.
This is "before" look of how I managed to decrease the spacing.

This is what it looks now.

table-of-contents line-spacing tocloft
Since yesterday I have learned that doing a hard reset on a git branch also throws away stashed changes. So, I need to recreate some steps that I have inadvertently thrown away. Unfortunately I cannot remember how I decreased the spacing between lines of contents table. I have tried
renewcommand{cftsubsecafterpnum}{vspace{-8pt}}
renewcommand{cftsubsubsecafterpnum}{vspace{-8pt}}
which works, but unfortunately I also have the custom defined subsubsubsection which I am unable to modify using the above logic using tocloft package.
I have also tried
renewcommand{baselinestretch}{0.8}normalsize
tableofcontents
renewcommand{baselinestretch}{1.0}normalsize
but this controls only the space of multilines in TOC.
Below are images of what I have now and what it used to look like. Any hints on how to decrease spacing between the lines would be much appreciated.
This is "before" look of how I managed to decrease the spacing.

This is what it looks now.

table-of-contents line-spacing tocloft
table-of-contents line-spacing tocloft
edited 6 mins ago
Bernard
165k769193
165k769193
asked 35 mins ago
Roman Luštrik
7751716
7751716
subsubsubsectionis no level by default for most document classes, sotocloftcan not get grip of this level with itscftX....macros. You have must either changel@subsubsubsectionor providenewlistentry, which will lead to a problem, most likely, since you might have defined a counter namedsubsubsubsection, whichnewlistentrytries to define again. Since you have not posted working code, it is hard to tell which solution works best and 99% is guessing only
– Christian Hupfer
9 mins ago
Perhapssubsubsubsectionis nothing different thanparagraphand you should changecftparaafterpnuminstead
– Christian Hupfer
4 mins ago
add a comment |
subsubsubsectionis no level by default for most document classes, sotocloftcan not get grip of this level with itscftX....macros. You have must either changel@subsubsubsectionor providenewlistentry, which will lead to a problem, most likely, since you might have defined a counter namedsubsubsubsection, whichnewlistentrytries to define again. Since you have not posted working code, it is hard to tell which solution works best and 99% is guessing only
– Christian Hupfer
9 mins ago
Perhapssubsubsubsectionis nothing different thanparagraphand you should changecftparaafterpnuminstead
– Christian Hupfer
4 mins ago
subsubsubsection is no level by default for most document classes, so tocloft can not get grip of this level with its cftX.... macros. You have must either change l@subsubsubsection or provide newlistentry, which will lead to a problem, most likely, since you might have defined a counter named subsubsubsection, which newlistentry tries to define again. Since you have not posted working code, it is hard to tell which solution works best and 99% is guessing only– Christian Hupfer
9 mins ago
subsubsubsection is no level by default for most document classes, so tocloft can not get grip of this level with its cftX.... macros. You have must either change l@subsubsubsection or provide newlistentry, which will lead to a problem, most likely, since you might have defined a counter named subsubsubsection, which newlistentry tries to define again. Since you have not posted working code, it is hard to tell which solution works best and 99% is guessing only– Christian Hupfer
9 mins ago
Perhaps
subsubsubsection is nothing different than paragraph and you should change cftparaafterpnum instead– Christian Hupfer
4 mins ago
Perhaps
subsubsubsection is nothing different than paragraph and you should change cftparaafterpnum instead– Christian Hupfer
4 mins ago
add a comment |
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%2f467266%2fcontrolling-spacing-between-lines-in-tree-of-contents%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467266%2fcontrolling-spacing-between-lines-in-tree-of-contents%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
subsubsubsectionis no level by default for most document classes, sotocloftcan not get grip of this level with itscftX....macros. You have must either changel@subsubsubsectionor providenewlistentry, which will lead to a problem, most likely, since you might have defined a counter namedsubsubsubsection, whichnewlistentrytries to define again. Since you have not posted working code, it is hard to tell which solution works best and 99% is guessing only– Christian Hupfer
9 mins ago
Perhaps
subsubsubsectionis nothing different thanparagraphand you should changecftparaafterpnuminstead– Christian Hupfer
4 mins ago