乳胶。在 header 中显示章节名称

latext. Display the name of chapter in the header

我想在header中用latex显示章节名,比如偶数页显示章节名右对齐,奇数页显示章节名左对齐.我使用了以下乳胶代码: \fancyhead[LO, RE]{\nouppercase{\l​​eftmark}}

但它只是显示左对齐的标题。

你能告诉我如何处理这个问题吗?谢谢!

您很可能正在为您的文档使用 oneside(如果您未根据 -side 规范指定任何内容,则这是默认设置)设置。这可能会在您的 .log:

中得到警告

Package fancyhdr Warning: \fancyhead's E option without twoside option is use less on input line X.

twoside 选项添加到您的 \documentclass 规范中:

\documentclass[<options>,twoside]{<class>}