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
. 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
!
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
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
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
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
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
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
. 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
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
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
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
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
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
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
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
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
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
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
%%% 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
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
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
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
\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
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
:
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
\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
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
\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
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
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
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
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
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
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
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
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
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
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
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
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
\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
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
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
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
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!
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
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
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
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
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
51 matches
Mail list logo