diff options
author | Karl Berry <karl@freefriends.org> | 2017-06-06 21:51:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-06-06 21:51:05 +0000 |
commit | fd4e52f0e35adc6fe34b5223ce1b876ac6380729 (patch) | |
tree | f18acdac7bf6500a44a57d64a9ad804b4e788e10 /Master/texmf-dist/tex/luatex/luapackageloader | |
parent | d370d7fc94d6ccb3c501fb9b5947edb14e60671d (diff) |
luapackageloader (27may17)
git-svn-id: svn://tug.org/texlive/trunk@44500 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luapackageloader')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luapackageloader/luapackageloader.sty | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/luatex/luapackageloader/luapackageloader.sty b/Master/texmf-dist/tex/luatex/luapackageloader/luapackageloader.sty new file mode 100644 index 00000000000..7a6219e1c6c --- /dev/null +++ b/Master/texmf-dist/tex/luatex/luapackageloader/luapackageloader.sty @@ -0,0 +1,35 @@ +% Author: Deepak Jois +% License: http://www.latex-project.org/lppl.txt +% Date: 2017/05/26 +% Version: 0.1 +\def\luapackageloaderpkgdate{2017/05/26} +\def\luapackageloaderversion{0.1} + +\expandafter\ifx\csname ProvidesPackage\endcsname\relax + \input ifluatex.sty\relax +\else + \NeedsTeXFormat{LaTeX2e} + \ProvidesPackage{}[\luapackageloaderpkgdate\space v\luapackageloaderversion\space Lua package searchers for LuaTeX] + \RequirePackage{ifluatex} +\fi + +\def\luapackageloader@dothings{% + \directlua{ + luapackageloader = require("luapackageloader") + luapackageloader.add_lua_searchers() + }% +} + +\expandafter\ifx\csname ProvidesPackage\endcsname\relax + \ifluatex + \luapackageloader@dothings + \else + \message{Warning: luapackageloader only works with LuaTeX (plain and LaTeX format)} + \fi +\else + \ifluatex + \luapackageloader@dothings + \else + \PackageWarning{luapackageloader}{You are using this package without LuaTeX. This is not supported.} + \fi +\fi |