| 1 |
%% |
| 2 |
%% This is file `lwarp-fontawesome5-generic-helper.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `fontawesome5-generic-helper') |
| 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{fontawesome5-generic-helper}[2022/05/02] |
| 19 |
\ExplSyntaxOn |
| 20 |
|
| 21 |
\VerifyCommand[lwarp][fontawesome5-generic-helper]{\fontawesome_use_icon:nn} |
| 22 |
{0260A9C94303C43957AAEBEA2B4D3DB1} |
| 23 |
|
| 24 |
\cs_set:Nn\fontawesome_use_icon:nn{ |
| 25 |
\LWR@findcurrenttextcolor |
| 26 |
\cs_if_exist:cTF{c__fontawesome_slot_#2_tl}{ |
| 27 |
\begin{lateximage}*[#2]?% lwarp |
| 28 |
[fontawesome5#1SZ\LWR@font@size{}CL\LWR@tempcolor]% lwarp |
| 29 |
\csuse{\LWR@font@size}% lwarp |
| 30 |
\bool_if:NTF\c__fontawesome_fixed_bool{ |
| 31 |
\makebox[1.5em][c] |
| 32 |
}{ |
| 33 |
\use:n |
| 34 |
} |
| 35 |
{ |
| 36 |
\exp_last_unbraced:Nv |
| 37 |
\__fontawesome_icon_at:nnnn |
| 38 |
{c__fontawesome_slot_#2_tl} |
| 39 |
{#1}{#2} |
| 40 |
} |
| 41 |
\end{lateximage}% lwarp |
| 42 |
}{ |
| 43 |
\msg_error:nnxx{fontawesome5}{icon-not-found}{#2}{#1} |
| 44 |
} |
| 45 |
} |
| 46 |
\ExplSyntaxOff |
| 47 |
|
| 48 |
\endinput |
| 49 |
%% |
| 50 |
%% End of file `lwarp-fontawesome5-generic-helper.sty'. |