I'm looking at this CTAN Package. I don't think it's a part of texlive 2016 which is what overleaf uses.
This means I have to upload files manually to my overleaf project so that I could include them. I downloaded the zip folder available on package, unzipped it and uploaded it to my project with exactly the same directory structure
Next I used the latexmkrc file to configure latex to search the .sty
files in the uploaded folder as suggested on their documentation page
This is what my file looks like:
$ENV{'TEXINPUTS'}='./fontawesome5///:' . $ENV{'TEXINPUTS'};
Now my latex file compiles, but the icons like \faGithub
don't render.
My usecase is that I want to use some of the new icons which are present in fontawesome5 but not in fontawesome4.
Note that when I use the package fontawesome
then thing are working.
Best Answer
The line
tells TeX where to look for the TeX files in the package, but not where to find the actual font.
To access the font with pdfTeX, TeX needs to know where to find some additional kinds of files:
tfm
) The ENV variable isTFMFONTS
enc
) The ENV variable isENCFONTS
type1
) The ENV variable isT1FONTS
map
) The ENV variable isTEXFONTMAPS
Additionally TeX needs to know that it has to load the font map from
fontawesome5
.So you need to add
in the preable of your document and write
in your
latexmkrc
.