-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何调整目录页,数字和文本之间的距离? #170
Comments
ucasthesis/Style/ucasthesis.cls Lines 649 to 653 in 2a60fde
\def@dotsep{1.5mu}% 目录点距 \def@pnumwidth{2em}% 页码字符盒子占用宽度 \def@tocrmarg{2em}% 目录过长时的右侧空白宽带 \def@chaptervspace{1ex}% 章级目录的间距 ucasthesis/Style/ucasthesis.cls Line 695 in 2a60fde
章级目录的间距 ucasthesis/Style/ucasthesis.cls Line 658 in 2a60fde
章以下级目录的间距 |
把以下部分加到 \usepackage{xpatch}
\makeatletter
\ExplSyntaxOn
\xpatchcmd\CTEX@chapter@tocline
{.3em}
{0em}
{}{\fail}
\ExplSyntaxOff
%% change the 3rd arg of \@dottedtocline
%% bofore
% \renewcommand*\l@section{\@dottedtocline{1}{1em}{2em}}
%\renewcommand*\l@subsection{\@dottedtocline{2}{2em}{3em}}
%% after
\renewcommand*\l@section{\@dottedtocline{1}{1em}{1.5em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{2em}{2.5em}}
\makeatother 涉及的源码
|
@e71828 你评论里提及的那几个储存长度的宏,和当前 issue 问的「目录项中,数字部分和标题之间的横向空白,如何调整其宽度」都没有直接联系。你贴的注释部分,也能说明问题
@mohuangrui 根据这个评论里提供的国科大《学位/毕业论文撰写规定》,模板生成的「目录项数字部分和标题之间的间距」确实比规范文件末尾的的例子稍大。是否考虑调整模板? |
我最后是通过这个方法解决的。 |
@muzimuzhi 抱歉啊 我误导人了 一眼看到的vspace啥的就顾名思义了 |
是的,这样可以修改 section 及更低层级的目录项。我提供的 |
@muzimuzhi 谢谢建议,这个先标记着,如果需要,将来再改 |
@DRjy 经复审,发现你的截图间距为旧版的间距,因此较大。 @muzimuzhi 测试发现每个减掉 0.5em 有些过多,导致图表列表排列异常。最后调整为减掉 0.2em :D |
现在想缩小这个数字和文字中间的距离,我该如何调整?
The text was updated successfully, but these errors were encountered: