Skip to content

Commit

Permalink
set texgyretermes fonts by default
Browse files Browse the repository at this point in the history
  • Loading branch information
billryan committed Dec 11, 2015
1 parent 208b97e commit 4707b3c
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ An elegant \LaTeX\ résumé template, compiled with \XeLaTeX. Inspired by
- Easy to be further customized or extended
- Full support for unicode characters (e.g. CJK) with \XeLaTeX\
- Perfect Simplified Chinese fonts support with Adobefonts
- FontAwesome 4.3.0 support (not support alias yet)
- FontAwesome 4.5.0 support (alias not support yet)

### Sample Output

Expand Down
Binary file added fonts/Main/Fontin-SmallCaps.otf
Binary file not shown.
Binary file added fonts/Main/texgyretermes-bold.otf
Binary file not shown.
Binary file added fonts/Main/texgyretermes-bolditalic.otf
Binary file not shown.
Binary file added fonts/Main/texgyretermes-italic.otf
Binary file not shown.
Binary file added fonts/Main/texgyretermes-regular.otf
Binary file not shown.
38 changes: 34 additions & 4 deletions resume.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,36 @@
\RequirePackage{xltxtra}
% use fontawesome
\RequirePackage{fontawesome}
% use hyperref and cleverref
\RequirePackage{hyperref}
\RequirePackage{cleveref}
% use xcolor for customizing color
\RequirePackage[usenames,dvipsnames]{xcolor}

\RequirePackage{fontspec} % For loading fonts
% Main document font
\setmainfont{texgyretermes}[
Path = fonts/Main/ ,
Extension = .otf ,
UprightFont = *-regular ,
BoldFont = *-bold ,
ItalicFont = *-italic ,
BoldItalicFont = *-bolditalic ,
SmallCapsFont = Fontin-SmallCaps
]

% see http://tex.stackexchange.com/questions/100905/best-practice-for-hyperref-link-colours for more detail
\newcommand\myshade{85}
\colorlet{mylinkcolor}{violet}
\colorlet{mycitecolor}{YellowOrange}
\colorlet{myurlcolor}{Aquamarine}

\hypersetup{
linkcolor = mylinkcolor!\myshade!black,
citecolor = mycitecolor!\myshade!black,
urlcolor = myurlcolor!\myshade!black,
colorlinks = true,
}

\RequirePackage[
a4paper,
Expand Down Expand Up @@ -51,15 +81,15 @@
}

\newcommand{\name}[1]{
\centerline{\Huge{#1}}
\centerline{\Huge\scshape\raggedright{#1}}
\vspace{1.25ex}
}
\newcommand{\contactInfo}[3]{
\centerline{\large{\faEnvelope\ {#1} \textperiodcentered \faPhone\ {#2} \textperiodcentered \faLink\ {#3}}}
\centerline{\large\color{myurlcolor}{\faEnvelope\ {#1} \textperiodcentered \faPhone\ {#2} \textperiodcentered \faLink\ \url{#3}}}
\vspace{1.5ex}
}
\newcommand{\basicContactInfo}[3]{
\centerline{\large{\faEnvelopeO\ {#1} \textperiodcentered {{\Large\faMobile}\ {#2}}}}
\newcommand{\basicContactInfo}[2]{
\centerline{\large{\faEnvelope\ {#1} \textperiodcentered \faPhone {#2}}}
\vspace{1.5ex}
}
\newcommand{\role}[2]{
Expand Down
Binary file modified resume.pdf
Binary file not shown.
Binary file modified resume.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions resume.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
\documentclass{resume}
%\usepackage{zh_CN-Adobefonts_external} % Simplified Chinese Support using external fonts (./fonts/zh_CN-Adobe/)
%\usepackage{zh_CN-Adobefonts_internal} % Simplified Chinese Support using system fonts

\begin{document}
\pagenumbering{gobble} % suppress displaying page number

\name{Bin Yuan}

% {E-mail}{mobilephone}{homepage}
\contactInfo{[email protected]}{(+86) 131-221-87xxx}{http://www.yuanbin.me}
% be careful of _ in emaill address
\contactInfo{\href{mailto:[email protected]}{my\_[email protected]}}{(+86) 131-221-87xxx}{http://www.yuanbin.me}
% {E-mail}{mobilephone}
%\basicContactInfo{[email protected]}{(+86) 131-221-87xxx}

Expand Down Expand Up @@ -41,11 +42,11 @@ \section{\faUsers\ Experience}

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

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

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

Expand Down

0 comments on commit 4707b3c

Please sign in to comment.