Pagedown: How to use academic icons?

Created on 1 Apr 2019  路  2Comments  路  Source: rstudio/pagedown

Hello,

Is it possible to incorporate academicons (https://jpswalsh.github.io/academicons/) into a pagedown CV? If so, how?

Thanks.

question

Most helpful comment

As in any R Markdown HTML format, it is possible to use academicons. I see two solutions, pick the one you prefer.

Use the CSS served by RawGit

As stated in the academicons documentation, you can use the RawGit service to refer to its CSS (you need an internet connexion). You need to modify your YAML header as follows:

---
title: "Lijia Yu's resume"
author: Lijia Yu
date: "`r Sys.Date()`"
output:
  pagedown::html_resume:
    self_contained: false
    css:
    - resume
    - https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css
---

Then, you can use academicons in your document, for instance:

<i class="ai ai-google-scholar-square"></i>

Use the ropenscilabs/icon package

If you need an offline solution, you can install the development version of ropenscilabs/icon.
Therefore, you can insert an academicons icon with:

`r icon::ai("academia")`

All 2 comments

As in any R Markdown HTML format, it is possible to use academicons. I see two solutions, pick the one you prefer.

Use the CSS served by RawGit

As stated in the academicons documentation, you can use the RawGit service to refer to its CSS (you need an internet connexion). You need to modify your YAML header as follows:

---
title: "Lijia Yu's resume"
author: Lijia Yu
date: "`r Sys.Date()`"
output:
  pagedown::html_resume:
    self_contained: false
    css:
    - resume
    - https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css
---

Then, you can use academicons in your document, for instance:

<i class="ai ai-google-scholar-square"></i>

Use the ropenscilabs/icon package

If you need an offline solution, you can install the development version of ropenscilabs/icon.
Therefore, you can insert an academicons icon with:

`r icon::ai("academia")`

Fantastic, both work well for me. I appreciate the quick response, thank you.

Was this page helpful?
0 / 5 - 0 ratings