diff options
author | Karl Berry <karl@freefriends.org> | 2019-02-24 22:54:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-02-24 22:54:37 +0000 |
commit | 01ce171ea65540f0bb89b3cfb83ea45dd7d1235a (patch) | |
tree | cdc736435f2179972b4ebc234f4c562cc652ea2d /Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty | |
parent | ef1c4700cc5221b54ed47f9db8fc87201ba87d4e (diff) |
lwarp (24feb19)
git-svn-id: svn://tug.org/texlive/trunk@50118 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty new file mode 100644 index 00000000000..b151b68ad50 --- /dev/null +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty @@ -0,0 +1,81 @@ +%% +%% This is file `lwarp-fontawesome.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% lwarp.dtx (with options: `fontawesome') +%% This is a generated file. +%% Copyright 2016-2018 Brian Dunn +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +\LWR@ProvidesPackagePass{fontawesome}[2016/05/15] +\LetLtxMacro\LWR@orig@symbol\symbol + +\ifxetexorluatex + +\newfontfamily{\LWR@orig@FA}{FontAwesome} + +\newcommand*{\LWR@fontawesome@xelatex@symbol}[1]{% +\begin{lateximage}*[(icon)][fontawesomexetex#1]% +\begingroup% +\LWR@orig@FA% +\LWR@orig@symbol{#1}% +\endgroup% +\end{lateximage}% +} + +\RenewDocumentCommand{\FA}{}{% + \LetLtxMacro\symbol\LWR@fontawesome@xelatex@symbol% +} + +\else + +\newcommand*{\LWR@fontawesome@symbolone}[1]{% +\begin{lateximage}*[(icon #1)][fontawesomeone#1]% +\begingroup% +\fontencoding{U}\fontfamily{fontawesomeone}\selectfont% +\LWR@orig@symbol{#1}% +\endgroup% +\end{lateximage}% +} + +\newcommand*{\LWR@fontawesome@symboltwo}[1]{% +\begin{lateximage}*[(icon #1)][fontawesometwo#1]% +\begingroup% +\fontencoding{U}\fontfamily{fontawesometwo}\selectfont% +\LWR@orig@symbol{#1}% +\endgroup% +\end{lateximage}% +} + +\newcommand*{\LWR@fontawesome@symbolthree}[1]{% +\begin{lateximage}*[(icon #1)][fontawesomethree#1]% +\begingroup% +\fontencoding{U}\fontfamily{fontawesomeonethree}\selectfont% +\LWR@orig@symbol{#1}% +\endgroup% +\end{lateximage}% +} + +\renewrobustcmd\FAone{% + \LetLtxMacro\symbol\LWR@fontawesome@symbolone% +} + +\renewrobustcmd\FAtwo{% + \LetLtxMacro\symbol\LWR@fontawesome@symboltwo% +} + +\renewrobustcmd\FAthree{% + \LetLtxMacro\symbol\LWR@fontawesome@symbolthree% +} +\fi +\endinput +%% +%% End of file `lwarp-fontawesome.sty'. |