diff options
author | Norbert Preining <norbert@preining.info> | 2021-09-22 03:00:42 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-09-22 03:00:42 +0000 |
commit | 094234b56c200ad35a041aa579c18cbcac8933ed (patch) | |
tree | 730b37a8684e85e78d7098d8cf34facf76684b3d /macros/luatex/generic/penlight/penlight.sty | |
parent | 32e0f5d0a5abc4f2b6c7341f19b854b5945c3ebd (diff) |
CTAN sync 202109220300
Diffstat (limited to 'macros/luatex/generic/penlight/penlight.sty')
-rw-r--r-- | macros/luatex/generic/penlight/penlight.sty | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/macros/luatex/generic/penlight/penlight.sty b/macros/luatex/generic/penlight/penlight.sty index 7a04192f58..9b0baed08b 100644 --- a/macros/luatex/generic/penlight/penlight.sty +++ b/macros/luatex/generic/penlight/penlight.sty @@ -1,5 +1,5 @@ % Kale Ewasiuk (kalekje@gmail.com) -% 2021-09-19 +% 2021-09-20 % % Copyright (C) 2021 Kale Ewasiuk % @@ -23,14 +23,21 @@ % OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE % OR OTHER DEALINGS IN THE SOFTWARE. -\ProvidesPackage{penlight}[2021-09-19] +\ProvidesPackage{penlight}[2021-09-20] \RequirePackage{luapackageloader} -\directlua{penlight = require('pl.import_into')()} -\DeclareOption{pl}{\directlua{pl = penlight}} -\DeclareOption{stringx}{\directlua{require('pl.stringx').import()}} -\DeclareOption{format}{\directlua{require('pl.text').format_operator()}} -\DeclareOption{func}{\directlua{penlight.utils.import('pl.func')}} +\DeclareOption{pl}{\directlua{ + pl = require('penlight') + __PENLIGHT__ = 'pl' +}} +\DeclareOption{penlight}{\directlua{ + penlight = require('penlight') + __PENLIGHT__ = 'penlight' +}} +\DeclareOption{stringx}{\directlua{_G[__PENLIGHT__].stringx.import()}} +\DeclareOption{format}{\directlua{_G[__PENLIGHT__].text.format_operator()}} +\DeclareOption{func}{\directlua{_G[__PENLIGHT__].utils.import(__PENLIGHT__..'.func')}} +\DeclareOption{extras}{\directlua{require('penlightextras')}} -\ProcessOptions\relax +\ProcessOptions*\relax |