blob: 39fd26bf46626a06059b01c0d96fe621f5f3bd05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
\makeatletter
\@ifclasslater{oblivoir}{2021/05/20}{}%
{%
\def\obparttitlealignment{}
\long\def\@part[#1]#2{%
\M@gettitle{#1}%
\def\f@rtoc{#1}%
\@nameuse{part@f@rtoc@before@write@hook}%
\phantomsection
\mempreaddparttotochook
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}%
{\protect\partnumberline{\hparttitlehead}\f@rtoc}%
\mempartinfo{\thepart}{\f@rtoc}{#2}%
\else
\addcontentsline{toc}{part}{\f@rtoc}%
\mempartinfo{}{\f@rtoc}{#2}%
\fi
\mempostaddparttotochook
\partmark{#1}%
{%
\obparttitlealignment
\interlinepenalty \@M
\parskip\z@
\normalfont
\ifnum \c@secnumdepth >-2\relax
\prepartnum \partnamenum \printpartnum \partnamenum \postpartnum
\midpartskip
\fi
\printparttitle{#2}\par}%
\@endpart}
}
\makeatother
|