diff options
author | Aaron LI <aly@aaronly.me> | 2023-02-03 18:12:02 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2023-02-03 18:14:16 +0800 |
commit | 7549fabc4b01d193933577eac99064954669f821 (patch) | |
tree | b3e39d272a3d8cecfd5bd440a0557664ceabc1dd | |
parent | 40e23ef549bf83c38a297d29ccddc11a31d46334 (diff) | |
download | resume-7549fabc4b01d193933577eac99064954669f821.tar.bz2 |
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.
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | README.md | 9 | ||||
-rw-r--r-- | resume.cls | 6 |
3 files changed, 14 insertions, 11 deletions
@@ -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) @@ -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. + +<blockquote> 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` +</blockquote> Required Fonts -------------- @@ -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 \\ } |