From 7549fabc4b01d193933577eac99064954669f821 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 3 Feb 2023 18:12:02 +0800 Subject: class: Update to use 'fontawesome5' package from CTAN The CTAN fontawesome5 package (https://www.ctan.org/pkg/fontawesome5) is better maintained and has more advanced features. Update to use it instead of the custom one. --- Makefile | 10 ++-------- README.md | 9 +++++++++ resume.cls | 6 +++--- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index eb8c192..f1b3a02 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,6 @@ PDFCAT:= resume-zh+en.pdf DATE= $(shell date +%Y%m%d) DISTDIR= resume.$(DATE) -# Environment variables -TEXINPUTS:= .:fontawesome5:$(TEXINPUTS) - all: $(PDFCAT) en: resume-en.pdf zh: resume-zh.pdf @@ -19,11 +16,8 @@ $(PDFCAT): $(PDFS) -sOutputFile=$@ \ $(PDFS) -resume-zh.pdf: resume-zh.tex $(DEPS) - env TEXINPUTS=$(TEXINPUTS) latexmk -xelatex $< - -resume-en.pdf: resume-en.tex $(DEPS) - env TEXINPUTS=$(TEXINPUTS) latexmk -xelatex $< +%.pdf: %.tex $(DEPS) + latexmk -xelatex $< dist: all mkdir $(DISTDIR) diff --git a/README.md b/README.md index 8dbeea8..b95ab4a 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,14 @@ Usage Font Awesome 5 -------------- +**NOTE**: +The [fontawesome5 package](https://www.ctan.org/pkg/fontawesome5) from CTAN +is used, which is more advanced and bundles with the font files. + +The original [fontawesome5](fontawesome5/) contents are now obsolete but kept +for reference. + +
I wrote a simple tool [`make-fontawesome5.py`](fontawesome5/make-fontawesome5.py), which will download the latest icon list from the [Font Awesome](https://github.com/FortAwesome/Font-Awesome) project @@ -67,6 +75,7 @@ i.e., the following 3 OTF files are needed: * `Font Awesome 5 Free-Regular-400.otf` * `Font Awesome 5 Free-Solid-900.otf` * `Font Awesome 5 Brands-Regular-400.otf` +
Required Fonts -------------- diff --git a/resume.cls b/resume.cls index 4c08ff9..67b3bbd 100644 --- a/resume.cls +++ b/resume.cls @@ -12,7 +12,7 @@ %% https://www.latextemplates.com/template/plasmati-graduate-cv %% -\ProvidesClass{resume}[2020/06/21 v2.4.9 Resume Class] +\ProvidesClass{resume}[2023/02/03 v2.5.0 Resume Class] \LoadClass{article} %% @@ -110,7 +110,7 @@ \newcommand*{\mailSymbol}{\faAt} \newcommand*{\mobileSymbol}{\faPhone} % \faMobilePhone is too narrow \newcommand*{\linkedinSymbol}{\faLinkedin} -\newcommand*{\locationSymbol}{\faMapMarkerAlt} +\newcommand*{\locationSymbol}{\faMapMarker*} \newcommand*{\phoneSymbol}{\faPhone} \newcommand*{\universitySymbol}{\faUniversity} @@ -507,7 +507,7 @@ \textbf{#1} & \foreach \x in {1,...,5}{% \color{accentcolor!80}{% - \ifnumgreater{\x}{#2}{\faCircleNotched}{\faCircle} + \ifnumgreater{\x}{#2}{\faCircleNotch}{\faCircle} } } \enspace \\ } -- cgit v1.2.2