将目录条目(回忆录)中的章节编号(以文字表示)大写

将目录条目(回忆录)中的章节编号(以文字表示)大写

我需要大写字母的章节编号。到目前为止,我的 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}

相关内容