我正在研究论文格式(在报告文档类中)。我使用“tocloft”包来调整目录、目录和目录的字体大小。我想知道如何调整表格列表和每个表格标题之间的间距。 lof 和 toc 也类似。 谢谢!
- - - - - 更新 - - - - - - - -
谢谢你的建议。这是我使用的代码。
\documentclass[a4paper, 12pt, oneside]{report}
\usepackage[a4paper,left=1in,right=1in,top=1in,bottom=1in,
]{geometry}
\usepackage{times}
\usepackage{setspace}
\usepackage{url}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm} %for example
\usepackage{mathtools}
\usepackage{cleveref} %for section symbol
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{commath}
\usepackage{pst-node}
\usepackage{tikz-cd}
\usepackage{mathrsfs}
\usepackage{indentfirst}
\newtheorem{defn}{Definition}%[section]
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{definition}
\newtheorem{exa}{Example}[section]
\usepackage{float} %!!!
\renewcommand{\thetable}{\Roman{table}}
\usepackage{caption}
\captionsetup[table]{name=TABLE}
\renewcommand{\thefigure}{\arabic{figure}}
\makeatletter
\g@addto@macro{\normalsize}{%
\setlength{\abovedisplayskip}{0pt}
\setlength{\abovedisplayshortskip}{0pt}
\setlength{\belowdisplayskip}{0pt}
\setlength{\belowdisplayshortskip}{0pt}}
\makeatother
\usepackage{tocloft} %customize title of fig & tab
\renewcommand{\cftfignumwidth}{7em}
\renewcommand{\cftfigpresnum}{Figure }
\renewcommand{\cfttabnumwidth}{7em}
\renewcommand{\cfttabpresnum}{TABLE }
\renewcommand\cfttoctitlefont{\large\bfseries}
\renewcommand\cftlottitlefont{\large\bfseries}
\renewcommand\cftloftitlefont{\large\bfseries}
\newcommand\at[2]{\left.#1\right|_{#2}} %Derivative at a point
\usepackage{etoolbox}
\usepackage{titlesec}
\titlespacing*{\chapter}
{0pt}{0pt}{0pt}
\titlespacing*{\section}
{0pt}{0pt}{0pt}
\titleformat{\chapter}[display] {\normalfont\large\bfseries}{\chaptertitlename\ \thechapter}{0pt}{\large}
\titlespacing{\chapter}{0pt}{0pt}{0pt}
\titleformat*{\section}{\large\bfseries}
\usepackage{fancyhdr}
\begin{document}
\pagenumbering{roman}
\doublespacing
\begin{abstract}
\end{abstract}
\setcounter{page}{4}
\tableofcontents{}
\thispagestyle{plain}
\pagebreak
\listoftables
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{List of Tables}
\pagebreak
\listoffigures
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{List of Figures}
\pagebreak
\pagenumbering{arabic}
\pagestyle{myheadings}
\chapter{Introduction}
\section{History of polynomial root-finding}
...
\end{document}
答案1
来自tocloft
手册:
因此,要更改目录标题下方的间距,可以使用\setlength{\cftaftertoctitleskip}{<lenght of your choice>}
。默认长度(根据tocloft.sty
是40pt
。
下面是一个小型 MWE,演示了前面提到的命令的用法:
\documentclass{report}
\usepackage{tocloft}
\setlength{\cftaftertoctitleskip}{10pt}
\begin{document}
\tableofcontents
\chapter{a Chapter Title}
\end{document}