summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/langsci/langsci-subparts.sty
blob: 6951a0d1dc15502783c82b3a56e8ea1258bf5c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% add an additional section level between part and chapter.
\usepackage[newparttoc]{titlesec}
\usepackage{titletoc}

% \titleformat{\part}[display]{\normalfont\Huge\bfseries}%
% {\partname~\thepart}{1pc}{\Huge\bfseries}

\titleclass{\subpart}{page}[\part]

\newcounter{subpart}[part]
% \numberwithin{chapter}{subpart}
\renewcommand{\thesubpart}{\thepart-\Alph{subpart}}
\newcommand{\subpartname}{Subpart}

\titleformat{\subpart}[display]{\vspace*{6cm}\centering\normalfont\Large\bfseries}%
{\subpartname~\thesubpart~}{1pc}{\LARGE\bfseries}
\titlespacing{\subpart}{0pt}{0pt}{0pt}

\titlecontents{subpart}[0pt]{\addvspace{1pc}\normalfont\bfseries}%
{\thecontentslabel\enspace ---\enspace}%
{\normalfont\bfseries}{\hspace{2em plus 1fill}\contentspage}