forked from nitinbaby/official_letter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
leftLetterNitin.sty
32 lines (31 loc) · 1.58 KB
/
leftLetterNitin.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{leftLetterNitin}[2014/08/21 Letter package]
\RequirePackage{imakeidx}
\RequirePackage{xstring}
\RequirePackage{xcolor}
\RequirePackage[utf8]{inputenc}
\RequirePackage{ragged2e}
\RequirePackage[left=3cm,top=2.0cm,right=1.5cm,bottom=2.7cm]{geometry}
\definecolor{greycolour}{HTML}{525252}
\definecolor{sharelatexcolour}{HTML}{882B21}
\definecolor{mybluecolour}{HTML}{394773}
\newcommand{\wordcolour}{greycolour}
\DeclareOption{red}{\renewcommand{\wordcolour}{sharelatexcolour}}
\DeclareOption{blue}{\renewcommand{\wordcolour}{mybluecolour}}
\DeclareOption*{\PackageWarning{examplepackage}{Unknown ‘\CurrentOption’}}
\ProcessOptions\relax
\newcounter{example}[section]
\newenvironment{example}[1][]{\refstepcounter{example}\par\medskip
\noindent \textbf{My~environment~\theexample. #1} \rmfamily}{\medskip}
\newcommand{\important}[1]
{\IfSubStr{#1}{!}
{\textcolor{\wordcolour}{\textbf{\StrBefore{#1}{!}~\StrBehind{#1}{!}}}\index{#1}}
{\textcolor{\wordcolour}{\textbf{#1}}\index{#1}\kern-1pt}
}
%---------------------------------------------------------------------
\newcommand{\throughAddress}{The Head,\\Your Department,\\Your Institute}
%---------------------------------------------------------------------
\newcommand{\supAddress}{Dr. XYZ / Prof. XYZ (Supervisor),\\Your Department,\\Your Institute}
%---------------------------------------------------------------------
\newcommand{\myAddress}{Your name,\\Your Roll Number,\\Your Department,\\Your Institute}
%---------------------------------------------------------------------