-
Notifications
You must be signed in to change notification settings - Fork 0
/
commonstyles.sty
44 lines (36 loc) · 974 Bytes
/
commonstyles.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
43
44
\ProvidesPackage{commonstyles}
% always indent the first topic (paragraph) after a chapter heading
\RequirePackage{indentfirst}
% don't insert pagebreaks at new chapters
\RequirePackage{etoolbox}
\makeatletter
\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
\makeatother
% format chapter headings to look like:
%
% [I.]
% QUOD DOMINUS SIT DEUS CAELI.
%
\RequirePackage{titlesec}
\titleformat{\chapter}[block]%
{\begin{center}}%
{[\thechapter.]\\\MakeUppercase{\chaptername}}%
{0pt}%
{\MakeUppercase}%
[\end{center}]%
% use roman numerals for chapters
\renewcommand{\thechapter}{\Roman{chapter}}
% don't display the word 'Chapter'
\renewcommand{\chaptername}{}
\newcommand{\caput}[1]{%
\par% all chapters need to start a new paragraph
\chapter{#1}%
}
\newenvironment{topic}[1]
{%begin
\par% always start a new paragraph for each topic
\textbf{#1.}
}
{% end
}
\endinput