Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FontAwesome support and usage instructions #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions markdown/resume.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

----

> <[email protected]> • +00 (0)00 000 0000 • XX years old\
Expand Down
3 changes: 3 additions & 0 deletions styles/chmduquesne.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down