summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/muling/muling.cls
blob: 0b0f25d8600b201c0c1df7da3a55fdb609497a1a (plain)
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
%%
%% This is file `muling.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% muling.dtx  (with options: `class')
%% 
%% ---------------------------------------------------------------------------
%% Class:        muling
%% Author:       Niranjan
%% Description:  A class file for the Department of Linguistics, University of
%%               Mumbai
%% Repository:   https://gitlab.com/niranjanvikastambe/muling
%% Bug tracker:  https://gitlab.com/niranjanvikastambe/muling/-/issues
%% License:      The LaTeX Project Public License v1.3c or later.
%% ---------------------------------------------------------------------------
%% This work may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License, either version 1.3c of this license or (at
%% your option) any later version.
%% 
%% The latest version of this license is in
%% 
%%     http://www.latex-project.org/lppl.txt.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Niranjan.
%% 
%% This work consists of the files muling.dtx
%%                                 muling.ins
%% and the derived file            muling.cls.
%% ---------------------------------------------------------------------------
%% 
\def\mulingClassName{muling}
\def\mulingClassVersion{0.1}
\def\mulingClassDate{2020/11/12}
\def\mulingClassDescription{A class file for the Department of Linguistics,
  University of Mumbai
}
\ProvidesClass{muling}[2020/11/12 v0.1
A class file for the Department of Linguistics,
University of Mumbai]
\DeclareOption{digital}{\PassOptionsToClass{oneside}{book}}
\newif\iflof
\DeclareOption{lof}{\loftrue}
\ProcessOptions
\iflof
\def\@printlof{%
  \thispagestyle{empty}%
  \phantomsection
  \addcontentsline{toc}{section}{List of figures}%
  \listoffigures
  \clearpage\pagebreak
}%
\else
\let\@printlof\@empty
\fi
\LoadClass{book}
\RequirePackage{hyperref}
\hypersetup{
  colorlinks,
  linkcolor=red!60!black,
  citecolor=green!60!black,
  urlcolor=blue!60!black
}
\RequirePackage[backend=biber,style=apa]{biblatex}
\RequirePackage[linguistics]{forest}
\RequirePackage{tipa}
\RequirePackage{leipzig}
\RequirePackage{expex}
\RequirePackage{ling-macros}
\makeatletter
\let\@supervisor\@empty
\def\supervisor#1{%
  \def\@supervisor{#1}%
}%
\let\@shorttitle\@empty
\def\shorttitle#1{%
  \def\@shorttitle{#1}%
}%
\let\@subtitle\@empty
\def\subtitle#1{%
  \def\@subtitle{#1}%
}%
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\cfoot{\thepage}
\rhead{}
\lhead{%
  \begin{tabular}{l}
    \@author\\%
    \textsc{%
    \footnotesize University of Mumbai%
    }%
  \end{tabular}%
  \hfill
  \@shorttitle
}%
\newlength{\shift}
\setlength{\shift}{0.3in}
\renewcommand{\maketitle}{%
  \thispagestyle{empty}%
  \addtolength{\oddsidemargin}{\shift}%
  \fboxsep3em
  \noindent\fbox{%
    \begin{minipage}
      [c][\dimexpr\textheight-2\fboxsep-2\fboxrule]
      [c]{\dimexpr\linewidth-2\fboxsep-2\fboxrule}
      \begin{center}
        \bigskip
        \hrule
        \vspace{2ex}
        \textbf{%
          {\LARGE \@title}\\%
          \vspace{0.2cm}%
          {\textsc\@subtitle}%
        }
        \vspace{2ex}
        \hrule
        \vfill
        {\large
          \textsc{%
            \@author%
          }%
        }\\%
        \vspace{0.5in}%
        {\large
          \textsc{%
            supervisor : \@supervisor%
          }%
        }\\%
        \vspace{0.5in}%
        {\large
          \textsc{%
            a dissertation submitted in\\ the partial fulfillment of the
            requirements for the masters of linguistics%
          }%
        }\\%
        \vspace{0.5in}%
        \textsc{%
          department of linguistics\\%
          university of mumbai, kalina%
        }\\%
        \smallskip
        \bigskip
        \textsc{\@date}%
      \end{center}
    \end{minipage}
    \makeatother
    \addtolength{\oddsidemargin}{-\shift}
  }
  \clearpage\pagebreak
  \thispagestyle{empty}
  \tableofcontents
  \clearpage\pagebreak
  \thispagestyle{empty}
  \phantomsection
  \addcontentsline{toc}{section}{Abbreviations}
  \printglossary
  \clearpage\pagebreak
  \thispagestyle{empty}
  \phantomsection
  \addcontentsline{toc}{section}{List of tables}
  \listoftables
  \clearpage\pagebreak
  \thispagestyle{empty}
  \phantomsection
  \begin{center}
    \texttt{%
      \LARGE
      \textsc{%
        declaration%
      }%
    }%
  \end{center}
  \bigskip
  \texttt{%
    As required by the University Regulation No: R. 1972 I wish to state that the
    work embodied in this thesis titled \@title{} : \@subtitle{} forms my own
    contribution to the research work carried out under the guidance of
    \@supervisor{} at the University of Mumbai.\\
    \indent This work has not been submitted for any other degree of this or any
    other university. Whenever references have been made to previous works of
    others, it has been clearly indicated as such and included in the
    bibliography.\\
    \bigskip
    \texttt{%
      \flushright{%
        Date : \@date\\
        \vspace{0.5in}
      }%
      Signature of the candidate :\\
      \hfill Name : \@author
    }\\%
    \bigskip
    \flushleft{%
      Certified by -\\
      \vspace{0.5in}
      Signature of the guide :\\
      Name : \@supervisor
    }%
  }%
}%
\endinput
%%
%% End of file `muling.cls'.