Skip to content
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

关于目录 #17

Closed
kii-chan-iine opened this issue Sep 9, 2019 · 11 comments
Closed

关于目录 #17

kii-chan-iine opened this issue Sep 9, 2019 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@kii-chan-iine
Copy link

请问

  1. 目录怎么做到有深度呀,为什么调节tocdepth没有效果?
  2. listoffigures 和 listoftables前面怎么设置才能以这样的方式: 图 1-1,而不是只有数字?

谢谢您!

@kii-chan-iine kii-chan-iine added the bug Something isn't working label Sep 9, 2019
@TheNetAdmin TheNetAdmin added help wanted and removed bug Something isn't working labels Sep 9, 2019
@TheNetAdmin

This comment has been minimized.

@TheNetAdmin

This comment has been minimized.

@TheNetAdmin
Copy link
Owner

listoffigures 和 listoftables 前面加 “图” “表” 是学校要求的么,是的话我可以直接加到模板里,不是的话我可以在这里讲一下怎么修改。

@kii-chan-iine
Copy link
Author

kii-chan-iine commented Sep 11, 2019

关于添加“图”“表”的问题,我随便搜了几个学院的是有要求的(不确定是否全部这样)。麻烦您也在这里讲一下吧,这样我们也可以学习一下。thx~

目录深度的话,我使用的graduate的通用模板,我感觉也是被其他设置覆盖了,但苦于没有找到地方。如果您发现了,也麻烦您教一下,谢谢您!

@TheNetAdmin

This comment has been minimized.

@TheNetAdmin
Copy link
Owner

TheNetAdmin commented Sep 11, 2019

图表标题已经改好了

\ifthenelse{\equal{\Degree}{graduate}}
{
% listoffigures
\newlength{\listoffiguresnamelen}
\renewcommand{\cftfigpresnum}{\figurename\enspace}
\settowidth{\listoffiguresnamelen}{\cftfigpresnum\cftfigaftersnum}
\addtolength{\cftfignumwidth}{\listoffiguresnamelen}
% listoftables
\newlength{\listoftablesnamelen}
\renewcommand{\cfttabpresnum}{\tablename\enspace}
\settowidth{\listoftablesnamelen}{\cfttabpresnum\cfttabaftersnum}
\addtolength{\cfttabnumwidth}{\listoftablesnamelen}
}
{}

@kii-chan-iine
Copy link
Author

kii-chan-iine commented Sep 12, 2019

谢谢您!目录的问题我没表述清楚,我是想问我该如何调,使得目录不同深度的左间距不一样。
我尝试用titletoc包调节,但是用了这个包图表标题又消失了。我想要类似以下的效果
1 绪论
   1.1 节标题
     1.1.1 小节标题
烦请您指点下,谢谢!

@kii-chan-iine
Copy link
Author

zjuthesis.tex我是用的下载下来的文档,没有改动。

@TheNetAdmin
Copy link
Owner

TheNetAdmin commented Sep 12, 2019

谢谢您!目录的问题我没表述清楚,我是想问我该如何调,使得目录不同深度的左间距不一样。
我尝试用titletoc包调节,但是用了这个包图表标题又消失了。我想要类似以下的效果
1 绪论
   1.1 节标题
     1.1.1 小节标题
烦请您指点下,谢谢!

哦这个简单,参考本科生模板的设置,代码在这里:

\ifthenelse{\equal{\Degree}{undergraduate}}
{
\setlength{\cftchapindent} {0em}
\setlength{\cftsecindent} {2em}
\setlength{\cftsubsecindent} {4em}
\setlength{\cftsubsubsecindent} {6em}
}

具体效果可以看样例文件里的本科生模板pdf。

你只需要调整这一段下面的代码,也就是研究生模板的目录左间距设置:

{
\setlength{\cftchapindent} {0em}
\setlength{\cftsecindent} {0em}
\setlength{\cftsubsecindent} {0em}
\setlength{\cftsubsubsecindent} {0em}
\setlength{\cftbeforechapskip} {0em}
}

不要用titletoc,因为这个模板已经用了tocloft包了,只要按照上述代码设置就行。

官方模板没有目录项的左侧间距,所以我特地调整过的。

@TheNetAdmin
Copy link
Owner

如果问题已解决,请记得关闭此issue

@kii-chan-iine
Copy link
Author

谢谢!

@TheNetAdmin TheNetAdmin added the enhancement New feature or request label Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants