diff options
Diffstat (limited to 'macros/luatex/generic/penlight/penlight.sty')
-rw-r--r-- | macros/luatex/generic/penlight/penlight.sty | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/macros/luatex/generic/penlight/penlight.sty b/macros/luatex/generic/penlight/penlight.sty index 9f0ead874f..b9f5a9490a 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-12-15 +% 2022-02-27 % Copyright (C) 2021 Kale Ewasiuk % % Permission is hereby granted, free of charge, to any person obtaining a copy @@ -22,7 +22,7 @@ % OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE % OR OTHER DEALINGS IN THE SOFTWARE. -\ProvidesPackage{penlight}[2021-12-15] +\ProvidesPackage{penlight}[2022-02-27] \RequirePackage{luacode} @@ -34,9 +34,15 @@ penlight = require('penlight') __PENLIGHT__ = 'penlight' }} + + \DeclareOption{stringx}{\luadirect{_G[__PENLIGHT__].stringx.import()}} -\DeclareOption{format}{\luadirect{_G[__PENLIGHT__].text.format_operator()}} +\DeclareOption{format}{\luadirect{_G[__PENLIGHT__].stringx.format_operator()}} \DeclareOption{func}{\luadirect{_G[__PENLIGHT__].utils.import(__PENLIGHT__..'.func')}} \DeclareOption{extras}{\luadirect{require('penlightextras')}} +\DeclareOption{extrasnoglobals}{ + __PL_NO_GLOBALS__ = true + \luadirect{require('penlightextras') + }} \ProcessOptions*\relax |