I am writing a thesis using scrreprt from KOMA-script.
I used the method proposed in that post to adjust the spacing before the chapter headings:
Space before chapters and contents
That is, I use the commands:
% Format chapter headings
\addtokomafont{disposition}{\mytitlefont}
\renewcommand*{\chapterheadstartvskip}{\vskip-40pt}
However, for some reason this does not modify the spacing before the Table of Contents headings. It only modifies the chapters.
Here is my full style file:
% Style file for packages
\ProvidesPackage{style}
% Packages
% Package to set page dimensions and margins
\usepackage[letterpaper, lmargin=1in, rmargin=1in]{geometry}
% Graphics package
\usepackage{graphicx}
% Maths typesetting packages
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{bm}
% Package to format table of contents, list of figures, and list of table
\usepackage{tocloft}
% Package to format captions
\usepackage{caption}
% Package to format footnotes
\usepackage{scrextend}
% Package to align table columns on decimal point
\usepackage{dcolumn}
% Package to format custom dates
\usepackage{datetime}
% Package for line spacing
\usepackage{setspace}
\onehalfspacing
% Package for citation formatting
\usepackage{cite}
% Custom fonts
\newcommand{\mytitlefont}{\normalcolor \sffamily \bfseries}
\renewcommand{\familydefault}{\rmdefault}
% Format dates
\newdateformat{monthyeardate}{\monthname[\THEMONTH], \THEYEAR}
\newdateformat{yeardate}{\THEYEAR}
% Format chapter headings
\addtokomafont{disposition}{\mytitlefont}
\renewcommand*{\chapterheadstartvskip}{\vskip-40pt}
% Format table of contents, list of figures, and list of tables
\renewcommand{\listfigurename}{Figures}
\renewcommand{\listtablename}{Tables}
\renewcommand{\cftfignumwidth}{6em}
\renewcommand{\cftfigpresnum}{\mytitlefont Figure }
\renewcommand{\cfttabnumwidth}{6em}
\renewcommand{\cfttabpresnum}{\mytitlefont Table }
% Format captions
\captionsetup{format=plain}
\addtokomafont{caption}{\small}
\addtokomafont{captionlabel}{\small\mytitlefont}
% Package to format footnotes
\deffootnote[1.5em]{1.5em}{1em}{\thefootnotemark.\space}
Now everyone who asks this question seems to be redirected back to the link mentioned above. But for me it does not affect the ToC at all. Only the Chapters. Anyone can see a reason?
Here is the start of the main tex file for good measure:
% Write the thesis in report format
\documentclass[12pt,letterpaper]{scrreprt}
% Insert packages
\usepackage{style}
\usepackage[hidelinks]{hyperref}
% Insert preamble
\input{./tex/preamble}
% Begin the thesis
\begin{document}
% Insert title
\input{./tex/title}
% Insert epigraph
\pagenumbering{gobble}
\input{./tex/epigraph}
% Insert abstract in english
\pagenumbering{gobble}
\input{./tex/abstract_en}
% Insert abstract in french
\pagenumbering{gobble}
\input{./tex/abstract_fr}
% Change the page numbering to roman
\pagenumbering{roman}
% Insert the preface
\clearpage
\addcontentsline{toc}{chapter}{Preface}
\input{./tex/preface}
% Insert the acknowledgments
\clearpage
\addcontentsline{toc}{chapter}{Acknowledgments}
\input{./tex/acknowledgments}
% Insert table of contents, figures, and tables
\tableofcontents
\listoffigures
Ben

tocloft. It is recommended to not use this package with KOMA-Script classes but use the KOMA-Script way to change table of contents etc. – Schweinebacke Apr 02 '17 at 08:33tocloftortocbibindortitesecdo a good job. But not for KOMA-script, which is another branch. Ormemoirwhich is yet another branch. Not to mention all those journal or thesis templates/classes that do even more crazy stuff to get things done. – Johannes_B Apr 02 '17 at 08:39