Skip to content

Instantly share code, notes, and snippets.

@edwardtoday
Created March 12, 2013 15:15
Show Gist options
  • Save edwardtoday/5143755 to your computer and use it in GitHub Desktop.
Save edwardtoday/5143755 to your computer and use it in GitHub Desktop.
%%% Set Table of Contents format
\renewcommand\contentsname{Table of Contents}
\usepackage[subfigure]{tocloft}
\renewcommand{\cftbeforechapskip}{0pt}
\renewcommand{\cftbeforetoctitleskip}{6pt}
\renewcommand{\cftaftertoctitleskip}{12pt}
% Set ToC heading size the same as that of Abstract
\renewcommand\cfttoctitlefont{\subsectionsize\bfseries}
\renewcommand\cftchapfont{\tocchapsize\bfseries}
\renewcommand\cftchappresnum{Chapter } % prefix "Chapter " to chapters in ToC
\cftsetindents{chapter}{0em}{5em} % set amount of indenting
\makeatletter \renewcommand{\@dotsep}{1} \makeatother
\renewcommand{\cftchapdotsep}{\cftdotsep}
\renewcommand{\cftbeforeloftitleskip}{6pt}
\renewcommand{\cftafterloftitleskip}{18pt}
\renewcommand\cftloftitlefont{\subsectionsize\bfseries}
\renewcommand\cftfigpresnum{Figure } % prefix "Figure " to entries in LoF
\cftsetindents{figure}{0em}{5em} % set amount of indenting
\renewcommand{\cftbeforelottitleskip}{6pt}
\renewcommand{\cftafterlottitleskip}{18pt}
\renewcommand\cftlottitlefont{\subsectionsize\bfseries}
\renewcommand\cfttabpresnum{Table } % prefix "Table " to entries in LoT
\cftsetindents{table}{0em}{5em} % set amount of indenting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment