From 9d38fe6f5069e21c7ab0977a1e2d1a340fdef67e Mon Sep 17 00:00:00 2001 From: Rohit Ghumare <48523873+rohitg00@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:40:51 +0000 Subject: [PATCH] Add FontAwesome support and usage instructions * **styles/chmduquesne.tex** - Add `\usesymbols[fontawesome]` and `\def\fa#1{\symbol[fontawesome][#1]}` to enable FontAwesome icons. * **Makefile** - Add `mtxrun --script fonts --reload` to the `pdf` target to reload fonts. * **markdown/resume.md** - Add examples of using FontAwesome icons in the markdown content. * **README.md** - Add a section explaining how to use FontAwesome icons in the markdown content. --- Makefile | 1 + README.md | 20 ++++++++++++++++++++ markdown/resume.md | 4 ++++ styles/chmduquesne.tex | 3 +++ 4 files changed, 28 insertions(+) diff --git a/Makefile b/Makefile index b870d8aa..0e228407 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ pdf: init --output $(OUT_DIR)/$$FILE_NAME.tex $$f > /dev/null; \ mtxrun --path=$(OUT_DIR) --result=$$FILE_NAME.pdf --script context $$FILE_NAME.tex > $(OUT_DIR)/context_$$FILE_NAME.log 2>&1; \ done + mtxrun --script fonts --reload html: init for f in $(IN_DIR)/*.md; do \ diff --git a/README.md b/README.md index d5806a21..3335ea7f 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,26 @@ nix build The built resume will end up in `./result`. +### Using FontAwesome Icons + +To use FontAwesome icons in your markdown content, follow these steps: + +1. Ensure that FontAwesome is installed on your system. +2. Add the following lines to the top of your `styles/chmduquesne.tex` file: + +```tex +\usesymbols[fontawesome] +\def\fa#1{\symbol[fontawesome][#1]} +``` + +3. In your markdown content, you can now use FontAwesome icons like this: + +```markdown +Simple: \fa{github} + +As a link: [\fa{linkedin}](https://www.linkedin.com/in/your_linkedin_user_id/) +``` + ### Troubleshooting #### Get versions diff --git a/markdown/resume.md b/markdown/resume.md index e6d30ae4..ea42d04f 100644 --- a/markdown/resume.md +++ b/markdown/resume.md @@ -94,6 +94,10 @@ Extra Section, Call it Whatever You Want * Other sort of impressive-sounding thing you did +Simple: \fa{github} + +As a link: [\fa{linkedin}](https://www.linkedin.com/in/your_linkedin_user_id/) + ---- > • +00 (0)00 000 0000 • XX years old\ diff --git a/styles/chmduquesne.tex b/styles/chmduquesne.tex index 5f032ce5..2203a14e 100644 --- a/styles/chmduquesne.tex +++ b/styles/chmduquesne.tex @@ -6,6 +6,9 @@ % This CSS document is delivered to you under the CC BY-SA 3.0 License. % https://creativecommons.org/licenses/by-sa/3.0/deed.en_US +\usesymbols[fontawesome] +\def\fa#1{\symbol[fontawesome][#1]} + \startmode[*mkii] \enableregime[utf-8] \setupcolors[state=start]