summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/libs-imp-kpse.mkxl
blob: 8a3d7826fe7ab59411dea3a745129ffc0f2060ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%D \module
%D   [       file=libs-imp-kpse,
%D        version=2020.05.19,
%D          title=\CONTEXT\ System Modules,
%D       subtitle=KPSE File Searching,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D This is not really a module. It's more some left over from an experiment. Who
%D know when it comes in handy; probably never in a real run, but I might want to
%D make a \LUAMETATEX\ plain format one day, just for the fun of it.

% \registerctxluafile{libs-imp-kpse}{}

\continueifinputfile{libs-imp-kpse.mkxl}

\starttext

\startTEXpage
    \startluacode
        local kpse = require("libs-imp-kpse")

        kpse.set_program_name("pdftex")

        local name = "context.mkii"

        context("%s: %s",name,kpse.find_file(name))
    \stopluacode
\stopTEXpage

\stoptext