-
Notifications
You must be signed in to change notification settings - Fork 6
/
constitution.cls
34 lines (29 loc) · 1.31 KB
/
constitution.cls
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
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesClass{constitution}[Document class for HackSoc Constitution]
\LoadClass[a4paper,twoside,notitlepage,11pt]{article}
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage[a4paper,margin=20mm]{geometry}
\RequirePackage[colorlinks,linkcolor=darkgray]{hyperref}
\RequirePackage{titlesec}
\RequirePackage{titletoc}
\RequirePackage{catchfile}
\RequirePackage{graphicx}
\RequirePackage{changepage}
\RequirePackage{enumitem}
\titleformat{\section}[hang]{\normalfont}
{\thesection~~~}{.5em}{}[\quad]
\titleformat{\section}[hang]{\fontsize{14}{17}\bfseries}{\noindent\thesection. }{1pt}{}[\quad]
\titleformat{name=\section, numberless}[hang]{\fontsize{14}{17}\bfseries}{}{1pt}{}[\quad]
\titlespacing{\section}{0mm}{0mm}{-2em}[-2em]
\titlespacing{name=\section, numberless}{0mm}{0mm}{-2em}[-2em]
\renewcommand{\thesection}{\arabic{section}}
\newcounter{clause}
\makeatletter
\@addtoreset{clause}{section}
\makeatother
\newenvironment{clause}[1][]{\refstepcounter{clause}\par\medskip\noindent\thesection.\theclause #1 \rmfamily}{\medskip}
\newcounter{subclause}
\makeatletter
\@addtoreset{subclause}{clause}
\makeatother
\newenvironment{subclause}[1][]{\begin{adjustwidth}{5mm}{}\refstepcounter{subclause}\par\medskip\noindent\thesection.\theclause.\thesubclause #1 \rmfamily}{\medskip\end{adjustwidth}}