summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/strc-itm.lua
blob: 1c7c2adb59e5edfbef84fab0aeaff17d08a0fc0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if not modules then modules = { } end modules ['strc-itm'] = {
    version   = 1.001,
    comment   = "companion to strc-itm.mkiv",
    author    = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
    copyright = "PRAGMA ADE / ConTeXt Development Team",
    license   = "see context related readme files"
}

local structures = structures
local itemgroups = structures.itemgroups
local jobpasses  = job.passes

function itemgroups.register(name,nofitems,maxwidth)
    jobpasses.savedata("itemgroup", { nofitems, maxwidth })
end

function itemgroups.nofitems(name,index)
    jobpasses.getfield("itemgroup", index, 1, 0)
end

function itemgroups.maxwidth(name,index)
    jobpasses.getfield("itemgroup", index, 2, 0)
end