diff options
Diffstat (limited to 'Master/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua')
-rw-r--r-- | Master/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua b/Master/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua new file mode 100644 index 00000000000..6044e22bbe6 --- /dev/null +++ b/Master/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua @@ -0,0 +1,48 @@ +-- +-- This is file `oberdiek.luatex.lua', +-- generated with the docstrip utility. +-- +-- The original source files were: +-- +-- luatex.dtx (with options: `lua') +-- +-- This is a generated file. +-- +-- Copyright (C) 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +-- +-- This work may be distributed and/or modified under the +-- conditions of the LaTeX Project Public License, either +-- version 1.3 of this license or (at your option) any later +-- version. The latest version of this license is in +-- http://www.latex-project.org/lppl.txt +-- and version 1.3 or later is part of all distributions of +-- LaTeX version 2005/12/01 or later. +-- +-- This work has the LPPL maintenance status "maintained". +-- +-- This Current Maintainer of this work is Heiko Oberdiek. +-- +-- This work consists of the main source file luatex.dtx +-- and the derived files +-- luatex.sty, luatex.pdf, luatex.ins, luatex.drv, luatex-loader.sty, +-- luatex-test1.tex, luatex-test2.tex, luatex-test3.tex, +-- luatex-test4.tex, luatex-test5.tex, oberdiek.luatex.lua. +-- +module("oberdiek.luatex", package.seeall) +function kpse_module_loader(module) + local script = module .. ".lua" + local file = kpse.find_file(script, "texmfscripts") + if file then + local loader, error = loadfile(file) + if loader then + texio.write_nl("(" .. file .. ")") + return loader + end + return "\n\t[oberdiek.luatex.kpse_module_loader] Loading error:\n\t" + .. error + end + return "\n\t[oberdiek.luatex.kpse_module_loader] Search failed" +end +table.insert(package.loaders, kpse_module_loader) +-- +-- End of File `oberdiek.luatex.lua'. |