Theses, Books, Title pages ⇒ line space in Table of Content
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
line space in Table of Content
In "Table of Content" we have different line space (vertical space) between each item . For example, space between "Declaration" and "Abstract" (between all sections with roman numbers) is much more than the space between Chapters!
I could change the line space between Chapters.but I could not do it for the "Declaration" and "Abstract" and so on.
Any solution?
The same problem I have in the List of Tables. The line space between items in different chapters is more than the same chapter. I want to have the same line spaces between all items.
Thank you in advance.
sam
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: line space in Table of Content
Search main.tex for "\addtocontents{toc}" and every occurrence of that has a height in curly brackets after it (e.g. \addtocontents{toc}{\vspace{2em}}). Those are adding whitespace to the table of contents so adjust them as you like if you want to remove gaps.
For removing gaps between chapters in the List of Tables have a read of this: http://tex.stackexchange.com/questions/ ... -of-tables
Hope that helps!
Cheers,
Vel
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: line space in Table of Content
Thank you for your answer.
But I cannot find it for table of content. my table of content has the following commands:
\pagestyle{fancy}
\lhead{\emph{Contents}}
\tableofcontents
As you can see in the picture, the red vertical space number 1 and 2 have different size. I want to have the same size.
http://i40.tinypic.com/2yoqqmp.jpg
Thank you.
sam
Re: line space in Table of Content
In the abstract block you have:
\addtotoc{Abstract}
\abstract{\addtocontents{toc}{\vspace{1em}}
If you remove the \addtocontents{toc}{\vspace{1em}} from that second line you will see that the extra gap goes away. If you want to make it smaller, you can make the value within it negative. Do the same for the rest of the gaps by searching the entire main.tex file for "\addtocontents{toc}".
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: line space in Table of Content
sam