1if not modules then modules = { } end modules ['strc-mat'] = {
2 version = 1.001,
3 comment = "companion to strc-mat.mkiv",
4 author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
5 copyright = "PRAGMA ADE / ConTeXt Development Team",
6 license = "see context related readme files"
7}
8
9
10
11local structures = structures
12
13local lists = structures.lists
14local sections = structures.sections
15local floats = structures.floats
16local helpers = structures.helpers
17local formulas = structures.formulas
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39function helpers.formulanumber(data,spec)
40 if data then
41 local formulanumber = data.formulanumber
42 if formulanumber then
43 sections.number(data,spec,"formulanumber","formulanumber",'number')
44 end
45 end
46end
47
48function lists.formulanumber(name,n,spec)
49 local result = lists.result
50 if result then
51 helpers.formulanumber(result[n])
52 end
53end
54 |