Original project is furl's latex-fontawesome. I edited this project to use latest FontAwesome icons in XeLaTeX.
The current version of FontAwesome icons used is 5.0.2.
- You must have the FontAwesome font on your machine (download from here).
- You must be using XeLaTeX and have the
fontspecpackage installed. - You can use this package with the free and the pro fonts.
- For using the pro features, you need to buy Font Awesome Pro.
- Download the
fontawesome6.styfile and put it in the same directory as the LaTeX file using the icons. - Exctract the
.otffiles (use-on-desktopdirectory inside the downloaded zip) into the font directory in the same directory as the LaTeX file using the icons. - Include the package as normal (in the preamble of the
.texfile, add the line\usepackage{fontawesome6}). - Use an icon by typing
\faicon{address-book}. Other icons thanaddress-bookcan be found on the fontawesome website.
Free version
\usepackage{fontawesome6}
\faicon{font-awesome}
Normal: \faicon{address-book}
Bold: \textbf{\faicon{address-book}}$ xelatex example-free.texPro version
\usepackage[pro]{fontawesome6}
\faicon{font-awesome}
Normal: \faicon{alarm-clock}
Bold: \textbf{\faicon{alarm-clock}}
Italic: \textit{\faicon{alarm-clock}}$ xelatex example-pro.tex- You need python to create
fontawesome6.styfrom scratch. - Download FontAwesome from [here](https://fontawesome.com/ and exctact the zip file into
fontawesomenext to thecreate_sty.pyfile.
$ python create_sty.pyThis should result in the creation of latest fontawesome6.sty
You are free to modify it. If you have any questions, feel free to join me.
Good luck!