-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbilgi.sty
231 lines (210 loc) · 6.46 KB
/
bilgi.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
% Istanbul Bilgi University
% BIOE491/492 Senior Design Project Template
%
% Adapted from John Shumway asudis.sty
% https://github.com/shumway/asudis
%
% Dogancan Ozturan (dogancan.org)
% Date: June 2015
% repo: github.com/ozturan/bilgithesis
%
\geometry{top=1.0in,hmargin=1.25in,height=9.0in,includefoot,
letterpaper}
\newcommand{\doublespace} {
\renewcommand{\baselinestretch}{1.66}\small\normalsize
}
\newcommand{\oneandhalfspace} {
\renewcommand{\baselinestretch}{1.24}\small\normalsize
}
\newcommand{\singlespace} {
\renewcommand{\baselinestretch}{0.9}\small\normalsize
}
\singlespace
\title{\tt$\backslash$\string title}
\author{\tt$\backslash$\string author}
\newcommand{\supervisor}[1]{\renewcommand{\@supervisor}{#1}}
\newcommand{\@supervisor}{\tt$\backslash$\string supervisor}
\newcommand{\department}[1]{\renewcommand{\@department}{#1}}
\newcommand{\@department}{\tt$\backslash$\string department}
\newcommand{\gradyear}[1]{\renewcommand{\@gradyear}{#1}}
\newcommand{\@gradyear}{\tt$\backslash$\string gradyear}
\renewcommand\maketitle{
\enlargethispage{0.5in}
\thispagestyle{empty}
\noindent
\begin{minipage}[t][647.0truept][t]{\linewidth}
\begin{center}
\includegraphics[scale=0.7]{Figures/bilgilogo.png} \\[1cm]
\textbf{\@title} \\
\vspace{4cm}
\textbf{ by\\
\@author}
\vspace{0.5cm}
\begin{center}
\singlespace
\textbf{Supervised \\
By \\
\@supervisor}
\end{center}
\vspace{10cm}
\textbf{ \@department\\
Istanbul Bilgi University \\
\@gradyear}
\end{center}
\end{minipage}
\clearpage
}
% abstract
%
\renewenvironment{abstract}{
\begin{center}
\doublespace
ABSTRACT
\end{center}
} {
\clearpage
}
%
% acknowledgements
%
\newenvironment{acknowledgements}{
\begin{center}
\doublespace
ACKNOWLEDGEMENTS
\end{center}
} {
\clearpage
}
\renewcommand\cftsecfont{\normalfont}
\renewcommand\cftsecpagefont{\normalfont}
\renewcommand{\cftchapdotsep}{1.7}
\renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
\renewcommand{\cftpartdotsep}{1.7}
\renewcommand{\cftpartleader}{\cftdotfill{\cftpartdotsep}}
\renewcommand{\cftsecdotsep}{1.7}
\renewcommand{\cftsubsecdotsep}{1.7}
\renewcommand{\cfttabdotsep}{1.7}
\renewcommand{\cftfigdotsep}{1.7}
%
% Fonts for the chapter titles and part titles.
%
\renewcommand{\cftchapfont}{\uppercase \rm}
\renewcommand{\cftpartfont}{\rm}
\renewcommand{\cftchappagefont}{\rm}
\renewcommand{\cftpartpagefont}{\rm}
\setlength{\cftbeforepartskip}{0truept}
\setlength{\cftbeforechapskip}{0truept}
%
% Get the title for the TOC normal sized, centered, and at the right height.
%
\setlength{\cftbeforetoctitleskip}{-30.0truept}
\setlength{\cftaftertoctitleskip}{0truept}
%
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\cfttoctitlefont}{\hfill\normalsize\rm}
\renewcommand{\cftaftertoctitle}{\hfill}
%
\newcommand{\cftlabel}{CHAPTER}
%
% Get rid of the header underline.
\renewcommand{\headrulewidth}{0pt}
%
% Get the header on subsequent pages right.
\renewcommand{\@cfttocstart}{
\newgeometry{top=1.0in,hmargin=1.25in,height=9.0in,
includehead,includefoot,letterpaper}%,showcrop,showframe}
\doublespace
\pagestyle{fancyplain}
\afterpage{\lhead{\cftlabel}\rhead{\thepage}}
}
\renewcommand{\@cfttocfinish}{
\restoregeometry\clearpage\afterpage{\lhead{}\rhead{}}
}
%
% Get the title for the LOT normal sized, centered, and at the right height.
%
\setlength{\cftbeforelottitleskip}{-30.0truept}
\setlength{\cftafterlottitleskip}{0truept}
%
\renewcommand{\listtablename}{LIST OF TABLES}
\renewcommand{\cftlottitlefont}{\hfill\normalsize\rm}
\renewcommand{\cftafterlottitle}{\hfill}
%
% Get the title for the LOF normal sized, centered, and at the right height.
%
\setlength{\cftbeforeloftitleskip}{-30.0truept}
\setlength{\cftafterloftitleskip}{0truept}
%
\renewcommand{\listfigurename}{LIST OF FIGURES}
\renewcommand{\cftloftitlefont}{\hfill\normalsize\rm}
\renewcommand{\cftafterloftitle}{\hfill}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter}#1}%
\else
\addcontentsline{toc}{chapter}{#1} %
\fi
\chaptermark{#1}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi}
%
% Change some of the rules for float placement.
%
\setcounter{topnumber}{2} %Maximum 2 floats on top
\setcounter{bottomnumber}{1} %Maximum 1 float on bottom
%\renewcommand{\topfraction}{0.7} %Top float max size is 70%
%\renewcommand{\bottomfraction}{0.7} %Bottom float max size is 70%
\renewcommand{\topfraction}{0.9} %Top float max size is 70%
\renewcommand{\bottomfraction}{0.8} %Bottom float max size is 70%
\renewcommand{\floatpagefraction}{0.7}
%
% List of Symbols and Abbreviations
%
\newcommand\listsymbolname{List of Symbols/Abbreviations}
\usepackage{longtable}
\newcommand\listofsymbols[2]{
\begin{center}{\MakeUppercase\listsymbolname}\end{center} \\
\begin{longtable}[c]{#1}#2\end{longtable}\par
\cleardoublepage
}
\renewcommand{\@makechapterhead}[1]{
\begin{center}
\thechapter\vspace{\baselineskip}.
\uppercase\expandafter{#1}\vspace{\baselineskip}
\end{center}
}
% Numbers chapters, sections, and subsections
\setcounter{secnumdepth}{2}
% Center section titles
\renewcommand{\section}{\@startsection{section}{1}{0 in}{1em}{1em}{\centering}}
% Center and italicize subsection titles
\renewcommand{\subsection}{\@startsection{subsection}{2}{0 in}{1em}{1em}
{\centering\slshape}}
%
% Fix bibliography header.
%
\renewcommand\bibname{References}
\renewcommand\bibsection{
\begin{center}\uppercase\expandafter{\bibname}\vspace{1em}\end{center}
}
%
% Modify figure captions so that they print singlespace.
%
\renewcommand{\@makecaption}[2]{% #1 is e.g. Figure 1, #2 is captiontext
\singlespace
{\textbf{#1:} #2\par}
}
%
% Modify footnotes to be single spaced per footnote, double in between
%
\setlength{\footnotesep}{\baselineskip} %double space between footnotes
\let\oldfootnoterule\footnoterule %don't put a gap between the line and the first footnote
\def\footnoterule{\oldfootnoterule\vspace{-0.2\baselineskip}}
\let\oldfn\footnote %single space individual footnotes
\renewcommand{\footnote}[1]{\singlespace\oldfn{#1}\doublespace}