Dear List,
I'm experimenting with a new syntax for ConTeXt and would appreciate it a lot if you could give some opinions/advice on it.
Details in the README. Basically it's lua code faking tex, while remaining a decent programming language, and saving keystrokes to the level of tex compared to \ctxlua -only codes
A major motivating example is the table. There are multiple implementations of table inside and outside ConTeXt, each of which uses its own ad-hoc syntax, but at the end of the day they're just mimicking 2d arrays with some variations. Here's an example in
Context an excursion using xtable sugared with the new syntax:
```
\xtable.setup[
split='yes',
header='repeat',
offset='4pt',
]
\xtable[
head={
align='middle', foregroundstyle='bold',
{{nx=6, "Decline of wealth in Dutch florine (Dfl)"}},
{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'},
},
next={
{{nx=6, align='middle', foregroundstyle='bold', "Decline of wealth in Dutch florine (Dfl) / Continued"}},
{foregroundstyle='bold', {'Year', '1.000--2.000', '2.000--3.000', '3.000-5.000', '5.000-10.000', 'over 10.000'}},
},
body={
align='middle',
{1675, \{\math{22}}, '~7', '~5', '~4', '~5'},
{1724, '~4', '~4', '--', '~4', '~3'},
},
]
```
Best,
Sylvain