我需要大写字母的章节编号。到目前为止,我的 MWE
\documentclass[oneside]{memoir}
\usepackage{fmtcount}
\renewcommand{\cftchaptername}{Chapter\space}
\renewcommand{\cftchapterfont}[1]{\bfseries\MakeUppercase{#1}}
\renewcommand{\chapternumberline}[1]{\MakeUppercase{\cftchaptername}\NumToName{#1}:\space}
% Failed attempt [1] using MakeUppercase
%\renewcommand{\chapternumberline}[1]{\MakeUppercase{\cftchaptername}\MakeUppercase{\NumToName{#1}}:\space}
% Failed attempt [2] using fmtcount
%\renewcommand{\chapternumberline}[1]{\MakeUppercase{\cftchaptername}\NUMBERstring{\NumToName{#1}}:\space}
% Failed attempt [3]
% Use with caution as it affects everything else:
% Figure nos., Table nos., Section nos., SubSection nos., etc.
%\renewcommand{\thechapter}{\NUMBERstring{chapter}}
\begin{document}
\frontmatter
\tableofcontents*
\mainmatter
\chapter{Introduction}
\end{document}
我需要用大写字母突出显示的部分:
答案1
memoir
's\numtoName
并且\NumToName
只将首字母大写。使用fmtcount
而是\NUMBERstringnum
:
\documentclass{memoir}
\usepackage{fmtcount}
\renewcommand{\cftchaptername}{Chapter\space}
\renewcommand{\cftchapterfont}[1]{\bfseries\MakeUppercase{#1}}
\renewcommand{\chapternumberline}[1]{\MakeUppercase{\cftchaptername}\NUMBERstringnum{#1}:\space}
\begin{document}
\frontmatter
\tableofcontents*
\mainmatter
\chapter{Introduction}
\end{document}