controlling spacing between lines in tree of contents












0














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.
enter image description here



This is what it looks now.
enter image description here










share|improve this question
























  • 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
















0














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.
enter image description here



This is what it looks now.
enter image description here










share|improve this question
























  • 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














0












0








0







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.
enter image description here



This is what it looks now.
enter image description here










share|improve this question















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.
enter image description here



This is what it looks now.
enter image description here







table-of-contents line-spacing tocloft






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 mins ago









Bernard

165k769193




165k769193










asked 35 mins ago









Roman Luštrik

7751716




7751716












  • 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


















  • 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
















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















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


}
});














draft saved

draft discarded


















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
















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.





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.




draft saved


draft discarded














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





















































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

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)