-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathinfo.sty
59 lines (41 loc) · 1.35 KB
/
info.sty
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
\ProvidesPackage{info}
\RequirePackage{metalogo}
% moderncv themes
\moderncvtheme[orange]{classic} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
%\moderncvtheme[green]{casual} % idem
% adjust the page margins
\usepackage[scale=0.8]{geometry}
% personal data
\firstname{姓} % for chinese
\familyname{名}
\address{your address}{100084}
\mobile{your phone number}
\email{your email address}
\homepage{your homepage}
\photo[64pt]{identity}
\AtBeginDocument{\renewcommand{\labelitemi}{-- }}
\usepackage[firstyear=2008,lastyear=2013]{moderntimeline}
%\tlmaxdates{1999}{2012}
\tlwidth{0.8ex}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\usepackage{microtype}
% Proper alignment
\usepackage[originalcommands]{ragged2e}
\renewcommand*{\cvcomputer}[4]{%
\cvdoubleitem{#1}{\small\raggedright#2}{#3}{\small\raggedright#4}}
% Not all fonts have an sl shape
\renewcommand*{\cventry}[6]{%
\cvline{#1}{%
{\bfseries#2}%
\ifx#3\else{, {\itshape#3}}\fi%
\ifx#4\else{, #4}\fi%
\ifx#5\else{, #5}\fi%
.%
\ifx#6\else{\newline{}\begin{minipage}[t]{\linewidth}\small#6\end{minipage}}\fi
}}%
% Refine quote
\newcommand*{\myquote}[2]{%
\quote{\itshape #1 \\ \scshape \footnotesize #2}}
% Hobbies
\newcommand*{\cvhobby}[2]{\cvline{#1}{\small #2}}