% CV-Custom.tex
% By Matthew Earnshaw
%
% Custom macro commands and packages
% for formatting a Curriculum Vitae
%
% Test Version

% For usage example see end of document.

% Style
\documentclass[10pt,a4paper]{article}
\pagestyle{empty}

% Packages
\usepackage[dvipsnames,usenames]{color}
\usepackage{mdwlist}
\usepackage{simplemargins}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage[pdftex]{hyperref}

% Miscellaneous
\definecolor{lgray}{gray}{0.4}
\definecolor{mygrey}{gray}{0.85}
\renewcommand{\refname}{}

% Margins
\setleftmargin{1.3cm}
\setrightmargin{1.5cm}
\settopmargin{2cm}
\setbottommargin{0.5cm}

% Header
	% Environment
	\newenvironment{header}{	\begin{tabular*}{17cm}{l@{\extracolsep{\fill}}r} 	}{	\end{tabular*}	\vspace*{3mm} \\}
	
	% Commands
	\newcommand{\name}[1]{\LARGE\textbf{#1}}
	\newcommand{\address}[1]{\color{lgray}{#1}}
	\newcommand{\tel}[1]{\small{\myfontb{#1}}}
	\newcommand{\email}[1]{\small{#1}}
	\newcommand{\web}[1]{\small{#1}}
	\newcommand{\dob}[1]{DoB: \small{#1}}
	
% Section headings
	% UNCOMMENT FOR UNDERLINED STYLE HEADINGS
	\newcommand{\sectionhead}[1]{\hspace*{2mm}{\large \begin{minipage}{164mm}{\color{Black}{\textbf{#1 \vphantom{p\^{E}} \hrule}}}\end{minipage}}\\}
	
	% UNCOMMENT FOR BLOCK STYLE HEADINGS
	%\newcommand{\sectionhead}[1]{\hspace*{2mm}{\large \colorbox{mygrey}{\begin{minipage}{164mm}{\textbf{#1 \vphantom{p\^{E}}}}\end{minipage}}}}

% Body
\newenvironment{ctable}{	\begin{tabular*}{17cm}{l@{\extracolsep{\fill}}r} 	}{	\end{tabular*}	\vspace*{2mm}}
\newenvironment{clist}{\begin{itemize*} \vspace*{-5mm}}{\end{itemize*} \vspace*{2mm}}
\newcommand{\blocktitle}[1]{#1}
\newcommand{\textblock}[1]{\hspace*{7mm} \parbox[c]{164mm}{\vspace*{2mm} #1}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% README
% cv-custom.tex provides various custom commands and packages to aid in the creation of a curriculum vitae in \LaTeX.
%
% Environments
%
% \begin{header} - provides the main block for name, address etc.
%
%	------ Example usage ------
%	\begin{header}
% \name{John Doe} 				& \dob{DoB: 10/02/1982}\\
% \address{10 Ham Lane,} 	& \tel{+11 (0)1234 567890}\\
% \address{Woking,} 		 	& \email{mail@example.com}\\
% \address{XY3 9LP} 			& \web{http://www.example.com/}
%	\end{header}
% ---------------------------
%
% \begin{ctable} 	- creates a correctly proportioned table
% \begin{clist} 	-	creates a correctly proportioned list
%
% Other Commands
% \sectionhead{Employment History}  - creates a section header of either block or underlined style according to uncommented line
% \textblock{A lot of text here...} - creates a correctly proportioned block of text
% \email{mail@example.com}, \tel{+11 (0)1234 567890}, \address{One Address Line,}, \web{example.com}, \dob{10/02/1982}
%