Re: [NTG-context] beta (bib module in mkiv)

2009-04-28 Thread Hans Hagen

Thomas A. Schmitz wrote:


On Apr 27, 2009, at 11:06 PM, Hans Hagen wrote:


OK, trying to compile the test file I sent last week:


no crash any more in beta


Well, it'll have to wait till you come back from Bachotek. I still get 
this:


! Undefined control sequence.
\preparebibrefprefix ...lltoclevels \alltoclevels


are you sure that you use tacos latest zip?

--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Updating bug

2009-04-28 Thread Hans Hagen

Yue Wang wrote:

receiving incremental file list

sent 91 bytes  received 205 bytes  53.82 bytes/sec
total size is 4983273  speedup is 16835.38
MTXrun | fileio: variable SELFAUTOLOC set to C:/context/bin
MTXrun | fileio: variable SELFAUTODIR set to C:/context
MTXrun | fileio: variable SELFAUTOPARENT set to C:
MTXrun | fileio: variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/shar
e,}/texmf{-local,.local,}/web2c}
MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known)
MTXrun | using script: ./bin/mtx-update.lua

'uname' is not recognized as an internal or external command,
operable program or batch file.
C:\context\bin\mtxrun.lua:1611: attempt to call field 'env' (a table value)

When you want to use context, you need to initialize the tree with:

  C:\context\tex\setuptex.bat C:\context\tex

You can associate this command with a shortcut to the cmd prompt.


fixed


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Updating bug

2009-04-28 Thread Yanrui Li
2009/4/28 Yanrui Li liyanrui...@gmail.com:
 Linux x86:

 sent 221 bytes  received 975 bytes  265.78 bytes/sec
 ... ...
 MTXrun | using script: ./bin/mtx-update.lua

 MTXrun | state: loaded
 MTXrun | update: start
 ./bin/mtx-update.lua:266: attempt to get length of global 'individual'
 (a nil value)


Maybe it is related to the table of 'individual' in mtx-update.lua not
being created.

mtx-update.lua, line 266:

individual[#individual+1] = { archive, destination }

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.18 13:47)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Updating bug

2009-04-28 Thread Yanrui Li
2009/4/28 Yanrui Li liyanrui...@gmail.com:
 2009/4/28 Yanrui Li liyanrui...@gmail.com:
 Linux x86:

 sent 221 bytes  received 975 bytes  265.78 bytes/sec
 ... ...
 MTXrun | using script: ./bin/mtx-update.lua

 MTXrun | state: loaded
 MTXrun | update: start
 ./bin/mtx-update.lua:266: attempt to get length of global 'individual'
 (a nil value)


 Maybe it is related to the table of 'individual' in mtx-update.lua not
 being created.

 mtx-update.lua, line 266:

    individual[#individual+1] = { archive, destination }


This is my patch for the bug.

--- mtx-update.lua.old  2009-04-28 19:04:56.0 +0800
+++ mtx-update.lua  2009-04-28 18:55:42.0 +0800
@@ -172,12 +172,13 @@
 dir.mkdirs(texroot)
 ok = lfs.attributes(texroot,mode) == directory
 end
+
 if force then
 dir.mkdirs(format(%s/%s, texroot, texmf-cache))
 dir.mkdirs(format(%s/%s, texroot, texmf-local))
 end
+
 if ok or not force then
-local fetched, individual, osplatform = { }, { }, os.currentplatform()

 -- takes a collection as argument and returns a list of folders



-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.28 08:46)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Updating bug

2009-04-28 Thread Yanrui Li
2009/4/28 Yanrui Li liyanrui...@gmail.com:
 2009/4/28 Yanrui Li liyanrui...@gmail.com:
 2009/4/28 Yanrui Li liyanrui...@gmail.com:
 Linux x86:

 sent 221 bytes  received 975 bytes  265.78 bytes/sec
 ... ...
 MTXrun | using script: ./bin/mtx-update.lua

 MTXrun | state: loaded
 MTXrun | update: start
 ./bin/mtx-update.lua:266: attempt to get length of global 'individual'
 (a nil value)


 Maybe it is related to the table of 'individual' in mtx-update.lua not
 being created.

 mtx-update.lua, line 266:

    individual[#individual+1] = { archive, destination }


 This is my patch for the bug.

 --- mtx-update.lua.old  2009-04-28 19:04:56.0 +0800
 +++ mtx-update.lua      2009-04-28 18:55:42.0 +0800
 @@ -172,12 +172,13 @@
         dir.mkdirs(texroot)
         ok = lfs.attributes(texroot,mode) == directory
     end
 +
     if force then
         dir.mkdirs(format(%s/%s, texroot, texmf-cache))
         dir.mkdirs(format(%s/%s, texroot, texmf-local))
     end
 +
     if ok or not force then
 -        local fetched, individual, osplatform = { }, { }, 
 os.currentplatform()

         -- takes a collection as argument and returns a list of folders




Very sorry, the patch just I post is wrong. It should be:


--- mtx-update.lua  2009-04-26 00:26:11.0 +0800
+++ mtx-update.lua.new  2009-04-28 19:24:48.0 +0800
@@ -172,13 +172,12 @@
 dir.mkdirs(texroot)
 ok = lfs.attributes(texroot,mode) == directory
 end
-
 if force then
 dir.mkdirs(format(%s/%s, texroot, texmf-cache))
 dir.mkdirs(format(%s/%s, texroot, texmf-local))
 end
-
 if ok or not force then
+local fetched, individual, osplatform = { }, { }, os.currentplatform()

 -- takes a collection as argument and returns a list of folders


-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.18 13:47)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] sagemath in context

2009-04-28 Thread curiouslearn
Hi,

I know that Context is developing rapidly and the top guys here are all very
busy with these development efforts. But I thought I would just float this 
idea. 

There is an open source mathematics software system called sagemath which aims
to be a viable substitute to Mathematica and Maple. The link is 

http://www.sagemath.org/

There exists a latex package called sagetex, which allows using sagemath
functions from within latex. The following link on ctan has some examples

http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/

Do you think it is possible to do a similar thing in Context? It would be really
cool if this functionality is added to Context. 

What do the experts here think?

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] sagemath in context

2009-04-28 Thread Yue Wang
Hi,

This is a very small package, and it is not heavily dependent on LaTeX.
So the ConTeXt module will be easy to write. (it is quite like the
gnuplot context module)
You can write your own and submit that to CTAN.

Yue Wang

On Tue, Apr 28, 2009 at 8:38 PM, curiouslearn curiousle...@gmail.com wrote:
 Hi,

 I know that Context is developing rapidly and the top guys here are all very
 busy with these development efforts. But I thought I would just float this 
 idea.

 There is an open source mathematics software system called sagemath which aims
 to be a viable substitute to Mathematica and Maple. The link is

 http://www.sagemath.org/

 There exists a latex package called sagetex, which allows using sagemath
 functions from within latex. The following link on ctan has some examples

 http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/

 Do you think it is possible to do a similar thing in Context? It would be 
 really
 cool if this functionality is added to Context.

 What do the experts here think?

 ___
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta

2009-04-28 Thread Wei-Wei Guo

Hans Hagen 写道:


I uploaded a beta just before leaving for bachotek. Quite some structure 
(lua) code has been overhauled and i need to finish some bits.




Have fun!



As I'm redoing the backend as well as cross referencing some interaction 
features might be broken but normally they are easy to fix (once i know 
what fails). So, best collect all bugs while i'm away so that i can deal 
with then at once.




I got an error here.

! Argument of \dotripletestemptyx has an extra }.
inserted text
\par
to be read again
   }
\doif #1#2-\edef \!!stringa {#1}
 \edef \!!stringb {#2}\ifx \!!stringa 
\!!str...
\dostructurecountercomponent ...\c!title }\v!none
  {\setfalse 
\hasstructureco...
\docompletefloat ...c!title ={#4},\c!bookmark =][]
  \globallet 
\currentfloatnu...
argument ...\footnote {Test footnote.}}\nextbox
  \else \docompletefloat 
{ta...
...
l.13 {\placelocalfootnotes}

Minimal example:

\starttext

\startlocalfootnotes
\placetable{Test table\footnote{Test footnote.}}
\placelegend{
\starttable[|l|l|]
  \HL
  \NC East \NC North \NC \FR
  \NC West \NC South \NC  \LR
  \HL
\stoptable}
{\placelocalfootnotes}
\stoplocalfootnotes

\stoptext


2. And another thing I have mentioned before. I just want to arise your 
attention.

The underlines set by textbackground are not stable. Their vertical positions 
are
not predictable.

Minimal example:

\startuseMPgraphic{mpos:par:columnset:textuline}
  \iftracepositions show_multi_pars \else draw_multi_pars \fi ;
  path p ; p := boundingbox currentpicture ;
  currentpicture := currentpicture shifted (0,0.1*StrutDepth) ;
  setbounds currentpicture to p ;
\stopuseMPgraphic

\definetextbackground
  [underline]
  [location=text,
   alternative=1,
   mp=mpos:par:columnset:textuline,
   background=,
   frame=off]

\starttext

\underline{blurblur}

\underline{blurblur}

\underline{blurblur}

\underline{blurblur}

\stoptext


Best wishes,
Wei-Wei
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] sagemath in context

2009-04-28 Thread Aditya Mahajan

On Tue, 28 Apr 2009, curiouslearn wrote:


Hi,

I know that Context is developing rapidly and the top guys here are all very
busy with these development efforts. But I thought I would just float this idea.

There is an open source mathematics software system called sagemath which aims
to be a viable substitute to Mathematica and Maple. The link is

http://www.sagemath.org/

There exists a latex package called sagetex, which allows using sagemath
functions from within latex. The following link on ctan has some examples

http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/

Do you think it is possible to do a similar thing in Context?


Have a look at the r module in the distribtuion, m-r.tex. It does 
something similar, but uses R instead on sage. It should be possible to 
copy code from there and translate it for sage.



It would be really
cool if this functionality is added to Context.


Simple things like multiplication and basic algebra can be done using 
calcmath. See, for example, 
http://www.tug.org/pipermail/tugindia/2008-December/004714.html


But we should not write a CAS in lua. There are plenty of good ones out 
there.



What do the experts here think?


How much does it rely on SAGE. For example, one the examples in the 
manual says that \sage{matrix([1,2], [3,4])^2} is converted into a

\begin{array}
...
\end{array}

block. Most likely, this conversion is done by sage. Is it possible to 
change a few functions in sage so that the output is in ConTeXt syntax?


Regarding graphics, gnuplot tries hard to ensure that document fonts are 
used in plots. I don't know how easy it is to do such things with sage and 
R.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] What happened with sectionworld?

2009-04-28 Thread Henning Hraban Ramm
\setupsectionworld is unknown in latest beta (at least since some  
betas before).


Can I replace it with some other command?

Here is some code using sectionworlds, that Wolfgang wrote for me in  
2008,

same as in http://wiki.contextgarden.net/Proceedings_style

% with help from Wolfgang Schuster, 2008-04-15
% start WS
\unprotect

\resetvalue{\??sw\v!chapter}

\startsetups chapter:list

\def\\{{\nomarking{\unskip\nolist\crlf}}}


  \doiftextelse{\sectionworldparameter\c!author}
{\expanded{\writetolist[\v!chapter]
  {\sectionworldparameter\c!author:\space
   \sectionworldparameter\c!text}{}}}
{\expanded{\writetolist[\v!chapter]
  {\sectionworldparameter\c!text}{}}}

  \def\ChapterAuthor{%
\doiftextelse%
{\sectionworldparameter\c!author}%
{\rm\tf\sectionworldparameter\c!author\crlf\vskip0.25em}
{}%
  }
  \def\ChapterTitle{{\ss\bfb\sectionworldparameter\c!text}}
  \def\ChapterSubTitle{%
\doiftextelse%
{\sectionworldparameter\c!subtitle}%
{\crlf\vskip0.2em\ss\bf\sectionworldparameter\c!subtitle}%
{}%
  }

\stopsetups

\setupsectionworld
  [chapter]
  [setups={chapter:list},
   author=]

\def\ChapterCommand#1#2%
  {\vbox{\ChapterAuthor\ChapterTitle\ChapterSubTitle}}

\let\ChapterAuthor\relax
\let\ChapterTitle\relax
\let\ChapterSubTitle\relax

\protect
% stop WS



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What happened with sectionworld?

2009-04-28 Thread Wolfgang Schuster


Am 28.04.2009 um 19:42 schrieb Henning Hraban Ramm:

\setupsectionworld is unknown in latest beta (at least since some  
betas before).


removed from mkiv a *long* time ago, there is now \startchapter etc.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startregister produces strange page range (1-2-3)

2009-04-28 Thread Patrick Gundlach
Hi,

 I'm using ConTeXt 2008.10.31 (Mk II) from the Debian unstable packages.
 The live context (2009.03.06) produces a blank index with the pdftex
 engine, so I'm CC'ing Patrick in case that problem is separate.

The context live is now 2009.04.28. I don't know if this helps, but at
least it is now updated daily again.

Patrick
-- 
ConTeXt wiki and more: 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What happened with sectionworld?

2009-04-28 Thread Henning Hraban Ramm

Am 2009-04-28 um 20:53 schrieb Wolfgang Schuster:

\setupsectionworld is unknown in latest beta (at least since some  
betas before).


removed from mkiv a *long* time ago, there is now \startchapter etc.



Long time in ConTeXt means less than a year...
In 2008-08 Hans still wrote he wouldn't know if he would extend the  
sectionworld in MkIV.


The discussion about \startsection ... \stopsection was in 2007!

I don't understand how to use \startchapter[]{} ... \stopchapter for  
my needs.


Could you give me a hint what to look for?

I couldn't find \startchapter in the garden, and \startsection leads to
\startsectionblockenvironment (strc-sbe.tex, core-sec.tex)
\startsectionworld (core-swd.tex, doesn't mention it's not for MkIV)
\startsection (m-cweb.tex)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] sagemath in context

2009-04-28 Thread curiouslearn
I will look at the packages you have suggested. But I have basically no
knowledge of writing such packages and was hoping that someone here with the
capability of writing such packages would be interested and would take it up,
especially given that it is not very difficult. Especially, given that people
have done this for 'R' and 'gnuplot'. Sage has all the capabilities of these two
and much more. If people have written modules for these, I am sure a lot more
people will find the sage module useful.


Aditya, I think you are correct that the conversion in case of the matrix
example is done by sage and as you said, changes would have to be made to sage
to yield Context code rather than latex code. 

Thanks.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Updating bug

2009-04-28 Thread Yue Wang
still remains:

sent 91 bytes  received 205 bytes  45.54 bytes/sec
total size is 4983273  speedup is 16835.38
MTXrun | fileio: variable SELFAUTOLOC set to C:/context/bin
MTXrun | fileio: variable SELFAUTODIR set to C:/context
MTXrun | fileio: variable SELFAUTOPARENT set to C:
MTXrun | fileio: variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/shar
e,}/texmf{-local,.local,}/web2c}
MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known)
MTXrun | using script: ./bin/mtx-update.lua

'uname' is not recognized as an internal or external command,
operable program or batch file.
C:\context\bin\mtxrun.lua:1611: attempt to call field 'env' (a table value)

When you want to use context, you need to initialize the tree with:

  C:\context\tex\setuptex.bat C:\context\tex

You can associate this command with a shortcut to the cmd prompt.

C:\context

On Tue, Apr 28, 2009 at 2:57 PM, Hans Hagen pra...@wxs.nl wrote:
 Yue Wang wrote:

 receiving incremental file list

 sent 91 bytes  received 205 bytes  53.82 bytes/sec
 total size is 4983273  speedup is 16835.38
 MTXrun | fileio: variable SELFAUTOLOC set to C:/context/bin
 MTXrun | fileio: variable SELFAUTODIR set to C:/context
 MTXrun | fileio: variable SELFAUTOPARENT set to C:
 MTXrun | fileio: variable TEXMFCNF set to
 {$SELFAUTODIR,$SELFAUTOPARENT}{,{/shar
 e,}/texmf{-local,.local,}/web2c}
 MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known)
 MTXrun | using script: ./bin/mtx-update.lua

 'uname' is not recognized as an internal or external command,
 operable program or batch file.
 C:\context\bin\mtxrun.lua:1611: attempt to call field 'env' (a table
 value)

 When you want to use context, you need to initialize the tree with:

  C:\context\tex\setuptex.bat C:\context\tex

 You can associate this command with a shortcut to the cmd prompt.

 fixed


 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___