|
3 | 3 | \LoadClass[11pt]{article} |
4 | 4 |
|
5 | 5 | % disable indent globally |
6 | | -\setlength{\parindent}{0pt} |
| 6 | +\setlength{\parindent}{0pt} |
7 | 7 | % some general improvements, defines the XeTeX logo |
8 | | -\RequirePackage{xltxtra} |
| 8 | +\RequirePackage{xltxtra} |
| 9 | +% use xifthen |
| 10 | +\RequirePackage{xifthen} |
9 | 11 | % use fontawesome |
10 | 12 | \RequirePackage{fontawesome} |
11 | | -% use hyperref and cleverref |
12 | | -\RequirePackage{hyperref} |
13 | | -\RequirePackage{cleveref} |
14 | 13 | % use xcolor for customizing color |
15 | 14 | \RequirePackage[usenames,dvipsnames]{xcolor} |
16 | | - |
17 | | -\RequirePackage{fontspec} % For loading fonts |
| 15 | +% loading fonts |
| 16 | +\RequirePackage{fontspec} |
18 | 17 | % Main document font |
19 | 18 | \setmainfont{texgyretermes}[ |
20 | 19 | Path = fonts/Main/ , |
|
26 | 25 | SmallCapsFont = Fontin-SmallCaps |
27 | 26 | ] |
28 | 27 |
|
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 | | -} |
41 | | - |
42 | 28 | \RequirePackage[ |
43 | 29 | a4paper, |
44 | 30 | left=0.8in, |
|
81 | 67 | } |
82 | 68 |
|
83 | 69 | \newcommand{\name}[1]{ |
84 | | - \centerline{\Huge\scshape\raggedright{#1}} |
| 70 | + \centerline{\Huge\scshape{#1}} |
85 | 71 | \vspace{1.25ex} |
86 | 72 | } |
| 73 | + |
87 | 74 | \newcommand{\contactInfo}[3]{ |
88 | | - \centerline{\large\color{myurlcolor}{\faEnvelope\ {#1} \textperiodcentered \faPhone\ {#2} \textperiodcentered \faLink\ \url{#3}}} |
89 | | - \vspace{1.5ex} |
90 | | -} |
91 | | -\newcommand{\basicContactInfo}[2]{ |
92 | | - \centerline{\large{\faEnvelope\ {#1} \textperiodcentered \faPhone {#2}}} |
| 75 | + \centerline{\sffamily\large{\faEnvelope\ {#1} \textperiodcentered\ \faPhone\ {#2}} |
| 76 | + \ifthenelse{\isempty{#3}}% |
| 77 | + { } % if {#3} is empty |
| 78 | + {\textperiodcentered\ \faLink\ {#3} } % homepage, no space before \text... |
| 79 | + } |
93 | 80 | \vspace{1.5ex} |
94 | 81 | } |
| 82 | + |
95 | 83 | \newcommand{\role}[2]{ |
96 | 84 | {\par \textit{#1} ~ #2 \par} |
97 | 85 | \vspace{0.85ex} |
|
0 commit comments