mohuangrui / ucasproposal

LaTeX Proposal Template for the University of Chinese Academy of Sciences
612 stars 137 forks source link

请问怎么用chapter或者设置subsubsubsection #18

Open ABBlankSpace opened 1 year ago

ABBlankSpace commented 1 year ago

检查 / Check

编译环境 / Compilation Environment

overleaf

描述问题 / 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
}
mohuangrui commented 1 year ago

ucas proposal 规范要求不应使用 chapter,ucasproposal是基于article,无chapter环境。

最后,即使上面都不是问题,也没有 \subsubsubsection命令的存在,为什么?因为这样不利于可读性。

你可以使用 \paragraph 和 \subparagraph

TurnOffNOD commented 11 months ago

ucas proposal 规范要求不应使用 chapter,ucasproposal是基于article,无chapter环境。

这个出处是哪里?