Skip to content

Commit f005551

Browse files
committed
Merge branch 'enhancement-link'
2 parents 208b97e + 4707b3c commit f005551

10 files changed

Lines changed: 42 additions & 11 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ An elegant \LaTeX\ résumé template, compiled with \XeLaTeX. Inspired by
1717
- Easy to be further customized or extended
1818
- Full support for unicode characters (e.g. CJK) with \XeLaTeX\
1919
- Perfect Simplified Chinese fonts support with Adobefonts
20-
- FontAwesome 4.3.0 support (not support alias yet)
20+
- FontAwesome 4.5.0 support (alias not support yet)
2121

2222
### Sample Output
2323

fonts/Main/Fontin-SmallCaps.otf

28.6 KB
Binary file not shown.

fonts/Main/texgyretermes-bold.otf

148 KB
Binary file not shown.
156 KB
Binary file not shown.
153 KB
Binary file not shown.
151 KB
Binary file not shown.

resume.cls

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,36 @@
88
\RequirePackage{xltxtra}
99
% use fontawesome
1010
\RequirePackage{fontawesome}
11+
% use hyperref and cleverref
12+
\RequirePackage{hyperref}
13+
\RequirePackage{cleveref}
14+
% use xcolor for customizing color
15+
\RequirePackage[usenames,dvipsnames]{xcolor}
16+
17+
\RequirePackage{fontspec} % For loading fonts
18+
% Main document font
19+
\setmainfont{texgyretermes}[
20+
Path = fonts/Main/ ,
21+
Extension = .otf ,
22+
UprightFont = *-regular ,
23+
BoldFont = *-bold ,
24+
ItalicFont = *-italic ,
25+
BoldItalicFont = *-bolditalic ,
26+
SmallCapsFont = Fontin-SmallCaps
27+
]
28+
29+
% see http://tex.stackexchange.com/questions/100905/best-practice-for-hyperref-link-colours for more detail
30+
\newcommand\myshade{85}
31+
\colorlet{mylinkcolor}{violet}
32+
\colorlet{mycitecolor}{YellowOrange}
33+
\colorlet{myurlcolor}{Aquamarine}
34+
35+
\hypersetup{
36+
linkcolor = mylinkcolor!\myshade!black,
37+
citecolor = mycitecolor!\myshade!black,
38+
urlcolor = myurlcolor!\myshade!black,
39+
colorlinks = true,
40+
}
1141

1242
\RequirePackage[
1343
a4paper,
@@ -51,15 +81,15 @@
5181
}
5282

5383
\newcommand{\name}[1]{
54-
\centerline{\Huge{#1}}
84+
\centerline{\Huge\scshape\raggedright{#1}}
5585
\vspace{1.25ex}
5686
}
5787
\newcommand{\contactInfo}[3]{
58-
\centerline{\large{\faEnvelope\ {#1} \textperiodcentered \faPhone\ {#2} \textperiodcentered \faLink\ {#3}}}
88+
\centerline{\large\color{myurlcolor}{\faEnvelope\ {#1} \textperiodcentered \faPhone\ {#2} \textperiodcentered \faLink\ \url{#3}}}
5989
\vspace{1.5ex}
6090
}
61-
\newcommand{\basicContactInfo}[3]{
62-
\centerline{\large{\faEnvelopeO\ {#1} \textperiodcentered {{\Large\faMobile}\ {#2}}}}
91+
\newcommand{\basicContactInfo}[2]{
92+
\centerline{\large{\faEnvelope\ {#1} \textperiodcentered \faPhone {#2}}}
6393
\vspace{1.5ex}
6494
}
6595
\newcommand{\role}[2]{

resume.pdf

-4.45 KB
Binary file not shown.

resume.png

-119 KB
Loading

resume.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
\documentclass{resume}
44
%\usepackage{zh_CN-Adobefonts_external} % Simplified Chinese Support using external fonts (./fonts/zh_CN-Adobe/)
55
%\usepackage{zh_CN-Adobefonts_internal} % Simplified Chinese Support using system fonts
6-
6+
77
\begin{document}
88
\pagenumbering{gobble} % suppress displaying page number
99

1010
\name{Bin Yuan}
1111

1212
% {E-mail}{mobilephone}{homepage}
13-
\contactInfo{xxx@yuanbin.me}{(+86) 131-221-87xxx}{http://www.yuanbin.me}
13+
% be careful of _ in emaill address
14+
\contactInfo{\href{mailto:my_address@yuanbin.me}{my\_address@yuanbin.me}}{(+86) 131-221-87xxx}{http://www.yuanbin.me}
1415
% {E-mail}{mobilephone}
1516
%\basicContactInfo{xxx@yuanbin.me}{(+86) 131-221-87xxx}
1617

@@ -41,11 +42,11 @@ \section{\faUsers\ Experience}
4142

4243
\datedsubsection{\textbf{\LaTeX\ résumé template}}{May. 2015 -- Present}
4344
\role{\LaTeX, Maintainer}{Individual Projects}
44-
An elegant \LaTeX\ résumé template, https://github.com/billryan/resume
45+
An elegant \LaTeX\ résumé template, \url{https://github.com/billryan/resume}
4546
\begin{itemize}
4647
\item Easy to be further customized or extended
4748
\item Full support for unicode characters (e.g. CJK) with \XeLaTeX\
48-
\item FontAwesome 4.3.0 support
49+
\item FontAwesome 4.5.0 support
4950
\end{itemize}
5051

5152
% Reference Test
@@ -68,8 +69,8 @@ \section{\faHeartO\ Honors and Awards}
6869

6970
\section{\faInfo\ Miscellaneous}
7071
\begin{itemize}[parsep=0.5ex]
71-
\item Blog: http://your.blog.me
72-
\item GitHub: https://github.com/username
72+
\item Blog: \url{http://your.blog.me}
73+
\item GitHub: \url{https://github.com/username}
7374
\item Languages: English - Fluent, Mandarin - Native speaker
7475
\end{itemize}
7576

0 commit comments

Comments
 (0)