-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbkindle_title.sty
46 lines (37 loc) · 1.25 KB
/
dbkindle_title.sty
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
39
40
41
42
% see documentation for memoir class
\makechapterstyle{centered}{%
\chapterstyle{default}
\setlength{\beforechapskip}{5\onelineskip}
\renewcommand*{\printchaptername}{}
\renewcommand*{\chapternamenum}{}
\renewcommand*{\chapnumfont}{\normalfont\large}
\settoheight{\midchapskip}{\chapnumfont 1}
\renewcommand*{\printchapternum}{\centering \chapnumfont
\thechapter\
}
\renewcommand*{\afterchapternum}{\par\nobreak\vskip 0.5\onelineskip}
\renewcommand*{\printchapternonum}{\centering
\vphantom{\chapnumfont 1}\afterchapternum}
\renewcommand*{\chaptitlefont}{\normalfont\Large}
\renewcommand*{\printchaptertitle}[1]{\centering \chaptitlefont ##1
\par\nobreak\vskip 0.5\onelineskip
% \Pisymbol{MinionPro-Extra}{110}
\Pisymbol{MinionPro-Extra}{120}
% \textxswup
}
\setlength{\afterchapskip}{2.5\onelineskip}}
\chapterstyle{centered}
%\renewcommand*{\chaptitlefont}{\fontfamily{antt}\fontshape{bf}\selectfont}
% sections
% horizontal lines above and under the title
\newcommand{\ruledsection}[1]{%
\noindent%
\parbox[t]{\textwidth}{%
\hrule\vskip1em
\sffamily\Large\bfseries #1\vskip1em%
\hrule%
}
}
%\setbeforesecskip{1pt}
\setaftersecskip{0.01\onelineskip}
\setsecheadstyle{\bfseries}