-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.cls
55 lines (47 loc) · 1.35 KB
/
resume.cls
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{resume}[2019/04/05 Resume CV]
\LoadClass[12pt]{article}
\usepackage{enumerate}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage{color}
\usepackage[hidelinks]{hyperref}
\usepackage{multirow}
\usepackage{graphicx}
\graphicspath{ {./images/} }
\definecolor{grey}{RGB}{128,128,128} % 日期颜色
%% 自定义 section
\titleformat{\section} % Customise the \section command
{\large\raggedright} % Make the \section headers large (\Large),
% small capitals (\scshape) and left aligned (\raggedright)
{}{0em} % Can be used to give a prefix to all sections, like 'Section ...'
{} % Can be used to insert code before the heading
[\titlerule] % Inserts a horizontal line after the heading
\titlespacing*{\section}{0cm}{*1.8}{*1.8}
%% 自定义 subsection
\titleformat{\subsection}
{\raggedright}
{}{0em}
{}
\titlespacing*{\subsection}{0cm}{*1.8}{*1.2}
\newcommand{\datedsubsection}[2]{%
\subsection[#1]{#1 \hfill {\color{grey}#2}}%
}
\newcommand{\name}[1]{
\centerline{\bfseries\LARGE{#1}}
\vspace{0.5ex}
}
\newenvironment{leftenumerate}
{
\begin{enumerate}[leftmargin=*]
}
{
\end{enumerate}
}
\newcommand\headerinfo[2]{%
\begin{tabular}{p{5em} p{28em} p{5em}}
\multirow{3}{5em}{} &
#1
& \multirow{3}{5em}{\includegraphics[width=5em]{#2}}
\end{tabular}
}%