-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimmthesislayout.sty
executable file
·82 lines (69 loc) · 2.52 KB
/
immthesislayout.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
%IMM PHD THESIS LAYOUT
%Adopted from Henrik Aalborg Nielsen and Thomas Fabricius
%Jan Larsen, IMM, DTU, Nov 2003
%updated by Finn Kuno Christensen, [email protected], Aug 15, 2008
%%%%%%%%%%%%%%%%%%%%%%% Page geometry
\addtolength{\parskip}{\baselineskip}
\setlength{\parindent}{0pt}
\pagestyle{myheadings}
\setlength{\paperwidth}{176mm} %b5
\setlength{\paperheight}{250mm} %b5
\setlength{\textheight}{185mm} % 540pt = 7.5inch = 190.5mm
\setlength{\topmargin}{-5.4mm}
\setlength{\headheight}{8mm}
\setlength{\headsep}{7mm}
\setlength{\footskip}{10.0mm}
\setlength{\textwidth}{121.36mm} % 129.36 mm % width and margins must add to 176 mm:
\setlength{\oddsidemargin}{1.24mm} % 1 inch + 1.24 mm = 26.64 mm inside
\setlength{\evensidemargin}{-5.4mm} % 1 inch - 5.4 mm = 20 mm outside
%%%%%%%%%%%%%%%%%%%%%%% Headings
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\sffamily\bfseries\thepage}]%
{\fancyplain{}{\sffamily\bfseries\rightmark}}
\rhead[\fancyplain{}{\sffamily\bfseries\leftmark}]%
{\fancyplain{}{\sffamily\bfseries\thepage}}
\cfoot{}
%%%%%%%%%%%%%%%%%%%%%%% Theorems
\newtheorem{lemma}{Lemma}[chapter]
\newtheorem{proposition}[lemma]{Proposition}
\newtheorem{theorem}[lemma]{Theorem}
\newtheorem{corollary}[lemma]{Corollary}
{\theorembodyfont{\rmfamily}
\newtheorem{definition}[lemma]{Definition}}
\theoremheaderfont{\scshape\bfseries}
\newenvironment{proof}{{\scshape Proof.}}{}
\newcommand{\qed}{\hfill $\square$ \vspace{5mm}}
\newtheorem{Exa}{Example}[chapter]
%%%%%%%%%%%%%%%%%%%%%%% Chapters
\renewcommand{\chaptername}{C h a p t e r }
\renewcommand{\appendixname}{A p p e n d i x }
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\large\scshape \@chapapp \space\space \Huge\upshape\thechapter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\flushleft\parbox{\textwidth}{\raggedleft \sffamily\Huge\bfseries #1}
\par\nobreak
\vskip 15pt
\hrule height 0.4pt
\vskip 80\p@
}}
\def\@makeschapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\interlinepenalty\@M
% \flushleft\parbox{\textwidth}{\raggedleft \sffamily\Huge\bfseries #1}
\sffamily\huge\bfseries #1
\par\nobreak
\vskip 15pt
\hrule height 0.4pt
\vskip 80\p@
}}