-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple_demo.cld
42 lines (35 loc) · 1.18 KB
/
simple_demo.cld
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
luax = require('luax')
luax.run_luax()
--[==[luax
luax.text\{
\(myhead = luax.section:copy{numberstyle='bold', textstyle='bold', before=[[\hairline\blank]], after=[[\nowhitespace\hairline]]})
\myhead{Section Name}
Only \\, \{, \} has to be escaped. $, _, %, ^, and all the other ascii characters don't have to be escaped.
The number \luax.math{𝜋} is irrational but \math.pi is rational.
\luax.math{C_{a_i}^j}
{ \(local header = {
foregroundstyle='bold',
{width='1.2cm', 'Year'}, '1.000--2.000', '2.000--3.000', '3.000-5.000', '5.000-10.000', 'over 10.000'
}
local title = "Decline of wealth in Dutch florine (Dfl)"
)
\luax.xtable[split='yes', header='repeat', offset='4pt'][
head={
align='middle', foregroundstyle='bold',
{{nx=6, title}},
header,
},
next={
{{nx=6, align='middle', foregroundstyle='bold', title.." / Continued"}},
header,
},
body={
align='middle',
{1675, 22, '~7', '~5', '~4', '~5'},
{1724, '~4', '~4', '--', '~4', '~3'},
},
]
}
\% `header` and `title` is out of scope and therefore invisible here
}
]==]