-
Notifications
You must be signed in to change notification settings - Fork 18
/
apMod.sty
106 lines (92 loc) · 2.26 KB
/
apMod.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
\ProvidesPackage{apMod}
\usepackage[utf8]{inputenc}
\usepackage[a4paper, total={7in, 10in}]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{longtable}
\usepackage{tikz}
\usepackage{graphicx}
\renewcommand*{\arraystretch}{1.4}
\pagenumbering{gobble}
\author{Anindya Prithvi}
\hypersetup{
colorlinks = true,
linkbordercolor = {white}
}
\newenvironment{contained}%
{%
\ifx\contain\undefined\else%
\if\contain1%
\noindent\minipage{\textwidth}%
\else%
\fi%
\fi}%
{%
\ifx\contain\undefined\else%
\if\contain1%
\endminipage\hfill%
\else%
\fi%
\fi}%
\newcommand{\sectionC}[1]{{%
\noindent%
% \colorbox{gray!30}{
% \minipage{\textwidth}%
% \textbf{#1}
% \endminipage\hfill%
% }}%
\tikzstyle{sectionCstyle} = [fill=gray!30,
rectangle, rounded corners, inner sep=5pt, inner ysep=5pt]
\begin{tikzpicture}
\node [sectionCstyle] (box){%
\begin{minipage}{\textwidth}
\textbf{#1}
\end{minipage}
};
\end{tikzpicture}%
\vspace{-10px}}}
\newcommand{\cvimage}[1]{%
\setlength{\fboxsep}{0pt}%
\setlength{\fboxrule}{1pt}%
\fbox{\includegraphics[height=100pt, keepaspectratio]{#1}}%
\vspace{10pt}
}
\newcommand{\personalinfo}{%
\begin{center}
\textbf{\Large \yourname}\\
\vspace{2pt}
Roll no. \yourrollno\space$\vert$ \href{mailto:\youremail}{\color{blue!60}\youremail}\\
DOB: \yourDOB\\
\youraddress\\
\vspace{2pt}
\includegraphics[height=10pt, keepaspectratio]{githublogodark.png}\space\href{\yourgithub}{\color{blue!60} Github}
\end{center}
}%
\newcommand{\cvheader}{%
\minipage{0.18\textwidth}%
% \cvimage{\yourphoto}%insert your photo file here
\begin{tikzpicture}
\begin{scope}[xshift=7cm]
\clip [rounded corners=.3cm] (0,0) rectangle coordinate (centerpoint) (100pt,100pt);
\node [inner sep=0pt] at (centerpoint) {\includegraphics[width=100pt]{\yourphoto}};
\end{scope}
\end{tikzpicture}
\vspace{10pt}
\endminipage\hfill
\minipage{0.60\textwidth}%
\personalinfo
\endminipage\hfill
\minipage{0.18\textwidth}%
\begin{frame}{}
\includegraphics[width=\linewidth]{iiitdlogo.jpg}
\end{frame}
\endminipage\hfill
}
\newcommand{\cveducationitem}[4]{%
\textbf{#1}\newline
#2\newline
#3
& #4\newline\\
}%