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 capability #57

Open
nitrocode opened this issue Sep 16, 2019 · 2 comments
Open

Add FontAwesome capability #57

nitrocode opened this issue Sep 16, 2019 · 2 comments

Comments

@nitrocode
Copy link
Contributor

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
Copy link
Owner

mszep commented Sep 20, 2019

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.

@cblegare
Copy link

cblegare commented May 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants