-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Description
检查 / Check
- 已阅读 提问流程
- 确认问题为关于 ucasthesis 编译和设计的问题,而非 LaTeX 的一般知识性问题
- 已仔细阅读 LaTeX 知识小站
- 已查阅搜索 issues 的 已关闭问题
closed issues
编译环境 / Compilation Environment
overleaf
操作系统 / Operating System- Windows 7/8/10
描述问题 / Problem Description
问题描述:
在proposal模板中只有section使用方法,到subsubsection就没有了,我想再加一个节标题,像thesis中(级别是chapter section sub subsub),直接把thesis中的搬过来没成功。
错误信息:LaTeX3 Error: The key 'ctex/chapter' is unknown and is being ignored.
我在ucasproposal.cls中加入了
\ctexset {
chapter = {
format = \linespread{1.0}\zihao{4}\bfseries\sffamily\centering,
nameformat = {},
titleformat = {},
number = \arabic{chapter},
numberformat = \rmfamily,
aftername = \quad,
beforeskip = {7pt},
afterskip = {18pt},
pagestyle = plain,
}
}
\def\@chaptervspace{1ex}% vertical space between chapter titles
\renewcommand*{\l@chapter}[2]{% [<title>,<page>]
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip \@chaptervspace \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \zihao{4}\sffamily
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak
\leaders\hbox{$\m@th\mkern \@dotsep \cdot\mkern \@dotsep$}% add dotted toc line
\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi
}
Metadata
Metadata
Assignees
Labels
No labels