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

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

Open
4 of 5 tasks
ABBlankSpace opened this issue Feb 15, 2023 · 2 comments
Open
4 of 5 tasks

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

ABBlankSpace opened this issue Feb 15, 2023 · 2 comments

Comments

@ABBlankSpace
Copy link

ABBlankSpace commented Feb 15, 2023

检查 / Check

编译环境 / 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
}
@mohuangrui
Copy link
Owner

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

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

你可以使用 \paragraph 和 \subparagraph

@TurnOffNOD
Copy link

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

这个出处是哪里?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants