
私の MWE は章番号として「One」を生成します。この「One」を「ONE」にしたいです。考えられる限りのことをすべて試してみましたが\renewcommand{\thechapter}{\MakeUppercase{\Numberstring{chapter}}}
、{\MakeUppercase{\thechapter}}
どれもうまくいきません。
\documentclass[12pt]{memoir}
\usepackage[explicit]{titlesec}
\titleformat{\chapter}[display]
{\huge\filcenter}
{\thechapter}
{1em}
{\Huge #1}
\titleformat{\subsection}[display]{}
{\thesubsubsection}
{}
{#1}
\let\ordinal\relax
\usepackage{fmtcount}
\renewcommand{\thechapter}{\Numberstring{chapter}}
\begin{document}
\chapter{The First Chapter}
This is some text in the first chapter.
\end{document}
答え1
のフレーム数パッケージには、 というマクロが用意されています。すべて大文字の文字列「ONE」を生成するには\NUMBERstring
、 の代わりにこのマクロを使用する必要があります。\Numberstring
\documentclass[12pt]{memoir}
\let\ordinal\relax
\usepackage{fmtcount}
\begin{document}
\setcounter{chapter}{1}
\arabic{chapter} \numberstring{chapter} \Numberstring{chapter} \NUMBERstring{chapter}
\end{document}