The lstfiracode
package defines FiraCodeStyle
, to be used as
\lstset{style=FiraCodeStyle}
with the listings
package. This style contains almost all ligatures in Nikita Prokopov’s
Fira Code family of fonts.
A new key moreliterate
to \lstset
is added, allowing additional user ligatures.
Additional support for using Fira Code in the verbatim
environment is available.
This package does not provide the Fira Code font files. The newest version of the fonts can be downloaded at the GitHub Fira Code Releases page. Here is a sample preamble of a document:
\documentclass{article}
\usepackage{fontspec}
\setmonofont{FiraCode-Regular.otf}[Contextuals=Alternate]
\usepackage{listings}
\usepackage[verbatim]{lstfiracode}
\lstset{style=FiraCodeStyle,basicstyle=\ttfamily}
This package is maintained at https://github.com/RuixiZhang42/lstfiracode
Issues and pull requests are welcome.
Copyright (C) 2018, 2019 by Ruixi Zhang <[email protected]>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3c
of this license or (at your option) any later version.
The latest version of this license is in
https://www.latex-project.org/lppl.txt
and version 1.3c or later is part of all distributions of LaTeX
version 2005/12/01 or later.
This work has the LPPL maintenance status `maintained'.
The Current Maintainer of this work is Ruixi Zhang.
This work consists of the files lstfiracode.sty,
lstfiracode.tex,
README.md (this file)
and the derived file lstfiracode.pdf.