-
Notifications
You must be signed in to change notification settings - Fork 0
/
purna.sty
70 lines (54 loc) · 1.63 KB
/
purna.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{purna}[Purna's Formatting Package]
\RequirePackage{mathpazo} % equivalent to usepackage{...}
% 'sans serif' option
\DeclareOption{sans}{
\renewcommand{\familydefault}{\sfdefault}
}
% 'roman' option
\DeclareOption{roman}{
\renewcommand{\familydefault}{\rmdefault}
}
% global indentation option
\newif\if@neverindent\@neverindentfalse
\DeclareOption{neverindent}{
\@neverindenttrue
}
\ExecuteOptions{roman}
\ProcessOptions\relax % terminates the option processing.
\newlength{\parskipdefault} % create new length variable
\setlength{\parskipdefault}{1ex} % assign desired paragraph skip value to this variable
\newcommand{\neverskip}{ \setlength{\parskip}{0pt} }
\newcommand{\autoskip}{ \setlength{\parskip}{\parskipdefault} }
\newlength{\pardefault}
\setlength{\pardefault}{\parindent}
\newcommand{\neverindent}{ \setlength{\parindent}{0pt} }
\newcommand{\autoindent}{ \setlength{\parindent}{\pardefault} }
\if@neverindent
\neverindent
\fi
\if@neverskip
\neverskip
\fi
\RequirePackage{xcolor}
\colorlet{RedOrange}{red!70!orange}
\colorlet{DullRed}{red!40!white!70!black}
\colorlet{PalePurple}{purple!30!blue!40!gray}
% Text formatting
\newcommand{\highlight}[1]{\textcolor{RedOrange}{#1}}
\RequirePackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=PalePurple,
filecolor=PalePurple,
urlcolor=purple!20!blue,
pdftitle={Document Title},
pdfauthor={Purnanand Elango},
citecolor=DullRed,
}
% Math definitions
\RequirePackage{amsmath,amssymb,amsthm,bm}
\newcommand{\opn}[1]{\operatorname{#1}}
\newcommand{\mb}[1]{\mathbb{#1}}
\newcommand{\mc}[1]{\mathcal{#1}}
\endinput