tsaoyu / WHUT-LaTeX-bachelor

This is a free LaTeX template for the undergraduate thesis at WHUT
65 stars 26 forks source link

如何修改目录内章节字体 #4

Closed Cugtyt closed 6 years ago

Cugtyt commented 6 years ago

image

如何将章标题改为宋体,不加粗,和其他节标题一样,目录这两个字保持黑体?

Cugtyt commented 6 years ago

我使用{\songti\tableofcontents}修改为了宋体,但是数字依旧是加粗的,请问如何修改?

image

tsaoyu commented 6 years ago

To change fonts in ToC check this package tocloft.

Discussion here might also help.

Cugtyt commented 6 years ago

\usepackage[subfigure]{tocloft} \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} \renewcommand{\cftsecfont}{\songti} \renewcommand{\cftsecpagefont}{\songti}

我使用这个命令字体可以了,但是这导致了目录第一页出现了页码,请问如何解决?谢谢

tsaoyu commented 6 years ago

Could you try \thispagestyle{empty}?

Cugtyt commented 6 years ago

ok, I solve it, here is the summary:

\usepackage[subfigure]{tocloft} %tocloft packages
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % add dot of chepters if needed
\renewcommand{\cftsecfont}{\songti} % set section font
\renewcommand{\cftsecpagefont}{\songti} % set page number font

But page number of the first table of contents page occurs, use

 \tocloftpagestyle{empty}