Re: [NTG-context] RFC: path relative to current file.

2012-10-16 Thread Hans Hagen

On 16-10-2012 00:26, Andre Caldas wrote:

1. check for stack underflow; and/or


such things are dealt with


By assert, I mean:
assert(inputstack[#inputstack], Input stack should never be empty
when toppath() is called.)


normally

if inputstack[#inputstack] == nil then
assume path .
end

is good enough ... (assert might make sense in situation where otherwise 
a crash would occur, but that never happens here)


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] ConTeXt inputs files from TEXMF/doc

2012-10-16 Thread Hans Hagen

On 15-10-2012 23:33, Mojca Miklavec wrote:

Hello,

I used \externalfigure[background] in a document (and I forgot to
compile the local file background.tex) and ended up with a pleasant
surprise: the command included
 /usr/local/texlive/2012/texmf-dist/doc/latex/background/background.pdf
instead of complaining that the file doesn't exist. Shouldn't ConTeXt
prevent inclusion of documents from doc?


in principle it should only look for local images and if enabled for 
images in the tree but then only for the context input path


\enabletrackers[graphics.locating]

goves some info about how is searched, so maybe that gives a clue.



Mojca

PS: tested with ConTeXt from TeX Live (as is probably evident from the
fact that the file from TL has been found).


Hopefully fixed in the meantime. (I don't have tl installed currently.)

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] Vertical positioning of floats within itemize

2012-10-16 Thread Hans Hagen

On 16-10-2012 00:45, Marcin Borkowski wrote:

It's me again!

This doesn't quite work as expected (at least by me, that is;)):

\starttext

\startitemize
   \startitem
 \placefigure[right,high,none]{}{\framed[width=3cm,height=2cm]{!}}
 \input knuth
   \stopitem
\stopitemize

\stoptext

(Namely, at the beginning of the \item there is something like a blank
line.)

If I move \placefigure before \startitem, it looks better, but this
seems to be a nasty hack.  Do you have any idea how to achieve this
effect in a more elegant way?


tricky ... a place does some spacing before and after so that interferes 
with the item that places a bullet and expects text next


it would also look kind of weird I guess, bullet - image - caption

some kind of inline variant is needed then

-
  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] ConTeXt inputs files from TEXMF/doc

2012-10-16 Thread Mojca Miklavec
On Tue, Oct 16, 2012 at 9:39 AM, Hans Hagen wrote:
 On 15-10-2012 23:33, Mojca Miklavec wrote:

 Hello,

 I used \externalfigure[background] in a document (and I forgot to
 compile the local file background.tex) and ended up with a pleasant
 surprise: the command included

 /usr/local/texlive/2012/texmf-dist/doc/latex/background/background.pdf
 instead of complaining that the file doesn't exist. Shouldn't ConTeXt
 prevent inclusion of documents from doc?


 in principle it should only look for local images and if enabled for images
 in the tree but then only for the context input path

 \enabletrackers[graphics.locating]

 goves some info about how is searched, so maybe that gives a clue.

I only get the following:

graphics inclusion  locations: local,global
graphics inclusion  path list: . .. ../..
graphics inclusion  strategy: unknown format, prefer quality
graphics inclusion  found: ./background.pdf -
/usr/local/texlive/2012/texmf-dist/doc/latex/background/background.pdf
graphics inclusion  format natively supported by backend: pdf

 PS: tested with ConTeXt from TeX Live (as is probably evident from the
 fact that the file from TL has been found).

 Hopefully fixed in the meantime. (I don't have tl installed currently.)

I tried the beta in standalone distribution, but I wasn't able to
actually run the compilation (see below).

However, the following might suggest that the problem is still present.

 mtxrun background.pdf
/context/tex/texmf-context/doc/latex/background/background.pdf

(I manually added that file into the tree.) The kpsewhich doesn't
return anything.

Mojca

This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
 \write18 enabled.
(/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-ref.lua:1006:
attempt to index field 'structure' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/strc-ref.lua:1006: in 
function '?'
...text/tex/texmf-context/tex/context/base/strc-ref.lua:125: in
function 'initializer'
...text/tex/texmf-context/tex/context/base/core-uti.lua:200: in 
function 'load'
...text/tex/texmf-context/tex/context/base/core-uti.lua:66: in
function 'initialize'
main ctx instance:1: in main chunk.

system   tex  error on line 1 in file
/context/tex/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX
error  ...

 1   %D \module
 2 %D   [   file=cont-yes,
 3 %Dversion=2012.06.01,
 4 %D  title=\CONTEXT\ Miscellaneous Macros,
 5 %D   subtitle=Startup Stub,
 6 %D author=Hans Hagen,
 7 %D   date=\currentdate,
 8 %D  copyright={PRAGMA ADE \ \CONTEXT\ Development Team}]
 9 %C
10 %C This module is part of the \CONTEXT\ macro||package and is
11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for

inserted text ...obname .tuc,\jobname .tua) }
  \setupcolors [\c!state =\v...
everyjob \the \everyjob

l.1
%D \module
?
___
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] Vertical positioning of floats within itemize

2012-10-16 Thread Marcin Borkowski
Dnia 2012-10-16, o godz. 09:41:23
Hans Hagen pra...@wxs.nl napisał(a):

 On 16-10-2012 00:45, Marcin Borkowski wrote:
  It's me again!
 
  This doesn't quite work as expected (at least by me, that is;)):
 
  \starttext
 
  \startitemize
 \startitem
   \placefigure[right,high,none]{}{\framed[width=3cm,height=2cm]{!}}
   \input knuth
 \stopitem
  \stopitemize
 
  \stoptext
 
  (Namely, at the beginning of the \item there is something like a
  blank line.)
 
  If I move \placefigure before \startitem, it looks better, but this
  seems to be a nasty hack.  Do you have any idea how to achieve this
  effect in a more elegant way?
 
 tricky ... a place does some spacing before and after so that
 interferes with the item that places a bullet and expects text next
 
 it would also look kind of weird I guess, bullet - image - caption
 
 some kind of inline variant is needed then

Well, I meant the bullet and item text on the left and image on the
right.  Is it possible?

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] Vertical positioning of floats within itemize

2012-10-16 Thread Hans Hagen

On 16-10-2012 10:05, Marcin Borkowski wrote:


Well, I meant the bullet and item text on the left and image on the
right.  Is it possible?


maybe if you put \placefigure[right]{}{} before the \item

-
  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] Fwd: Need help with \definetabulate

2012-10-16 Thread Malte Stien
Any pointers anyone? I need to get this working and am running out of ideas.

Thank you,
Malte.


Begin forwarded message:

 From: Malte Stien ma...@stien.de
 Date: 15 October 2012 17:03:42
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Need help with \definetabulate
 
 Marco,
 
 \definetabulate [alpha] [|l|l|l|]
 \setuptabulate  [alpha] [bodyfont=small]
 
 This does not work for me quite the way I need it to. I am really just after 
 defining the font-size, but I would like to leave the column setup to the 
 user (I am building an environment and that I would like everyone in my team 
 to use to ensure a consistent look-and-feel or all documents). So, ideally, I 
 would like to do this:
 
 \definetabulate [alpha]
 \setuptabulate  [alpha] [bodyfont=small]
 \starttext[|l|l|l|]
 \startalpha
   \NC first \NC second \NC third \NC\NR
 \stopalpha
 
 \stoptext
 
 ...but that does not seem to work. Any way I can achieve this?
 
 Feel free to add an example. It's a wiki!
 
 Sure. Will do, once I have this working.
 
 Thank you,
 Malte.
 
 
 Hi Malte
 
 I am trying to define two tabulate styles as follows:
 
 - \setuptabulate[split=yes, bodyfont=small]
 - \setuptabulate[split=yes]
 
 \definetabulate [alpha] [|l|l|l|]
 \setuptabulate  [alpha] [bodyfont=small]
 
 \definetabulate [beta] [|l|l|]
 \setuptabulate  [beta] [bodyfont=small, split=yes]
 
 \starttext
 \startalpha
   \NC first \NC second \NC third \NC\NR
 \stopalpha
 
 \startbeta
   \NC lorem \NC ipsum \NC\NR
 \stopbeta
 \stoptext
 
 ...such that I can just refer to them when I
 \starttabulate...\stoptabulate somewhere.
 
 To refer to a table, you place it as a float and use the
 `reference=tab:alphatable` key. Then in the text you refer to the
 table, see \in{table}[tab:alphatable].
 
 I thought, the command \definetabulate would come in handy here,
 but I can't work it out and it appears the documentation on that
 command is pretty scarce.
 
 http://wiki.contextgarden.net/Command/definetabulate
 
 Feel free to add an example. It's a wiki!
 
 
 Marco
 

___
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] [dev-context] Error while updating to new beta

2012-10-16 Thread Hans Hagen

On 16-10-2012 00:14, Aditya Mahajan wrote:


Same error. But if I comment the definition of
resolvers.prefixes.toppath, the error goes away.


fixed (tested on opensuse and ubuntu)

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] Need help with \definetabulate

2012-10-16 Thread Wolfgang Schuster

Am 16.10.2012 um 11:21 schrieb Malte Stien ma...@stien.de:

 Any pointers anyone? I need to get this working and am running out of ideas.

\def\startalpha
  {\dosingleempty\dostartalpha}

\def\dostartalpha[#1]#2\stopalpha
  {\iffirstargument
 \starttabulate   [#1]#2\stoptabulate
   \else
 \starttabulate[|l|p|]#2\stoptabulate
   \fi}

\def\startbeta
  {\dosingleempty\dostartbeta}

\def\dostartbeta[#1]#2\stopbeta
  {\iffirstargument
 \starttabulate   [#1][bodyfont=small]#2\stoptabulate
   \else
 \starttabulate[|l|p|][bodyfont=small]#2\stoptabulate
   \fi}

\starttext

\startalpha
\NC 1 \NC 2 \NC\NR
\stopalpha

\startalpha[|l|l|l|]
\NC 1 \NC 2 \NC 3 \NC\NR
\stopalpha

\startbeta
\NC 1 \NC 2 \NC\NR
\stopbeta

\startbeta[|l|l|l|]
\NC 1 \NC 2 \NC 3 \NC\NR
\stopbeta

\stoptext

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] [dev-context] Error while updating to new beta

2012-10-16 Thread luigi scarso
On Tue, Oct 16, 2012 at 11:37 AM, Hans Hagen pra...@wxs.nl wrote:

 On 16-10-2012 00:14, Aditya Mahajan wrote:

  Same error. But if I comment the definition of
 resolvers.prefixes.toppath, the error goes away.


 fixed (tested on opensuse and ubuntu)


 Hans

confirmed
-- 
luigi
___
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] Fwd: Need help with \definetabulate

2012-10-16 Thread Sietse Brouwer
The problem is that \starttabulate does not accept a format parameter.

Cheap solution (only figured it out now, or I'd have replied before): use

\setuptabulate[alpha][format={}]

before every \startalpha call.
It's not very contexty syntax, but on the other hand it requires no
new definitions at all.

Full example below.
Cheers,
Sietse

\definetabulate[alpha][|l|] % dummy format
\setuptabulate[alpha][style=bold]

\setuptabulate[alpha][format={|r|r|r|}]
\startalpha
\NC r \NC r \NC r \NC \NR
\NC test \NC test \NC test \NC \NR
\stopalpha

\setuptabulate[alpha][format={|c|c|}]
\startalpha
\NC c \NC c \NC \NR
\NC test \NC test \NC \NR
\stopalpha
___
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] Fwd: Need help with \definetabulate

2012-10-16 Thread Hans Hagen

On 16-10-2012 12:52, Sietse Brouwer wrote:

The problem is that \starttabulate does not accept a format parameter.

Cheap solution (only figured it out now, or I'd have replied before): use

\setuptabulate[alpha][format={}]

before every \startalpha call.
It's not very contexty syntax, but on the other hand it requires no
new definitions at all.

Full example below.
Cheers,
Sietse

\definetabulate[alpha][|l|] % dummy format
\setuptabulate[alpha][style=bold]

\setuptabulate[alpha][format={|r|r|r|}]
\startalpha
\NC r \NC r \NC r \NC \NR
\NC test \NC test \NC test \NC \NR
\stopalpha

\setuptabulate[alpha][format={|c|c|}]
\startalpha
\NC c \NC c \NC \NR
\NC test \NC test \NC \NR
\stopalpha


There's also:

\starttext

\definetabulate
  [whatever]
  [|l|r|]

\definetabulate
  [whatever][else]
  [|l|c|r|]

\startwhatever
\NC l\NC r \NC \NR
\NC left \NC right \NC \NR
\stopwhatever

\startwhatever[else]
\NC l\NC m  \NC r \NC \NR
\NC left \NC middle \NC right \NC \NR
\stopwhatever

\stoptext

-
  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] Fwd: Need help with \definetabulate

2012-10-16 Thread Wolfgang Schuster

Am 16.10.2012 um 13:08 schrieb Hans Hagen pra...@wxs.nl:

 On 16-10-2012 12:52, Sietse Brouwer wrote:
 The problem is that \starttabulate does not accept a format parameter.
 
 Cheap solution (only figured it out now, or I'd have replied before): use
 
 \setuptabulate[alpha][format={}]
 
 before every \startalpha call.
 It's not very contexty syntax, but on the other hand it requires no
 new definitions at all.
 
 Full example below.
 Cheers,
 Sietse
 
 \definetabulate[alpha][|l|] % dummy format
 \setuptabulate[alpha][style=bold]
 
 \setuptabulate[alpha][format={|r|r|r|}]
 \startalpha
 \NC r \NC r \NC r \NC \NR
 \NC test \NC test \NC test \NC \NR
 \stopalpha
 
 \setuptabulate[alpha][format={|c|c|}]
 \startalpha
 \NC c \NC c \NC \NR
 \NC test \NC test \NC \NR
 \stopalpha
 
 There's also:
 
 \starttext
 
 \definetabulate
  [whatever]
  [|l|r|]
 
 \definetabulate
  [whatever][else]
  [|l|c|r|]
 
 \startwhatever
 \NC l\NC r \NC \NR
 \NC left \NC right \NC \NR
 \stopwhatever
 
 \startwhatever[else]
 \NC l\NC m  \NC r \NC \NR
 \NC left \NC middle \NC right \NC \NR
 \stopwhatever
 
 \stoptext

Can you add a second argument to custom tabulation which would allow one to 
write

  \startwhatever[format={…}]

or

  \startwhatever[else][format={…}]

to change the number of columns and format for a certain table.

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] RFC: path relative to current file.

2012-10-16 Thread Andre Caldas
 1. check for stack underflow; and/or

 such things are dealt with

 By assert, I mean:
 assert(inputstack[#inputstack], Input stack should never be empty
 when toppath() is called.)

 normally

 if inputstack[#inputstack] == nil then
 assume path .
 end

 is good enough ...

Is inputstack[#inputstack] == nil ever supposed to happen?
When reading from stdin, maybe... then, it is ok.


 (assert might make sense in situation where otherwise a
 crash would occur, but that never happens here)

If it is not supposed to happen, then it would indicate a bug, and
should be detected as early as possible. A crash is a special case
of that. But this is a matter of taste... :-)


Cheers,
André Caldas.
___
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] Fwd: Need help with \definetabulate

2012-10-16 Thread Hans Hagen

On 16-10-2012 13:23, Wolfgang Schuster wrote:


Am 16.10.2012 um 13:08 schrieb Hans Hagen pra...@wxs.nl:


On 16-10-2012 12:52, Sietse Brouwer wrote:

The problem is that \starttabulate does not accept a format parameter.

Cheap solution (only figured it out now, or I'd have replied before): use

\setuptabulate[alpha][format={}]

before every \startalpha call.
It's not very contexty syntax, but on the other hand it requires no
new definitions at all.

Full example below.
Cheers,
Sietse

\definetabulate[alpha][|l|] % dummy format
\setuptabulate[alpha][style=bold]

\setuptabulate[alpha][format={|r|r|r|}]
\startalpha
\NC r \NC r \NC r \NC \NR
\NC test \NC test \NC test \NC \NR
\stopalpha

\setuptabulate[alpha][format={|c|c|}]
\startalpha
\NC c \NC c \NC \NR
\NC test \NC test \NC \NR
\stopalpha


There's also:

\starttext

\definetabulate
  [whatever]
  [|l|r|]

\definetabulate
  [whatever][else]
  [|l|c|r|]

\startwhatever
\NC l\NC r \NC \NR
\NC left \NC right \NC \NR
\stopwhatever

\startwhatever[else]
\NC l\NC m  \NC r \NC \NR
\NC left \NC middle \NC right \NC \NR
\stopwhatever

\stoptext


Can you add a second argument to custom tabulation which would allow one to 
write

   \startwhatever[format={…}]

or

   \startwhatever[else][format={…}]

to change the number of columns and format for a certain table.


I wonder is someone can remember this ...

\unprotect

\unexpanded\def\tabl_start_defined[#1]%
  {\bgroup
   \edef\currenttabulationparent{#1}%
   \let\currenttabulation\currenttabulationparent
   \dodoubleargument\tabl_start_defined_indeed}

\def\tabl_start_defined_indeed
  {\iffirstargument
 \ifsecondargument
   \doubleexpandafter\tabl_start_defined_two
 \else
   \doubleexpandafter\tabl_start_defined_one
 \fi
   \else
  \singleexpandafter\tabl_start_defined_zero
   \fi}

\def\tabl_start_defined_one[#1][#2]%
  {\doifassignmentelse{#1}
 {\setuptabulation[\currenttabulation][#1]}%
 {\edef\currenttabulation{\currenttabulation:#1}}%
   \tabl_tabulate_start_building}

\def\tabl_start_defined_two[#1][#2]%
  {\edef\currenttabulation{\currenttabulation:#1}%
   \setuptabulation[\currenttabulation][#2]%
   \tabl_tabulate_start_building}

\def\tabl_start_defined_zero[#1][#2]%
  {\tabl_tabulate_start_building}


\protect

\starttext

\definetabulate
  [whatever]
  [|l|r|]

\definetabulate
  [whatever][else]
  [|l|c|r|]

\startwhatever
\NC l\NC r \NC \NR
\NC left \NC right \NC \NR
\stopwhatever

\startwhatever[else]
\NC l\NC m  \NC r \NC \NR
\NC left \NC middle \NC right \NC \NR
\stopwhatever

\startwhatever[else][format={|c|c|c|c|}]
\NC l\NC m  \NC m  \NC r \NC \NR
\NC left \NC middle \NC middle \NC right \NC \NR
\stopwhatever

\stoptext

-
  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] [dev-context] Error while updating to new beta

2012-10-16 Thread Aditya Mahajan

On 2012-10-16, at 5:37 AM, Hans Hagen pra...@wxs.nl wrote:

 On 16-10-2012 00:14, Aditya Mahajan wrote:
 
 Same error. But if I comment the definition of
 resolvers.prefixes.toppath, the error goes away.
 
 fixed (tested on opensuse and ubuntu)
 

Thanks. The format is made cleanly now. 

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] New module: pararef

2012-10-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thanks for the job.

Would you kindly add a Czech alternative:


\setupparareftext[cz][braketOpen={(}] % Should be bracketOpen
\setupparareftext[cz][braketClose={)}] % Should be bracketClose
\setupparareftext[cz][atpageLeft={ na stran\ecaron\ }]
\setupparareftext[cz][atpageRight={}]


Best regards,

Lukas


On Sat, 13 Oct 2012 01:44:36 +0200, Zenlima p...@zenlima.eu wrote:


Hallo,

after so many of you helped me, I want to give back. I just made my
t-pararef module public for everyone:

http://modules.contextgarden.net/pararef

http://wiki.contextgarden.net/Paragraph_Referencing



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Total Number of Pages

2012-10-16 Thread Nicholas Ulle
Hi,

How would I go about inserting the total number of pages in my document? I
assume this would require two passes of texec or context. I've tried
Googling and checking ConTeXt garden, but couldn't find anything regarding
this.

Thanks again,
Nick
___
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] Subscript Depth

2012-10-16 Thread Nicholas Ulle
Thanks for the tip. I assume adjusting the depth of all subscripts in the
document would require a somewhat extensive knowledge of TeX font handling?
(that is, ConTeXt doesn't provide macros for it, I should learn more TeX if
I want to know how to do that?)

Nick

On Mon, Oct 15, 2012 at 10:07 AM, Hans Hagen pra...@wxs.nl wrote:

 On 15-10-2012 01:08, Nicholas Ulle wrote:

 Hi,

 How would I go about getting subscripts to stay at the same depth? An
 example of the problem I'm having is:

 \starttext
 % Notice the b's are not aligned
 $a_b' a_b$
 \stoptext

 I'm only just learning ConTeXt and TeX, so I'm not sure what I'd need to
 change to fix this.


 \starttext
 $a_b' a_b^{}$
 \stoptext

 It's a feature of tex to treat single scripts differently.

 --**--**-
   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] Total Number of Pages

2012-10-16 Thread Marco Patzer
2012-10-16 Nicholas Ulle:

Hi Nicholas

 How would I go about inserting the total number of pages in my document?

\lastpage


Marco

___
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] Total Number of Pages

2012-10-16 Thread Hrothgar Boyce
I've not tested this, but suspect that there may be a difference
between the below two commands
  \lastpage  and
  \totalnumberofpages

possibly depending on whether title pages or preambles are counted.

On Tue, Oct 16, 2012 at 1:12 PM, Marco Patzer home...@lavabit.com wrote:
 2012-10-16 Nicholas Ulle:

 Hi Nicholas

 How would I go about inserting the total number of pages in my document?

 \lastpage


 Marco

 ___
 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] Subscript Depth

2012-10-16 Thread Hans Hagen

On 16-10-2012 22:05, Nicholas Ulle wrote:

Thanks for the tip. I assume adjusting the depth of all subscripts in the
document would require a somewhat extensive knowledge of TeX font handling?
(that is, ConTeXt doesn't provide macros for it, I should learn more TeX if
I want to know how to do that?)


It requires messing around with some math font parameters but that can 
have side effects. It is on the agenda for luatex to provide a special 
math variant for this (e.g. handy for chemistry).


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] Total Number of Pages

2012-10-16 Thread Philipp Gesang
···date: 2012-10-16, Tuesday···from: Hrothgar Boyce···

 I've not tested this, but suspect that there may be a difference
 between the below two commands
   \lastpage  and
   \totalnumberofpages

These are actually synonyms ;-) But it’s true, there is the
difference between counting the real pages (the number of sheets
you need to print the pdf) and the user pages:

·
\setuphead[section][page=yes]%% for testing
\setuppagenumber[state=stop]
\starttext

%% synonyms: \lastpage, \lastrealpage, \nofrealpages
last real page:  \totalnumberofpages \par
%% synonyms: \nofuserpages, \lastuserpagenumber
last user  page: \lastpagenumber\par
%% for sake of completeness
first real page \firstpage  \par

\chapter{no counting}
\dorecurse{5}{%
  \section{iteration \recurselevel}
  \starttable[|l|l|]
\NC counter\NC value\NC\NR
\NC userpageno \NC \realpagenumber  \NC\NR
\NC pageno \NC \userpagenumber  \NC\NR
  \stoptable
}

\setuppagenumber[state=start]
\chapter{counting enabled}
\dorecurse{5}{%
  \section{iteration \recurselevel}
  \starttable[|l|l|]
\NC counter\NC value\NC\NR
\NC userpageno \NC \realpagenumber  \NC\NR
\NC pageno \NC \userpagenumber  \NC\NR
  \stoptable
}
·

There are further counters and synonyms, all defined in
strc-pag.mkiv.

Regards
Philipp



 possibly depending on whether title pages or preambles are counted.
 
 On Tue, Oct 16, 2012 at 1:12 PM, Marco Patzer home...@lavabit.com wrote:
  2012-10-16 Nicholas Ulle:
 
  Hi Nicholas
 
  How would I go about inserting the total number of pages in my document?
 
  \lastpage
 
 
  Marco
 
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpbRw0CY9Soy.pgp
Description: PGP 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] scale=... and specifying the width and height of a figure

2012-10-16 Thread Hans Hagen

On 16-10-2012 23:08, Aditya Mahajan wrote:

Hi,

If scale option for a figure is set, \externalfigure does not honor the
width and the height parameters. For example

\externalfigure[cow][width=1cm, height=3cm, scale=750]

gives a figure which has the usual aspect ratio.

I know that settings scale=... along with width and height does not make
sense. But, in one of my project, I set

\setupexternalfigures[scale=750]

as that makes sense for most of the figures, and if I try to use

\externalfigure[cow][width=1cm, height=3cm]

then the aspect ratio of the figures does not change.

Not sure if this should be classified as a bug, but I am posting it here
in case anyone else encounters the same issue and needs to know how to
override this behavior:

\externalfigure[cow][width=1cm, height=3cm, scale=]


if needed you can use an abstraction:

\starttext

\defineexternalfigure[whatever][width=3cm,height=4cm]
\defineexternalfigure[another] [scale=500]

\externalfigure[cow]
\externalfigure[cow][whatever]
\externalfigure[cow][another]

\stoptext


-
  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] scale=... and specifying the width and height of a figure

2012-10-16 Thread Aditya Mahajan

On Tue, 16 Oct 2012, Hans Hagen wrote:


On 16-10-2012 23:08, Aditya Mahajan wrote:

Hi,

If scale option for a figure is set, \externalfigure does not honor the
width and the height parameters. For example

\externalfigure[cow][width=1cm, height=3cm, scale=750]

gives a figure which has the usual aspect ratio.

I know that settings scale=... along with width and height does not make
sense. But, in one of my project, I set

\setupexternalfigures[scale=750]

as that makes sense for most of the figures, and if I try to use

\externalfigure[cow][width=1cm, height=3cm]

then the aspect ratio of the figures does not change.

Not sure if this should be classified as a bug, but I am posting it here
in case anyone else encounters the same issue and needs to know how to
override this behavior:

\externalfigure[cow][width=1cm, height=3cm, scale=]


if needed you can use an abstraction:

\starttext

\defineexternalfigure[whatever][width=3cm,height=4cm]
\defineexternalfigure[another] [scale=500]

\externalfigure[cow]
\externalfigure[cow][whatever]
\externalfigure[cow][another]

\stoptext


I actually use these abstractions, but with the default value also set. 
That's the whole point of having the defaults, right? So, my current 
solution is:


\setupexternalfigures[scale=750, factor=max, maxwidth=\textwidth, 
maxheight=\textheight]

\defineexternalfigure[grid]
[width=0.55\paperwidth, height=0.33\paperwidth, scale=, factor=]

Around five months ago, I did not need to reset scale and factor.

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] scale=... and specifying the width and height of a figure

2012-10-16 Thread Hans Hagen

On 16-10-2012 23:33, Aditya Mahajan wrote:


I actually use these abstractions, but with the default value also set.
That's the whole point of having the defaults, right? So, my current
solution is:

\setupexternalfigures[scale=750, factor=max, maxwidth=\textwidth,
maxheight=\textheight]

\defineexternalfigure[grid]
 [width=0.55\paperwidth, height=0.33\paperwidth, scale=, factor=]

Around five months ago, I did not need to reset scale and factor.


The code now uses the new inheritance mechamisn and in mkii external 
figures had a whole bunch of (sometimes tricky) resets. Some were reset, 
some not. One complication with externalfigures is that scaling can 
depend on combinations (width, maxwidth etc).


This is not much different from \setupframed .. when someone uses that 
one global all kind of derived mechanisms get affected. (In fact, there 
are many such global settings.)


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] scale=... and specifying the width and height of a figure

2012-10-16 Thread Aditya Mahajan

On Tue, 16 Oct 2012, Hans Hagen wrote:


On 16-10-2012 23:33, Aditya Mahajan wrote:


I actually use these abstractions, but with the default value also set.
That's the whole point of having the defaults, right? So, my current
solution is:

\setupexternalfigures[scale=750, factor=max, maxwidth=\textwidth,
maxheight=\textheight]

\defineexternalfigure[grid]
 [width=0.55\paperwidth, height=0.33\paperwidth, scale=, factor=]

Around five months ago, I did not need to reset scale and factor.


The code now uses the new inheritance mechamisn and in mkii external figures 
had a whole bunch of (sometimes tricky) resets. Some were reset, some not.


I know. In the past I had to work around the fact that scale could not be 
set globally (because it was reset at each invocation). The current 
behavior (everything inherits from the global setting) is more predictable 
and easier to handle.


One complication with externalfigures is that scaling can depend on 
combinations (width, maxwidth etc).


... and the only way to figure out that dependence is to read the source 
code. At some stage I'll try to document how scale and factor work.


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] ConTeXt unofficial test suite stub

2012-10-16 Thread Aditya Mahajan

On Sun, 7 Oct 2012, Marco Pessotto wrote:



Hello there!

TL;DR: https://github.com/melmothx/context-unofficial-test-suite

A week ago I had a conversation with mpfusion and another user over IRC
about the ConTeXt test suite. mpfusion had a tarball with some test and
an elaborate machinery to see if the testfiles compile. He kindly
provided the tarball, and I took the liberty to do it my way (I didn't
hear back from him, I assume he's working on his solution), using the
testfiles and rewriting the code.

[]

I'd like to know if there is some interest in this thing, as (obviously)
the test suit is not really populated to have any kind of value. There
is also room for improvement (like custom arguments to the compilation).


This is an excellent idea. I am assuming that you are aware of the earlier 
effort:


http://wiki.contextgarden.net/Test

In particular the test repository:

http://foundry.supelec.fr/gf/project/contexttest/scmsvn/

The test repository started around six years ago after discussions at the 
first ConTeXt meeting, but lost momentum after a few years. It does have a 
more extensive set of test cases, and a script to compare PDF files. It 
may be worthwhile to merge the two repos.


Ideally such a test suite should be run periodically on a server and it 
can send an email to a list if one of the tests fails.


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
___


[NTG-context] making tables with lua

2012-10-16 Thread Jeong Dal
Dear all,

I used code which generates the table as following:

\startluacode
local NC, NR, HL, VL = context.NC, context.NR, context.HL, context.VL
context.starttabulate { |c|c|c|c|c|c|c|c|c|c| }
HL()
for i=1, 6, 1 do
for j=1,10 ,1 do
k= i % 3
if k==1 then
VL() context(10*(i - k)/3+j)
else
VL()
end
end
VL()
NR()
if k==0 then
HL()
end
end
context.stoptabulate()
\stopluacode

But it has a fixed column definition as |c|c|c|c|c|c|c|c|c|c| and the number 
of columns.
I wonder it is possible to use the variable for j to control the number of 
columns and the column setting.
Of course, I may put similar codes  which are different only in the number of 
columns and column settings when I need a table.
But I have many similar tables whose number of columns are different only.
If such a method is possible, I'd like to put such a code in 
\startbuffer…\stopbudffer and call it to generate tables of various number of 
columns given at each time. 
I also don't know whether it is possible to convey a number from ConTeXt to the 
variable in Lua code.

I write this email because I saw a hope in recent discussion Re: Fwd: Need 
help with \definetabulate which has a method to vary the column setting.

\definetabulate
[whatever]
[|l|r|]

\definetabulate
[whatever][else]
[|l|c|r|]


It may be a lazy man's question with no need for others.

Thank you for reading.

Best regards,

Dalyoung

___
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] pgfplots example compile error

2012-10-16 Thread LeeJason

Dear all,

When I compile the following simple pgfplots example

\usemodule[pgfplots]
\pgfplotsset{compat=1.3}

\starttext
Using Con{\TeX}t.

\starttikzpicture
\startloglogaxis
\addplot coordinates {
(1,1)
(16,16)
(32,64)
};
\stoploglogaxis
\stoptikzpicture

\stoptext
an error occured:





―

1980

LuaTeX error \directlua :1: module 'pgfplots.lua' not found:
no field package.preload['pgfplots.lua']
no file '.\pgfplots\lua.dll'
no file 'D:\context\tex\texmf-mswin\bin\lib\lua\pgfplots\lua.dll'
no file 'D:\context\tex\texmf-mswin\bin\lib\lua\loadall.dll'
no file '.\pgfplots.dll'
no file 'D:\context\tex\texmf-mswin\bin\lib\lua\pgfplots.dll'
no file 'D:\context\tex\texmf-mswin\bin\lib\lua\loadall.dll'
stack traceback:
[C]: in function 'require'
\directlua :1: in main chunk.

system   tex  error on line 1980 in file 
D:/context/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex: 
LuaTeX error  ...

1970 \catcode`\=12
1971 \gdef\pgfplotsDQ{}%
1972 \catcode`\|=12
1973 \gdef\pgfplotsVERTBAR{|}%
1974 \catcode`\#=12
1975 \gdef\pgfplotsHASH{#}%
1976 \catcode`\%=12 \gdef\pgfplotsPERCENT{%}}
1977 
1978 \pgfutil@IfUndefined{directlua}{}{%
1979  \directlua{require(\pgfplotsDQ pgfplots.lua\pgfplotsDQ)}%
1980   }%
1981 
1982 \input pgfplotsliststructure.code.tex
1983 \input pgfplotsliststructureext.code.tex
1984 \input pgfplotsarray.code.tex
1985 \input pgfplotsmatrix.code.tex
1986 \input pgfplotstableshared.code.tex
1987 \input pgfplotsdeque.code.tex
1988 \input pgfplotsbinary.code.tex
1989 \input pgfplotsutil.verb.code.tex
1990 

argument ...gfplotsDQ pgfplots.lua\pgfplotsDQ )}
  
\pgfutil@secondoftwo #1#2-#2
 
l.1980 }
%
I use the latest beta version of ConTeXt minimals.

I don't know if this is a bug.

Best regards,

Jason Lee
  ___
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] pgfplots example compile error

2012-10-16 Thread Aditya Mahajan

On Wed, 17 Oct 2012, LeeJason wrote:



Dear all,

When I compile the following simple pgfplots example

\usemodule[pgfplots]

[...]

LuaTeX error \directlua :1: module 'pgfplots.lua' not found:

[...]

I use the latest beta version of ConTeXt minimals.

I don't know if this is a bug.


This is because pgfplots is storing the lua file in a directory that is 
not part of the ConTeXt search tree.


I reported this to the pgfplots mailing list about a week ago, and it will 
be fixed in the next release of pgfplots.


http://sourceforge.net/mailarchive/message.php?msg_id=29944181

For the time being, you can simply copy the pgfplots.lua file to the 
current working directory.


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
___