I need to reduce the space to half between the entries of list of table and list of figures.I want the space to be equal irrespective of the different chapters the entry belongs to. My code in part is as under:
\documentclass[a4paper,12pt,oneside]{report}
\usepackage[left=3.81cm,right=2.54cm,top=2.54cm,bottom=2.54cm]{geometry}
....
addcontentsline{toc}{chapter}{References}
..... (I added this patch to remove any extra space between entries from different chapters, and it worked for me but I am unable to reduce the spacing overall)
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
% \patchcmd{<cmd>}{<search>}{<replace>}{<succes>}{<failure>}
\patchcmd{\@chapter}{\addtocontents{lof}{\protect\addvspace{10\p@}}}{}{}{}% LoF
\patchcmd{\@chapter}{\addtocontents{lot}{\protect\addvspace{10\p@}}}{}{}{}% LoT
\makeatother
%
Best Answer
When you load
tocloft
package, the spacing between entries in ToC will be stored in\cftsecafterpnum
for sections and\cftsubsecafterpnum
for subsections. In LoF, it is stored in\cftfigafterpnum
. To set the spacing you can use a code like thisJust set
\toclineskipl
to whatever length you want which in turn sets the spacing between ToC and LoF entries.A full sample code