Debian Codegraph @

texmf-dist/doc/fonts/fontawesome7/fontawesome7.tex

raw
1 \documentclass{scrartcl}
2 \usepackage{hyperref}
3 \usepackage{shortvrb}
4 \usepackage{metalogo}
5 \usepackage{longtable}
6 \usepackage{fontawesome7}
7 % \usepackage{xcolor}
8 % \usepackage[pro]{fontawesome7}
9 % \faStyle{duotone-solid}
10 \usepackage[utf8]{inputenc}
11 \usepackage{geometry}
12 \MakeShortVerb{\|}
13 \usepackage[english]{babel}
14 \begin{document}
15 \title{The \texttt{fontawesome7} Package\thanks{This document corresponds to fontawesome7 version 7.1.0-1, dated 2025/11/02.}}
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 7 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 7 icons in your document, load the package with:
27 \begin{verbatim}
28 \usepackage{fontawesome7}
29 \end{verbatim}
30 Optionally, you can add the |fixed| option to enable fixed-width icons:
31 \begin{verbatim}
32 \usepackage[fixed]{fontawesome7}
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{fontawesome7}
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 \textbf{Since the maintainer does not have access to FA Pro, the following features might all be broken!}
71
72 Font Awesome 7 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 7 Pro desktop fonts in your system font path, you can enable Pro support by loading the package with the |[pro]| option:
73 \begin{verbatim}
74 \usepackage[pro]{fontawesome7}
75 \end{verbatim}
76
77 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|.
78
79 For duotone icons, you can set the secondary color using |\faDuotoneSetSecondary|:
80 \begin{verbatim}
81 % Remember to load xcolor
82 % Set secondary color to green
83 \faDuotoneSetSecondary{\color{green}}
84 \end{verbatim}
85 Pro features are supported only with \XeLaTeX{} and \LuaLaTeX.
86
87 \subsection*{Updates}
88 This package corresponds to Font Awesome 7.0.0.\\
89 If a newer version is available on the Font Awesome website, check for updates at \url{https://ctan.org/pkg/fontawesome7}. If the latest version is not yet on CTAN, you may contact \href{mailto:[email protected]}{\nolinkurl{[email protected]}}.
90
91 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:
92 {\ttfamily
93 \begin{tabular}{l}
94 FontAwesome7Brands-Regular-400.otf\\
95 FontAwesome7Free-Regular-400.otf\\
96 FontAwesome7Free-Solid-900.otf
97 \end{tabular}
98 }\\
99 The package will then automatically use the new version.
100
101 \subsection*{Bugs and Feedback}
102 For bug reports or feature requests, please open an issue at \href{https://github.com/braniii/fontawesome}{github.com/braniii/fontawesome}.
103
104 \input{fa7_fulllist}
105 \end{document}