A beginner question: I would like to print \part
with roman numbers
as it follows:
I. Teil
or
I. rész
Someone could please explain me how to do it?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityThe localisation is done by using the appropriate language with the babel
package. Memoir has no hooks for modification of the \part
code, so you need to do it by redefining it in your preamble:
\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}
memoir
printsPart I
on a single line, with the title on another.