LaTeX:文档标题中未编号的部分

Sor*_*n M 4 layout latex

我有一个文档,我想在我的标题中放置一个未编号的部分.我使用fancyhdr包,对于编号的部分,我会做这样的事情:

\lhead{\leftmark}
Run Code Online (Sandbox Code Playgroud)

但这不适用于未编号的部分.我在我的文档中解决数学问题,所以我不想要部分和编号部分

谁知道,这是怎么做到的?

AVB*_*AVB 6

使用

      \chapter*{Preface\markboth{Preface}{}}
Run Code Online (Sandbox Code Playgroud)

对于你未编号的部分.(你应该替换chapter你实际使用的任何东西.)

你甚至可以试试

\newcommand{\mysection}[1]{\section*{{#1}\protect\markboth{#1}{}}}
Run Code Online (Sandbox Code Playgroud)

但要小心 - 它可能会产生一些TOC或参考问题.