summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/famt/CollegeNotice/CollegeNotice.cls
blob: 8a7fe0a45f6b7290d7a46f5ceb2052687ffea1d6 (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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{CollegeNotice}[2012/04/19 CollegeNotice]
% Declare some variables to hold text fields
\newcommand{\collegename}[1]{\gdef\NoticeField@collegename{#1}}
\newcommand{\deptname}[1]{\gdef\NoticeField@deptname{#1}}
\newcommand{\issuedate}[1]{\gdef\NoticeField@issuedate{#1}}
\newcommand{\subject}[1]{\gdef\NoticeField@subject{#1}}
\newcommand{\name}[1]{\gdef\NoticeField@name{#1}}
\newcommand{\designation}[1]{\gdef\NoticeField@designation{#1}}
\newcommand{\content}[1]{\gdef\NoticeField@content{#1}}

% Initialize variables to their default values
\collegename{Finolex Academy of Management and Technology}
\deptname{Department of Information Technology}
\issuedate{\today}
\subject{}
\name{S. V. Jadhav}
\designation{Head of Department}
\content{}

% Define layout for Notice
\newcommand{\makenotice}{
	\thispagestyle{empty}
	\centering
	\Large{\NoticeField@collegename} \linebreak
	\large{\NoticeField@deptname} \\[\baselineskip] \normalsize
	\flushright{\NoticeField@issuedate} \\[\baselineskip] 
	\centering
	\textbf{\Large{NOTICE}} \\[\baselineskip] \normalsize
	\NoticeField@subject \\[\baselineskip]
	\flushleft{\NoticeField@content} \\[\baselineskip]
	\vspace{0.5cm}
	\flushright{\NoticeField@name} \linebreak
	\NoticeField@designation \\[\baselineskip]

}
\LoadClass[a4paper,12pt]{article}

\usepackage{xifthen}
% College name is other than Finolex Academy of Management and Technology
\newcommand{\College}[1]{\ifthenelse{\isempty{#1}}{}{\collegename{#1}}}
% Department name is other than Information Technology
\newcommand{\Department}[1]{\ifthenelse{\isempty{#1}}{}{\deptname{#1}}}
% Name is other than S.V.Jadhav
\newcommand{\Name}[1]{\ifthenelse{\isempty{#1}}{}{\name{#1}}}
% Designation is other than Head of Department
\newcommand{\Designation}[1]{\ifthenelse{\isempty{#1}}{}{\designation{#1}}}
% Issued Date is other than Today's date
\newcommand{\Issuedate}[1]{\ifthenelse{\isempty{#1}}{}{\issuedate{#1}}}