Re: [NTG-context] interesting link

2012-09-18 Thread luigi scarso
On Mon, Sep 17, 2012 at 11:16 PM, Hans Hagen pra...@wxs.nl wrote:

 Hi,

 As Luigi hasn't posted a link in a while ... here is one that looks
 interesting

 http://www.nongnu.org/gsl-**shell/doc/http://www.nongnu.org/gsl-shell/doc/

 (would fit nicely in luatex a library given that tex as system for
 typesetting is used for scientific publishing)

 I've (of course...) already built a binding for gsl and I keep an eye on
it. Until two days  ago the problem was luajit: but on September 16
http://www.freelists.org/post/luajit/Support-for-goto-and-labels-added
so, considering the move from lua 5.1 to lua 5.2,  it's reasonable to start
to think at luajittex  (well, at least for me)  .
-- 
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] interesting link

2012-09-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,


http://www.nongnu.org/gsl-shell/doc/


it looks useful...

So far, I can't see any binding between GSL's 'graph.plot*()' and any output 
that would be accepted by ConTeXt; e.g. no .png nor MP code can be produced 
from GSL.

It would be nice to have them as it seems many computations could be solved by 
GSL and it would be good to have a way to put the graphical results to ConTeXt.

Lukas


--
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
___


Re: [NTG-context] Ctx: list of commands

2012-09-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

@Philipp:


1) is there a Ctx command/switch which would generate list of all current 
ConTeXt commands? E.g.


Hi Lukáš, if you interpret “current Context commands” as “macros
known to TeX”, you may try dumping the hashtable with these lines:

···
\starttext
  \startluacode
table.print(tex.hashtokens())
  \stopluacode
\stoptext
···


thanks for the idea.

Unfortunately, current Context commands don't need to be necessarily macros known to 
TeX, as ConTeXt may have defined many macros that are not for public use.

It seems that my question is not so straightforward - I didn't think it would it could be problem 
to separate public macros (= public ConTeXt commands = these that are cited in manuals, 
on wiki or simply - which you can use).

Maybe - if I know ALL macros - it would be easy to distinguish between public ones and 
protected ones - supposing the latter have always at least one of the special chars - 
_@?! (or other?) in it.

I tried your idea, but in this part of the output:


...
[startJScode]={ 127, 290597, 60096 },
[startJSpreamble]={ 127, 290644, 49920 },
[startLUA]={ 127, 245948, 28541 },
[startLuaSnippet]={ 127, 244345, 530 },
[startLuaSnippetBoundary]={ 127, 246417, 46341 },
[startLuaSnippetComment]={ 127, 247113, 23071 },
[startLuaSnippetName]={ 127, 246301, 9781 },
[startLuaSnippetNameBase]={ 127, 244439, 46291 },
[startLuaSnippetNameCore]={ 127, 245803, 61132 },
[startLuaSnippetNameLibraries]={ 127, 246257, 38877 },
[startLuaSnippetQuote]={ 127, 246898, 19907 },
[startLuaSnippetSpecial]={ 127, 247006, 23901 },
[startLuaSnippetString]={ 127, 246646, 61126 },
[startMP]={ 127, 245820, 14236 },
...


- the command/macro \startluacode is missing (why?) and

- e.g. the macro \startLuaSnippetNameBase is not mentioned for public use I 
guess, but also is not detectable by presence of any special char (@_!?).

So I'm not sure this way is usable.

@Hans:

How exactly did you mean to use:


\starttext
   \startluacode
 table.print(tex.hashtokens())
   \stopluacode
\stoptext
···


or

\enabledirectives[system.dumphash]

\enabledirectives[system.dumpdelta]


This:


\starttext
  \enabledirectives[system.dumphash]
  \enabledirectives[system.dumpdelta]
\stoptext


gives nothing useful.

How exactly to use the command/switch --textpad or --text with 
context.exe?

Best regards,

Lukas


--
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
___

Re: [NTG-context] Ctx: list of commands

2012-09-18 Thread Peter Münster
On Tue, Sep 18 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 - the command/macro \startluacode is missing (why?) and

Are you sure? I can see it...

-- 
   Peter
___
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] Ctx: list of commands

2012-09-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Tue, 18 Sep 2012 09:36:54 +0200, Peter Münster pmli...@free.fr wrote:


- the command/macro \startluacode is missing (why?) and


Are you sure? I can see it...


... You're right, I see it, too...

Lukas

___
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] interesting link

2012-09-18 Thread Hans Hagen

On 18-9-2012 08:38, luigi scarso wrote:

On Mon, Sep 17, 2012 at 11:16 PM, Hans Hagen pra...@wxs.nl wrote:


Hi,

As Luigi hasn't posted a link in a while ... here is one that looks
interesting

http://www.nongnu.org/gsl-**shell/doc/http://www.nongnu.org/gsl-shell/doc/

(would fit nicely in luatex a library given that tex as system for
typesetting is used for scientific publishing)

I've (of course...) already built a binding for gsl and I keep an eye on

it. Until two days  ago the problem was luajit: but on September 16
http://www.freelists.org/post/luajit/Support-for-goto-and-labels-added
so, considering the move from lua 5.1 to lua 5.2,  it's reasonable to start
to think at luajittex  (well, at least for me)  .


Interesting. So it works well as a library?

I'm not so sure if we gain much with jit in luatex but it's worth a try. 
It would also be interesting to see how the 5.2 garbage collector

works out (as well as the new string has implementation).

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] interesting link

2012-09-18 Thread Hans Hagen

On 18-9-2012 09:10, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,


http://www.nongnu.org/gsl-shell/doc/


it looks useful...

So far, I can't see any binding between GSL's 'graph.plot*()' and any
output that would be accepted by ConTeXt; e.g. no .png nor MP code can
be produced from GSL.


it should not be to hard (for luigi, given his mf project) to add output 
to mp


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] Ctx: list of commands

2012-09-18 Thread Hans Hagen

On 18-9-2012 08:44, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

@Philipp:


1) is there a Ctx command/switch which would generate list of all
current ConTeXt commands? E.g.


Hi Lukáš, if you interpret “current Context commands” as “macros
known to TeX”, you may try dumping the hashtable with these lines:

···
\starttext
  \startluacode
table.print(tex.hashtokens())
  \stopluacode
\stoptext
···


thanks for the idea.

Unfortunately, current Context commands don't need to be necessarily
macros known to TeX, as ConTeXt may have defined many macros that are
not for public use.

It seems that my question is not so straightforward - I didn't think it
would it could be problem to separate public macros (= public ConTeXt
commands = these that are cited in manuals, on wiki or simply - which
you can use).


mult-def.lua has some information (and could be extended) as does 
mult-low.lua


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] interesting link

2012-09-18 Thread luigi scarso
On Tue, Sep 18, 2012 at 10:19 AM, Hans Hagen pra...@wxs.nl wrote:

 On 18-9-2012 09:10, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 Hello,

  http://www.nongnu.org/gsl-**shell/doc/http://www.nongnu.org/gsl-shell/doc/


 it looks useful...

 So far, I can't see any binding between GSL's 'graph.plot*()' and any
 output that would be accepted by ConTeXt; e.g. no .png nor MP code can
 be produced from GSL.


 it should not be to hard (for luigi, given his mf project) to add output
 to mp


there are
save(filename[, w, h])
Save the plot in a file in a bitmap image format. The first argument is the
file name without extension while the other optional arguments are the
width and the height in pixels of the image. The format used is BMP on
windows and PPM on Linux.

save_svg(filename[, w, h])
Save the plot in the given filename in SVG format. Two optional parameters
can be given to specify the width and height of the drawing area. If the
“svg” extension is not given it will be automatically added.

They can managed with imagemagick/inkscape

On the other side, I often manage to export a kind of lua table (if
possible) and use lua /mplib of context to produce a single pdf of each
graph.

-- 
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] output of token.command_name() [was: Ctx: list of commands]

2012-09-18 Thread Philipp Gesang
···date: 2012-09-18, Tuesday···from: Hans Hagen···

 On 17-9-2012 21:29, Philipp Gesang wrote:
 ···date: 2012-09-17, Monday···from: Procházka Lukáš Ing. - Pontex s. r. 
 o.···
 
 Hello,
 
 1) is there a Ctx command/switch which would generate list of all current 
 ConTeXt commands? E.g.
 
 Hi Lukáš, if you interpret “current Context commands” as “macros
 known to TeX”, you may try dumping the hashtable with these lines:
 
 ···
 \starttext
\startluacode
  table.print(tex.hashtokens())
\stopluacode
 \stoptext
 ···
 
 or
 
 \enabledirectives[system.dumphash]
 
 \enabledirectives[system.dumpdelta]

In trackers.dumphashtofile(), you use the Luatex function
token.commandname(). Among others, it returns a category
“undefined_cs”. Are those the macros that have been defined and
invalidated, but are kept on the hash anyways because of some
issues involving \gdef?

(I remember reading about this in “TeX the Program” but I can’t
look it up right now as it is buried somewhere deep inside a book
crate.)

Philipp

 
 
 
 -
   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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpUOmy0e2Jey.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] output of token.command_name() [was: Ctx: list of commands]

2012-09-18 Thread Hans Hagen

On 18-9-2012 11:52, Philipp Gesang wrote:

···date: 2012-09-18, Tuesday···from: Hans Hagen···


On 17-9-2012 21:29, Philipp Gesang wrote:

···date: 2012-09-17, Monday···from: Procházka Lukáš Ing. - Pontex s. r. 
o.···


Hello,

1) is there a Ctx command/switch which would generate list of all current 
ConTeXt commands? E.g.


Hi Lukáš, if you interpret “current Context commands” as “macros
known to TeX”, you may try dumping the hashtable with these lines:

···
\starttext
   \startluacode
 table.print(tex.hashtokens())
   \stopluacode
\stoptext
···


or

\enabledirectives[system.dumphash]

\enabledirectives[system.dumpdelta]


In trackers.dumphashtofile(), you use the Luatex function
token.commandname(). Among others, it returns a category
“undefined_cs”. Are those the macros that have been defined and
invalidated, but are kept on the hash anyways because of some
issues involving \gdef?

(I remember reading about this in “TeX the Program” but I can’t
look it up right now as it is buried somewhere deep inside a book
crate.)


well, undefined is still defined but with meaning 'undefined' ... indeed 
all stays in the hash .. harmless


-
  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] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Marco Patzer
Hi,

I have some questions regarding the bibliography.

1)
The style files bibl-ams.tex, bibl-ssa.tex, etc contain strings like
``, ~. This does not make sense to me. The `` ends up like that in
the output and the tilde might interfere with the \asciimode
setting. Wouldn't it be better to use the proper Unicode glyphs
(U+201C, U+00A0, etc.) nowadays? I assume the files are old MkII
files and not being updated since. Example:

\setupbibtex   [database=sample]
\setuppublications [alternative=ssa]
\starttext
  \cite[hh2010a]
  \cite[Eijkhout1991]
  \cite[hh2010]
  \placepublications [criterium=cite]
\stoptext

2)
The @ELECTRONIC type does not work (already mentioned in the wiki).
It does not show up in the references list. I guess no one bothered
adding them and it's up to me to add the corresponding entries.

Maybe someone has already prepared a working file for the APA style?

3)
How to sort the bibliography by author? According to the bib manual
I expected this to work:

\setupbibtex   [database=sample]
\setuppublications [alternative=apa, criterium=cite, sort=author]
\starttext
  \cite[hh2010a]
  \cite[Eijkhout1991]
  \placepublications
\stoptext

4)
\completepublications produces an empty page. Is that intended?

\setupbibtex   [database=sample]
\setuppublications [alternative=ssa, criterium=cite]
\starttext
 \cite[hh2010a]
 \completepublications
\stoptext

5) (side question)
What is BibTeX used for in ConTeXt? As far as I can see, it reads
the .bib database and generates a .bbl file which then is read in by
ConTeXt. Why do we need an external tool for this? Why does ConTeXt
not read in the .bib database and directly save it as a Lua table?


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] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Schmitz Thomas A.

On Sep 18, 2012, at 12:28 PM, Marco Patzer home...@lavabit.com wrote:

 Hi,
 
 I have some questions regarding the bibliography.
 
 1)
 The style files bibl-ams.tex, bibl-ssa.tex, etc contain strings like
 ``, ~. This does not make sense to me. The `` ends up like that in
 the output and the tilde might interfere with the \asciimode
 setting. Wouldn't it be better to use the proper Unicode glyphs
 (U+201C, U+00A0, etc.) nowadays? I assume the files are old MkII
 files and not being updated since. Example:
 
 \setupbibtex   [database=sample]
 \setuppublications [alternative=ssa]
 \starttext
  \cite[hh2010a]
  \cite[Eijkhout1991]
  \cite[hh2010]
  \placepublications [criterium=cite]
 \stoptext
 
You're right, this is old code that needs to be fixed. The problem is that 
users of bibtex in ConTeXt are a minority, and users of such precooked styles a 
tiny minority - I use bibtex quite often, but wouldn't know how to fix these 
styles and have never used them. So if you're sure about what to do, fix them 
and send Hans a patch.

 2)
 The @ELECTRONIC type does not work (already mentioned in the wiki).
 It does not show up in the references list. I guess no one bothered
 adding them and it's up to me to add the corresponding entries.
 
 Maybe someone has already prepared a working file for the APA style?

Possible. I have @ELECTRONIC definitions in my own private style files, but 
have never used APA.

 
 3)
 How to sort the bibliography by author? According to the bib manual
 I expected this to work:
 
 \setupbibtex   [database=sample]
 \setuppublications [alternative=apa, criterium=cite, sort=author]

You haven't read carefully enough, it's sorttype=author

 \starttext
  \cite[hh2010a]
  \cite[Eijkhout1991]
  \placepublications
 \stoptext
 
 4)
 \completepublications produces an empty page. Is that intended?
 
 \setupbibtex   [database=sample]
 \setuppublications [alternative=ssa, criterium=cite]
 \starttext
 \cite[hh2010a]
 \completepublications
 \stoptext
 
http://archive.contextgarden.net/message/20110923.091734.6b388a11.en.html

 5) (side question)
 What is BibTeX used for in ConTeXt? As far as I can see, it reads
 the .bib database and generates a .bbl file which then is read in by
 ConTeXt. Why do we need an external tool for this? Why does ConTeXt
 not read in the .bib database and directly save it as a Lua table?

Because nobody has coded that part yet? This may not be as easy as you make it 
sound because quite a few heuristics go into parsing bibtex files (e.g., look 
at the way in which bibtex divides names into first name, last name, von-part, 
jr-part). Over the years, I have read and heard many complaints about bibtex 
and many announcements that something infinitely better is just around the 
corner, to be delivered in all its glory real soon now. For the time being, I 
don't see any real replacement, but I may be wrong.


Thomas

___
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] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Marco Patzer
2012-09-18 Schmitz Thomas A. thomas.schm...@uni-bonn.de:

Hi Thomas

 The problem is that users of bibtex in ConTeXt are a minority, and
 users of such precooked styles a tiny minority

With a handful of up-to-date working common citation styles
citations would be much more easy. But I get your point.

 I use bibtex quite often, but wouldn't know how to fix these
 styles and have never used them. So if you're sure about what to
 do, fix them and send Hans a patch.

Frankly, I'm no expert in those things. The bibliographies I created
so far were quick and dirty, I didn't have the time to create proper
styles or repair the shipped ones. I will see what I can do to at
least improve the existing ones after the current project is done.

  Maybe someone has already prepared a working file for the APA
  style?
 
 Possible. I have @ELECTRONIC definitions in my own private style
 files, but have never used APA.

Same here.

  \setuppublications [alternative=apa, criterium=cite, sort=author]
 
 You haven't read carefully enough, it's sorttype=author

This doesn't work, either:

\setupbibtex   [database=sample]
\setuppublications [alternative=apa, criterium=cite, sorttype=author]
\starttext
  \cite[hh2010a]
  \cite[Eijkhout1991]
  \placepublications
\stoptext

  \completepublications produces an empty page. Is that intended?
  
 http://archive.contextgarden.net/message/20110923.091734.6b388a11.en.html

Using criterium=text fixed it.

  What is BibTeX used for in ConTeXt? As far as I can see, it reads
  the .bib database and generates a .bbl file which then is read in by
  ConTeXt. Why do we need an external tool for this? Why does ConTeXt
  not read in the .bib database and directly save it as a Lua table?
 
 Because nobody has coded that part yet? This may not be as easy as
 you make it sound because quite a few heuristics go into parsing
 bibtex files (e.g., look at the way in which bibtex divides names
 into first name, last name, von-part, jr-part).

I'm aware of that. So it basically boils down to the fact that
bibliographies are not popular among ConTeXt users (including Hans)
and therefore much functionality is not properly implemented or
cared for. And BibTeX is used since it understands the semantics of
bib files, although a pure ConTeXt/Lua solution would be possible.
Without BibTeX this functionality would be missing since no one is
willing to implement a parser for .bib databases.

If I only had time…


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] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Philipp Gesang
Hi all,

···date: 2012-09-18, Tuesday···from: Marco Patzer···

 2012-09-18 Schmitz Thomas A. thomas.schm...@uni-bonn.de:
 
   What is BibTeX used for in ConTeXt? As far as I can see, it reads
   the .bib database and generates a .bbl file which then is read in by
   ConTeXt. Why do we need an external tool for this? Why does ConTeXt
   not read in the .bib database and directly save it as a Lua table?
  
  Because nobody has coded that part yet? This may not be as easy as
  you make it sound because quite a few heuristics go into parsing
  bibtex files (e.g., look at the way in which bibtex divides names
  into first name, last name, von-part, jr-part).
 
 I'm aware of that. So it basically boils down to the fact that
 bibliographies are not popular among ConTeXt users (including Hans)
 and therefore much functionality is not properly implemented or
 cared for.

tl;dr: It’s not unpopular, it’s a Hard Problem™.

I guess that is so because bibliographies and citation rules are
a hard problem to solve generally. As a recent thread on this
list revealed, most of us are content to instead solve the much
easier problem of creating some bib functionality themselves,
tailored to their own needs.[0] A given cite/bib ruleset is easy
to implement (as long as you don’t put too much weight on
sorting) -- we have Lua, after all.  Developing a framework for
bibliographies, where everything needs to be adjustable and
parameterized (by non-technical people) on demand while remaining
stable over a long time, is however a totally different matter.
Just have a look at the biber/biblatex codebase and decide
yourself. (Now try to imagine the same without Perl and XML to
get the style bonus  ;-) )

Context, as opposed to LaTeX, lacks the consistent formatting
requirements by journals and editors, simply because they don’t
usually accept it as an input format.

[0] http://www.mail-archive.com/ntg-context@ntg.nl/msg62855.html

And BibTeX is used since it understands the semantics of
 bib files, although a pure ConTeXt/Lua solution would be possible.
 Without BibTeX this functionality would be missing since no one is
 willing to implement a parser for .bib databases.

Context happens to have such a parser, written in Lua. Probably
the best one around:

···
\starttext
  \startluacode
local db = bibtex.new()
bibtex.load(db, filename.bib)
table.print(db)
  \stopluacode
\stoptext
···

Regards
Philipp


 
 If I only had time…
 
 
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpuIZywCbRRO.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] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Schmitz Thomas A.

On Sep 18, 2012, at 2:25 PM, Marco Patzer home...@lavabit.com wrote:
 
 This doesn't work, either:
 
 \setupbibtex   [database=sample]
 \setuppublications [alternative=apa, criterium=cite, sorttype=author]
 \starttext
  \cite[hh2010a]
  \cite[Eijkhout1991]
  \placepublications
 \stoptext
 
This works for me, I get Eijkhout sorted before Hagen.

 
 I'm aware of that. So it basically boils down to the fact that
 bibliographies are not popular among ConTeXt users (including Hans)
 and therefore much functionality is not properly implemented or
 cared for. And BibTeX is used since it understands the semantics of
 bib files, although a pure ConTeXt/Lua solution would be possible.
 Without BibTeX this functionality would be missing since no one is
 willing to implement a parser for .bib databases.
 
 If I only had time…

Yes, had we but world enough and time… Anyway, Hans began playing with 
transforming bibtex to xml and loading this. There is no user interface yet, 
but if you want to see what's possible, have a look at bibl-bib.lua and 
bibl-tst.lua

Thomas
___
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] Ctx: list of commands

2012-09-18 Thread Rogers, Michael K
On Sep 18, 2012, at 2:44 AM, Procházka Lukáš Ing. - Pontex s. r. o.
 l...@pontex.czmailto:l...@pontex.cz
 wrote:

It seems that my question is not so straightforward - I didn't think it would 
it could be problem to separate public macros (= public ConTeXt commands = 
these that are cited in manuals, on wiki or simply - which you can use).

I haven't been following the answers closely as they seemed to focus on getting 
ALL commands.  So excuse me if this is too naive, but have you looked at the 
quick reference?:

http://pragma-ade.com/general/qrcs/setup-en.pdf

I think it does not contain all commands, however, not even all the public 
ones.  But maybe it's a good starting place.  It is based on

… tex/texmf-context/tex/context/interface/cont-en.xml

(There are ones for the other languages, too.)  The xml database contains the 
source file name, too, which helps me sometimes.  One could probably develop a 
quicker reference based on it in the format you asked for.

Michael



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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] Ctx: list of commands

2012-09-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

http://pragma-ade.com/general/qrcs/setup-en.pdf

… tex/texmf-context/tex/context/interface/cont-en.xml


Thanks for the idea.

Maybe both sources would be useful somehow but - they don't look up-to-date as e.g. the 
command \startluacode is not involved in any of both.

Persisting question:

c:\ConTeXt\tex\texmf-context\scripts\context\lua\mtx-interface.lua

And:


...
local helpinfo = [[
...
--textpad generate textpad interface files
--textcreate text files for commands and environments
...
]]


How exactly to use the command/switch --textpad or --text with 
context.exe?

Neither context --text nor context --textpad seems to give anything useful.

Best regards,

Lukas


--
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
___

Re: [NTG-context] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Marco Patzer
2012-09-18 Schmitz Thomas A. thomas.schm...@uni-bonn.de:

Hi Thomas

 On Sep 18, 2012, at 2:25 PM, Marco Patzer home...@lavabit.com wrote:
  
  This doesn't work, either:
  
  \setupbibtex   [database=sample]
  \setuppublications [alternative=apa, criterium=cite, sorttype=author]
  \starttext
   \cite[hh2010a]
   \cite[Eijkhout1991]
   \placepublications
  \stoptext
  
 This works for me, I get Eijkhout sorted before Hagen.

I deleted all temp files, but still get “Hagen” before “Eijkhout”.
My test file is attached.

  If I only had time…
 
 Yes, had we but world enough and time… Anyway, Hans began playing
 with transforming bibtex to xml and loading this. There is no user
 interface yet, but if you want to see what's possible, have a look
 at bibl-bib.lua and bibl-tst.lua

Thanks, I will have a look.


Marco
@STRING{hh = {Hans Hagen}}

@ELECTRONIC{hh2010,
  author = hh,
  year = {2010},
  title = {Metafun. \CONTEXT\ mkiv},
  url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
}

@ARTICLE{hh2010a,
  author = hh,
  title = {The Font Name Mess},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {2-8},
  keywords = {context},
}

@ARTICLE{hh2010b,
  author = hh,
  title = {Grouping in Hybrid Environments},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {67-71},
  keywords = {context},
}

@BOOK{Eijkhout1991,
  title = {\TeX\ by Topic. A \TeX nician's Reference},
  publisher = {Addison-Wesley},
  year = {1991},
  author = {Victor Eijkhout},
  address = {London},
  keywords = {general},
}



t.pdf
Description: Adobe PDF document
\setupbibtex   [database=sample]
\setuppublications [alternative=apa, criterium=cite, sorttype=author]
\starttext
 \cite[hh2010a]
 \cite[Eijkhout1991]
 \placepublications
 \contextversion
\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] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Marco Patzer
2012-09-18 Philipp Gesang ges...@stud.uni-heidelberg.de:

 [0] http://www.mail-archive.com/ntg-context@ntg.nl/msg62855.html

Thanks for the link. Since I usually don't deal much with
different bibliography styles I tend to skip those threads.

 And BibTeX is used since it understands the semantics of
  bib files, although a pure ConTeXt/Lua solution would be possible.
  Without BibTeX this functionality would be missing since no one is
  willing to implement a parser for .bib databases.
 
 Context happens to have such a parser, written in Lua. Probably
 the best one around:
 
 ···
 \starttext
   \startluacode
 local db = bibtex.new()
 bibtex.load(db, filename.bib)
 table.print(db)
   \stopluacode
 \stoptext

Interesting, I didn't know that. But the values are only parsed, not
interpreted. That means the only thing left for BibTeX is to do is
to interpret the ugly “author” field?


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] Ctx: list of commands

2012-09-18 Thread Hans Hagen

On 18-9-2012 15:49, Rogers, Michael K wrote:


… tex/texmf-context/tex/context/interface/cont-en.xml


indeed it needs updating (some time ago wolfgang started with it but 
it's a tedious job)


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] Ctx: list of commands

2012-09-18 Thread Hans Hagen

On 18-9-2012 16:00, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

http://pragma-ade.com/general/qrcs/setup-en.pdf

… tex/texmf-context/tex/context/interface/cont-en.xml


Thanks for the idea.

Maybe both sources would be useful somehow but - they don't look
up-to-date as e.g. the command \startluacode is not involved in any of
both.

Persisting question:

c:\ConTeXt\tex\texmf-context\scripts\context\lua\mtx-interface.lua

And:


...
local helpinfo = [[
...
--textpad generate textpad interface files
--textcreate text files for commands and environments
...
]]


How exactly to use the command/switch --textpad or --text with
context.exe?

Neither context --text nor context --textpad seems to give anything
useful.


you run mtx script with:

mtxrun --script interface 


--

-
  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] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Alan BRASLAU
On Tue, 18 Sep 2012 13:41:56 +0200
Schmitz Thomas A. thomas.schm...@uni-bonn.de wrote:

 
 On Sep 18, 2012, at 12:28 PM, Marco Patzer home...@lavabit.com
 wrote:
 
  5) (side question)
  What is BibTeX used for in ConTeXt? As far as I can see, it reads
  the .bib database and generates a .bbl file which then is read in by
  ConTeXt. Why do we need an external tool for this? Why does ConTeXt
  not read in the .bib database and directly save it as a Lua table?
 
 Because nobody has coded that part yet? This may not be as easy as
 you make it sound because quite a few heuristics go into parsing
 bibtex files (e.g., look at the way in which bibtex divides names
 into first name, last name, von-part, jr-part). Over the years, I
 have read and heard many complaints about bibtex and many
 announcements that something infinitely better is just around the
 corner, to be delivered in all its glory real soon now. For the
 time being, I don't see any real replacement, but I may be wrong.


Do not forget that there are many databases and tools that more or less
know how to deal with bibtex files. And many web sites can output
bibtex data, more or less correctly.

Of course, one could also consider using other standards, such as
EndNote... but we would not want to do that, would we?

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
___


Re: [NTG-context] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Philipp Gesang
···date: 2012-09-18, Tuesday···from: Marco Patzer···

 2012-09-18 Philipp Gesang ges...@stud.uni-heidelberg.de:
 
  [0] http://www.mail-archive.com/ntg-context@ntg.nl/msg62855.html
 
 Thanks for the link. Since I usually don't deal much with
 different bibliography styles I tend to skip those threads.
 
  And BibTeX is used since it understands the semantics of
   bib files, although a pure ConTeXt/Lua solution would be possible.
   Without BibTeX this functionality would be missing since no one is
   willing to implement a parser for .bib databases.
  
  Context happens to have such a parser, written in Lua. Probably
  the best one around:
  
  ···
  \starttext
\startluacode
  local db = bibtex.new()
  bibtex.load(db, filename.bib)
  table.print(db)
\stopluacode
  \stoptext
 
 Interesting, I didn't know that. But the values are only parsed, not
 interpreted. That means the only thing left for BibTeX is to do is
 to interpret the ugly “author” field?

From my bibliography (this assumes authors are separated by
“ and ”; *warning*: ashamingly ugly code ahead):

···
-- adapted from Roberto
-- www.inf.puc-rio.br/~roberto/lpeg.html
function citator.split (s, sep)
  if type(sep) == string then
sep = P(sep)
  end
  local elem = C((1 - sep)^0)
  local p = Ct(elem * (sep * elem)^0)
  return lpegmatch(p, s)
end
local split = citator.split

-- Return a list of authors' names from a string separated by and.
local _p_spaces = S \n\t\v^1
local _p_and= _p_spaces * Pand * _p_spaces
function citator.get_author_list (rawaut)
if not stringfind(rawaut, and) then return { rawaut } end
return split(rawaut, _p_and)
end
local get_author_list = citator.get_author_list

do
local wl = P{
[1] = words,

left  = P{,  right = P},
space = P ,  tabs  = S\v\t,
eol   = P\n, whitespace = Vspace + Vtabs + Veol,

inbrace = Vleft * (1 - Vright)^1 * Vright,
other = (1 - Vinbrace - Vwhitespace)^1,

elm = Vinbrace + Vother,

words = Ct((Vwhitespace^0 * C(Velm))^0)
}

-- Takes a string and splits it into words, returning a list of words.
function citator.get_word_list(s)
return lpegmatch(wl, s)
end
end
local get_word_list = citator.get_word_list

-- from http://osdir.com/ml/l...@bazar2.conectiva.com.br/2009-12/msg00910.html
do
local space = S \t\v\n
local nospace = 1 - space
local ptrim = space^0 * C((space^0 * nospace^1)^0)
function citator.strip (s)
return lpegmatch(ptrim, s)
end
end


-- Return the formatted author field for one author string.
function citator.reverse_one_author (rawaut, form)
local listaut = get_word_list(rawaut)
local formaut, tmpaut = , {}
if (#listaut  1) then
for i,j in next, listaut do
listaut[i] = citator.strip(j)
end
lastname = listaut[#listaut] .. ,
tableremove(listaut, #listaut)
tmpaut[#tmpaut+1] = lastname
for i,j in next, listaut  do tmpaut[#tmpaut+1] = j end
for i,j in next, tmpaut   do formaut = formaut ..   .. j end
else
formaut = listaut[1]
end
return formaut
end
local reverse_one_author = citator.reverse_one_author

-- Take a string of authors' names rawaut and return a list that is built
-- according to the global citator.cite_inv_author.
-- string ‘resultformat’: if it has the value ‘string’ then the function will
-- return a string instead of a table.
function citator.format_author_list (rawaut, resultformat)
warn(author list, rawaut)
local max= citator.compress_authors -- int, default=3
local authorlist = get_author_list(rawaut)
local cnt = 1
local tmplist = {}
local citestyle = citator.styles[citator.cite_style] or fancy2
local etal  = citestyle.cite_etal_string
repeat
if cnt == 1 then
if citator.cite_author_form == allinv   or
   citator.cite_author_form == firstinv then
tmplist[#tmplist+1] = reverse_one_author(authorlist[cnt])
warn(num: ..cnt, authorlist[cnt])
else -- don’t reverse anything
tmplist[#tmplist+1] = authorlist[cnt]
end
elseif cnt  max then
tmplist[#tmplist+1] = etal
break
else
warn(num: ..cnt, authorlist[cnt])
if citator.cite_author_form == allinv then
tmplist[#tmplist+1] = reverse_one_author(authorlist[cnt])
elseif citator.cite_author_form == firstinv then
tmplist[#tmplist+1] = citestyle.cite_author_separator
tmplist[#tmplist+1] = authorlist[cnt]
else
tmplist[#tmplist+1] = citestyle.cite_author_separator
tmplist[#tmplist+1] = authorlist[cnt]
end
end

Re: [NTG-context] Ctx: list of commands

2012-09-18 Thread Sietse Brouwer
Michael K Rogers wrote:
 … tex/texmf-context/tex/context/interface/cont-en.xml

Hans wrote:
 indeed it needs updating (some time ago wolfgang started with it but it's a 
 tedious job)

Hans, have you ever thought about creating a command
\defpublic[#commandname]{...} that works pretty much like
\def\commandname{...}, but also registers the name of the command it
defines to a table somewhere?

You might already have something like it because the tables in
setup-en.pdf look automatically-created, but there is some hint in the
sources that they are based on some (Wolfgang's?) XML file, too.
http://pragma-ade.com/general/qrcs/setup-en.pdf
x-set-*.mkii, .mkiv

Cheers,
Sietse


On Tue, Sep 18, 2012 at 4:59 PM, Hans Hagen pra...@wxs.nl wrote:
 On 18-9-2012 16:00, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 http://pragma-ade.com/general/qrcs/setup-en.pdf

 … tex/texmf-context/tex/context/interface/cont-en.xml


 Thanks for the idea.

 Maybe both sources would be useful somehow but - they don't look
 up-to-date as e.g. the command \startluacode is not involved in any of
 both.

 Persisting question:

 c:\ConTeXt\tex\texmf-context\scripts\context\lua\mtx-interface.lua

 And:

 
 ...
 local helpinfo = [[
 ...
 --textpad generate textpad interface files
 --textcreate text files for commands and environments
 ...
 ]]
 

 How exactly to use the command/switch --textpad or --text with
 context.exe?

 Neither context --text nor context --textpad seems to give anything
 useful.


 you run mtx script with:

 mtxrun --script interface 


 --

 -
   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] Ctx: list of commands

2012-09-18 Thread Hans Hagen

On 18-9-2012 18:44, Sietse Brouwer wrote:

Michael K Rogers wrote:

… tex/texmf-context/tex/context/interface/cont-en.xml


Hans wrote:

indeed it needs updating (some time ago wolfgang started with it but it's a 
tedious job)


Hans, have you ever thought about creating a command
\defpublic[#commandname]{...} that works pretty much like
\def\commandname{...}, but also registers the name of the command it
defines to a table somewhere?


yes but it does not help much unless the whole argument spec is 
included; also, quite some commands are generated so we would still miss 
a lot


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
___