summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/langsci/langsci-subparts.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-04-24 21:27:53 +0000
committerKarl Berry <karl@freefriends.org>2017-04-24 21:27:53 +0000
commit4c112777c49cfb407c74d33e498cbe518f9855f1 (patch)
tree6f52d3140160b138e8d0d24c3ebab5c38ff09273 /Master/texmf-dist/tex/xelatex/langsci/langsci-subparts.sty
parent2236aa997752da2d5e58d66c85b42e6a0ad8a108 (diff)
langsci (24apr17)
git-svn-id: svn://tug.org/texlive/trunk@44027 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/langsci/langsci-subparts.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/langsci/langsci-subparts.sty22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-subparts.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-subparts.sty
new file mode 100644
index 00000000000..d428530fed5
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-subparts.sty
@@ -0,0 +1,22 @@
+% 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}
+ \ No newline at end of file