| 1 |
\documentclass{scrartcl} |
| 2 |
\usepackage{hyperref} |
| 3 |
\usepackage{shortvrb} |
| 4 |
\usepackage{metalogo} |
| 5 |
\usepackage{longtable} |
| 6 |
\usepackage{fontawesome5} |
| 7 |
% \usepackage{xcolor} |
| 8 |
% \usepackage[pro]{fontawesome5} |
| 9 |
% \faStyle{duotone} |
| 10 |
\usepackage[utf8]{inputenc} |
| 11 |
\usepackage{geometry} |
| 12 |
\MakeShortVerb{\|} |
| 13 |
\begin{document} |
| 14 |
\title{The fontawesome5 package\thanks{This document corresponds to fontawesome5 version 5.15.4, dated 2022/05/02}} |
| 15 |
\author{Font Awesome\thanks{More information at \url{https://fontawesome.com}} (The font)\and Marcel Krüger\thanks{E-Mail: \href{mailto:[email protected]}{\nolinkurl{[email protected]}}} (The \LaTeX{} package)} |
| 16 |
\maketitle |
| 17 |
This package provides \LaTeX{} support for the Font Awesome 5 icons. |
| 18 |
|
| 19 |
To use Font Awesome 5 icons in your document, include the package with |
| 20 |
\begin{verbatim} |
| 21 |
\usepackage{fontawesome5} |
| 22 |
\end{verbatim} |
| 23 |
Alternatively you can add the |fixed| option to get fixed-width icons: |
| 24 |
\begin{verbatim} |
| 25 |
\usepackage[fixed]{fontawesome5} |
| 26 |
\end{verbatim} |
| 27 |
For every icon a macro is provided: Just use the official icon names converted to CamelCase with the prefix |\fa|. |
| 28 |
For example to use the |hand-point-up| icon, use |\faHandPointUp|. |
| 29 |
For icons ending with |-alt|, append a |*| instead. |
| 30 |
An optional argument can be added to select the style (|solid| or |regular|). |
| 31 |
The default style is |solid|, it can be changed with |\faStyle{...}| |
| 32 |
|
| 33 |
Every icon can also be accessed using the official icon name. To do this, you can use |\faIcon{the-icon-name}| or |\faIcon[style]{the-icon-name}|. |
| 34 |
|
| 35 |
A list of all included icons with their respective commands can be found at the end of this document. |
| 36 |
|
| 37 |
\subsection*{Example} |
| 38 |
\begin{verbatim} |
| 39 |
... |
| 40 |
\usepackage{fontawesome5} |
| 41 |
... |
| 42 |
\begin{document} |
| 43 |
... |
| 44 |
A simple icon: \faHandPointUp\\ |
| 45 |
Multiple versions of the file icon: |
| 46 |
\faFile~ |
| 47 |
\faFile*~ |
| 48 |
\faFile[regular]~ |
| 49 |
\faFile*[regular].\\ |
| 50 |
Alternative syntax: |
| 51 |
\faIcon{file}~ |
| 52 |
\faIcon*{file}~ |
| 53 |
\faIcon[regular]{file}~ |
| 54 |
\faIcon*[regular]{file}. |
| 55 |
... |
| 56 |
\end{document} |
| 57 |
\end{verbatim} |
| 58 |
|
| 59 |
A simple icon: \faHandPointUp\\ |
| 60 |
Multiple versions of the file icon: \faFile~\faFile*~\faFile[regular]~\faFile*[regular].\\ |
| 61 |
Alternative syntax: \faIcon{file}~\faIcon*{file}~\faIcon[regular]{file}~\faIcon*[regular]{file}. |
| 62 |
|
| 63 |
\subsection*{Font Awesome Pro} |
| 64 |
Font Awesome 5 is available in a Free and a Pro version. |
| 65 |
This package uses the free version by default. |
| 66 |
If you own a Pro license and have the Font Awesome 5 Pro desktop fonts installed in your system font path, you can use Pro instead. |
| 67 |
For this, load the package with the |[pro]| option: |
| 68 |
\begin{verbatim} |
| 69 |
\usepackage[pro]{fontawesome5} |
| 70 |
\end{verbatim} |
| 71 |
Now additional icons, the |duotone| and the |light| style can be used. |
| 72 |
The second color for |duotone| icons can be set though |\faDuotoneSetSecondary|: |
| 73 |
\begin{verbatim} |
| 74 |
\faDuotoneSetSecondary{green}% From here on, the secondary layer |
| 75 |
% will be green. |
| 76 |
\end{verbatim} |
| 77 |
Pro is only supported with \XeLaTeX{} and \LuaLaTeX. |
| 78 |
|
| 79 |
\subsection*{Updates} |
| 80 |
This package corresponds to Font Awesome 5.15.4. |
| 81 |
In case there is a newer version available on the Font Awesome homepage, check for updates on \url{https://ctan.org/pkg/fontawesome5}. Should there be no corresponding update on CTAN, you can write a mail to \href{mailto:[email protected]}{\nolinkurl{[email protected]}}. |
| 82 |
If you use \XeLaTeX{} or \LuaLaTeX{}, you can also directly download the new Desktop Fonts from \url{https://fontawesome.com} into your \TeX{} tree. If you save them with the filenames\\ |
| 83 |
{\ttfamily\begin{tabular}{l} |
| 84 |
FontAwesome5Brands-Regular-400.otf\\ |
| 85 |
FontAwesome5Free-Regular-400.otf\\ |
| 86 |
FontAwesome5Free-Solid-900.otf |
| 87 |
\end{tabular}}\\ |
| 88 |
the package will start using the new version right away. |
| 89 |
|
| 90 |
\subsection*{Bugs} |
| 91 |
For bug reports and feature requests, write to \href{mailto:[email protected]}{\nolinkurl{[email protected]}}. |
| 92 |
|
| 93 |
\input{fulllist} |
| 94 |
\end{document} |