| 1 |
%% |
| 2 |
%% This is file `lwarp-fontawesome.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `fontawesome') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
\LWR@ProvidesPackagePass{fontawesome}[2016/05/15] |
| 19 |
\LetLtxMacro\LWR@orig@symbol\symbol |
| 20 |
|
| 21 |
\ifxetexorluatex |
| 22 |
|
| 23 |
\newfontfamily{\LWR@orig@FA}{FontAwesome} |
| 24 |
|
| 25 |
\newcommand*{\LWR@fontawesome@xelatex@symbol}[1]{% |
| 26 |
\LWR@findcurrenttextcolor% |
| 27 |
\begin{lateximage}*[icon]% |
| 28 |
[fontawesomexetex#1SZ\LWR@font@size{}CL\LWR@tempcolor]% |
| 29 |
\csuse{\LWR@font@size}% |
| 30 |
\LWR@orig@FA% |
| 31 |
\LWR@orig@symbol{#1}% |
| 32 |
\end{lateximage}% |
| 33 |
} |
| 34 |
|
| 35 |
\RenewDocumentCommand{\FA}{}{% |
| 36 |
\LetLtxMacro\symbol\LWR@fontawesome@xelatex@symbol% |
| 37 |
} |
| 38 |
|
| 39 |
\else |
| 40 |
|
| 41 |
\newcommand*{\LWR@fontawesome@symbolX}[2]{% |
| 42 |
\LWR@findcurrenttextcolor% |
| 43 |
\begin{lateximage}*[icon #1]?% |
| 44 |
[fontawesome#2#1SZ\LWR@font@size{}CL\LWR@tempcolor]% |
| 45 |
\csuse{\LWR@font@size}% |
| 46 |
\fontencoding{U}\fontfamily{fontawesome#2}\selectfont% |
| 47 |
\LWR@orig@symbol{#1}% |
| 48 |
\end{lateximage}% |
| 49 |
} |
| 50 |
|
| 51 |
\newcommand*{\LWR@fontawesome@symbolone}[1]{% |
| 52 |
\LWR@fontawesome@symbolX{#1}{one}% |
| 53 |
} |
| 54 |
|
| 55 |
\newcommand*{\LWR@fontawesome@symboltwo}[1]{% |
| 56 |
\LWR@fontawesome@symbolX{#1}{two}% |
| 57 |
} |
| 58 |
|
| 59 |
\newcommand*{\LWR@fontawesome@symbolthree}[1]{% |
| 60 |
\LWR@fontawesome@symbolX{#1}{three}% |
| 61 |
} |
| 62 |
|
| 63 |
\renewrobustcmd\FAone{% |
| 64 |
\LetLtxMacro\symbol\LWR@fontawesome@symbolone% |
| 65 |
} |
| 66 |
|
| 67 |
\renewrobustcmd\FAtwo{% |
| 68 |
\LetLtxMacro\symbol\LWR@fontawesome@symboltwo% |
| 69 |
} |
| 70 |
|
| 71 |
\renewrobustcmd\FAthree{% |
| 72 |
\LetLtxMacro\symbol\LWR@fontawesome@symbolthree% |
| 73 |
} |
| 74 |
\fi |
| 75 |
|
| 76 |
\endinput |
| 77 |
%% |
| 78 |
%% End of file `lwarp-fontawesome.sty'. |