Re: [NTG-context] How to fix a break

2013-03-17 Thread Rajeesh K Nambiar
On Sat, Mar 16, 2013 at 2:37 PM, hwit...@gmail.com wrote:


 I'm getting mtxrun  | unknown script 'context.lua' or
 'mtx-context.lua'


I've faced the same issue with TeXLive 2012 on Fedora 18. It was fixed by
setting the PATH; for example

export TEXMF=/usr/share/texlive/texmf-dist; export
TEXMFCNF=/usr/share/texlive/texmf/web2c; export TEXMFCACHE=/var/lib/texmf;
mtxrun --script context $@




 on the three line
 \starttext
 This is the text section.
 \stoptext



-- 
Cheers,
Rajeesh
http://rajeeshknambiar.wordpress.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] noalign hassles

2013-03-17 Thread Meer H. van der

On 16 mrt. 2013, at 23:50, Aditya Mahajan adit...@umich.edu
 wrote:

 On Sat, 16 Mar 2013, H. van der Meer wrote:
 
 I am stuck with the following problem.
 
 Inside an \halign (table) I can insert a colored rule with:
 \noalign{\color[red]{\hrule height#1 depth\zeropoint}}
 
 Now I want something more involved like:
 \color[red]{\hrule height#1 width2mm}% fixed length colored block
 \color[black]{\hrule height#1}% filling the width left
 \color[red]{\hrule height#1 width2mm}% fixed length colored block
 producing
 [red][black black black …][red]
 
 However, this doesn't work. I tried various options as: enclosing in \vbox, 
 \hbox, box with leaders. Nothing worked out.
 
 IIUC, you want the frame at the bottom of the first and last column to be 
 red, and rest of the columns to be black.
 
 \noalign is the wrong construct for this. You want aligned rules. So, create 
 a new row (of approrpriate height) and set the rule in each column.

Yes, I guess that is the way to go. I awoke with that thought this morning.

 
 Is there some guru who knows how to accomplish this?
 
 Why are using inserting color rule manually. Both the table and the TABLE 
 mechanisms allow you to easily adjust the color of the rules. Why not use 
 those for creating tables.
 

Because since a long time I have my own table macro with which I am quite 
comfortable: I can make it do exactly as I wish.


Hans van der Meer


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Including section number in reference broken

2013-03-17 Thread Steffen Wolfrum
Hi,

in October 2011 Marco asked how to get an output like this:

I Foo
A Bar
subsection I.A


The example he posted (see below) came to this result:

I Foo
A Bar
subsection A


Then Wolfgang added this line:

\setupreferencestructureprefix[default][prefixsegments=2:*]


But running this advice with todays beta does not have any effect one Marcos 
original example, and it does not lead to the desired ouput.


Is this broken now?

Steffen



%

\definestructureconversionset [myset]
 [
   Romannumerals,
   Romannumerals,
   Romannumerals,
   Character,
 ]
 [numbers]
\setuphead [sectionconversionset=myset]
\setuphead
 [subsection]
 [sectionsegments=subsection]

\starttext
 \startsection [title=Foo]

   \startsubsection [title=Bar, reference=bar]
   \stopsubsection

   \in{subsection}[bar]

 \stopsection
\stoptext

%



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in new beta

2013-03-17 Thread Hans Hagen

On 3/17/2013 5:24 AM, Jonathan Barchi wrote:


Hans (mostly),

I've seen that font error too, but it never seemed to cause problems
so I've been ignoring it after I realized that.

What I did figure out is that it seems to throw that error the first
time it loads a new font - that is, the first time that a new (known
to mtxrun) font is actually used in a document and loaded into the
cache. The error seems to be due to luatex (? or whatever program does
this) trying to compile a .tma file from the cache into a .tmc file,
but the .tma file doesn't exist. I think it then goes to the .otf
file, loads it, and is OK.


Indeed. I fixed it. It has to do with a test for a tmc file (when we run 
luajittex I need to make sure that a tmb file is generated as these 
engines have a different bytecode format). I got rid of the message in 
the new beta.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[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}
{\bTR
\bTD \recurselevel \eTD
\eTR}
\eTABLE


What do i do wrongly here? 

knd regards

Willi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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
 \subject{bTABLE--eTABLE: recurse creates rows}
 \bTABLE
   \dorecurse{3}
   {\bTR
   \bTD \recurselevel \eTD
   \eTR}
 \eTABLE
 
 
 What do i do wrongly here? 

\starttext
\subject{bTABLE--eTABLE: recurse creates rows}
\bTABLE
\dorecurse{3}
{\bTR
\bTD #1 \eTD
\eTR}
\eTABLE
\stoptext

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \feature

2013-03-17 Thread Hans Hagen

Hi,

After some experimenting, I settled on the next interface for dynamic 
features:


The is also a generic command \type {\feature} that takes two arguments. 
Below we show all calls, with long and short variants:


\starttyping
\addfeature[f:mine] \feature [more][f:mine] \feature[+][f:mine]
\subtractfeature   [f:mine] \feature [less][f:mine] \feature[-][f:mine]
\replacefeature[f:mine] \feature  [new][f:mine] \feature[=][f:mine]
\resetandaddfeature[f:mine] \feature[local][f:mine] \feature[!][f:mine]
\revivefeature [f:mine] \feature  [old][f:mine] \feature[][f:mine]
\resetfeature   \feature[reset] \feature[]
\stoptyping

Each variant also accepts \type {{}} instead of \type {[]} so that they 
can conveniently be used in square bracket arguments.


This mechanism replaces \addff cum suis, although for a while they will 
stay around (mapped onto add and subtract).


Idris is testing it (as he used this kind of trickery extensively for 
complex arabic) and he make a nice wiki page.


We can think of a predefined set of simple features.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TeX macro to MP variable

2013-03-17 Thread Marco Patzer
On 2013–03–16 Aditya Mahajan wrote:

 See the visualcounter module for an alternative way to pass values
 from TeX to MP.

I see, you create an initialisation graphic and include it where
necessary. And it's local to the MP instance. Thanks for the
pointer.

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TeX macro to MP variable

2013-03-17 Thread Marco Patzer
On 2013–03–16 Hans Hagen wrote:

 Is there a better way?
 
 grep for \includeMPgraphic

Well, I know \includeMPgraphic but the combination of
\includeMPgraphic and \MPvar is very creative, indeed. But it's a
little tricky to find out what code actually gets included.

Obviously there are plenty of solutions to pass from TeX to MP.

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] To update or not to update - that is the question...

2013-03-17 Thread Marcin Borkowski
Dnia 2013-03-02, o godz. 11:29:09
Hans Hagen pra...@wxs.nl napisał(a):

 On 3/2/2013 1:11 AM, Marcin Borkowski wrote:
  2. Upgrade and insert some manual pagebreaks so that pages 21-22
  (which I'm currently working on) contain the same problems as they
  used to. Pro: easy fix.  Con: very dirty trick, and what if someone
  asks me about some old problems, because he lost his copy?
 
 Why don't you use version numbers and store pdf files? After all,
 it's quite normal that educational materials get updated. Also, use 
 references to numbers instead of pages.

Well, it's a bit complicated.  Assume that I have problems for classes
1-3, they end on page 5.  Then I'd like to prepare problems for class
4, they should start half the page 5 etc.

Still, the course is almost over, so basically the problem
disappeared;).  Thanks for the answer anyway!

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] To update or not to update - that is the question...

2013-03-17 Thread Marcin Borkowski
Dnia 2013-03-02, o godz. 12:04:50
Marco Patzer home...@lavabit.com napisał(a):

 On 2013–03–02 Marcin Borkowski wrote:
 
  Is it possible to find the official ConTeXt repo somewhere,
 
 There is no official repo. But you can use
 
   git://gitorious.org/context/context.git
 
 Marco

Thanks!

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] [***SPAM***] Re: How to fix a break

2013-03-17 Thread hwitloc


Hans' advice to me to  run mtxrun fixed my problem and may it will yours as 
well.
Run:
$  mtxrun --generate

I also updated texlive 2012 after that.  with 
$  tlmgr update --all   # this takes a long time

context runs quite independent of the texlive infrastructure; mtxrun
is its own stub for instance and has its own file database; so, if
'context' does not run, it's because either mtxrun (without suffix on
unix) is not updated

if you see kpse being initialized (or any kpse related program being
run) you're in troubleL

Hans
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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{bTABLE--eTABLE: recurse creates rows}
 \bTABLE
   \dorecurse{3}
   {\bTR
   \bTD \recurselevel \eTD
   \eTR}
 \eTABLE
 
 What do i do wrongly here? 

You’re doing nothing wrong but you have to expand the value of the counter.

One feature of natural tables is the calculated width of the cells, to do this 
context stores
the content of all cells in a token register, i.e. context stores \recurselevel 
as content
of the cell and not the value of the iteration. This content is processed after 
all cells
have been stored and the \recurselevel macro uses at this moment its default 
value 0.

To expand the value of the counter use \expanded{…} to force a expansion.

\bTABLE
  \dorecurse{3}{\bTR\bTD\recurselevel\eTD\eTR}
\eTABLE

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 are numbered with 0.

\starttext
\subject{bTABLE--eTABLE: recurse creates rows}
\bTABLE
\dorecurse{3}
{\bTR
\bTD \recurselevel \eTD
\eTR}
\eTABLE

What do i do wrongly here?


You’re doing nothing wrong but you have to expand the value of the counter.

One feature of natural tables is the calculated width of the cells, to do this 
context stores
the content of all cells in a token register, i.e. context stores \recurselevel 
as content
of the cell and not the value of the iteration. This content is processed after 
all cells
have been stored and the \recurselevel macro uses at this moment its default 
value 0.

To expand the value of the counter use \expanded{…} to force a expansion.

\bTABLE
 \dorecurse{3}{\bTR\bTD\recurselevel\eTD\eTR}
\eTABLE


There was a long discussion on this a couple of years back. Summarized 
here:


http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/

Aditya___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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

2013-03-17 Thread Willi Egger
Thank you all!

I was trying to find your info Adytia, but failed :-)

Willi
On Mar 17, 2013, at 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.
 In the attached minimal example all rows are numbered with 0.
 
 \starttext
 \subject{bTABLE--eTABLE: recurse creates rows}
 \bTABLE
 \dorecurse{3}
 {\bTR
 \bTD \recurselevel \eTD
 \eTR}
 \eTABLE
 
 What do i do wrongly here?
 
 You’re doing nothing wrong but you have to expand the value of the counter.
 
 One feature of natural tables is the calculated width of the cells, to do 
 this context stores
 the content of all cells in a token register, i.e. context stores 
 \recurselevel as content
 of the cell and not the value of the iteration. This content is processed 
 after all cells
 have been stored and the \recurselevel macro uses at this moment its default 
 value 0.
 
 To expand the value of the counter use \expanded{…} to force a expansion.
 
 \bTABLE
 \dorecurse{3}{\bTR\bTD\recurselevel\eTD\eTR}
 \eTABLE
 
 There was a long discussion on this a couple of years back. Summarized here:
 
 http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/
 
 Aditya___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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.
In the attached minimal example all rows are numbered with 0.

\starttext
\subject{bTABLE--eTABLE: recurse creates rows}
\bTABLE
\dorecurse{3}
{\bTR
\bTD \recurselevel \eTD
\eTR}
\eTABLE

What do i do wrongly here?


You’re doing nothing wrong but you have to expand the value of the
counter.

One feature of natural tables is the calculated width of the cells, to
do this context stores
the content of all cells in a token register, i.e. context stores
\recurselevel as content
of the cell and not the value of the iteration. This content is
processed after all cells
have been stored and the \recurselevel macro uses at this moment its
default value 0.

To expand the value of the counter use \expanded{…} to force a expansion.

\bTABLE
 \dorecurse{3}{\bTR\bTD\recurselevel\eTD\eTR}
\eTABLE


There was a long discussion on this a couple of years back. Summarized
here:

http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/


or

\startluacode
  context.bTABLE()
context.bTR()
  context.bTD()
  context.mathematics((+))
  context.eTD()
  for y = 1,6 do
context.bTD()
  context(y)
context.eTD()
  end
context.eTR()
for x = 1,6 do
  context.bTR()
context.bTD()
  context(x)
context.eTD()
for y = 1,6 do
  context.bTD()
context(x+y)
  context.eTD()
end
  context.eTR()
end
  context.eTABLE()
\stopluacode


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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 cld... Thank you Hans!

Willi
On Mar 17, 2013, at 10:52 PM, Hans Hagen wrote:

 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.
 In the attached minimal example all rows are numbered with 0.
 
 \starttext
 \subject{bTABLE--eTABLE: recurse creates rows}
 \bTABLE
\dorecurse{3}
{\bTR
\bTD \recurselevel \eTD
\eTR}
 \eTABLE
 
 What do i do wrongly here?
 
 You’re doing nothing wrong but you have to expand the value of the
 counter.
 
 One feature of natural tables is the calculated width of the cells, to
 do this context stores
 the content of all cells in a token register, i.e. context stores
 \recurselevel as content
 of the cell and not the value of the iteration. This content is
 processed after all cells
 have been stored and the \recurselevel macro uses at this moment its
 default value 0.
 
 To expand the value of the counter use \expanded{…} to force a expansion.
 
 \bTABLE
 \dorecurse{3}{\bTR\bTD\recurselevel\eTD\eTR}
 \eTABLE
 
 There was a long discussion on this a couple of years back. Summarized
 here:
 
 http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/
 
 or
 
 \startluacode
  context.bTABLE()
context.bTR()
  context.bTD()
  context.mathematics((+))
  context.eTD()
  for y = 1,6 do
context.bTD()
  context(y)
context.eTD()
  end
context.eTR()
for x = 1,6 do
  context.bTR()
context.bTD()
  context(x)
context.eTD()
for y = 1,6 do
  context.bTD()
context(x+y)
  context.eTD()
end
  context.eTR()
end
  context.eTABLE()
 \stopluacode
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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.
 In the attached minimal example all rows are numbered with 0.
 
 \starttext
 \subject{bTABLE--eTABLE: recurse creates rows}
 \bTABLE
  \dorecurse{3}
  {\bTR
  \bTD \recurselevel \eTD
  \eTR}
 \eTABLE
 
 What do i do wrongly here? 
 
 You’re doing nothing wrong but you have to expand the value of the counter.
 
 One feature of natural tables is the calculated width of the cells, to do 
 this context stores
 the content of all cells in a token register, i.e. context stores 
 \recurselevel as content
 of the cell and not the value of the iteration. This content is processed 
 after all cells
 have been stored and the \recurselevel macro uses at this moment its default 
 value 0.
 
 To expand the value of the counter use \expanded{…} to force a expansion.
 
 \bTABLE
  \dorecurse{3}{\bTR\bTD\recurselevel\eTD\eTR}
 \eTABLE


Needs \expanded:

\bTABLE
  \dorecurse{3}{\bTR\expanded{\bTD\recurselevel\eTD}\eTR}
\eTABLE

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] To update or not to update - that is the question...

2013-03-17 Thread Jonathan Barchi
Just curious, does this repo stay up to date the the official
updates from garden?

I've been using (basically) the scripts suggested on the minimals
wiki page to update when new betas are released, but it would be great
to be able to this with git instead.

Thanks!
Jon


On Sun, Mar 17, 2013 at 10:05 AM, Marcin Borkowski mb...@wmi.amu.edu.pl wrote:
 Dnia 2013-03-02, o godz. 12:04:50
 Marco Patzer home...@lavabit.com napisał(a):

 On 2013–03–02 Marcin Borkowski wrote:

  Is it possible to find the official ConTeXt repo somewhere,

 There is no official repo. But you can use

   git://gitorious.org/context/context.git

 Marco

 Thanks!

 --
 Marcin Borkowski
 http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
 Adam Mickiewicz University
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___