Re: [NTG-context] Feature Request: xtables extensions

2017-03-08 Thread Aditya Mahajan
On Wed, 8 Mar 2017, Alan Braslau wrote: On Wed, 8 Mar 2017 16:29:52 +0100 Henri Menke wrote: Natural Tables are quite handy but their syntax is a little verbose. \bTABLE \bTR \bTD ... \eTD \eTR \eTABLE There exist nice extensions which make the format less

Re: [NTG-context] Feature Request: xtables extensions

2017-03-08 Thread Alan Braslau
On Wed, 8 Mar 2017 16:29:52 +0100 Henri Menke wrote: > Natural Tables are quite handy but their syntax is a little verbose. > > \bTABLE > \bTR > \bTD ... \eTD > \eTR > \eTABLE > > There exist nice extensions which make the format less verbose by > mapping > >

Re: [NTG-context] Feature Request: xtables extensions

2017-03-08 Thread Henri Menke
I refined the proposal a little further to not having to overload xtables but only use one remaining internal macro of xtables. I also sent this version to Hans to be considered going to the ConTeXt core. \unprotect %D xtable extensions \definextable[XTABLE] \unexpanded\def\startXTABLE

Re: [NTG-context] Feature Request: xtables extensions

2017-03-08 Thread Henri Menke
Alternatively to my first proposal but still overloading the original xtables I came up with another solution which does not have the \NC\NR but only \NR and does not read the cell content as an argument. \unprotect % Overload tabl_x_start_table \unexpanded\def\tabl_x_start_table[#settings]%

Re: [NTG-context] Feature Request: xtables extensions

2017-03-08 Thread Henri Menke
I quickly came up with something myself. Unfortunately, it involves overloading of the original xtables. Perhaps there is a better way but it works. I am happy to hear your opinions! \unprotect % Overload tabl_x_start_table \unexpanded\def\tabl_x_start_table[#settings]% maybe two arguments:

[NTG-context] Feature Request: xtables extensions

2017-03-08 Thread Henri Menke
Dear devs, Natural Tables are quite handy but their syntax is a little verbose. \bTABLE \bTR \bTD ... \eTD \eTR \eTABLE There exist nice extensions which make the format less verbose by mapping \startTABLE \NC ... \NR\NR \stopTABLE back to the original macros. The new method for