diff options
author | Karl Berry <karl@freefriends.org> | 2018-10-13 21:02:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-10-13 21:02:42 +0000 |
commit | 206e1efd94e4c3414835af0e2c8266c88ed7dcc9 (patch) | |
tree | b7463549a030aa9cfddbd1e7154bd8c62d5d33b5 /Master/texmf-dist/tex/latex/fontawesome5/fontawesome5.sty | |
parent | 192d971f371510873c8f0dc2e8119ca4195599ea (diff) |
fontawesome5 (13oct18)
git-svn-id: svn://tug.org/texlive/trunk@48903 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fontawesome5/fontawesome5.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/fontawesome5/fontawesome5.sty | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/fontawesome5/fontawesome5.sty b/Master/texmf-dist/tex/latex/fontawesome5/fontawesome5.sty index 80d10cbf587..f19285f0f50 100644 --- a/Master/texmf-dist/tex/latex/fontawesome5/fontawesome5.sty +++ b/Master/texmf-dist/tex/latex/fontawesome5/fontawesome5.sty @@ -13,7 +13,7 @@ % The Current Maintainer of this work is Marcel Krueger % \RequirePackage{expl3} -\ProvidesExplPackage{fontawesome5}{2018/08/30}{5.3.1}{Font Awesome 5} +\ProvidesExplPackage{fontawesome5}{2018/10/13}{5.4.1}{Font Awesome 5} \RequirePackage{l3keys2e} @@ -24,7 +24,9 @@ pro .default:n = pro, free .value_forbidden:n = true, free .tl_set:N = \c__fontawesome_kind_tl, - free .default:n = free + free .default:n = free, + fixed .bool_set:N = \c__fontawesome_fixed_bool, + fixed .default:n = true } \keys_set:nn{fontawesome5}{free} @@ -78,12 +80,33 @@ \NewDocumentCommand\faRepeat{t{1}}{ \faPreselectedIcon{repeat\IfBooleanT{#1}{-1}} } -\cs_new:Nn\fa__select:nn{ - \cs_if_exist_use:cF {fa__#1_#2:} {\faPreselectedIcon{#1}#2} +\cs_new:Npn\fa__select_ii:nnn#1#2#3{ + \cs_if_exist_use:cF {fa__#1_#2#3:} { + \faPreselectedIcon{#1}#2#3 + } +} +\cs_new:Npn\fa__select:nn#1#2{ + \cs_if_exist_use:cF {fa__#1_#2:} { + \peek_catcode:NTF 0 { + \fa__select_ii:nnn {#1}{#2} + }{ + \faPreselectedIcon{#1}#2 + } + } } \cs_new:Npn\fa__select:nw#1{ \peek_catcode:NTF 0 {\fa__select:nn {#1}} {\faPreselectedIcon{#1}} } +\cs_new:cpn{fa__dice-d_4:}{\faPreselectedIcon{dice-d4}} +\cs_new:cpn{fa__dice-d_6:}{\faPreselectedIcon{dice-d6}} +\cs_new:cpn{fa__dice-d_8:}{\faPreselectedIcon{dice-d8}} +\cs_new:cpn{fa__dice-d_10:}{\faPreselectedIcon{dice-d10}} +\cs_new:cpn{fa__dice-d_12:}{\faPreselectedIcon{dice-d12}} +\cs_new:cpn{fa__dice-d_20:}{\faPreselectedIcon{dice-d20}} +\NewDocumentCommand\faDiceD{}{ + \fa__select:nw {dice-d} +} + \cs_new:cpn{fa__wifi_0:}{\faPreselectedIcon{wifi-slash}} \cs_new:cpn{fa__wifi_1:}{\faPreselectedIcon{wifi-1}} \cs_new:cpn{fa__wifi_2:}{\faPreselectedIcon{wifi-2}} |