我有一个论文模板,其中有两个目录,第一个是用中文写的,第二个是用英文写的。在我颠倒它们之后,这意味着我将中文目录设为英文,第二个目录设为中文,数字仍然是一样的,我不能改变它们。
在检查了模板的代码后,我发现了这一行:
\renewcommand\chaptermark[1]
{\markboth{}{Chapter \zhnumber{\thechapter} \hspace{2ex} #1}}
\renewcommand\sectionmark[1]
{\markright{\thesection\quad #1}}zhnumber提供中文数字的地方,所以我想知道,我如何才能替换该命令,使其提供英文数字?
发布于 2021-08-20 06:57:45
只需删除zhnumber命令:该命令提供英语(实际上是阿拉伯语)数字:
\documentclass{book}
\renewcommand\chaptermark[1]
{\markboth{}{Chapter {\thechapter} \hspace{2ex} #1}}
\renewcommand\sectionmark[1]
{\markright{\thesection\quad #1}}
\usepackage{lipsum}
\begin{document}
\chapter{First Chapter}
\lipsum
\section{First section}
\lipsum[1-20]
\section{Second Section}
\lipsum
\end{document}https://stackoverflow.com/questions/68857960
复制相似问题