-
Notifications
You must be signed in to change notification settings - Fork 0
/
mycv.sty
88 lines (75 loc) · 2.59 KB
/
mycv.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
% This work is licensed under the Creative Commons
% Attribution-NonCommercial-ShareAlike License. To view a copy of this license,
% visit http://creativecommons.org/licenses/by-nc-sa/1.0/ or send a letter to
% Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
% This file is adapted from Puneeth Chaganti's CV at
% https://github.com/punchagan/resume/blob/master/mycv.sty
% which in turn is adapted from Jesse Luehrs resume at
% https://github.com/doy/resume/blob/master/resume.tex
% Packages
\RequirePackage{latexsym,amsmath,amssymb,charter,color,calc,hyperref,titlesec,xcolor}
\RequirePackage[empty]{fullpage}
%% Page margins
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
\addtolength{\oddsidemargin}{-0.15in}
\addtolength{\evensidemargin}{-0.15in}
\addtolength{\textwidth}{0.5in}
\addtolength{\topmargin}{-0.6in}
\addtolength{\textheight}{1in}
%$ Don't want page numbering - gobble 'em up
\pagenumbering{gobble}
% Colours for the CV - a dark red, and a grey for URLs
\definecolor{highlight-colour}{RGB}{128, 0, 0}
\definecolor{url-gray}{gray}{0.25}
\definecolor{watermark-gray}{gray}{0.55}
\renewcommand\fbox{\fcolorbox{highlight-colour}{highlight-colour}}
\let\saveditemize=\itemize%
\let\savedenditemize=\enditemize%
\renewenvironment{itemize}
{\vspace{-2mm}\saveditemize\setlength\itemsep{-0.5em}}
{\savedenditemize}
%% Document header
\newcommand{\resheader}[6]{\vspace{-15mm}
\begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}cr}
#3 & \textcolor{highlight-colour}{\hspace{-5mm}\textbf{\LARGE #1}} & #5\\
#4 & \hspace{-5mm}\url{#2} & #6\\
\end{tabular*}
\\
\vspace{1mm}
}
%% Enumerations
\def\labelitemi{*}
%% Section Headings, etc.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\section}[1]{
\@startsection{section}{1}{0pt}{0pt}{0pt}{\normalfont}*{}
{
\fbox{
\large \textcolor{white}{
\begin{minipage}
{\textwidth-0.175in}
{\textbf{#1 \vphantom{p\^{E}}}}
\end{minipage}
}
}
}
}
\titleformat{\subsection} %command
[block] %shape
{\bfseries} %format
{} %label
{0pt} %sep
{} %before-code
[] %after-code
\titlespacing{\subsection}{0pt}{5pt}{0pt}[{0pt}]
\titleformat{\subsubsection} %command
[block] %shape
{\vspace{-2.4ex}\small\it\raggedleft} %format
{} %label
{0pt} %sep
{} %before-code
[] %after-code
\titlespacing{\subsubsection}{0pt}{0pt}{0pt}[{0pt}]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%