summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/rpgicons/rpgicons.sty
blob: f80d5955c183b2497683a59705e752e6fa87d9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% File: rpgicons.sty 
% Copyright 2024 Jasper Habicht (mail(at)jasperhabicht.de).
% 
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
% 
% This file is part of the `rpgicons'  package (The Work in LPPL)
% and all files in that bundle must be distributed together.
% 
% This work has the LPPL maintenance status `maintained'.
% 
\ProvidesExplPackage {rpgicons} {2024-04-28} {1.8.2} 
    {rpg Icons Package}

\bool_new:N \l__rpgicons_use_legacy_variant_bool
\clist_new:N \l__rpgicons_forwarded_options_clist
\keys_define:nn { rpgicons / select ~ variant } { 
    l3        .bool_set:N = \l__rpgicons_use_legacy_variant_bool ,
    l3        .default:n  = { false } ,
    pgf       .bool_set:N = \l__rpgicons_use_legacy_variant_bool ,
    pgf       .default:n  = { true } ,
    unknown   .code:n     = { \clist_put_right:Nn \l__rpgicons_forwarded_options_clist {#1} }
}
\ProcessKeyOptions [ rpgicons / select ~ variant ]

\bool_if:NTF \l__rpgicons_use_legacy_variant_bool {
  \RequirePackage [ \l__rpgicons_forwarded_options_clist ] { rpgicons-pgf }
} {
  \RequirePackage [ \l__rpgicons_forwarded_options_clist ] { rpgicons-l3 }
}

% EOF