-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
Feature Request: Font-Awesome Icons in Rmarkdown Docs #813
Comments
font-awesome is actually now included in the rmarkdown package (we use it for icons on the navbar for R Markdown websites). You can currently force it to be included in the document with the following code:
But of course we should make this much more straightforward! |
This solution doesn't seem to be working correctly. Did I misunderstand your suggestion, @jjallaire ?
|
My solution is intended to allow you to add font awesome classes directly to e.g.
|
Got it – thanks for the clarification! |
This can also be used with bookdown html based documents. To accomplish I include the chunk below. The
Bests. |
@walmes Interesting. fontawesome-webfont.ttf is included in bookdown: https://github.com/rstudio/bookdown/tree/master/inst/resources/gitbook/css/fontawesome So in theory, you don't need to add it in the HTML dependency. |
Worked for me in bookdown exactly as @jjallaire and @yihui stated, without attaching the |
Here is a workaround if you do not want the 5Mb added by (rmarkdown::html_dependency_font_awesome()). In yaml:
setup chunk: (get url of .js in https://fontawesome.com/v4.7.0/get-started/ )
works great for fontawesome 4. For 5, you need to register one .js for each project |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I've noticed that it's currently quite complicated to insert font-awesome icons in Rmarkdown documents.
Could this be made easier somehow? It's so straight-forward in
shiny
...Thanks!
The text was updated successfully, but these errors were encountered: