summaryrefslogtreecommitdiff
path: root/tex/context/base/status-mkiv.tex
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-01-16 20:00:36 +0200
committerMarius <mariausol@gmail.com>2012-01-16 20:00:36 +0200
commit6371f988d54dd0bec1c613110df77e5be103591f (patch)
tree152abee7f55b3f6d1ed52a0f2a9cd81d57019f34 /tex/context/base/status-mkiv.tex
parent84d94e9754958d12711a8f07086a3d815d305d40 (diff)
downloadcontext-6371f988d54dd0bec1c613110df77e5be103591f.tar.gz
beta 2012.01.16 18:33
Diffstat (limited to 'tex/context/base/status-mkiv.tex')
-rw-r--r--tex/context/base/status-mkiv.tex71
1 files changed, 38 insertions, 33 deletions
diff --git a/tex/context/base/status-mkiv.tex b/tex/context/base/status-mkiv.tex
index 4127b35de..110117bbb 100644
--- a/tex/context/base/status-mkiv.tex
+++ b/tex/context/base/status-mkiv.tex
@@ -54,49 +54,54 @@
if coremodules then
- local preloaded = coremodules.preloaded
+ local function tabelize(loaded,what)
- if preloaded then
+ if loaded then
- local nofunknown = 0
- local nofloaded = #preloaded
+ local nofunknown = 0
+ local nofloaded = #loaded
- for i=1,nofloaded do
- preloaded[i].order = i
- end
-
- table.sort(preloaded,function(a,b) return a.filename < b.filename end)
-
- context.starttabulate { "|Tr|Tl|Tl|l|p|" }
- context.NC() -- context.bold("order")
- context.NC() context.bold("file")
- context.NC() context.bold("mark")
- context.NC() context.bold("status")
- context.NC() context.bold("comment")
- context.NC() context.NR()
- for i=1,nofloaded do
- local module = preloaded[i]
- local status = module.status
- context.NC() context(module.order)
- context.NC() context(module.filename)
- context.NC() context(module.marktype)
- if status == "unknown" then
- context.NC() context.bold(status)
- nofunknown = nofunknown + 1
- else
- context.NC() context(status)
+ for i=1,nofloaded do
+ loaded[i].order = i
end
- context.NC() context(module.comment)
+
+ table.sort(loaded,function(a,b) return a.filename < b.filename end)
+
+ context.starttabulate { "|Tr|Tl|Tl|l|p|" }
+ context.NC() -- context.bold("order")
+ context.NC() context.bold("file")
+ context.NC() context.bold("mark")
+ context.NC() context.bold("status")
+ context.NC() context.bold("comment")
context.NC() context.NR()
- end
- context.stoptabulate()
+ for i=1,nofloaded do
+ local module = loaded[i]
+ local status = module.status
+ context.NC() context(module.order)
+ context.NC() context(module.filename)
+ context.NC() context(module.marktype)
+ if status == "unknown" then
+ context.NC() context.bold(status)
+ nofunknown = nofunknown + 1
+ else
+ context.NC() context(status)
+ end
+ context.NC() context(module.comment)
+ context.NC() context.NR()
+ end
+ context.stoptabulate()
+
+ context.blank()
- context.blank()
+ context("Of the %s %s modules (so far) in this list %s have the status unknown",nofloaded,what,nofunknown)
- context("Of the %s core modules (so far) in this list %s have the status unknown",nofloaded,nofunknown)
+ end
end
+ tabelize(coremodules.core, "core")
+ tabelize(coremodules.extra,"extra")
+
end
local namespaces = dofile("status-namespaces.lua")