-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
问题陈述
最近在用海事的latex 硕士模板(MA) **时候,发现有个目录格式的问题:
- 这个是我用latex模板写了后编译后的目录结果:
- 这个格式与我师兄师姐他们的目录格式不一致,以下是他们用word写作的目录结构样式:
解决办法
经过本人与该模板制作者讨论后,其本人给出了解决办法:
第一步
首先,将dlmuthesis.cls中第820行(即:对section部分的设置)的
{\titlerule*[8bp]{.}\contentspage}
改为
{\titlerule*[4bp]{.}\thecontentspage}
第二步
在主文档main_MA.tex的导言区添加如下代码:
``\contentsmargin{0pt}`
\titlecontents{subsection}
[1em]
{\addvspace{2bp}\filright}
{\contentspush{\thecontentslabel}~~}
{}
{\titlerule*[4bp]{.}\thecontentspage}
\titlecontents{subsubsection}
[3em]
{\addvspace{2bp}\filright}
{\contentspush{\thecontentslabel}~~}
{}
{\titlerule*[4bp]{.}\thecontentspage}
第三步
修改图标目录的对齐线样式
修改dlmuthesis.cls中参数为figure, table的\titlecontents命令设置(大概在第890-905行之间):
将
{\hfill} %填充对齐
{\titlerule*[6bp]{.}\contentspage} % 用点线间隔,并显示页面号
改为
{}
{\titlerule*[4bp]{.}\thecontentspage}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request

