修补报告和文章中章节的可靠方法
我需要在每一章之后运行一个命令,所以我需要修补章节。如果我这样做: \documentclass{scrreport} %% Works with memoir but not with scrreport \NewDocumentCommand\MyAddLabel{}{\label{mylabel}} \usepackage{etoolbox} \makeatletter %% Add the above command to \chapter if the command exists \ifdef{\@chapter}{ \ifpatchab...