blob: 85f14ce41389c1bb26e93a857ece1543a627243e (
plain)
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
|
%%
%% This is file `resumecls.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% resumecls.dtx (with options: `class')
%%
%% This is a generated file.
%%
%% Copyright (C) 2012-2020 by huxuan <i@huxuan.org>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is huxuan <i@huxuan.org>.
%%
%% This work consists of the files resumecls.dtx and resumecls.ins
%% and the derived file resumecls.cls.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{resumecls}
[2020/04/20 v0.4.1 Minor fix with enhanced examples]
\newif\ifrclscolor\rclscolorfalse
\DeclareOption{color}{\rclscolortrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexart}}
\ProcessOptions\relax
\LoadClass[a4paper,12pt]{ctexart}
\RequirePackage[top=.5in,bottom=.5in,left=.5in,right=.5in]{geometry}
\RequirePackage[xetex,unicode]{hyperref}
\RequirePackage{tabularx}
\RequirePackage{color}
\RequirePackage{fancyhdr}
\definecolor{heading}{gray}{0.85}
\ifrclscolor
\hypersetup{colorlinks}
\else
\hypersetup{hidelinks}
\fi
\RequirePackage[sort&compress]{natbib}
\bibliographystyle{unsrt}
\setlength{\bibsep}{0pt}
\def\rclsname{}
\newcommand\name[1]{\def\rclsname{#1}}
\def\rclsorganization{}
\newcommand\organization[1]{\def\rclsorganization{#1}}
\def\rclsaddress{}
\newcommand\address[1]{\def\rclsaddress{#1}}
\def\rclsmobile{}
\newcommand\mobile[1]{\def\rclsmobile{#1}}
\def\rclsmail{}
\newcommand\mail[1]{\def\rclsmail{#1}}
\def\rclshomepage{}
\newcommand\homepage[1]{\def\rclshomepage{#1}}
\def\rclsleftfooter{}
\newcommand\leftfooter[1]{\def\rclsleftfooter{#1}}
\def\rclsrightfooter{}
\newcommand\rightfooter[1]{\def\rclsrightfooter{#1}}
\newcommand{\heading}[1]{%
\colorbox{heading}{%
\parbox{.98\textwidth}{%
\bfseries\zihao{4}#1
}
} \\
}
\newcommand{\entry}[3]{%
\begin{tabularx}{\textwidth}{@{\hspace{#1}}#2}
#3
\end{tabularx}
}
\renewcommand{\maketitle}{%
\entry{0em}{Xr}{%
\bfseries\zihao{4}\rclsname & \rclsmobile \\
\rclsorganization & \href{mailto:\rclsmail}{\rclsmail} \\
\rclsaddress & \url{\rclshomepage} \\
}
}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyfoot[L]{\footnotesize \rclsleftfooter}
\fancyfoot[R]{\footnotesize \rclsrightfooter}
\renewcommand{\refname}{}
\endinput
%%
%% End of file `resumecls.cls'.
|