Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread Wolfgang Schuster
Am 06.03.2009 um 07:41 schrieb luigi scarso: My summary of this thread: http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/ It's exactly what I think . Thank you very much. Nice article, it fits perfectly in the programming section of the

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread Willi Egger
Hi Aditya, Happy luaTeXing. Great summary. Willi On Mar 6, 2009, at 4:05 AM, Aditya Mahajan wrote: On Thu, 5 Mar 2009, luigi scarso wrote: On Thu, Mar 5, 2009 at 12:09 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.03.2009 um 01:17 schrieb luigi scarso: \starttext

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread Curious Learn
Aditya Mahajan adityam at umich.edu writes: My summary of this thread: http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/ Aditya I like the Luatex code of Luigi. Though it is longer than what Wolfgang suggested (and in this case, I am

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread Arthur Reutenauer
Do I pick up any beginners book on Lua? There really is only one beginners book on Lua :-) _Programming in Lua_, by Roberto Ierusalimschy, the Lua author. There are a few other books, mostly about Lua and games, because Lua has become quite popular in the gamers' community, but

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread luigi scarso
I like the Luatex code of Luigi. Though it is longer than what Wolfgang suggested (and in this case, I am using Wolfgang's solution now that I know about it), the luatex code seems to be the kind of programming that I am more comfortable with. In fact, in Latex when I was trying to achieve

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread Wolfgang Schuster
Am 06.03.2009 um 04:05 schrieb Aditya Mahajan: My summary of this thread: http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/ Nice article but I have a few corrections for you. Table setup: To achieve horizontal and vertical centered

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread Curious Learn
Arthur and Luigi, thanks for your responses. Arthur, your response makes it very clear, what I need to do. I will start with the book you recommend. ___ If your question is of interest to others as well, please

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread Aditya Mahajan
On Fri, 6 Mar 2009, Wolfgang Schuster wrote: Am 06.03.2009 um 04:05 schrieb Aditya Mahajan: My summary of this thread: http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/ Nice article but I have a few corrections for you. Table setup:

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread Aditya Mahajan
On Thu, 5 Mar 2009, Aditya Mahajan wrote: On Thu, 5 Mar 2009, luigi scarso wrote: On Thu, Mar 5, 2009 at 12:09 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.03.2009 um 01:17 schrieb luigi scarso: \starttext %%% TeX version \bTABLE \dorecurse{5} {\bTR\expandafter \bTD

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-06 Thread Wolfgang Schuster
Am 06.03.2009 um 17:33 schrieb Aditya Mahajan: Table setup: To achieve horizontal and vertical centered content in the table cell you need 'align={middle,lohi}'. Hmm... align={middle,middle} also works. I haven't checked the code to see why. I hadn't known this before but it's feature

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
On Wed, Mar 4, 2009 at 8:53 PM, luigi scarso luigi.sca...@gmail.com wrote: On Wed, Mar 4, 2009 at 8:35 PM, Curious Learn curiousle...@gmail.com wrote: Can someone please explain why the second example below works but the first does not work? Thanks very much. \starttext \bTABLE

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Wolfgang Schuster
Am 05.03.2009 um 01:17 schrieb luigi scarso: \starttext %%% TeX version \bTABLE \dorecurse{5} {\bTR\expandafter \bTD \recurselevel. \eTD\expandafter \bTD \recurselevel \eTD\eTR} \eTABLE \dorecurse{2} {\recurselevel. \recurselevel\crlf} And you think it's a good idea to use

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
On Thu, Mar 5, 2009 at 12:09 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.03.2009 um 01:17 schrieb luigi scarso: \starttext %%% TeX version \bTABLE \dorecurse{5} {\bTR\expandafter \bTD \recurselevel. \eTD\expandafter        \bTD \recurselevel  \eTD\eTR} \eTABLE

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Wolfgang Schuster
Am 05.03.2009 um 12:27 schrieb luigi scarso: And you think it's a good idea to use \expandafter in your document? TeX version, not context ... :) btw \expandafer is not so bad, if used moderatly . But don't make a beginner used to it, e.g. Stefan Kottwitz mentioned a few times how to

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
People who want to use TeX to write a document but copy code from examples, old list messages etc. but don't why they have to do it something like this. OK, it's hard to write a fancy layout without defining your own header styles etc. without a definition but use then as many high level

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Wolfgang Schuster
Am 05.03.2009 um 14:23 schrieb luigi scarso: http://texblog.net/latex-archive/plaintex/expandafter/ hey, this is not a moderate use of expandafter as I intended .. I dropped latex for similar examples . In this situation please, grep setvalue base/* ??? I can't understand the relation

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
On Thu, Mar 5, 2009 at 2:52 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.03.2009 um 14:23 schrieb luigi scarso: http://texblog.net/latex-archive/plaintex/expandafter/ hey, this is not a moderate use of expandafter as I intended .. I dropped latex for similar examples

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Wolfgang Schuster
Am 05.03.2009 um 15:23 schrieb luigi scarso: I prefear \setvalue{quote small}{\quote\small} {\getvalue{quote small} foo } This is non trivial example, normally I would define a new quote command with \definedelimitedtext[quotesmall][quote] but you above code can't be achieved with

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
On Thu, Mar 5, 2009 at 3:53 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.03.2009 um 15:23 schrieb luigi scarso: I prefear \setvalue{quote small}{\quote\small} {\getvalue{quote small} foo } This is non trivial example, normally I would define a new quote command

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Aditya Mahajan
On Thu, 5 Mar 2009, luigi scarso wrote: On Thu, Mar 5, 2009 at 12:09 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.03.2009 um 01:17 schrieb luigi scarso: \starttext %%% TeX version \bTABLE \dorecurse{5} {\bTR\expandafter \bTD \recurselevel. \eTD\expandafter        \bTD

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
My summary of this thread: http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/ It's exactly what I think . Thank you very much. -- luigi ___ If your question is

[NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Curious Learn
Can someone please explain why the second example below works but the first does not work? Thanks very much. \starttext \bTABLE \dorecurse{5} {\bTR \bTD \recurselevel. \eTD \bTD \recurselevel \eTD\eTR} \eTABLE \dorecurse{2} {\recurselevel.

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread luigi scarso
On Wed, Mar 4, 2009 at 8:35 PM, Curious Learn curiousle...@gmail.com wrote: Can someone please explain why the second example below works but the first does not work? Thanks very much. \starttext \bTABLE \dorecurse{5} {\bTR \bTD \recurselevel. \eTD          \bTD \recurselevel  

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread luigi scarso
On Wed, Mar 4, 2009 at 8:53 PM, luigi scarso luigi.sca...@gmail.com wrote: On Wed, Mar 4, 2009 at 8:35 PM, Curious Learn curiousle...@gmail.com wrote: Can someone please explain why the second example below works but the first does not work? Thanks very much. \starttext \bTABLE

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Wolfgang Schuster
Am 04.03.2009 um 20:35 schrieb Curious Learn: Can someone please explain why the second example below works but the first does not work? Thanks very much. \starttext \bTABLE \dorecurse{5} {\bTR \bTD \recurselevel. \eTD \bTD \recurselevel \eTD\eTR} \eTABLE \bTABLE

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Curious Learn
Wolfgang Schuster schuster.wolfgang at googlemail.com writes: \bTABLE \dorecurse{5}{\bTR\expanded{\bTD\recurselevel\eTD}\eTR} \eTABLE Wolfgang As your other solutions, this worked great. I suppose I have to use \expanded for every \bTD \eTD pair. Can you please explain why this is

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Wolfgang Schuster
Am 04.03.2009 um 21:57 schrieb Curious Learn: Wolfgang Schuster schuster.wolfgang at googlemail.com writes: \bTABLE \dorecurse{5}{\bTR\expanded{\bTD\recurselevel\eTD}\eTR} \eTABLE As your other solutions, this worked great. I suppose I have to use \expanded for every \bTD \eTD pair.

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Aditya Mahajan
On Wed, 4 Mar 2009, Wolfgang Schuster wrote: \bTABLE \dorecurse{5}{\bTR\bTD#1\eTD\eTR} \eTABLE This is evil genious! Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Wolfgang Schuster
Am 04.03.2009 um 22:43 schrieb Aditya Mahajan: On Wed, 4 Mar 2009, Wolfgang Schuster wrote: \bTABLE \dorecurse{5}{\bTR\bTD#1\eTD\eTR} \eTABLE This is evil genious! Can be used nested too. \starttext \bTABLE \dorecurse{5} {\bTR \dorecurse{5}{\bTD#1:##1\eTD} \eTR} \eTABLE

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Curious Learn
Not really. \bTABLE \dorecurse{5}{\bTR\bTD#1\eTD\eTR} \eTABLE Wolfgang Awesome How does one learn these things? Is this Tex programming or Context programming. Thanks very much. ___ If your

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Wolfgang Schuster
Am 04.03.2009 um 23:17 schrieb Curious Learn: Not really. \bTABLE \dorecurse{5}{\bTR\bTD#1\eTD\eTR} \eTABLE Wolfgang Awesome How does one learn these things? Follow the mailing list and read parts of the source. Is this Tex programming or Context programming. It's a ConTeXt