libs-imp-kpse.mkxl /size: 1005 b    last modification: 2021-10-28 13:51
1%D \module
2%D   [       file=libs-imp-kpse,
3%D        version=2020.05.19,
4%D          title=\CONTEXT\ System Modules,
5%D       subtitle=KPSE File Searching,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14%D This is not really a module. It's more some left over from an experiment. Who
15%D know when it comes in handy; probably never in a real run, but I might want to
16%D make a \LUAMETATEX\ plain format one day, just for the fun of it.
17
18% \registerctxluafile{libs-imp-kpse}{autosuffix}
19
20\continueifinputfile{libs-imp-kpse.mkxl}
21
22\starttext
23
24\startTEXpage
25    \startluacode
26        local kpse = require("libs-imp-kpse")
27
28        kpse.set_program_name("pdftex")
29
30        local name = "context.mkii"
31
32        context("%s: %s",name,kpse.find_file(name))
33    \stopluacode
34\stopTEXpage
35
36\stoptext
37
38
39