请问如何设置才能在右上角页眉处显示 subsection的名称呢?

2020-05-06 16:06发布

[图]\ctexset{section={ name={第,章}, number=\arabic{section}, }}\usepackage{fancyhdr}\fancyhf{}\lhead{\tex...



image.png

\ctexset{section={

name={第,章},

number=\arabic{section},

}

}

\usepackage{fancyhdr}

\fancyhf{}

\lhead{\textnormal{\kaishu\rightmark}}


%\rhead{ }如何设置才能在右上角页眉处显示 subsection的名称呢?

\pagestyle{CTEXthesubsection}

%sectionmark的重定义需要在\pagestyle之后生效

\renewcommand\sectionmark[1]{%

\markright{\CTEXthesection:#1}}

%=====正文开始=====

\begin{document}

\section{Test1}

\subsubsection{Test1.1}

\section{Test2}

\end{document}


2条回答
LaTeXStudio
2020-05-06 20:24

实际上,你是 article 里做到 book 的结构,不推荐。

还是老实用 book 去定制样式,更加方便。

一周热门 更多>

相关问答