blob: 8079232a4fb57501c4d0f2eb172db57d04054c4a (
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
34
35
|
% 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-05-15} {1.8.3}
{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 } ,
pics .code:n = { \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { pics } } ,
compat .code:n = { \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { compat } } ,
opacity .code:n = { \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { opacity } }
}
\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
|