当使用文档类时,如何\nouppercaseheads
仅适用于章节标题memoir
?
\documentclass[a4paper]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
% Define a new pagestyle 'rgheadings'
\copypagestyle{rgheadings}{headings}
\makeheadrule{rgheadings}{\textwidth}{\normalrulethickness}
% remove 'chapter' of headings style
\addtopsmarks{rgheadings}{}{
\createmark{chapter}{both}{shownumber}{}{. \space}
}
% remove number section of headings style
\addtopsmarks{headings}{}{
%i need \nouppercaseheads only section
\createmark{section} {right}{nonumber}{}{}
}
% define secao com letra minuscula
\def\sectionmark#1{\markright{#1}}
\begin{document}
\pagestyle{rgheadings}
\chapter{Memoir with headings style}
\section{Mysection}
\lipsum[1-30]
\end{document}
答案1
您可以重新定义\sectionmark
:
\documentclass[a4paper]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\pagestyle{headings}
\def\sectionmark#1{\markright{#1}}
\begin{document}
\chapter{Memoir with headings style}
\section{My section}
\lipsum[1-30]
\end{document}