CTeX-org / ctex-kit

Macro Packages and Scripts for Chinese TeX users
972 stars 124 forks source link

\ctexset 设置章节格式报错 #607

Closed SwitWu closed 2 years ago

SwitWu commented 2 years ago

发行版:texlive2021 MWE

\documentclass{book}
\usepackage{ctex}
\ctexset{section/format+=\sffamily}
\begin{document}

\chapter{AAAAA}

This is some text.

\section{BBBBB}

This is some text.

\subsection{CCCCC}

This is some text.

\end{document}

报错: ! LaTeX3 Error: The key 'ctex/section/format+' is unknown and is being (LaTeX3) ignored. 请问是什么原因?

sikouhjw commented 2 years ago

加载该宏包时,或者使用 CTEX 文档类时,或者是使用 ctex 宏包并设定选项 heading = true 时,相关功能被激活。

SwitWu commented 2 years ago

好的,我没注意看文档前面的这句话,现在明白了。谢谢!