For using FontAwesome6, please see the
fa6
branch
FontAwesome7 is a LaTeX package that provides access to the Font Awesome 7 icon set. It enables you to easily include high-quality icons in your LaTeX documents, presentations, and posters.
- Access to hundreds of Font Awesome 7 icons
- Supports both regular and solid styles
- Easy-to-use commands for inserting icons
- Works with PDFLaTeX, XeLaTeX, and LuaLaTeX
- Compatible with all styles of Pro version (requires a paid license)
The package is available on CTAN. You can install it using your TeX distribution:
- TeX Live:
tlmgr install fontawesome7
- MiKTeX:
mpm --install fontawesome7
Alternatively, copy the package files to your local texmf tree like this. It should be noted, that this script should only be used if you know what you are doing!
bash ./local_install.sh
Add the following to your document preamble:
\usepackage{fontawesome7}
% or directly setting the global style
\usepackage[style=solid|regular]{fontawesome7}
% or with
\faStyle{solid|regular}
Then, you can use the following commands to insert icons:
\faIcon{github}
% or
\faGithub
You can also specify styles:
\faIcon[regular]{address-book}
\faCamera[solid]
To use the Pro version, ensure you have the Font Awesome Pro fonts installed and use XeLaTeX or LuaLaTeX. The commands remain the same, but you can access additional icons.
\usepackage[pro, style=solid|regular|light|thin|duotone-solid|duotone-regular|duotone-light|duotone-thin|sharp-solid|sharp-regular|sharp-light|sharp-thin|sharp-duotone-solid|sharp-duotone-regular|sharp-duotone-light|sharp-duotone-thin]{fontawesome7}
Then, use the same commands as above to insert icons. For duotone icons, you can set the secondary color:
% Remember to load xcolor
% Set secondary color to green
\faDuotoneSetSecondary{\color{green}}
For a full list of available icons and their names, see the package documentation or the Font Awesome icon gallery.
A cheatsheet for the \faIcon
syntax can be found here and for the command syntax, e.g. faGithub
here.
\documentclass{article}
\usepackage{fontawesome7}
\begin{document}
\faGithub \quad
\fauser \quad
\faAddressBook
\end{document}
Special thanks to Marcel Krüger for creating the original fontawesome5 package, which served as the foundation for this package.
Comprehensive documentation is available in doc/fontawesome7.pdf
.
This package is distributed under the LaTeX Project Public License (LPPL).
FontAwesome7 is not affiliated with or endorsed by Fonticons, Inc.