一个初学者的问题:我想\part
用罗马数字打印如下:
伊·泰尔
或者
I. rész
有人可以向我解释一下该怎么做吗?
答案1
本地化是通过在babel
软件包中使用适当的语言来完成的。Memoir 没有修改\part
代码的钩子,因此您需要通过在序言中重新定义它来完成:
\documentclass{memoir}
\usepackage[ngerman]{babel}
\makeatletter
\long\def\@part[#1]#2{%
\M@gettitle{#1}%
\phantomsection
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}%
{\protect\partnumberline{\thepart}#1}%
\mempartinfo{\thepart}{#1}{#2}%
\else
\addcontentsline{toc}{part}{#1}%
\mempartinfo{}{#1}{#2}%
\fi
\partmark{#1}%
{\centering
\interlinepenalty \@M
\parskip\z@
\normalfont
\ifnum \c@secnumdepth >-2\relax
\printpartnum.\ \printpartname \partnamenum % changed order and added . here
\midpartskip
\fi
\printparttitle{#2}\par}%
\@endpart}
\makeatother
\begin{document}
\part{A part title}
\end{document}