davyxx3 / hhu-thesis-bachelor

河海大学本科毕业论文LaTeX模板(理工科)【2024年更新】
MIT License
24 stars 1 forks source link

模板使用xelatex -> bibtex -> xelatex*2编译,目录无法显示subsection的项,最多只能生成到section的项。 #7

Open Doit-Cai opened 1 month ago

Doit-Cai commented 1 month ago

有用\subsection{}指令,但是无效。 求学长指教!

Doit-Cai commented 1 month ago

已解决,操作方法如下: 1.打开hhu-thesis-bachelor.cls,找到215行,将1改为2; 2.在222行后添加如下代码:

\titlecontents{subsection}[\ccwd]{\songti \zihao{-4}}
    {\thecontentslabel\hspace{0.5\ccwd}}{}
    {\hspace{.5em}\titlerule*{.}\contentspage}

3.重新使用*xelatex -> bibtex -> xelatex2**编译 4.完成