Re: [NTG-context] pdfsplit

2009-04-10 Thread Alan BRASLAU
On Thursday 09 April 2009 17:59:18 Wolfgang Schuster wrote:
 the pdfsplit option for texexec use the name texexec.pdf for each of
 the document and only the last page remains because all other are
 overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf
 etc.) to the filename.

Does the option pdfsplit exist for mkiv?

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


Re: [NTG-context] \rightarrow missing?

2009-04-10 Thread Alan BRASLAU
On Friday 10 April 2009 09:19:44 Hans Hagen wrote:
 Jesse Alama wrote:
  I switched from MkIV to MkII today because of this gap in MkIV's math:
  I need to submit a dissertation that has \rightarrow's in it.  Let's
  hope that this issue is resolved soon.
 
  Jesse
 
  Alan BRASLAU alan.bras...@cea.fr writes:
  Indeed, it seems to be broken in mkiv
  \rightarrow
  \to
  \leftarrow
  ...
 
  However, \leftrightarrow works.
 
  So, currently, it is hard to typeset limits under mkiv!
 
  Alan
 
  On Tuesday 31 March 2009 09:14:16 Hans Hagen wrote:
  Aditya Mahajan wrote:
  On Mon, 30 Mar 2009, Jesse Alama wrote:
  It seems that \rightarrow is missing.  The command exists, in the
  sense that its use doesn't lead to an error, but it doesn't lead to
  anything in the output.  Minimal example:
 
  \starttext
  $\rightarrow$
  \stoptext
 
  Hans,
 
  What does the new arrow function in math-vfu.lua supposed to do?
 
  it will be used instead of the macro based one (as luatex has native
  support for such extenders now) but i had to wait till you fixed all
  the other arrows that you added someplace

 in math-vfu, patch:

 --~ main.characters[unicode] = { horiz_variants = t }
  main.characters[unicode].horiz_variants = t

 and

 [0x02190] = 0x20, -- leftarrow
 [0x02192] = 0x21, -- rightarrow
 --~ [0xFE190] = 0x20, -- leftarrow
 --~ [0xFE192] = 0x21, -- rightarrow

 and remake the format

 luatex has native support for extensible arrows and since lm lacks them
 we need to construct them

 Hans

Works. Fantastic!

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


Re: [NTG-context] xetex and attachment: troubles

2009-04-10 Thread Hans Hagen

Jesse Alama wrote:

Any progress on this?  As of 2009-04-09, attachments with xetex still
behave as Andrea described on 2008-03-31.  (I'm using the xetex in the
minimals.)


i didn't look into it; it's mostly a dpx backend issue btw, not that 
much related to xetex


Hans


-
  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] pdfsplit

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 09:23 schrieb Hans Hagen:


Wolfgang Schuster wrote:

Hi Hans,
the pdfsplit option for texexec use the name texexec.pdf for each  
of the document and only the last page remains because all other  
are overwritten, can you add the pagenumber (texexec-1.pdf,  
texexec-2.pdf etc.) to the filename.


line 289:

   job.setvariable('result',texexec- 
#{n})


should do the job


works but didn't it makes more sense to create 'filename-number' by  
default and
'resultname-number' with with 'texexec --pdfsplit --result=resultname  
myfile.pdf'


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] pdfsplit

2009-04-10 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 10.04.2009 um 09:23 schrieb Hans Hagen:


Wolfgang Schuster wrote:

Hi Hans,
the pdfsplit option for texexec use the name texexec.pdf for each of 
the document and only the last page remains because all other are 
overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf 
etc.) to the filename.


line 289:

   job.setvariable('result',texexec-#{n})

should do the job


works but didn't it makes more sense to create 'filename-number' by 
default and
'resultname-number' with with 'texexec --pdfsplit --result=resultname 
myfile.pdf'


result = @commandline.checkedoption('result','texexec')
nofpages.times do |i|
  if f = File.open(tempfile,w) then
...
job.setvariable('result',#{result}-#{n})



-
  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] pdfsplit

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 10:13 schrieb Hans Hagen:

works but didn't it makes more sense to create 'filename-number' by  
default and
'resultname-number' with with 'texexec --pdfsplit -- 
result=resultname myfile.pdf'


result = @commandline.checkedoption('result','texexec')
nofpages.times do |i|
 if f = File.open(tempfile,w) then
   ...
   job.setvariable('result',#{result}-#{n})


nearly perfect, only the log files for each file remains when I use  
result,
e.g. with 'texexec --pdfsplit --result=splitfile myfile.tex' the file  
splitfile-n.log

is still there.

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] pdfsplit

2009-04-10 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 10.04.2009 um 10:13 schrieb Hans Hagen:

works but didn't it makes more sense to create 'filename-number' by 
default and
'resultname-number' with with 'texexec --pdfsplit --result=resultname 
myfile.pdf'


result = @commandline.checkedoption('result','texexec')
nofpages.times do |i|
 if f = File.open(tempfile,w) then
   ...
   job.setvariable('result',#{result}-#{n})


nearly perfect, only the log files for each file remains when I use result,
e.g. with 'texexec --pdfsplit --result=splitfile myfile.tex' the file 
splitfile-n.log

is still there.


you can add

job.setvariable('purge',true)


-
  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] pdfsplit

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 10:47 schrieb Hans Hagen:

nearly perfect, only the log files for each file remains when I use  
result,
e.g. with 'texexec --pdfsplit --result=splitfile myfile.tex' the  
file splitfile-n.log

is still there.


you can add

   job.setvariable('purge',true)


did not help

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
___


[NTG-context] inaccessible control sequence

2009-04-10 Thread luigi scarso
\def\@@FOO{FOO}
\starttext
\@@FOO
\stoptext

works in mkiv minimals ,
but not in an old mkii context of mine
(inaccessible control sequence)  .

I suppose that it's ok .



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


Re: [NTG-context] inaccessible control sequence

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 12:02 schrieb luigi scarso:


\def\@@FOO{FOO}
\starttext
\@@FOO
\stoptext

works in mkiv minimals ,
but not in an old mkii context of mine
(inaccessible control sequence)  .

I suppose that it's ok .



Not a good style but it's OK. The following is not what I expected.

\starttext
\number\catcode`@
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inaccessible control sequence

2009-04-10 Thread Hans Hagen

luigi scarso wrote:

\def\@@FOO{FOO}
\starttext
\@@FOO
\stoptext

works in mkiv minimals ,
but not in an old mkii context of mine
(inaccessible control sequence)  .

I suppose that it's ok .


no, it means that we have a missing \protect .. upto you to figure out 
where so that we can fix it


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


[NTG-context] new beta

2009-04-10 Thread Hans Hagen

Hi,

I uploaded a new beta, one that needs luatex beta 0.38, which has just 
been released. The most important things:


- some fixes in the new structure code
- bookmarks are now supported in the new structure
- otf math kerning is supported (neat)
- some cleanup of lua code
- the usual bug fixes

as said ... you need luatex 0.38

there will be a current when luatex 0.40 is available

Hans


-
  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] new beta

2009-04-10 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 10.04.2009 um 13:05 schrieb Hans Hagen:


Hi,

I uploaded a new beta, one that needs luatex beta 0.38, which has just 
been released. The most important things:


core-ref.tex tries to load core-ref.mkii but the file is missing


ok, i'll fix it

Hans


-
  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] language mix

2009-04-10 Thread Arthur Reutenauer
 What about adding hyph-uk to the distribution? ;)

 It'S there but the pattern name is hyph-gb, see lang-ger.tex

  No, no, Slava really means the uk language, Ukrainian, not British
English :-)

Arthur
___
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] language mix

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 14:02 schrieb Arthur Reutenauer:


What about adding hyph-uk to the distribution? ;)


It'S there but the pattern name is hyph-gb, see lang-ger.tex


 No, no, Slava really means the uk language, Ukrainian, not British
English :-)


Morning is not the best time to answer mails, I mixed his both
sentences into one :)

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] new beta

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 13:05 schrieb Hans Hagen:


Hi,

I uploaded a new beta, one that needs luatex beta 0.38, which has  
just been released. The most important things:


core-ref.tex tries to load core-ref.mkii but the file is missing

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] inaccessible control sequence

2009-04-10 Thread luigi scarso
On Fri, Apr 10, 2009 at 12:56 PM, Hans Hagen pra...@wxs.nl wrote:
 luigi scarso wrote:

 \def\@@FOO{FOO}
 \starttext
 \@@FOO
 \stoptext

 works in mkiv minimals ,
 but not in an old mkii context of mine
 (inaccessible control sequence)  .

 I suppose that it's ok .

 no, it means that we have a missing \protect .. upto you to figure out where
 so that we can fix it

hmmm , my Eastern homework ...:)



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


Re: [NTG-context] new beta

2009-04-10 Thread Eythan Weg


Hi,

Compiled luatex 0.38 and tried today's  beta.

When I running 
   
  luatools --ini --compile cont-en

it end with this:  

   (/usr/local/share/texmf/tex/context/base/symb-nav.tex))
   ! LuaTeX error /usr/local/share/texmf/tex/context/base/luat-cnf.lua:99: bad 
argument #3 to 'format' (string expected, got nil)
   stack traceback:
[C]: in function 'format'
/usr/local/share/texmf/tex/context/base/luat-cnf.lua:99: in function 
'dumpstate'
main ctx instance:1: in main chunk.
   inserted text ...vironment.jobname...lui,501)}
 \showcontextbanner 
\produc...
   \dump -\the \everydump 
   \normaldump 
   l.343 \protect \errorstopmode \dump
   \endinput


Any hints here?

Thanks,  Eythan 



Hans Hagen pra...@wxs.nl
Fri, 10 Apr 2009 13:05:54 +0200

   Hi,
   
   I uploaded a new beta, one that needs luatex beta 0.38, which has just
   been released. The most important things:
   
   - some fixes in the new structure code
   - bookmarks are now supported in the new structure
   - otf math kerning is supported (neat)
   - some cleanup of lua code
   - the usual bug fixes
   
   as said ... you need luatex 0.38
   
   there will be a current when luatex 0.40 is available
   
   Hans
   
   
   -
 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
___


Re: [NTG-context] new beta

2009-04-10 Thread Ulrike Fischer
Am Thu, 09 Apr 2009 20:29:16 +0200 schrieb Hans Hagen:

 The problems seems to be that luatools appends // only to one of my
 roots (the last mentioned in $TEXMF). The output of the path
 variable in the above code is:
 
 I:/TeX-Roots/luatexmf/texmf
 
 J:/MIKTEX2.7
 C:/Dokumente und
 Einstellungen/Ulle/Anwendungsdaten/MiKTeX/2.7/scripts//
 
 So the above test is false for most of my roots. 
 
 The change doesn't help with mtxrun ;-(.
 
 hm, but this // is determined by the configuration file texmf.cnf
 
 tweaking the script for miktex and then breaking my own system is a bit 
 tricky
 
 how does your texmf spec look? (the one with the //)? maybe i need to 
 fix the expander (quite tricky code)


I doubt that the problem has something to do with miktex. After all
I'm using no applications or settings from miktex, I'm only using
the roots as local roots. 

I realised that my description above was not completly exact: The
last root doesn't have an // appended but /scripts//. 

I found the function splitpathexpr and input.aux.expanded_path which
seems to get an input like

{Root1
Root2
Root2
Root4}
/tex//

where the last line depends on the file type, and the previous lines
have been made by expanding and splitting $TEXMF 
   $TEXMF = {$TEXMFMAIN;$TEXMFLOCAL;$TEXMFVAR} 


and converts this to 

Root1
Root2
Root2
Root4
/tex//

and I think that somewhere in the following processing the /type//
string gets appended only to the last root (Root4) instead to all
roots. (It is always the last root in $TEXMFVAR which gets the
string.) 


-- 
Ulrike Fischer 

___
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] new structure code

2009-04-10 Thread Wolfgang Schuster

Hi,

i found a few bugs in the new structure code for mkiv.


1. the dot after numbered items is missing

\starttext
\startitemize[n]
\item first item
\item second item
\stopitemize
\stoptext


2. indices in headers work not in interactive mode

\setupinteraction[state=start]
\starttext
\section{Section one\index{section}}
\stoptext


3. \\ generates a backslash but was a space before

\starttext
text\\text
\stoptext


to be continued ...


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] \rightarrow missing?

2009-04-10 Thread Aditya Mahajan

On Fri, 10 Apr 2009, Hans Hagen wrote:


in math-vfu, patch:

--~ main.characters[unicode] = { horiz_variants = t }
   main.characters[unicode].horiz_variants = t

and

[0x02190] = 0x20, -- leftarrow
[0x02192] = 0x21, -- rightarrow
--~ [0xFE190] = 0x20, -- leftarrow
--~ [0xFE192] = 0x21, -- rightarrow

and remake the format

luatex has native support for extensible arrows and since lm lacks them we 
need to construct them


How do we extend these arrows? Traditionally, amstex uses \x...arrow 
commands for extensible arrows, and \...arrow things are fixed.


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
___


Re: [NTG-context] new beta

2009-04-10 Thread Aditya Mahajan

On Fri, 10 Apr 2009, Hans Hagen wrote:


- otf math kerning is supported (neat)


Yeah! Now one can actually use the two available otf math fonts :)

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
___


Re: [NTG-context] new beta

2009-04-10 Thread Eythan Weg

Wolfgang Schuster schuster.wolfg...@googlemail.com
Fri, 10 Apr 2009 15:18:43 +0200

   Am 10.04.2009 um 15:13 schrieb Eythan Weg:
   
   
   
Hi,
   
Compiled luatex 0.38 and tried today's  beta.
   
When I running
   
 luatools --ini --compile cont-en
   
it end with this:
   
[...]
   
Any hints here?
   
   luatools --selfupdate
   mtxrun --selfupdate
   
   the format is generated automatic when you process you document
   
   Wolfgang


Works well.  Thank you.

Eythan  

___
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] new beta

2009-04-10 Thread Yanrui Li
2009/4/10 Hans Hagen pra...@wxs.nl:
 Hi,

 I uploaded a new beta, one that needs luatex beta 0.38, which has just been
 released. The most important things:


I failed to update it and got an error message.

ConTeXt  ver: 2009.04.10 13:59 MKIV  fmt: 2009.4.10  int: dutch/dutch

! LuaTeX error ...text/tex/texmf-context/tex/context/base/luat-sto.lua:58:
attempt to call method 'gmatch' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/luat-sto.lua:58: in function 
'dump'
main ctx instance:1: in main chunk.
inserted text ...on \fi \ctxlua {storage.dump()}
  \ctxlua {nodes.cleanup_res...
\dump -\the \everydump
\normaldump
l.343 \protect \errorstopmode \dump
\endinput
?

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.06 21:42)
___
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] t-vim failed under windows

2009-04-10 Thread Andy
 Does

 mtxrun --verbose  --noquotes bin:vim -u NONE

 work correctly on windows?

Yes.

 What about if you run texexec --lua instead of context (with noquote 
 changed to noquotes in t-vim.tex)?

Same problem. The log shows:

MTXrun |
MTXrun | executing: vim -u NONE -e -C -n -c set tabstop=8 -c syntax on
-c set syntax=c -c let contextstartline=1 -c let contextstopline=0 -c
source c:/context/tex/texmf-context/tex/context/third/vim/2context.vim -c
wqa vimdemo-vimsyntax.tmp 
MTXrun |
MTXrun |

You can see from above that the argument of vim command -c is not correctly
quoted. As mentioned in my last email, the \runvimsyntax generates an
incorrect vim command. For example, we expect the line in \runvimsyntax

-c \shellescapedquote syntax on\shellescapedquote\space 

Will be: -c syntax on in the vim command line. However, the log shows it
become to: -c syntax   on. I think that is one problem cause the failure.

I also tried type the command manually:

vim -u None -e -C -n -c set tabstop=8 -c syntax on -c set syntax=c -c
let contextstartline=1 -c let contextstopline=0 -c source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim -c wqa
vimdemo-vimsyntax.tmp 

It works. File named vimdemo-vimsyntax.tmp-vimsyntax.tmp generated. Next
time run texexec will get the correct pdf output. 

Another found is if tried mtxrun as:

mtxrun --verbose --noquotes bin:vim -u None -e -C -n -V10log -c \set
tabstop=8\ -c \syntax on\ -c \set syntax=c\ -c \let
contextstartline=1\ -c \let contextstopline=0\ -c \source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim\ -c \wqa\
\vimdemo-vimsyntax.tmp\ 

or 

mtxrun --verbose --noquotes bin:vim -u None -e -C -n -V10log -c set
tabstop=8 -c syntax on -c set syntax=c -c let contextstartline=1 -c
let contextstopline=0 -c source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim -c wqa
vimdemo-vimsyntax.tmp 

No vimdemo-vimsyntax.tmp-vimsyntax.tmp generated. The vim log says that it:
could not source None 

It seems the vim may not received the -c source ... and other parameters.
So I move the vim command to a batch file: vimcmd.bat with following line,

call vim -u None -e -C -n -c set tabstop=8 -c syntax on -c set
syntax=c -c let contextstartline=1 -c let contextstopline=0 -c source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim %*

then call 

mtxrun --verbose --noquotes bin:vimcmd -c wqa vimdemo-vimsyntax.tmp 
or
mtxrun --verbose --noquotes bin:vimcmd -c \wqa\ \vimdemo-vimsyntax.tmp\


It works well. I haven't linux/unix machine on hand so I didn't know if this
problem is only occurred in windows. Or the mtxrun related?


Andy

___
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] t-vim failed under windows

2009-04-10 Thread Aditya Mahajan

On Fri, 10 Apr 2009, Andy wrote:


Does

mtxrun --verbose  --noquotes bin:vim -u NONE

work correctly on windows?


Yes.


What about if you run texexec --lua instead of context (with noquote
changed to noquotes in t-vim.tex)?


Same problem. The log shows:

MTXrun |
MTXrun | executing: vim -u NONE -e -C -n -c set tabstop=8 -c syntax on
-c set syntax=c -c let contextstartline=1 -c let contextstopline=0 -c
source c:/context/tex/texmf-context/tex/context/third/vim/2context.vim -c
wqa vimdemo-vimsyntax.tmp 
MTXrun |
MTXrun |

You can see from above that the argument of vim command -c is not correctly
quoted. As mentioned in my last email, the \runvimsyntax generates an
incorrect vim command. For example, we expect the line in \runvimsyntax


The generated command is correct. mtxrun messes up the quotes.


-c \shellescapedquote syntax on\shellescapedquote\space

Will be: -c syntax on in the vim command line. However, the log shows it
become to: -c syntax   on. I think that is one problem cause the failure.

I also tried type the command manually:

vim -u None -e -C -n -c set tabstop=8 -c syntax on -c set syntax=c -c
let contextstartline=1 -c let contextstopline=0 -c source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim -c wqa
vimdemo-vimsyntax.tmp


It works. File named vimdemo-vimsyntax.tmp-vimsyntax.tmp generated. Next
time run texexec will get the correct pdf output.

Another found is if tried mtxrun as:

mtxrun --verbose --noquotes bin:vim -u None -e -C -n -V10log -c \set
tabstop=8\ -c \syntax on\ -c \set syntax=c\ -c \let
contextstartline=1\ -c \let contextstopline=0\ -c \source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim\ -c \wqa\
\vimdemo-vimsyntax.tmp\ 

or

mtxrun --verbose --noquotes bin:vim -u None -e -C -n -V10log -c set
tabstop=8 -c syntax on -c set syntax=c -c let contextstartline=1 -c
let contextstopline=0 -c source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim -c wqa
vimdemo-vimsyntax.tmp 

No vimdemo-vimsyntax.tmp-vimsyntax.tmp generated. The vim log says that it:
could not source None


It should be -u NONE (all capitals)


It seems the vim may not received the -c source ... and other parameters.
So I move the vim command to a batch file: vimcmd.bat with following line,

call vim -u None -e -C -n -c set tabstop=8 -c syntax on -c set
syntax=c -c let contextstartline=1 -c let contextstopline=0 -c source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim %*

then call

mtxrun --verbose --noquotes bin:vimcmd -c wqa vimdemo-vimsyntax.tmp
or
mtxrun --verbose --noquotes bin:vimcmd -c \wqa\ \vimdemo-vimsyntax.tmp\


It works well.


Great.


I haven't linux/unix machine on hand so I didn't know if this
problem is only occurred in windows. Or the mtxrun related?


It is mtxrun related. It works in linux, so it could be windows related. I 
do not have a windows machine to test (and not enough diskspace to install 
windows on a VM).


As a last resort, what does the log file say for this (all in one line)

mtxrun --verbose --noquotes bin:vim -u NONE -e -C -n -V10log -c \set
tabstop=8\ -c \syntax on\ -c \set syntax=c\ -c \let
contextstartline=1\ -c \let contextstopline=0\ -c \source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim\ -c \wqa\
\vimdemo-vimsyntax.tmp\ 


If this does not work, does replacing bin:vim with bin:gvim 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] language mix

2009-04-10 Thread Mojca Miklavec
On Fri, Apr 10, 2009 at 02:29, Vyatcheslav Yatskovsky wrote:
 Hello,

 What about adding hyph-uk to the distribution? ;)

You just need to convince Hans to replace ?? with uk in mtx-patterns.lua:
{ ??,  hyph-uk.tex,ukrainian },

Mojca
___
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] t-vim failed under windows

2009-04-10 Thread Andy Wong
  It should be -u NONE (all capitals)

 -u NONE is the same result.

 It is mtxrun related. It works in linux, so it could be windows related. I
do not have a windows machine
 to test (and not enough diskspace to install windows on a VM).

mtxrun seems not execute the vim command line correctly.

 As a last resort, what does the log file say for this (all in one line)

mtxrun --verbose --noquotes bin:vim -u NONE -e -C -n -V10log -c \set
tabstop=8\ -c \syntax on\ -c \set syntax=c\ -c \let
contextstartline=1\ -c \let contextstopline=0\ -c \source
c:/context/tex/texmf-context/tex/context/third/vim/2context.vim\ -c \wqa\
\vimdemo-vimsyntax.tmp\ 
The log file list as follows:
-

tabstop=8 [New File]
  line 0: set
--- Options ---
  helplang=En ttyfast verbose=20
noloadplugins updatecount=0   verbosefile=log
  iskeyword=@,48-57,_,192-255
 line 0: syntax
No Syntax items defined for this buffer
   line 0: set
--- Options ---
  helplang=En ttyfast verbose=20
noloadplugins updatecount=0   verbosefile=log
  iskeyword=@,48-57,_,192-255
 line 0: let
b:changedtick #3
v:version #702
v:beval_winnr #0
v:lnum#0
v:scrollstart  command line line 0
v:dying   #0
v:lang C
v:count   #0
v:progname vim.exe
v:cmdbang #0
v:foldlevel   #0
v:ctypeC
v:prevcount   #0
v:mouse_win   #0
v:count1  #0
v:foldstart   #0
v:foldend #0
v:profiling   #0
v:beval_col   #0
v:beval_lnum  #0
v:mouse_lnum  #0
v:beval_bufnr #0
v:shell_error #0
v:servername   VIM
v:lc_time  English_United States.1252
v:searchforward   #1
v:mouse_col   #0
v:statusmsgline 0: let
  line 0: let
b:changedtick #3
v:version #702
v:beval_winnr #0
v:lnum#0
v:scrollstart  command line line 0
v:dying   #0
v:lang C
v:count   #0
v:progname vim.exe
v:cmdbang #0
v:foldlevel   #0
v:ctypeC
v:prevcount   #0
v:mouse_win   #0
v:count1  #0
v:foldstart   #0
v:foldend #0
v:profiling   #0
v:beval_col   #0
v:beval_lnum  #0
v:mouse_lnum  #0
v:beval_bufnr #0
v:shell_error #0
v:servername   VIM
v:lc_time  English_United States.1252
v:searchforward   #1
v:mouse_col   #0
v:statusmsgline 0: let
  line 0: source
Error detected while processing command line:
E471: Argument required
   line 0: wqa

 If this does not work, does replacing bin:vim with bin:gvim work?

No.

Andy
___
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] new beta

2009-04-10 Thread Hans Hagen

Eythan Weg wrote:


   l.343 \protect \errorstopmode \dump
   \endinput


Any hints here?


can you try again?

-
  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] new structure code

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 15:38 schrieb Wolfgang Schuster:


Hi,

i found a few bugs in the new structure code for mkiv.


1. the dot after numbered items is missing

\starttext
\startitemize[n]
\item first item
\item second item
\stopitemize
\stoptext


2. indices in headers work not in interactive mode

\setupinteraction[state=start]
\starttext
\section{Section one\index{section}}
\stoptext


3. \\ generates a backslash but was a space before

\starttext
text\\text
\stoptext




4. the page numbers in the index are wrong

\setuphead[part][placehead=yes]
\starttext
\part{One}
text apple\index{apple} text
\page
text flower\index{flower} text
\part{Two}
text tomato\index{tomato} text
\page
text banana\index{banana} text
\completeindex
\stoptext

another thing are the page number in the example above, the old code  
reseted

the number with each part and prefixed it but this happens no longer


5. \tex command did not work correct in \index

\starttext
text command\index{\tex{command}} text
\placeindex
\stoptext


to be continued


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] new beta

2009-04-10 Thread Longmin Wang
On Fri, Apr 10, 2009 at 10:02:24PM +0800, Yanrui Li wrote:
2009/4/10 Hans Hagen pra...@wxs.nl:
 Hi,

 I uploaded a new beta, one that needs luatex beta 0.38, which has just been
 released. The most important things:


I failed to update it and got an error message.

ConTeXt  ver: 2009.04.10 13:59 MKIV  fmt: 2009.4.10  int: dutch/dutch

! LuaTeX error ...text/tex/texmf-context/tex/context/base/luat-sto.lua:58:
attempt to call method 'gmatch' (a nil value)
stack traceback:
   ...text/tex/texmf-context/tex/context/base/luat-sto.lua:58: in function 
 'dump'
   main ctx instance:1: in main chunk.
inserted text ...on \fi \ctxlua {storage.dump()}
  \ctxlua {nodes.cleanup_res...
\dump -\the \everydump
\normaldump
l.343 \protect \errorstopmode \dump
\endinput
?

It may be caused by your patches for Chinese fonts punctuation. 

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] \rightarrow missing?

2009-04-10 Thread Mohamed Bana

excuse me if this has already been fixed.

   $ pdfinfo test1.pdf

   Creator:ConTeXt - 2009.03.23 10:57
   Producer:   LuaTeX-0.36.0
   CreationDate:   Fri Apr 10 18:10:34 2009
   ModDate:ConTeXt - 2009.03.23 10:57


\implies doesn't work
  
! Undefined control sequence.

recently read \implies
   
l.11 $\implies

 $
?

   
*I* think \Rightarrow should be exchanged for \implies, as \implies 
generates a slightly longer arrow.


   $ pdfinfo test2.pdf

   Creator:ConTeXt - 2009.03.23 10:57
   Producer:   pdfTeX-1.40.9
   CreationDate:   Fri Apr 10 18:11:36 2009
   ModDate:Fri Apr 10 00:00:00 2009


%%% the file %%%

\starttext   

$\rightarrow$



$\to$



$\leftarrow$ 



$\leftrightarrow$



$\implies$   



$\Rightarrow$

\stoptext  


Jesse Alama wrote:

I switched from MkIV to MkII today because of this gap in MkIV's math:
I need to submit a dissertation that has \rightarrow's in it.  Let's
hope that this issue is resolved soon.

Jesse

Alan BRASLAU alan.bras...@cea.fr writes:

  

Indeed, it seems to be broken in mkiv
\rightarrow
\to
\leftarrow
...

However, \leftrightarrow works.

So, currently, it is hard to typeset limits under mkiv!

Alan


On Tuesday 31 March 2009 09:14:16 Hans Hagen wrote:


Aditya Mahajan wrote:
  

On Mon, 30 Mar 2009, Jesse Alama wrote:


It seems that \rightarrow is missing.  The command exists, in the sense
that its use doesn't lead to an error, but it doesn't lead to anything
in the output.  Minimal example:

\starttext
$\rightarrow$
\stoptext
  

Hans,

What does the new arrow function in math-vfu.lua supposed to do?


it will be used instead of the macro based one (as luatex has native
support for such extenders now) but i had to wait till you fixed all the
other arrows that you added someplace

Hans
  

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

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




  


test1.pdf
Description: Adobe PDF document


test2.pdf
Description: Adobe PDF document
___
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] new beta

2009-04-10 Thread Mohamed Bana

Hi Aditya,

when you have time can you please forward me your complete zsh setup, 
the .zsh etc.


i think i'm going to switch to zsh from bash, the benefits are far too 
numerous.


Mohamed

Aditya Mahajan wrote:

On Wed, 8 Apr 2009, Mohamed Bana wrote:


hi all,

on that tangent, is it possible to get command line completion for 
the rest of the options for example something like


mtxrun tabscripts --tabfonts --tabreload


This usually depends on tab-completion of the shell and has nothing to 
do with the program. I made something like this for texexec. See Zsh 
completion in http://wiki.contextgarden.net/User:Adityam


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
___ 


___
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] \rightarrow missing?

2009-04-10 Thread Aditya Mahajan

On Fri, 10 Apr 2009, Mohamed Bana wrote:


excuse me if this has already been fixed.

  $ pdfinfo test1.pdf

  Creator:ConTeXt - 2009.03.23 10:57
  Producer:   LuaTeX-0.36.0
  CreationDate:   Fri Apr 10 18:10:34 2009
  ModDate:ConTeXt - 2009.03.23 10:57


\implies doesn't work
 ! Undefined control sequence.
recently read \implies
  l.11 $\implies
$


Currently, \implies, \iff, and \impliedby are not mapped. We need a 
cleaner model to map symbols with spaces.


  *I* think \Rightarrow 
should be exchanged for \implies, as \implies generates a slightly longer 
arrow.


\implies is usually defined as \;\Rightarrow\; so the size of the arrow 
should be the same.


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
___


Re: [NTG-context] language mix

2009-04-10 Thread Hans Hagen

Mojca Miklavec wrote:

On Fri, Apr 10, 2009 at 02:29, Vyatcheslav Yatskovsky wrote:

Hello,

What about adding hyph-uk to the distribution? ;)


You just need to convince Hans to replace ?? with uk in mtx-patterns.lua:
{ ??,  hyph-uk.tex,ukrainian },


ok, and as a bonus i also generated them -)


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


[NTG-context] mtxrun --noquotes on windows

2009-04-10 Thread Aditya Mahajan

Hi,

It seems that mtxrun --noquotes behaves differently on windows and linux. 
Can someone on windows (who has vim) check the following. Run


mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ test.tex

You will enter in vim. Press :qa! to exit vim. What does the output on the 
terminal say? On my linux machine, I get


MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex

Andy Wong tested it on windows and he gets

MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex

Notice the spurious  before test.tex. This causes t-vim to fail on 
windows. Do others on windows get the same behavour? I do not see a reason 
why mtxrun should behave differently on linux and windows.


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


Re: [NTG-context] mtxrun --noquotes on windows

2009-04-10 Thread Andy Wong
I think I may not write it clear in my previous email. I run the command as

mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ \test.tex\

which got the mtxrun output has spurious  before test.tex. if omit the \
around the test.tex, like this,

 mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ test.tex

there are no spurious  in mtxrun output. However, both will make vim open a
new file named tabset=8 and the test.tex to be edited. That is the
problem. I guess under linux this command should open vim to edit the
test.tex only instead.


Andy


On Fri, Apr 10, 2009 at 1:40 PM, Aditya Mahajan adit...@umich.edu wrote:

 Hi,

 It seems that mtxrun --noquotes behaves differently on windows and linux.
 Can someone on windows (who has vim) check the following. Run

 mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ test.tex

 You will enter in vim. Press :qa! to exit vim. What does the output on the
 terminal say? On my linux machine, I get

 MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex

 Andy Wong tested it on windows and he gets

 MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex

 Notice the spurious  before test.tex. This causes t-vim to fail on
 windows. Do others on windows get the same behavour? I do not see a reason
 why mtxrun should behave differently on linux and windows.

 Thanks,
 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

 ___

___
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] mtxrun --noquotes on windows

2009-04-10 Thread Aditya Mahajan

On Fri, 10 Apr 2009, Andy Wong wrote:


I think I may not write it clear in my previous email. I run the command as

mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ \test.tex\


If you quote the filename, then it should be

mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ \test.tex\ 

Notice the space before the last quote. This will open two files test.tex 
and , but that it is ok. The last file is ignored by t-vim.



which got the mtxrun output has spurious  before test.tex. if omit the \
around the test.tex, like this,

mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ test.tex

there are no spurious  in mtxrun output.


So it is not mtxrun's fault.


However, both will make vim open a
new file named tabset=8


You mean tabstop=8?


and the test.tex to be edited. That is the
problem. I guess under linux this command should open vim to edit the
test.tex only instead.


If vim is passed the correct command, I do not see why it should not 
execute it in the same way in windows. Try one more thing. Run


mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ \test.tex\ 

mtxrun should report that it is executing

vim -u NONE -c set tabstop=8 test.tex

Execute the above command manually on the terminal. Do you get the same result 
in both cases?

Aditya




On Fri, Apr 10, 2009 at 1:40 PM, Aditya Mahajan adit...@umich.edu wrote:


Hi,

It seems that mtxrun --noquotes behaves differently on windows and linux.
Can someone on windows (who has vim) check the following. Run

mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ test.tex

You will enter in vim. Press :qa! to exit vim. What does the output on the
terminal say? On my linux machine, I get

MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex

Andy Wong tested it on windows and he gets

MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex

Notice the spurious  before test.tex. This causes t-vim to fail on
windows. Do others on windows get the same behavour? I do not see a reason
why mtxrun should behave differently on linux and windows.

Thanks,
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

___




___
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] new structure code

2009-04-10 Thread Wolfgang Schuster

Hi,

i found a few bugs in the new structure code for mkiv.


1. the dot after numbered items is missing

\starttext
\startitemize[n]
\item first item
\item second item
\stopitemize
\stoptext


2. indices in headers work not in interactive mode

\setupinteraction[state=start]
\starttext
\section{Section one\index{section}}
\stoptext


3. \\ generates a backslash but was a space before

\starttext
text\\text
\stoptext


4. the page numbers in the index are wrong

\setuphead[part][placehead=yes]
\starttext
\part{One}
text apple\index{apple} text
\page
text flower\index{flower} text
\part{Two}
text tomato\index{tomato} text
\page
text banana\index{banana} text
\completeindex
\stoptext

another thing are the page number in the example above, the old code  
reseted

the number with each part and prefixed it but this happens no longer


5. \tex command did not work correct in \index

\starttext
text command\index{\tex{command}} text
\placeindex
\stoptext


6. 'none' value in float caption did not work, 'none' is treated as  
normal caption text


\starttext
text
\placefigure{none}{\framed{figure}}
\stoptext


... to be continued


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] new structure code

2009-04-10 Thread Peter Münster
On Fri, 10 Apr 2009, Wolfgang Schuster wrote:

 
 Am 10.04.2009 um 15:38 schrieb Wolfgang Schuster:
 
  Hi,
  
  i found a few bugs in the new structure code for mkiv.
  
  
  1. the dot after numbered items is missing
  
  \starttext
  \startitemize[n]
  \item first item
  \item second item
  \stopitemize
  \stoptext
  
  
  2. indices in headers work not in interactive mode
  
  \setupinteraction[state=start]
  \starttext
  \section{Section one\index{section}}
  \stoptext
  
  
  3. \\ generates a backslash but was a space before
  
  \starttext
  text\\text
  \stoptext
 
 
 
 4. the page numbers in the index are wrong
 
 \setuphead[part][placehead=yes]
 \starttext
 \part{One}
 text apple\index{apple} text
 \page
 text flower\index{flower} text
 \part{Two}
 text tomato\index{tomato} text
 \page
 text banana\index{banana} text
 \completeindex
 \stoptext
 
 another thing are the page number in the example above, the old code reseted
 the number with each part and prefixed it but this happens no longer
 
 
 5. \tex command did not work correct in \index
 
 \starttext
 text command\index{\tex{command}} text
 \placeindex
 \stoptext
 
 
 to be continued

I don't know, if this is a bug, but it worked with version 2009.04.06:

6. problem with \unprotect and \section{}:

\unprotect
\def\...@bla{sec title}
\def\mysection{\section{\...@bla}}
\protect
\starttext
\mySection
bla bla
\stoptext

ERROR: Undefined control sequence.
--- TeX said ---
l.1 \bla
@bla 

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

___
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] t-vim failed under windows

2009-04-10 Thread Aditya Mahajan

On Thu, 9 Apr 2009, Andy Wong wrote:


Hello,

I have tried the example using the vim mode to typeset some c codes. When I
run the sample file, context stop with errors. the sample file and log file
as
list below. I use the windowsXP with the minimal context from ConTeXt garden
and \write18 is enabled.  From the log file, it seems the vim command is not
properly quoted as follows:


Another attempt. Does the following test file work for you?

%
%%% Start file
%

\unprotect
\def\shellescapedquote{\letterdoublequote}

\def\runvimsyntax#1
   {\executesystemcommand
  {mtxrun --verbose bin:vim
   -u NONE  % No need to read unnessary configurations
   -e   % run in ex mode
   -C   % Set compatibile
   -n   % No swap
   -c \shellescapedquote set tabstop=\@@vstab\shellescapedquote\space
   -c \shellescapedquote syntax on\shellescapedquote\space
   -c \shellescapedquote set syntax=\@@vssyntax\shellescapedquote\space
   -c \shellescapedquote let 
contextstartline=\@@vsstart\shellescapedquote\space
   -c \shellescapedquote let contextstopline=\@@vsstop\shellescapedquote  
\space
   -c \shellescapedquote source kpse:2context.vim\shellescapedquote\space
   -c \shellescapedquote wqa\shellescapedquote\space
\shellescapedquote#1\shellescapedquote}}
\protect

\setupcolors[state=start]
\usemodule[vim]
\definevimtyping [C] [syntax=c]
\starttext
\startC
#include stdio.h
#include stdlib.h
void main()
{
  printf(Hello World\n) ;
  return;
}
\stopC
\stoptext

%
%%% End file
%

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
___


Re: [NTG-context] mtxrun --noquotes on windows

2009-04-10 Thread Andy Wong
Yes, if leave a space between the last two quotes, mtx output seems ok.

MTXrun |
MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex
MTXrun |
But it still cause vim open two file named tabstop=8 and test.tex to
edit. So it seems vim treat tabstop=8 as a file? that still a quotes
problem, right? I also test if there no space in quoted arguments, such as

mtxrun --noquotes bin:vim -u NONE -c \help\ \test.tex\ 

This time vim will open the test.tex and  help window as expected. If any
command with space in -c parameter, vim can not correct executed.

manually execute the vim command:

vim -u NONE -c set tabstop=8 test.tex

vim open the test.tex only to edit as expected.
Andy
On Fri, Apr 10, 2009 at 2:49 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Fri, 10 Apr 2009, Andy Wong wrote:

 I think I may not write it clear in my previous email. I run the command as

 mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ \test.tex\


 If you quote the filename, then it should be

 mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ \test.tex\ 

 Notice the space before the last quote. This will open two files test.tex
 and , but that it is ok. The last file is ignored by t-vim.

 which got the mtxrun output has spurious  before test.tex. if omit the \
 around the test.tex, like this,

 mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ test.tex

 there are no spurious  in mtxrun output.


 So it is not mtxrun's fault.

 However, both will make vim open a
 new file named tabset=8


 You mean tabstop=8?

  and the test.tex to be edited. That is the
 problem. I guess under linux this command should open vim to edit the
 test.tex only instead.


 If vim is passed the correct command, I do not see why it should not
 execute it in the same way in windows. Try one more thing. Run

 mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ \test.tex\ 

 mtxrun should report that it is executing

 vim -u NONE -c set tabstop=8 test.tex

 Execute the above command manually on the terminal. Do you get the same
 result in both cases?

 Aditya




 On Fri, Apr 10, 2009 at 1:40 PM, Aditya Mahajan adit...@umich.edu wrote:

 Hi,

 It seems that mtxrun --noquotes behaves differently on windows and linux.
 Can someone on windows (who has vim) check the following. Run

 mtxrun --noquotes bin:vim -u NONE -c \set tabstop=8\ test.tex

 You will enter in vim. Press :qa! to exit vim. What does the output on
 the
 terminal say? On my linux machine, I get

 MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex

 Andy Wong tested it on windows and he gets

 MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex

 Notice the spurious  before test.tex. This causes t-vim to fail on
 windows. Do others on windows get the same behavour? I do not see a
 reason
 why mtxrun should behave differently on linux and windows.

 Thanks,
 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


 ___



 ___
 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] t-vim failed under windows

2009-04-10 Thread Andy Wong
It did not work, either. Same problem.


Andy
On Fri, Apr 10, 2009 at 3:13 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 9 Apr 2009, Andy Wong wrote:

 Hello,

 I have tried the example using the vim mode to typeset some c codes. When
 I
 run the sample file, context stop with errors. the sample file and log
 file
 as
 list below. I use the windowsXP with the minimal context from ConTeXt
 garden
 and \write18 is enabled.  From the log file, it seems the vim command is
 not
 properly quoted as follows:


 Another attempt. Does the following test file work for you?

 %
 %%% Start file
 %

 \unprotect
 \def\shellescapedquote{\letterdoublequote}

 \def\runvimsyntax#1
   {\executesystemcommand
  {mtxrun --verbose bin:vim
   -u NONE  % No need to read unnessary configurations
   -e   % run in ex mode
   -C   % Set compatibile
   -n   % No swap
   -c \shellescapedquote set tabstop=\@@vstab\shellescapedquote\space
   -c \shellescapedquote syntax on\shellescapedquote\space
   -c \shellescapedquote set syntax=\@@vssyntax\shellescapedquote\space
   -c \shellescapedquote let
 contextstartline=\@@vsstart\shellescapedquote\space
   -c \shellescapedquote let contextstopline=\@@vsstop\shellescapedquote
  \space
   -c \shellescapedquote source
 kpse:2context.vim\shellescapedquote\space
   -c \shellescapedquote wqa\shellescapedquote\space
\shellescapedquote#1\shellescapedquote}}
 \protect

 \setupcolors[state=start]
 \usemodule[vim]
 \definevimtyping [C] [syntax=c]
 \starttext
 \startC
 #include stdio.h
 #include stdlib.h
 void main()
 {
  printf(Hello World\n) ;
  return;
 }
 \stopC
 \stoptext

 %
 %%% End file
 %


 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

 ___

___
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] new structure code

2009-04-10 Thread Khaled Hosny
I think this might be related as well, heads without numbers don't
appear in the table of content:

\starttext
\setuphead[chapter][number=no]
\completecontent

\chapter{One}
\chapter{Two}
\chapter{Three}

\stoptext

If I don't remove the 'number' option, I get empty TOC.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


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

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


Re: [NTG-context] t-vim failed under windows

2009-04-10 Thread Aditya Mahajan

On Fri, 10 Apr 2009, Andy Wong wrote:


It did not work, either. Same problem.


Then, for the moment use your workaround of having a batch file. I will 
try to get access to a windows environment in a few days and then check 
what is going wrong on windows.


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
___


Re: [NTG-context] new structure code

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 22:24 schrieb Khaled Hosny:


I think this might be related as well, heads without numbers don't
appear in the table of content:

\starttext
\setuphead[chapter][number=no]


Did number=no,incrementnumber=list work?

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] mtxrun --noquotes on windows

2009-04-10 Thread Aditya Mahajan

On Fri, 10 Apr 2009, Andy Wong wrote:


Yes, if leave a space between the last two quotes, mtx output seems ok.

MTXrun |
MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex
MTXrun |
But it still cause vim open two file named tabstop=8 and test.tex to
edit. So it seems vim treat tabstop=8 as a file? that still a quotes
problem, right? I also test if there no space in quoted arguments, such as


I am beginning to suspect that it is a shell problem rather than a mtxrun 
problem. Mtxrun passes the correct commands and quotes to the shell, but 
the shell for some reason ignores that.


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
___


Re: [NTG-context] t-vim failed under windows

2009-04-10 Thread Andy Wong
Thanks.
Andy
On Fri, Apr 10, 2009 at 3:28 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Fri, 10 Apr 2009, Andy Wong wrote:

 It did not work, either. Same problem.


 Then, for the moment use your workaround of having a batch file. I will try
 to get access to a windows environment in a few days and then check what is
 going wrong on windows.


 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

 ___

___
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] new structure code

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 22:11 schrieb Peter Münster:


I don't know, if this is a bug, but it worked with version 2009.04.06:

6. problem with \unprotect and \section{}:

\unprotect
\def\...@bla{sec title}
\def\mysection{\section{\...@bla}}


\def\mysection{\expanded{\section{\...@bla}}}

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] mtxrun --noquotes on windows

2009-04-10 Thread Andy Wong
It may be windows has problem to handle the space in quoted parameters?
write those commands to a batch file then call by mtxrun works right. May be
it is a solution. :)

Andy

On Fri, Apr 10, 2009 at 3:32 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Fri, 10 Apr 2009, Andy Wong wrote:

  Yes, if leave a space between the last two quotes, mtx output seems ok.

 MTXrun |
 MTXrun | executing: vim -u NONE -c set tabstop=8 test.tex
 MTXrun |
 But it still cause vim open two file named tabstop=8 and test.tex to
 edit. So it seems vim treat tabstop=8 as a file? that still a quotes
 problem, right? I also test if there no space in quoted arguments, such as


 I am beginning to suspect that it is a shell problem rather than a mtxrun
 problem. Mtxrun passes the correct commands and quotes to the shell, but the
 shell for some reason ignores that.


 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

 ___

___
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] 'mtxrun --script fonts' not working

2009-04-10 Thread Khaled Hosny

I get this error:
...text/tex/texmf-context/tex/context/base/font-syn.lua:12: attempt to
index global 'tex' (a nil value)

I just commented out this line, and it seems to be working OK so fare.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


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

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


Re: [NTG-context] new structure code

2009-04-10 Thread Khaled Hosny
On Fri, Apr 10, 2009 at 10:28:25PM +0200, Wolfgang Schuster wrote:

 Am 10.04.2009 um 22:24 schrieb Khaled Hosny:

 I think this might be related as well, heads without numbers don't
 appear in the table of content:

 \starttext
 \setuphead[chapter][number=no]

 Did number=no,incrementnumber=list work?

No, still empty TOC.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


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

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


Re: [NTG-context] new structure code

2009-04-10 Thread Wolfgang Schuster


Am 10.04.2009 um 23:27 schrieb Khaled Hosny:


On Fri, Apr 10, 2009 at 10:28:25PM +0200, Wolfgang Schuster wrote:


Am 10.04.2009 um 22:24 schrieb Khaled Hosny:


I think this might be related as well, heads without numbers don't
appear in the table of content:

\starttext
\setuphead[chapter][number=no]


Did number=no,incrementnumber=list work?


No, still empty TOC.


I add it to my list, mkii and mkiv behave in the reverse way.

\setuphead[chapter][incrementnumber=no]

shows the chapter header in mkiv in the toc but remove it in mkii  
(what I expect).


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] new structure code

2009-04-10 Thread Hans Hagen

Wolfgang Schuster wrote:


I add it to my list, mkii and mkiv behave in the reverse way.


thanks for collecting the issues, i prefer looking at them at once (next 
week) so if you make a summary / test file ...




-
  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] new beta

2009-04-10 Thread Yanrui Li
2009/4/11 Longmin Wang longminw...@gmail.com:
 On Fri, Apr 10, 2009 at 10:02:24PM +0800, Yanrui Li wrote:
2009/4/10 Hans Hagen pra...@wxs.nl:
 Hi,

 I uploaded a new beta, one that needs luatex beta 0.38, which has just been
 released. The most important things:


I failed to update it and got an error message.

 It may be caused by your patches for Chinese fonts punctuation.


Thank you for reminding me.

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.06 21:42)
___
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] new structure code

2009-04-10 Thread Yanrui Li
2009/4/11 Hans Hagen pra...@wxs.nl:
 Wolfgang Schuster wrote:

 I add it to my list, mkii and mkiv behave in the reverse way.

 thanks for collecting the issues, i prefer looking at them at once (next
 week) so if you make a summary / test file ...


\headnumber missing with MkIV.

\starttext
\chapter{test}
\headnumber[chapter]
\stoptext


! Undefined control sequence.
l.5 \headnumber
   [chapter]
? ^\/opt/context/tex/texmf-linux/bin/context: line 2: 14604 Quit
 mtxrun --script context $@

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.06 21:42)
___
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] new structure code

2009-04-10 Thread Yanrui Li
2009/4/11 Yanrui Li liyanrui...@gmail.com:
 2009/4/11 Hans Hagen pra...@wxs.nl:
 Wolfgang Schuster wrote:

 I add it to my list, mkii and mkiv behave in the reverse way.

 thanks for collecting the issues, i prefer looking at them at once (next
 week) so if you make a summary / test file ...


 \headnumber missing with MkIV.

 \starttext
 \chapter{test}
 \headnumber[chapter]
 \stoptext


 ! Undefined control sequence.
 l.5 \headnumber
               [chapter]
 ? ^\/opt/context/tex/texmf-linux/bin/context: line 2: 14604 Quit
             mtxrun --script context $@


In addition, indentnext with \setupfloats don't work.

\setupindenting[always,2em,first]
\setupfloats[indentnext=yes]

\starttext
This is only a test.

\placefigure[here][TEST]
{This is a figure}
{\externalfigure[cow][width=.6\textwidth]}

\input knuth

\stoptext

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.06 21:42)
___
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] language mix

2009-04-10 Thread Vyatcheslav Yatskovsky
Actually, hyph-uk is Ukrainain. And the corresponding file is missed in 
the distribution, so simply changing mtx-patterns.lua will not help.


Vyatheslav
___
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] new beta

2009-04-10 Thread Wei-Wei Guo

Hi Hans,

I get an error:

  ! Undefined control sequence.
  argument \@@plaatspaginanummer

  \firstoftwoarguments #1#2-#1

  \doattributes ...sname #1...@ea \endcsname \fi {#4
}\dostopattributes
  \dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}
\egroup
  argument ...?tk \v!footer \v!text \c!righttext }
\@@nmpos {\getvalue 
{\??tk...
  \dododoplacelayouttextline ...#2 #3}\hbox to #1{#4
}\stoplayoutcomponent 
\get...
  ...
  l.71 \stopbodymatter


And indentation doesn't work here.


Best wishes,
Wei-Wei



Hans Hagen 写道:

Hi,

I uploaded a new beta, one that needs luatex beta 0.38, which has just 
been released. The most important things:


- some fixes in the new structure code
- bookmarks are now supported in the new structure
- otf math kerning is supported (neat)
- some cleanup of lua code
- the usual bug fixes

as said ... you need luatex 0.38

there will be a current when luatex 0.40 is available

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