| 1 |
% Author: Deepak Jois |
| 2 |
% License: LPPL Version 1.3c or higher <http://www.latex-project.org/lppl.txt> |
| 3 |
% Date: 2019/12/21 |
| 4 |
% Version: 0.2 |
| 5 |
\def\luapackageloaderpkgdate{2019/12/21} |
| 6 |
\def\luapackageloaderversion{0.2} |
| 7 |
|
| 8 |
\expandafter\ifx\csname ProvidesPackage\endcsname\relax |
| 9 |
\input ifluatex.sty\relax |
| 10 |
\else |
| 11 |
\NeedsTeXFormat{LaTeX2e} |
| 12 |
\ProvidesPackage{luapackageloader}[\luapackageloaderpkgdate\space v\luapackageloaderversion\space Lua package searchers for LuaTeX] |
| 13 |
\RequirePackage{ifluatex} |
| 14 |
\fi |
| 15 |
|
| 16 |
\def\luapackageloader@dothings{% |
| 17 |
\directlua{ |
| 18 |
luapackageloader = require("luapackageloader") |
| 19 |
luapackageloader.add_lua_searchers() |
| 20 |
}% |
| 21 |
} |
| 22 |
|
| 23 |
\expandafter\ifx\csname ProvidesPackage\endcsname\relax |
| 24 |
\ifluatex |
| 25 |
\luapackageloader@dothings |
| 26 |
\else |
| 27 |
\message{Warning: luapackageloader only works with LuaTeX (plain and LaTeX format)} |
| 28 |
\fi |
| 29 |
\else |
| 30 |
\ifluatex |
| 31 |
\luapackageloader@dothings |
| 32 |
\else |
| 33 |
\PackageWarning{luapackageloader}{You are using this package without LuaTeX. This is not supported.} |
| 34 |
\fi |
| 35 |
\fi |