Skip to content

Instantly share code, notes, and snippets.

@gujiaxi
Created January 26, 2018 03:55
Show Gist options
  • Save gujiaxi/da8a70045fa132ec1defac878d4a3404 to your computer and use it in GitHub Desktop.
Save gujiaxi/da8a70045fa132ec1defac878d4a3404 to your computer and use it in GitHub Desktop.
A simple cv template for LaTeX.
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{iz_cv}[2018/01/26 CV class modified on joel_cv]
\LoadClass[11pt,a4paper]{article}
\usepackage{enumitem}
\usepackage{parskip}
\usepackage[hidelinks]{hyperref}
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry}
\newcommand{\printName}[1]{{\huge \textsc{#1}}\\\vspace{0.5em}}
\newcommand{\printPhone}[1]{{\em Phone}: #1\\}
\newcommand{\printEmail}[1]{{\em Email}: #1\\}
\newcommand{\printWebsite}[1]{{\em Website}: #1\\}
\newcommand{\printAddress}[1]{{\em Address}: #1\\}
\newcommand{\printInformation}[1]{#1\\}
\newcommand{\sectionTitle}[1]{\vspace{.6em}\textbf{\Large \textsc{#1}}\vspace{0.4em}\hrule}
\newenvironment{cvHeader}{\begin{center}}{\end{center}}
\newenvironment{sectionItemize}[1]{
\begin{itemize}[leftmargin=1.5em]
\renewcommand\labelitemi{#1}
\itemsep=-0.3em
}{
\end{itemize}
}
% #1: Title, #2: Interval
\newenvironment{sectionContentSimple}[2]{
\hspace{1.2em} {\bf #1} \dotfill {\em #2}
\vspace{-0.6em}
\begin{itemize}[leftmargin=1.5em]
\renewcommand\labelitemi{}
\itemsep=-0.3em
}{
\end{itemize}
\vspace{-0.3em}
}
% #1: Title, #2: timespan
\newenvironment{profExp}[2]{
\hspace{1.2em} {\bf #1} \dotfill {\em #2}
\vspace{-0.5em}
\begin{itemize}
\renewcommand\labelitemi{$\cdot$}
\itemsep=-0.5em
}{
\end{itemize}
}
% #1: Title, #2: subtitle
\newenvironment{proj}[2]{
\hspace{1.2em} {\bf #1} \vspace{-0.7em}
\begin{itemize}[leftmargin=1.5em]
\item[] {\bf \footnotesize #2}
\end{itemize}
\vspace{-0.7em}
\begin{itemize}[leftmargin=1.5em]
\renewcommand\labelitemi{}
\itemsep=-0.5em
}{
\end{itemize}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment