禁止章节编号和\ renewcommand {\ chaptername}

ACS*_*ACS 4 latex

我在Latex中写了一本amsbook文档.\ chapter {On Banach Spaces}命令生成如下内容:

第1章

关于Banach空间

我想说

章节

关于Banach空间

代替.(没有尾随章节编号.)

我为什么要这个?我喜欢amsbook的布局,在第一章中,我希望主要文本说"引言"然后在下一行中引入标题.在介绍之后我想要正常的章节编号.

这在某种程度上适用于我使用

\renewcommand{\chaptername}{Introduction}
Run Code Online (Sandbox Code Playgroud)

在介绍章之前,那么

\setcounter{chapter}{0}

\renewcommand\chaptername{Chapter}
Run Code Online (Sandbox Code Playgroud)

就在第二章之前.

不幸的是,这给了我一个"介绍1",但我想要"简介".所以基本上,我喜欢压缩章节号.

(编辑.)

zwo*_*wol 6

我不确定我100%理解你的问题,但这里有两件事要尝试.

首先,我不从amsbook知道,但普通老书类定义了三个非常高的水平切片命令\frontmatter,\mainmatter\backmatter.如果您\frontmatter紧接在第一章的命令之后\begin{document},并且\mainmatter紧接在\chapter应该有一个数字之前,那么那可能就是您想要的.但是,它可能具有您不想要的其他效果,例如更改分页符或从目录中取出内容.(对不起,我找不到这些命令的在线参考资料.)

更低级的方法是secnumdepth用来抑制节号.尝试这样的事情:

\setcounter{secnumdepth}{-1}
\chapter{Introduction}

...

\setcounter{secnumdepth}{1} % or 2 for numbered sections, or whatever
\setcounter{chapter}{0}
\chapter{The first chapter}

...
Run Code Online (Sandbox Code Playgroud)