![如何将我的简介置于中心位置并将其格式化为与目录中的章节相同?](https://linux22.com/image/461295/%E5%A6%82%E4%BD%95%E5%B0%86%E6%88%91%E7%9A%84%E7%AE%80%E4%BB%8B%E7%BD%AE%E4%BA%8E%E4%B8%AD%E5%BF%83%E4%BD%8D%E7%BD%AE%E5%B9%B6%E5%B0%86%E5%85%B6%E6%A0%BC%E5%BC%8F%E5%8C%96%E4%B8%BA%E4%B8%8E%E7%9B%AE%E5%BD%95%E4%B8%AD%E7%9A%84%E7%AB%A0%E8%8A%82%E7%9B%B8%E5%90%8C%EF%BC%9F.png)
我想要一个居中对齐的目录。我的 MWE 按照我想要的方式格式化章节,但没有格式化简介?我该如何格式化简介以匹配?
\documentclass{memoir}
\let\ordinal\relax
% TOC title
\makeatletter
\renewcommand{\printtoctitle}[1]{\centering\HUGE\textit{Contents}}
% Chapter
\usepackage{fmtcount}
\renewcommand{\thechapter}{\Numberstring{chapter}}
\renewcommand{\cftchapterleader}{}
\renewcommand{\cftchapterfillnum}[1]{\hspace*{10pt}\huge#1\cftparfillskip\par}
\renewcommand*{\cftchapterfont}{}
\renewcommand\chapternumberline[1]{\hfil\Large\emph{#1}%
\hfil\strut\huge\par\nopagebreak\hfil}
% Document
\begin{document}
\tableofcontents*
\chapter*[Introduction]{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\chapter{Where it All Began}
\chapter{Some More Beginning}
\chapter{Some Drawn-Out Diatribe}
\chapter{Starting to Wrapup}
\chapter{The Insightful Conclusion}
\end{document}
答案1
尝试一下这个代码。
\documentclass{memoir}
\let\ordinal\relax
% TOC title
%\makeatletter
\renewcommand{\printtoctitle}[1]{\centering\HUGE\textit{Contents}}
% Chapter
\usepackage{fmtcount}
\renewcommand{\thechapter}{\Numberstring{chapter}}
\renewcommand{\cftchapterleader}{}
\renewcommand{\cftchapterfillnum}[1]{\hspace*{10pt}\huge#1\cftparfillskip\par}
\renewcommand*{\cftchapterfont}{}
\renewcommand\chapternumberline[1]{\hfil\Large\emph{#1}%
\hfil\strut\huge\par\nopagebreak\hfil}
% Document
\begin{document}
\tableofcontents*
\chapter*[Introduction]{Introduction}
\addcontentsline{toc}{chapter}{\protect\chapternumberline{}Introduction}% changed <<<<<
\chapter{Where it All Began}
\chapter{Some More Beginning}
\chapter{Some Drawn-Out Diatribe}
\chapter{Starting to Wrapup}
\chapter{The Insightful Conclusion}
\end{document}