mszep/pandoc_resume

Add FontAwesome capability

Opened this issue · 2 comments

Expected Behavior

Use fontawesome for icons such as Github and Stackoverflow icons

Actual Behavior

Doesn't work. I can get it to work in HTML but not in the PDF by including the following in the markdown

<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js"></script>

[*[]{.fab .fa-github}* Github](http://github.com/nitrocode)

Steps to reproduce the behavior

Versions

On Ubuntu 18.04 and using the following versions

$ context --version | head -2 | tail -1 | awk '{ print $NF; }'
1.01
$ pandoc --version | head -1
pandoc 2.2.1

This stackexchange post is relevant but unsure on how to get this to work from Markdown

mszep commented

ConTeXt has a different system for using fonts, as far as I know they need to be installed on the system for ConTeXt to be able to use them. I don't think they can be downloaded on the fly, as you have done for HTML.

Let's keep this issue open, but I don't see a solution right now.

Once installed on your system, here is a TeX snippet to make it easy to user fontawesome from markdown.

In your style file (say chmduquesne.tex)

\usesymbols[fontawesome]

\def\fa#1{\symbol[fontawesome][#1]}

in your markdown content

Simple: \fa{github}

As a link: [\fa{linkedin}](https://www.linkedin.com/in/your_linkedin_user_id/)

Result from a PDF

image