summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lstfiracode
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-12-17 21:31:58 +0000
committerKarl Berry <karl@freefriends.org>2018-12-17 21:31:58 +0000
commitb3d70195571fd3e8127732f8d3d59f47e2805b8f (patch)
treed1b0ccb78f9f004a8846c9e227428b8b4cf6b40b /Master/texmf-dist/tex/latex/lstfiracode
parent255b2da802e19c1dae20b2d8fd1a050e0616b845 (diff)
lstfiracode (17dec18)
git-svn-id: svn://tug.org/texlive/trunk@49440 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lstfiracode')
-rw-r--r--Master/texmf-dist/tex/latex/lstfiracode/lstfiracode.sty212
1 files changed, 212 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lstfiracode/lstfiracode.sty b/Master/texmf-dist/tex/latex/lstfiracode/lstfiracode.sty
new file mode 100644
index 00000000000..f1119d733a7
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/lstfiracode/lstfiracode.sty
@@ -0,0 +1,212 @@
+%
+% Copyright (C) 2018 by Ruixi Zhang <ruixizhang42@gmail.com>
+%
+% 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
+% and the derived file lstfiracode.pdf.
+%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{lstfiracode}[%
+ 2018/12/16 v0.1a LaTeX listings support for Fira Code]
+
+\RequirePackage{kvoptions}
+\RequirePackage{listings}
+
+\DeclareBoolOption[false]{verbatim}
+\DeclareDefaultOption{%
+ \PackageError{\@currname}{%
+ Unknown option `\CurrentOption'%
+ }{%
+ Available package options are:\MessageBreak
+ \space\space`verbatim=true' and\MessageBreak
+ \space\space`verbatim=false'%
+ }%
+}
+\ProcessKeyvalOptions*
+
+\let\lstfiracode@verbatim@nolig@list\verbatim@nolig@list
+\newcommand*\ActivateVerbatimLigatures{%
+ \renewcommand*\verbatim@nolig@list{}%
+}
+\newcommand*\DeactivateVerbatimLigatures{%
+ \renewcommand*\verbatim@nolig@list{\lstfiracode@verbatim@nolig@list}%
+}
+
+\iflstfiracode@verbatim
+ \ActivateVerbatimLigatures
+\fi
+
+\def\lstfiracode@lst@Literatekey#1\@nil@{%
+ \let\lst@ifxliterate\lst@if
+ \expandafter\def\expandafter\lst@literate\expandafter{\lst@literate#1}%
+}
+\lst@Key{moreliterate}{}{%
+ \@ifstar{\lst@true \lstfiracode@lst@Literatekey}
+ {\lst@false\lstfiracode@lst@Literatekey}#1\@nil@
+}
+
+\lstdefinestyle{FiraCodeStyle}{
+ basewidth=0.6em,
+ literate=
+ {www}{{www}}3
+ {**}{{**}}2
+ {***}{{***}}3
+ {**/}{{**/}}3
+ {*>}{{*>}}2
+% {*/}{{*/}}2
+ {\\\\}{{\textbackslash\textbackslash}}2
+ {\\\\\\}{{\textbackslash\textbackslash\textbackslash}}3
+% {\{-}{{\{-}}2
+ {[]}{{[]}}2
+ {::}{{::}}2
+ {:::}{{:::}}3
+ {:=}{{:=}}2
+ {!!}{{!!}}2
+ {!!!}{{!!!}}3
+ {!=}{{!=}}2
+ {!==}{{!==}}3
+% {-\}}{{-\}}}2
+ {--}{{--}}2
+ {---}{{---}}3
+ {-->}{{-->}}3
+ {->}{{->}}2
+ {->>}{{->>}}3
+ {-<}{{-<}}2
+ {-<<}{{-<<}}3
+ {-~}{{-\textasciitilde}}2
+ {\#\{}{{\#\{}}2
+ {\#[}{{\#[}}2
+ {\#\#}{{\#\#}}2
+ {\#\#\#}{{\#\#\#}}3
+ {\#\#\#\#}{{\#\#\#\#}}4
+ {\#(}{{\#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3
+ {<~}{{<\textasciitilde}}2
+ {<~~}{{<\textasciitilde\textasciitilde}}3
+ {</}{{</}}2
+ {~@}{{\textasciitilde @}}2
+ {~-}{{\textasciitilde-}}2
+ {~=}{{\textasciitilde=}}2
+ {~>}{{\textasciitilde>}}2
+ {~~}{{\textasciitilde\textasciitilde}}2
+ {~~>}{{\textasciitilde\textasciitilde>}}3
+ {~~~}{{\textasciitilde\textasciitilde\textasciitilde}}3
+ {\%\%}{{\%\%}}2
+ {\%\%\%}{{\%\%\%}}3
+ {<==>}{{<==>}}4
+ {<||}{{<||}}3
+ {<|||}{{<|||}}4
+ {|||>}{{|||>}}4
+ {</>}{{</>}}3
+ {<~>}{{<\textasciitilde>}}3
+ {<-<}{{<-<}}3
+ {>->}{{>->}}3
+ {=!=}{{=!=}}3
+ {+++}{{+++}}3
+ {||>}{{||>}}3
+ {_|_}{{\_|\_}}3
+ {..=}{{..=}}3
+ {!!.}{{!!.}}3
+ {::=}{{::=}}3
+ {<:}{{<:}}2
+ {>:}{{>:}}2
+ {|-}{{|-}}2
+ {|]}{{|]}}2
+ {|\}}{{|\}}}2
+ {__}{{\_\_}}2
+ {?.}{{?.}}2
+ {?:}{{?:}}2
+ {.?}{{.?}}2
+ {\#=}{{\#=}}2
+ {\#!}{{\#!}}2
+ {\#:}{{\#:}}2
+ {-|}{{-|}}2
+ {:<}{{:<}}2
+ {:>}{{:>}}2
+ {]\#}{{]\#}}2
+ {[|}{{[|}}2
+ {\{|}{{\{|}}2
+}
+
+\endinput