| 1 |
\documentclass{scrartcl} |
| 2 |
\usepackage{hyperref} |
| 3 |
\usepackage{shortvrb} |
| 4 |
\usepackage{metalogo} |
| 5 |
\usepackage{longtable} |
| 6 |
\usepackage{fontawesome6} |
| 7 |
% \usepackage{xcolor} |
| 8 |
% \usepackage[pro]{fontawesome6} |
| 9 |
% \faStyle{duotone-solid} |
| 10 |
\usepackage[utf8]{inputenc} |
| 11 |
\usepackage{geometry} |
| 12 |
\MakeShortVerb{\|} |
| 13 |
\usepackage[english]{babel} |
| 14 |
\begin{document} |
| 15 |
\title{The \texttt{fontawesome6} Package\thanks{This document corresponds to fontawesome6 version 6.7.2-3, dated 2025/09/16.}} |
| 16 |
\author{Font Awesome\thanks{More information at \url{https://fontawesome.com}} (The font)\and Daniel Nagel\thanks{GitHub: \href{https://github.com/braniii}{github.com/braniii}} (The \LaTeX{} package)} |
| 17 |
\maketitle |
| 18 |
|
| 19 |
This package provides \LaTeX{} support for Font Awesome 6 icons. |
| 20 |
|
| 21 |
Special thanks to Marcel Krüger for the original \texttt{fontawesome5} package\\ |
| 22 |
(\url{https://ctan.org/pkg/fontawesome5}), upon which this package is based. |
| 23 |
|
| 24 |
\subsection*{Usage} |
| 25 |
|
| 26 |
To use Font Awesome 6 icons in your document, load the package with: |
| 27 |
\begin{verbatim} |
| 28 |
\usepackage{fontawesome6} |
| 29 |
\end{verbatim} |
| 30 |
Optionally, you can add the |fixed| option to enable fixed-width icons: |
| 31 |
\begin{verbatim} |
| 32 |
\usepackage[fixed]{fontawesome6} |
| 33 |
\end{verbatim} |
| 34 |
|
| 35 |
Each icon is available as a macro, using the official icon name in CamelCase with the prefix |\fa|.\\ |
| 36 |
For example, to use the |hand-point-up| icon, write |\faHandPointUp|.\\ |
| 37 |
An optional argument allows you to select the style (|solid| or |regular|). The |
| 38 |
default style is |solid|, but you can change it globally with |\faStyle{...}| or |
| 39 |
by setting the option |style=...|. |
| 40 |
|
| 41 |
Alternatively, you can access any icon by its official name using |\faIcon{icon-name}| or |\faIcon[style]{icon-name}|. |
| 42 |
|
| 43 |
A comprehensive list of all included icons and their corresponding commands is provided at the end of this document. |
| 44 |
|
| 45 |
\subsection*{Example} |
| 46 |
\begin{verbatim} |
| 47 |
... |
| 48 |
\usepackage{fontawesome6} |
| 49 |
... |
| 50 |
\begin{document} |
| 51 |
... |
| 52 |
A simple icon: \faHandPointUp\\ |
| 53 |
Multiple versions of the file icon: |
| 54 |
\faFile~ |
| 55 |
\faFile[solid]~ |
| 56 |
\faFile[regular]~.\\ |
| 57 |
Alternative syntax: |
| 58 |
\faIcon{file}~ |
| 59 |
\faIcon[solid]{file}~ |
| 60 |
\faIcon[regular]{file}~. |
| 61 |
... |
| 62 |
\end{document} |
| 63 |
\end{verbatim} |
| 64 |
|
| 65 |
A simple icon: \faHandPointUp\\ |
| 66 |
Multiple versions of the file icon: \faFile~\faFile[solid]~\faFile[regular].\\ |
| 67 |
Alternative syntax: \faIcon{file}~\faIcon[solid]{file}~\faIcon[regular]{file}. |
| 68 |
|
| 69 |
\subsection*{Font Awesome Pro} |
| 70 |
Font Awesome 6 is available in both Free and Pro versions. By default, this package uses the Free version. If you have a Pro license and have installed the Font Awesome 6 Pro desktop fonts in your system font path, you can enable Pro support by loading the package with the |[pro]| option: |
| 71 |
\begin{verbatim} |
| 72 |
\usepackage[pro]{fontawesome6} |
| 73 |
\end{verbatim} |
| 74 |
|
| 75 |
With Pro enabled, the following additional styles are available: |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|, and |sharp-duotone-thin|. |
| 76 |
|
| 77 |
For duotone icons, you can set the secondary color using |\faDuotoneSetSecondary|: |
| 78 |
\begin{verbatim} |
| 79 |
% Remember to load xcolor |
| 80 |
% Set secondary color to green |
| 81 |
\faDuotoneSetSecondary{\color{green}} |
| 82 |
\end{verbatim} |
| 83 |
Pro features are supported only with \XeLaTeX{} and \LuaLaTeX. |
| 84 |
|
| 85 |
\subsection*{Updates} |
| 86 |
This package corresponds to Font Awesome 6.7.2.\\ |
| 87 |
If a newer version is available on the Font Awesome website, check for updates at \url{https://ctan.org/pkg/fontawesome6}. If the latest version is not yet on CTAN, you may contact \href{mailto:[email protected]}{\nolinkurl{[email protected]}}. |
| 88 |
|
| 89 |
If you use \XeLaTeX{} or \LuaLaTeX{}, you can also manually download the new Desktop Fonts from \url{https://fontawesome.com} and place them in your \TeX{} tree. Save them with the following filenames: |
| 90 |
{\ttfamily |
| 91 |
\begin{tabular}{l} |
| 92 |
FontAwesome6Brands-Regular-400.otf\\ |
| 93 |
FontAwesome6Free-Regular-400.otf\\ |
| 94 |
FontAwesome6Free-Solid-900.otf |
| 95 |
\end{tabular} |
| 96 |
}\\ |
| 97 |
The package will then automatically use the new version. |
| 98 |
|
| 99 |
\subsection*{Bugs and Feedback} |
| 100 |
For bug reports or feature requests, please open an issue at \href{https://github.com/braniii/fontawesome}{github.com/braniii/fontawesome}. |
| 101 |
|
| 102 |
\input{fa6_fulllist} |
| 103 |
\end{document} |