hust-latex / hustthesis

:notebook_with_decorative_cover: An Unofficial Thesis Template in LaTeX for Huazhong University of Science and Technology
http://hust-latex.github.io/download#hustthesis
LaTeX Project Public License v1.3c
151 stars 30 forks source link

如何修改附录的格式? #17

Closed fomy closed 8 years ago

fomy commented 8 years ago

现在的附录格式是“附录 A 攻读学位期间发表的学术论文”,在目录里显示的是“A 附录 攻读学位期间发表的学术论文”。

请问如何修改为“附录 1 攻读学位期间发表的学术论文”,在目录里也显示为“附录 1 攻读学位期间发表的学术论文”

xu-cheng commented 8 years ago

Try

\appendix
\renewcommand{\thechapter}{\arabic{chapter}}
fomy commented 8 years ago

谢谢。

目录里现在变成了“1 附录 攻读学位期间发表的学术论文”,但是我想变成“附录 1 攻读学位期间发表的学术论文”。

xu-cheng commented 8 years ago

我测试的是正常的啊。 建议你先清空LaTeX的临时文件,再试一次。

fomy commented 8 years ago

目录里面显示的也是正常的吗?

xu-cheng commented 8 years ago

2016-04-13 2 20 33

2016-04-13 2 20 57
fomy commented 8 years ago

抱歉,是我用 \titlecontents 增加虚线的缘故,如下, \titlecontents{chapter} [1.5em] {\bf} {\contentslabel{1.5em}} {} {\normalfont\dotfill\textrm{\contentspage[(\thecontentspage)]}} [\addvspace{0.5pc}]

加上这段代码,就变成“1 附录”了。对这个不太熟,还没找到解决方法。

xu-cheng commented 8 years ago

不是很清楚你想加什么样的虚线。如下是模板在附录里使用的titleformat代码。

  \titleformat{\chapter}
  {
    \bfseries\HEI
    \centering
    \changefont{size=18pt}
  }
  {\appendixname\,\thechapter}
  {1em}
  {}
fomy commented 8 years ago

模版的目录二级标题用点填充了,但是一级标题没有,我想为附录、参考文献都填充点。

\titlecontents{chapter} [1.5em] {\bf} {\contentslabel{1.5em}} {} {\normalfont\dotfill\textrm{\contentspage[(\thecontentspage)]}} [\addvspace{0.5pc}]

这段代码可以订制标题的格式,但是也把“附录 1”变成了“1 附录”。

xu-cheng commented 8 years ago

建议使用tocloft来修改目录式样

fomy commented 8 years ago

谢谢。用\cftchapleader似乎可以达到效果。