[NTG-context] TEXpage does not fit \placetable & \recurselevel always zero

2021-03-05 Thread Jacob Kauffmann
only use here because I need a centered table. I can set the height of the page manually, but the whole purpose of using TEXpage was to avoid that. (2) \recurselevel is always zero in the output. Normally, it counts the iterations. This issue is not relevant for my actual use-case, but I found

Re: [NTG-context] TEXpage does not fit \placetable & \recurselevel always zero

2021-03-05 Thread Hans Hagen
. It's probably related to \placetable which I only use here because I need a centered table. I can set the height of the page manually, but the whole purpose of using TEXpage was to avoid that. (2) \recurselevel is always zero in the output. Normally, it counts the iterations. This issue

Re: [NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-22 Thread Willi Egger
! I was surprised, that the solution of Wolfgang does not work, with \expanded{\recurselevel}, though it sounds reasonable. Still all rows are marked 0. Alan's suggestion gives me the desired result. See my change, you have to put \expanded before \bTD because when you write \bTD

Re: [NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-19 Thread Wolfgang Schuster
Am 17.03.2013 um 22:58 schrieb Willi Egger cont...@boede.nl: Thank you again! Sorry for misspelling your name Aditya! I was surprised, that the solution of Wolfgang does not work, with \expanded{\recurselevel}, though it sounds reasonable. Still all rows are marked 0. Alan's

[NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-17 Thread Willi Egger
Dear all, I should prepare a form with a table. The table rows should be numbered. How can I get get this done by using \recurselevel. In the attached minimal example all rows are numbered with 0. \starttext \subject{bTABLE--eTABLE: recurse creates rows} \bTABLE \dorecurse{3

Re: [NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-17 Thread Alan BRASLAU
On Sun, 17 Mar 2013 13:00:22 +0100 Willi Egger cont...@boede.nl wrote: Dear all, I should prepare a form with a table. The table rows should be numbered. How can I get get this done by using \recurselevel. In the attached minimal example all rows are numbered with 0. \starttext

Re: [NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-17 Thread Wolfgang Schuster
Am 17.03.2013 um 13:00 schrieb Willi Egger cont...@boede.nl: Dear all, I should prepare a form with a table. The table rows should be numbered. How can I get get this done by using \recurselevel. In the attached minimal example all rows are numbered with 0. \starttext \subject

Re: [NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-17 Thread Aditya Mahajan
On Sun, 17 Mar 2013, Wolfgang Schuster wrote: Am 17.03.2013 um 13:00 schrieb Willi Egger cont...@boede.nl: Dear all, I should prepare a form with a table. The table rows should be numbered. How can I get get this done by using \recurselevel. In the attached minimal example all rows

Re: [NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-17 Thread Willi Egger
. The table rows should be numbered. How can I get get this done by using \recurselevel. In the attached minimal example all rows are numbered with 0. \starttext \subject{bTABLE--eTABLE: recurse creates rows} \bTABLE \dorecurse{3} {\bTR \bTD \recurselevel

Re: [NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-17 Thread Hans Hagen
On 3/17/2013 10:38 PM, Aditya Mahajan wrote: On Sun, 17 Mar 2013, Wolfgang Schuster wrote: Am 17.03.2013 um 13:00 schrieb Willi Egger cont...@boede.nl: Dear all, I should prepare a form with a table. The table rows should be numbered. How can I get get this done by using \recurselevel

Re: [NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-17 Thread Willi Egger
Thank you again! Sorry for misspelling your name Aditya! I was surprised, that the solution of Wolfgang does not work, with \expanded{\recurselevel}, though it sounds reasonable. Still all rows are marked 0. Alan's suggestion gives me the desired result. Hm, I was not yet thinking about using

Re: [NTG-context] \recurselevel inside \bTABLE\eTABLE

2013-03-17 Thread Wolfgang Schuster
Am 17.03.2013 um 22:17 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: Am 17.03.2013 um 13:00 schrieb Willi Egger cont...@boede.nl: Dear all, I should prepare a form with a table. The table rows should be numbered. How can I get get this done by using \recurselevel

Re: [NTG-context] endnotes, imposition and recurselevel

2012-01-20 Thread Hans Hagen
On 20-1-2012 08:07, Michael Guravage wrote: I am typesetting an article where the footnotes should be collected as endnotes. I am also using imposition to arrange the article as a booklet. When using the default location 'page', footnotes work as expected. But when I change the location to

[NTG-context] endnotes, imposition and recurselevel

2012-01-19 Thread Michael Guravage
I am typesetting an article where the footnotes should be collected as endnotes. I am also using imposition to arrange the article as a booklet. When using the default location 'page', footnotes work as expected. But when I change the location to 'text' and use \placefootnotes to produce the

[NTG-context] An interesting default for recurselevel in xetex

2009-08-23 Thread Aditya Mahajan
Hi, Guess what happens when you run this with xetex \starttext\recurselevel\stoptext This is a side effect of the definition of \dofastrecurse. After using \dofastrecurse, the default value of recurselevel is \number\fastrecursecounter rather than 0. I don't think that this will have any

Re: [NTG-context] An interesting default for recurselevel in xetex

2009-08-23 Thread Hans Hagen
Aditya Mahajan wrote: Hi, Guess what happens when you run this with xetex \starttext\recurselevel\stoptext This is a side effect of the definition of \dofastrecurse. After using \dofastrecurse, the default value of recurselevel is \number\fastrecursecounter rather than 0. I don't think

Re: [NTG-context] An interesting default for recurselevel in xetex

2009-08-23 Thread Aditya Mahajan
On Sun, 23 Aug 2009, Hans Hagen wrote: Aditya Mahajan wrote: Hi, Guess what happens when you run this with xetex \starttext\recurselevel\stoptext This is a side effect of the definition of \dofastrecurse. After using \dofastrecurse, the default value of recurselevel is \number

Re: [NTG-context] An interesting default for recurselevel in xetex

2009-08-23 Thread Hans Hagen
Aditya Mahajan wrote: I do not think that any change is needed (One shouldn't use \recurselevel outside a recursion macro anyways). I was just surprised to find that recurselevel was defaulting to such a weird value in xetex. also in luatex but that will probably change once we have more

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
%%% 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 \expandafter in your document? TeX version, not context ... :) btw

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
\dorecurse{6} {\expandafter \bTD \recurselevel \eTD} \eTR \dorecurse{6} {\bTR \edef\firstrecurselevel{\recurselevel} \expandafter\bTD \recurselevel \eTD \dorecurse{6} {\expandafter \bTD \the\numexpr\firstrecurselevel+\recurselevel\relax \eTD} \eTR} \eTABLE

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
: You don't need as many \expandafter as you did in your example, one before \bTD in each loop is enough. \bTABLE \bTR \bTD $(+)$ \eTD \dorecurse{6} {\expandafter \bTD \recurselevel \eTD} \eTR \dorecurse{6} {\bTR \edef\firstrecurselevel{\recurselevel} \expandafter\bTD \recurselevel \eTD

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

2009-03-06 Thread Aditya Mahajan
\recurselevel. \eTD\expandafter        \bTD \recurselevel  \eTD\eTR} \eTABLE \dorecurse{2} {\recurselevel. \recurselevel\crlf} 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 . \expanded

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

2009-03-06 Thread Wolfgang Schuster
of framed, good to know. Expandafter solution: Ah. I was experimenting without the \the\numexpr (replacing both by \relax) so that I could see the output. I did not realize that \numexpr expands its arguments anyways. The first recurselevel was expanded with your \edef and the second

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

2009-03-05 Thread luigi scarso
\dorecurse{5} {\bTR \bTD \recurselevel. \eTD          \bTD \recurselevel  \eTD\eTR} \eTABLE \dorecurse{2} {\recurselevel. \recurselevel\crlf} \stoptext works ok here with latest minimals This is LuaTeX, Version snapshot-0.35.0-2009022702 (Web2C 7.5.7) ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt

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. \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  \eTD\eTR

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

2009-03-04 Thread luigi scarso
\dorecurse{5} {\bTR \bTD \recurselevel. \eTD          \bTD \recurselevel  \eTD\eTR} \eTABLE \dorecurse{2} {\recurselevel. \recurselevel\crlf} \stoptext works ok here with latest minimals This is LuaTeX, Version snapshot-0.35.0-2009022702 (Web2C 7.5.7) ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt

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 \dorecurse{5

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

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

[NTG-context] \recurselevel in a table

2008-12-08 Thread Bart C. Wise
I'm trying to get the \recurselevel in a table; however, every time it's called, the number returned is zero. How do I get the recurselevel? \starttext \bTABLE \bTR \dorecurse{3}{\bTD Cell: \recurselevel\eTD} \eTR \eTABLE \stoptext Bart

Re: [NTG-context] \recurselevel in a table

2008-12-08 Thread Hans Hagen
Bart C. Wise wrote: I'm trying to get the \recurselevel in a table; however, every time it's called, the number returned is zero. How do I get the recurselevel? \starttext \bTABLE \bTR \dorecurse{3}{\bTD Cell: \recurselevel\eTD} \eTR \bTR \dorecurse{3}{\expanded{\bTD Cell: \recurselevel