summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/s-inf-04.mkiv
blob: 862bed72f2944b2dc39931eb01a88ab230cdd609 (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
39
40
41
42
43
44
45
46
47
48
\usemodule[art-01]

\setupbodyfont[10pt]

\starttext

    \startluacode

        context.subject("Configuration files")

        local configurations = resolvers.instance.specification

        context.starttabulate { "|Tl|Tl|" }
        for i=1,#configurations do
            context.NC()
            context(i)
            context.NC()
            context.verbatim(resolvers.resolve(configurations[i]))
            context.NC()
            context.NR()
        end
        context.stoptabulate()

        local list = resolvers.expandedpathfromlist(resolvers.splitpath(resolvers.luacnfspec))

        context.subject("Configuration paths")

     -- context.verbatim(resolvers.luacnfspec)

        context.starttabulate { "|Tl|Tl|" }
        for i=1,#list do
            local li = resolvers.resolve(list[i])
            context.NC()
            if lfs.isdir(li) then
                context("-")
            else
                context("+")
            end
            context.NC()
            context.verbatim(li)
            context.NC()
            context.NR()
        end
        context.stoptabulate()

    \stopluacode

\stoptext