diff options
author | Aaron LI <aly@aaronly.me> | 2018-04-17 23:20:30 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-04-17 23:20:30 +0800 |
commit | 3fc55d31398a12623459818f4d45ccd2ec82ca92 (patch) | |
tree | 813db28cd20db1519f0758e44bcdb153ffc61b0b | |
parent | 1c91c64f24d1e17b864e3f0dbfd22c69b189ac54 (diff) | |
download | resume-3fc55d31398a12623459818f4d45ccd2ec82ca92.tar.bz2 |
Update to use the new fontawesome5.sty
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | resume.cls | 28 |
2 files changed, 20 insertions, 17 deletions
@@ -5,20 +5,23 @@ # 2018-04-12 # -DEPS:= resume.cls fontawesome.sty +DEPS:= resume.cls fontawesome5/fontawesome5.sty SRCS:= resume-zh.tex resume-en.tex PDFS:= $(SRCS:%.tex=%.pdf) DATE= $(shell date +%Y%m%d) DISTDIR= resume.$(DATE) +# Environment variables +TEXINPUTS:= .:fontawesome5:$(TEXINPUTS) + all: $(PDFS) resume-zh.pdf: resume-zh.tex $(DEPS) - latexmk -xelatex $< + env TEXINPUTS=$(TEXINPUTS) latexmk -xelatex $< resume-en.pdf: resume-en.tex $(DEPS) - latexmk -xelatex $< + env TEXINPUTS=$(TEXINPUTS) latexmk -xelatex $< dist: all mkdir $(DISTDIR) @@ -36,7 +36,7 @@ \RequirePackage{xparse} \RequirePackage{etoolbox} \RequirePackage{fontspec} -\RequirePackage{fontawesome} +\RequirePackage[regular]{fontawesome5} \RequirePackage{parskip} % auto adjust parskip and items skip \RequirePackage{titlesec} \RequirePackage{enumitem} @@ -100,18 +100,7 @@ \setCJKmonofont{Noto Sans Mono CJK SC} }{} -% Color setup -\ifdef{\@monochrome}% - {\definecolor{basecolor}{HTML}{000000}}% - {\definecolor{basecolor}{HTML}{000066}} % blue -% -\definecolor{darkGrey}{HTML}{989898} -% -\colorlet{linkcolor}{basecolor} -\colorlet{accentcolor}{linkcolor!90} -\colorlet{symbolcolor}{linkcolor!85} - -% Font Awesome icons aliases +% Font Awesome icon aliases \newcommand*{\birthdaySymbol}{\faBirthdayCake} \newcommand*{\degreeSymbol}{\faGraduationCap} \newcommand*{\githubSymbol}{\faGithub} @@ -124,6 +113,17 @@ \newcommand*{\phoneSymbol}{\faPhone} \newcommand*{\universitySymbol}{\faUniversity} +% Color setup +\ifdef{\@monochrome}% + {\definecolor{basecolor}{HTML}{000000}}% + {\definecolor{basecolor}{HTML}{000066}} % blue +% +\definecolor{darkGrey}{HTML}{989898} +% +\colorlet{linkcolor}{basecolor} +\colorlet{accentcolor}{linkcolor!90} +\colorlet{symbolcolor}{linkcolor!85} + % Date format: yyyy.mm.dd \newcommand*{\twodigits}[1]{\ifnum#1<10 0\fi\the#1} \renewcommand*{\today}{% @@ -505,7 +505,7 @@ \textbf{#1} & \foreach \x in {1,...,5}{% \color{accentcolor!80}{% - \ifnumgreater{\x}{#2}{\faCircleThin}{\faCircle} + \ifnumgreater{\x}{#2}{\faCircleNotched}{\faCircle} } } \enspace \\ } |