LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Sunday, Jul 20, 2025 and last modified on Sunday, Jul 20, 2025

Font Awesome

François Chaplais LaTeX2Web

Font awesome is a web resource that provides icons that can be used in a web page.

1 The Font Awesome web site

Before embedding a Font Awesome icon in your document, you must know which icon to use. To view the available icons, got to the Font Awesome website. LaTeX2Web supports icons up to version 6.

2 Icon syntax

The HTML code for the icon is the following:

<i class="fa-duotone fa-solid fa-browser"></i>

It has three parameters.

  • browser is the icon name.
  • solid is the icon style
  • duotone is the style family

3 LaTeX2Web syntax

The syntax for creating a Font Font Awesome icon is

\fa{name}[icon style][style family]

which correspond to the parameters described in the previous section.

The default value for icon style is solid. \fa{browser} yields . There are four possible values for the icon style parameter.

  • solid yields
  • regular yields
  • light yields
  • thin yields

The second optional parameter style family holds only if the icon style is provided. Its default value is classic. There are four possible values for the style family parameter. In the examples below, we use the solid icon style.

  • classic yields
  • duotone yields
  • sharp yields
  • sharp-duotone yields

4 Font awesome icons in lists

You can use Font Awesome icons to start your list items. Here is an example with the code below. In lists, the regular icon style is applied.

  • a check mark (checked)
  • a check mark (un-checked)
  • a Jedi icon

Here is the code.

\begin{itemize}
\item[fa-square-check] a check mark (checked)
\item[fa-square] a check mark (un-checked)
\item[fa-jedi] a Jedi icon
\end{itemize}

We use the fa prefix to indicate to LaTeX2Web that we wish to use a font awesome icon instead of generic text.

Final note: LaTeX2Web does NOT support the fontawesome package because its syntax is limited to a set of pre-defined icons and is very complicated to use.