[NTG-context] problem with coupling (mkiv)

2012-01-02 Thread Rene van Hassel
Hello members,


a happy new year to everybody.
And here the problem I have: 

\setupinteraction[start=state,color=orange]
\setupcombinedlist[content][interaction=all]
\defineblock[question]
\defineblock[answer]
\defineenumeration[questions][location=top,coupling=answers]
\defineenumeration[answers][location=top,coupling=questions]
\hideblocks[question]
\hideblocks[answer]
\starttext
% Problems with the coupling of questions and answers
\beginquestion
\startquestions
Why ConTeXt doesn't work? 
\stopquestions
\endquestion
\useblocks[question]
\page
\beginanswer
\startanswers 
It always give:\crlf
sometimes: LuaTeX error  and something with lpegmatch??
\stopanswers
\endanswer
\useblocks[answer]
\stoptext

This piece of code is compiled with context of 
TeXLive2011, which is almost every week updated.
The piece of compiled into a .pdf file without 
any problem, but I see no interaction.

In other pieces of code, it gives a LuaTex error 
and something with lpegmatch, but I have 
no idea about what is spoken. 

Sometimes I see orange triangles after the 
enumerations but I have no interaction, the 
cursor at the screen does not change of form.
This if I look at the pdf-file with the acrobat reader.

Who of you has any idea howto get interaction 
between the questions and the answers?

The piece of code in one of the manuals of 
ConTeXt doesn't work with the context I use.
It goes about these hidden blocks. 
There is also given an example with question and 
answer.

It should be nice if it works,


Kind Regards,


Rene' van Hassel



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

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


[NTG-context] \def undefined on xmlsetup

2012-01-02 Thread Meer, H. van der
The following setup gives an error.

\startxmlsetups xam:parameter
  \edef\parameter{\xmltrim{#1}}
\stopxmlsetups

system   tex  error on line 7 in file xam-test.tex: Undefined control 
sequence ...
\@@su:xam:parameter #1-\edef \parameter 
 {\xmltrim {#1}}\verbose {parameter .. 
l.7 }

How to avoid that one?
  
Hans van der Meer



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

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


[NTG-context] Text alignment influences page placement

2012-01-02 Thread Wolfgang Schuster
Hi Hans,

the new alignment code influences the placement of the whole text block.

\setuppapersize[A5][A3,landscape]

%\setupalign[left]
\setupalign[middle]

\starttext \showframe
text
\stoptext

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

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


[NTG-context] \setlayerframed align-option causes shift

2012-01-02 Thread Andreas Harder
Hi Hans,

setting the align-option of \setlayerframed causes a small (but visible) right 
shift.

\definelayer[page][width=\paperwidth,height=\paperheight]
\setupbackgrounds[page][background=page]

\starttext  \showframe
  \setlayerframed [page]
[x=\backspace,y=\topspace]
[width=broad,height=\headerheight,align=right] {Not OK}
% [width=broad,height=\headerheight] {OK}
  
  \page[empty]
\stoptext


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

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


Re: [NTG-context] Text alignment influences page placement

2012-01-02 Thread Hans Hagen

On 2-1-2012 15:27, Wolfgang Schuster wrote:

Hi Hans,

the new alignment code influences the placement of the whole text block.

\setuppapersize[A5][A3,landscape]

%\setupalign[left]
\setupalign[middle]

\starttext \showframe
text
\stoptext


ah, some unwanted synchronization; I'll fix it

Hans


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

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


Re: [NTG-context] Pagereferences to more than one page

2012-01-02 Thread Jan Heinen

Though I searched a lot for the question in the bottom,
- I could not find a parameter for \at which solves my problem
- I could not find any other command which helps me

Is this a limitation of ConText? I can't imagin that I am 
the only one and first who wants to reference to more than 
one page.


Regards, Jannis

= Copy
I want to reference to more than one page. In the exampe 
above only page 2 is referenced - how to get 2,4 ?


\starttext
You can find red vehicles on \at{page:}[red]


Here I want to see: You can find red vehicles on page 2,4 
(only page 2 is wrong)


\page

\pagereference[red]Here is a red car.
\page

\pagereference[green]Here is a green car.
\page

\pagereference[red]Here is a red bus.
\page

\pagereference[green]Here is a green car.
\page

\stoptext




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

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


[NTG-context] beta

2012-01-02 Thread Hans Hagen

Hi,

I uploaded a new beta ... hopefully not too many renaming side effects

Hans


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

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


[NTG-context] Exporting itemize

2012-01-02 Thread Andreas Harder
Hi Hans,

another one.

\setupbackend[export=yes]

\starttext
  \startitemize
  \startitem test \stopitem
  \stopitemize
\stoptext

Works with the beta but is broken in the experimental branch.

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

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


Re: [NTG-context] Pagereferences to more than one page

2012-01-02 Thread Hans Hagen

On 2-1-2012 17:21, Jan Heinen wrote:

Though I searched a lot for the question in the bottom,
- I could not find a parameter for \at which solves my problem
- I could not find any other command which helps me

Is this a limitation of ConText? I can't imagin that I am the only one
and first who wants to reference to more than one page.

Regards, Jannis

= Copy
I want to reference to more than one page. In the exampe above only page
2 is referenced - how to get 2,4 ?

\starttext
You can find red vehicles on \at{page:}[red]


Here I want to see: You can find red vehicles on page 2,4 (only page 2
is wrong)

\page

\pagereference[red]Here is a red car.
\page

\pagereference[green]Here is a green car.
\page

\pagereference[red]Here is a red bus.
\page

\pagereference[green]Here is a green car.
\page


that won't work as references need to be unique

[green-1]
[green-2]

etc


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

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


Re: [NTG-context] Pagereferences to more than one page

2012-01-02 Thread luigi scarso
On Mon, Jan 2, 2012 at 5:21 PM, Jan Heinen jahei...@gmx.de wrote:
 Though I searched a lot for the question in the bottom,
 - I could not find a parameter for \at which solves my problem
 - I could not find any other command which helps me

 Is this a limitation of ConText? I can't imagin that I am the only one and
 first who wants to reference to more than one page.
I'm working on this
but the idea of reference is that there is exactly one label for an
object (which can be the same)
so that \pagereference[red]foo
\pagereference[red]boo
is wrong because the label red has more than one reference, while
 \pagereference[red:1]foo
\pagereference[red:2]foo
is ok (as hans said).
What you need is a register --- they are used in to build the Index :
see
http://wiki.contextgarden.net/Registers

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

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


Re: [NTG-context] \def undefined on xmlsetup

2012-01-02 Thread Hans Hagen

On 2-1-2012 14:55, Meer, H. van der wrote:

The following setup gives an error.

\startxmlsetups xam:parameter
   \edef\parameter{\xmltrim{#1}}
\stopxmlsetups

system  tex  error on line 7 in file xam-test.tex: Undefined control sequence 
...
\@@su:xam:parameter #1-\edef \parameter
  {\xmltrim {#1}}\verbose {parameter .. 
l.7 }

How to avoid that one?


depends on the rest of the code

anyhow, using \parameter as name is not a good idea (can clash)


\setvariables[MyNameSpace][MyKey=\xmltrim{#1}]

...

\getvariable{MyNameSpace}{MyKey}

is nicer

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

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


Re: [NTG-context] Exporting itemize

2012-01-02 Thread Hans Hagen

On 2-1-2012 17:29, Andreas Harder wrote:

Hi Hans,

another one.

\setupbackend[export=yes]

\starttext
   \startitemize
   \startitem test \stopitem
   \stopitemize
\stoptext

Works with the beta but is broken in the experimental branch.


What is the difference between these two?


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

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


Re: [NTG-context] Exporting itemize

2012-01-02 Thread Andreas Harder

On 02.01.2012, at 17:32, Hans Hagen wrote:

 On 2-1-2012 17:29, Andreas Harder wrote:
 Hi Hans,
 
 another one.
 
 \setupbackend[export=yes]
 
 \starttext
   \startitemize
   \startitem test \stopitem
   \stopitemize
 \stoptext
 
 Works with the beta but is broken in the experimental branch.
 
 What is the difference between these two?

In the time I posted the beta was from last year. Now its broken in the beta as 
well!

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

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


[NTG-context] Undefined controle sequence with usemodule[vim]

2012-01-02 Thread pol stra

Hello everyone,


When I use t-vim module, I get this error message:
error msg
system   tex  error on line 15 in file vim.tex: Undefined control 
sequence ...

/error msg


for example with this code:
code
\usemodule[vim]

\definevimtyping[python][syntax=python, escape=on]
\starttext
\startpython
# Returns \m{\sum_{i=1}^{n}i}
def sum_upto(n)
r = range(1, n+1)
return sum(r)
\stoppython
\stoptext
/code



But as you can see, there is no line 15 in this file !


Anyway, I can just ignore the error and get the output, but that’s not good.


I attached the log file.
  

vim.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] beta

2012-01-02 Thread Andreas Harder

On 02.01.2012, at 17:28, Hans Hagen wrote:

 Hi,
 
 I uploaded a new beta ... hopefully not too many renaming side effects


• xtables

\starttext
  \startxtable
  \startxrow \startxcell test \stopxcell \stopxrow
  \stopxtable
\stoptext

! LuaTeX error ...-old/tex/texmf-context/tex/context/base/tabl-xtb.lua:913: 
incorrect index value -1 for tex.getcount()


• drawoptions + textext()

\startMPpage[offset=1ex]
  drawoptions(withcolor red) ;  
  draw textext(test) ;
\stopMPpage

! TeX capacity exceeded, sorry [input stack size=1].


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

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


Re: [NTG-context] Pagereferences to more than one page

2012-01-02 Thread luigi scarso
On Mon, Jan 2, 2012 at 5:30 PM, luigi scarso luigi.sca...@gmail.com wrote:

 On Mon, Jan 2, 2012 at 5:21 PM, Jan Heinen jahei...@gmx.de wrote:
  Though I searched a lot for the question in the bottom,
  - I could not find a parameter for \at which solves my problem
  - I could not find any other command which helps me
 
  Is this a limitation of ConText? I can't imagin that I am the only one
 and
  first who wants to reference to more than one page.
 I'm working on this
 but the idea of reference is that there is exactly one label for an
 object (which can be the same)
 so that \pagereference[red]foo
 \pagereference[red]boo
 is wrong because the label red has more than one reference, while
  \pagereference[red:1]foo
 \pagereference[red:2]foo
 is ok (as hans said).


Using this idea, and the two pass way, we can wrap \pagereference and \at
with \PageReference and \At,
wheret \PageReference[red] really means \pagereference[red:1],
\pagereference[red:2] and so on,
while \At{page:}[red] put \at{page:}[red:],\at{}[red:2] and so on.
After the end of the first pass we store the multiple references into
multiref.tuc, and we read this file at the beginning of every other pass;
its data is used by \At
to put the correct reference.

This is not a good solution, because multiref.tuc must be keep in synch
with the tuc file of the source, so context ---purgeall must be call to
clean up temporary data and restart.
The ideal solution store these data into the tuc file --- context has
 core-two.lua and core-two.mkiv for this, if I've time I will fix.

%
\startluacode
document.jan =  document.jan or {}
document.jan.multiple_references =  document.jan.multiple_references or {}
document.jan.multiple_references_stored =
 document.jan.multiple_references_stored or {}
\stopluacode


\def\WriteToList{%
\startluacode
local f=io.open('multiref.tuc','r')
if f==nil then
 f=io.open('multiref.tuc','w')
 f:write(local multiple_references= multiple_references or {}\n)
 f:write(multiple_references={\n)
 for k,v in pairs(document.jan.multiple_references) do
f:write(string.format(['\%s']=\%s,\n,k,v))
 end
 f:write(}\n)
 f:write(return multiple_references\n)
end
\stopluacode
}
\appendtoks\WriteToList\to\everystoptext


\def\ReadList{%
\startluacode
local f=io.open('multiref.tuc','r')
if f~=nil then
 f:close()
 document.jan.multiple_references_stored=dofile('multiref.tuc')
end
\stopluacode
}
\appendtoks\ReadList\to\everystarttext



%% wrap \pagereference
\def\PageReference[#1]{%
\startluacode
if document.jan.multiple_references['#1'] == nil then
  document.jan.multiple_references['#1'] = 1
 else
  document.jan.multiple_references['#1'] =
document.jan.multiple_references['#1'] +1
end
context('\\pagereference[#1:\%d]',document.jan.multiple_references['#1'])
\stopluacode%
}

%% wrap \at
\def\At#1[#2]{%
\startluacode
print(' ',document.jan.multiple_references['#2'])
if document.jan.multiple_references_stored['#2'] == nil then
 context('\\at{#1}[#2]')
else
  for j=1,document.jan.multiple_references_stored['#2'] do
local ref=string.format('#2:\%d',j)
local comma = ','
if j==1 and document.jan.multiple_references_stored['#2']==1 then
context('\\at{#1}[\%s]',ref) end
if j==1 and document.jan.multiple_references_stored['#2']~=1 then
  context('\\at{#1}[\%s],',ref)
elseif 1j and jdocument.jan.multiple_references_stored['#2'] then
  context('\\at{}[\%s],',ref)
elseif j== document.jan.multiple_references_stored['#2'] and
 document.jan.multiple_references_stored['#2']1 then
 context('\\at{}[\%s]',ref)
end
  end
end
\stopluacode
}

\starttext
You can find red vehicles on \At{page:}[red]
You can find yellow vehicles on \At{page:}[yellow]

Here I want to see: You can find red vehicles on page 2,4 (only page 2 is
wrong)
\page

\PageReference[red]Here is a red car.
\page

\PageReference[green]Here is a green car.
\page

\PageReference[red]Here is a red bus.
\page

\PageReference[green]Here is a green car.
\page

\PageReference[yellow]Here is a yellow car.
\page



\stoptext


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

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

Re: [NTG-context] beta

2012-01-02 Thread Hans Hagen

On 2-1-2012 18:46, Andreas Harder wrote:


! LuaTeX error ...-old/tex/texmf-context/tex/context/base/tabl-xtb.lua:913: 
incorrect index value -1 for tex.getcount()
! TeX capacity exceeded, sorry [input stack size=1].


fixed


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

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


[NTG-context] reprocessing xml

2012-01-02 Thread Meer, H. van der
The macro \xmlstripped{node}{lpath} gives me the xml resulting from the strip. 
after some operations on this result I would like to reprocess this in order to 
typeset.
How do I accomplish this?

Hans van der Meer



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

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


Re: [NTG-context] beta

2012-01-02 Thread Andreas Harder

On 02.01.2012, at 19:41, Hans Hagen wrote:

 On 2-1-2012 18:46, Andreas Harder wrote:
 
 ! LuaTeX error ...-old/tex/texmf-context/tex/context/base/tabl-xtb.lua:913: 
 incorrect index value -1 for tex.getcount()
 ! TeX capacity exceeded, sorry [input stack size=1].
 
 fixed

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


Re: [NTG-context] reprocessing xml

2012-01-02 Thread Meer, H. van der
Another possibility would be to interpose the Lua-code somwhere in between the 
processing stream. The \directlua-call can get its input from \xmlstripped and 
then does a tex.print back to ConTeXt. Or is there a more direct way to 
substitute the manipulated string for the original input?

Hans van der Meer



On 2 jan. 2012, at 20:04, Meer, H. van der wrote:

 The macro \xmlstripped{node}{lpath} gives me the xml resulting from the 
 strip. after some operations on this result I would like to reprocess this in 
 order to typeset.
 How do I accomplish this?
 
 Hans van der Meer
 
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


Re: [NTG-context] beta

2012-01-02 Thread Thomas A. Schmitz

On 01/02/2012 05:28 PM, Hans Hagen wrote:

Hi,

I uploaded a new beta ... hopefully not too many renaming side effects


Hi Hans,

all best for the New Year! And thanks for the wonderful New Year's card 
- I received two of them and could appreciate the full randomness of it 
all...


In the latest beta, the file hand-ini.mkiv is gone, so \enableprotruding 
is no longer defined. An oversight, I guess? Other than that, the 
parameters mechanism appears to have changed, so it baulks at our 
simpleslides module which uses this all over the place. I'll have to 
make a minimal example later. I keep 2011.11.29 around, for when I need 
urgent results...


All best

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

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


Re: [NTG-context] beta

2012-01-02 Thread Andreas Harder

On 02.01.2012, at 19:41, Hans Hagen wrote:

 On 2-1-2012 18:46, Andreas Harder wrote:
 
 ! LuaTeX error ...-old/tex/texmf-context/tex/context/base/tabl-xtb.lua:913: 
 incorrect index value -1 for tex.getcount()
 ! TeX capacity exceeded, sorry [input stack size=1].
 
 fixed

• \processxtablebuffer[…]

\starttext
\startbuffer[table]
  \startxtable
  \startxrow \startxcell test \stopxcell \stopxrow
  \stopxtable
\stopbuffer
\processxtablebuffer[table]
% \getbuffer[table] % OK
\stoptext

! File ended while scanning use of \next.

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

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


Re: [NTG-context] beta

2012-01-02 Thread Wolfgang Schuster

Am 02.01.2012 um 20:51 schrieb Thomas A. Schmitz:

 On 01/02/2012 05:28 PM, Hans Hagen wrote:
 Hi,
 
 I uploaded a new beta ... hopefully not too many renaming side effects
 
 Hi Hans,
 
 all best for the New Year! And thanks for the wonderful New Year's card - I 
 received two of them and could appreciate the full randomness of it all...
 
 In the latest beta, the file hand-ini.mkiv is gone,

I can’t reproduce this because I have the file on my system.

 so \enableprotruding is no longer defined. An oversight, I guess? Other than 
 that, the parameters mechanism appears to have changed, so it baulks at our 
 simpleslides module which uses this all over the place. I'll have to make a 
 minimal example later. I keep 2011.11.29 around, for when I need urgent 
 results…

Protrusion and font expansion are enabled with \setupalign[hanging] and 
\setupalign[hz] (or “align=hanging” and “align=hz” for \framed).

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

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


Re: [NTG-context] beta

2012-01-02 Thread Thomas A. Schmitz

On 01/02/2012 09:08 PM, Wolfgang Schuster wrote:

In the latest beta, the file hand-ini.mkiv is gone,

I can’t reproduce this because I have the file on my system.


That may be the case, but the question is how it got there. Not by 
running first-setup.sh - I just did a test run into an empty directory, 
and it's not there.



  so \enableprotruding is no longer defined. An oversight, I guess? Other than 
that, the parameters mechanism appears to have changed, so it baulks at our 
simpleslides module which uses this all over the place. I'll have to make a 
minimal example later. I keep 2011.11.29 around, for when I need urgent results…

Protrusion and font expansion are enabled with \setupalign[hanging] and 
\setupalign[hz] (or “align=hanging” and “align=hz” for \framed).


Is \enableprotruding obsolete, then?

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

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

[NTG-context] problem with cross references

2012-01-02 Thread Rene van Hassel
Hello Members,


there is a problem with cross references.
See the piece of code beneath this text.
Under texexec the piece of code works well.
With context there is a problem, the cross references 
of the item(s) don't work, the pdf-file is not interactive.
What is the problem? I hope that somebody can give 
me some advice.
With the hidden blocks there is no problem. 
But with the item(s) there is a problem,


Kind Regards,


Rene' van Hassel

% Code:
\setupcolors[state=start]
\setupinteraction[state=start,color=orange]
\setupreferencing[state=start]

\defineblock[exercise]
\defineblock[solution]
\defineenumeration[exercise][location=top,text=Exercise]
\defineenumeration[solution][location=top,text=Solution]
\hideblocks[exercise]
\hideblocks[solution]

\starttext

\chapter{First Attempt}
% Begin: First Attempt

% With texexec and context both go well.

\beginexercise
\startexercise[exer-1] First exercise.\crlf
See \in{Solution}[sol-1].
\stopexercise
\startexercise[exer-2] Second exercise.\crlf
See \in{Solution}[sol-2].
\stopexercise
\endexercise

\beginsolution
\startsolution[sol-1]
First solution!\crlf
See \in{Exercise}[exer-1].
\stopsolution
\startsolution[sol-2]
Second solution!\crlf
See \in{Exercise}[exer-2].
\stopsolution
\endsolution

\useblocks[exercise]
\page
\useblocks[solution]
\page

% End: First Attempt

\chapter{Second Attempt}
% Begin: Second Attempt

Problem is, that the references of the items become not interactive 
under mkiv (context). Under mkii (texexec) it is no problem.

\def\nextnumber#1{\the\numexpr#1\relax}
\defineconversion[nee][\nextnumber]

\setupitemize[broad,packed]
\startitemize[nee][left={Ex-},stopper={: },width=1.5cm]
% nee: new exam exercise
% Exercise
\item[221106-Ex-4] Question 221106-Ex-4.\crlf
Solution, see \in{Sol-}[221106-Ex-4-sol].\crlf

% Exercise
\item[221106-Ex-5] Question 221106-Ex-5.\crlf
Solution, see \in{Sol-}[221106-Ex-5-sol].\crlf

% End list of Exercises:
\stopitemize

\page

% Start list of solutions:
%=0
% nsee (new solution exam exercises)
\def\nextnumber#1{\the\numexpr#1\relax}
\defineconversion[nsee][\nextnumber]

\setupitemize[broad,packed]
\startitemize[nsee][left={Sol-},stopper={: },width=1.5cm]
% Solution
\item[221106-Ex-4-sol]
Solution 221106-Ex-4.\crlf
See Exercise \in{Ex-}[221106-Ex-4]\crlf

% Solution
\item[221106-Ex-5-sol]
Solution 221106-Ex-5.\crlf
See Exercise \in{Ex-}[221106-Ex-5]\crlf

% End list of solutions
\stopitemize \crlf

At \at{page}[221106-Ex-4].\crlf
At \at{page}[exer-2].
% End: Second Attempt

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

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


Re: [NTG-context] beta

2012-01-02 Thread Wolfgang Schuster

Am 02.01.2012 um 21:19 schrieb Thomas A. Schmitz:

 On 01/02/2012 09:08 PM, Wolfgang Schuster wrote:
 In the latest beta, the file hand-ini.mkiv is gone,
 I can’t reproduce this because I have the file on my system.
 
 That may be the case, but the question is how it got there. Not by running 
 first-setup.sh - I just did a test run into an empty directory, and it's not 
 there.

I deleted the texmf-context folder and hand-ini.mkiv was downloaded when I run 
first-setup.sh, it’s also included in the cont-tmf archive from Hans.

   so \enableprotruding is no longer defined. An oversight, I guess? Other 
  than that, the parameters mechanism appears to have changed, so it baulks 
  at our simpleslides module which uses this all over the place. I'll have 
  to make a minimal example later. I keep 2011.11.29 around, for when I 
  need urgent results…
 Protrusion and font expansion are enabled with \setupalign[hanging] and 
 \setupalign[hz] (or “align=hanging” and “align=hz” for \framed).
 
 Is \enableprotruding obsolete, then?

Yes, it’s now a internal command with the name \font_expansion_enable (the _ 
means it’s a internal command).

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

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


Re: [NTG-context] beta

2012-01-02 Thread Thomas A. Schmitz

On 01/02/2012 09:29 PM, Wolfgang Schuster wrote:

I deleted the texmf-context folder and hand-ini.mkiv was downloaded when I run 
first-setup.sh, it’s also included in the cont-tmf archive from Hans.


Hmm, maybe system-dependent? I'm on linux-64; I'll try with my OS X box.

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

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

Re: [NTG-context] beta

2012-01-02 Thread Hans Hagen

On 2-1-2012 20:51, Thomas A. Schmitz wrote:


all best for the New Year! And thanks for the wonderful New Year's card
- I received two of them and could appreciate the full randomness of it
all...


Thanks for your calendar .. always impressive to read how active your 
kids are



In the latest beta, the file hand-ini.mkiv is gone, so \enableprotruding


That's a low level thing ... never meant to be used by users .. it's:

\setupalign[hanging]


is no longer defined. An oversight, I guess? Other than that, the
parameters mechanism appears to have changed, so it baulks at our
simpleslides module which uses this all over the place. I'll have to
make a minimal example later. I keep 2011.11.29 around, for when I need
urgent results...


well, not really changed, but extended ... depends on how you use it ... 
I'm busy changing all namespaces and renaming low level code .. but 
regular parameter code should work (unless you use real low level never 
meant to be used code) ... what is the message?


Hans

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

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


Re: [NTG-context] beta

2012-01-02 Thread Hans Hagen

On 2-1-2012 21:19, Thomas A. Schmitz wrote:

On 01/02/2012 09:08 PM, Wolfgang Schuster wrote:

In the latest beta, the file hand-ini.mkiv is gone,

I can’t reproduce this because I have the file on my system.


That may be the case, but the question is how it got there. Not by
running first-setup.sh - I just did a test run into an empty directory,
and it's not there.


 so \enableprotruding is no longer defined. An oversight, I guess?
Other than that, the parameters mechanism appears to have changed, so
it baulks at our simpleslides module which uses this all over the
place. I'll have to make a minimal example later. I keep 2011.11.29
around, for when I need urgent results…

Protrusion and font expansion are enabled with \setupalign[hanging]
and \setupalign[hz] (or “align=hanging” and “align=hz” for \framed).


Is \enableprotruding obsolete, then?


One can wonder if it ever was solete

Hans



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

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

Re: [NTG-context] missing --delete flags in mtx-update.lua

2012-01-02 Thread Peter Münster
On Mon, Nov 14 2011, Mojca Miklavec wrote:

 When running first-setup.sh, some of the rsync commands are missing the
 --delete flag:

 /opt/context/tex/texmf-context:      ok
 /opt/context/tex/texmf-linux-64:     no --delete flag

 On purpose, else formats are deleted and that is nasty when there are
 no changes, but I will move formats to another location in next
 iteration.

It seems, that formats are *always* regenerated when running first-setup.sh...


 This is probably also the reason why you always end up with so many
 versions of ICU.

What is ICU?


 /opt/context/tex/texmf-modules:      no --delete flag

 That must be a mistake.

Are you going to fix it?

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

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

Re: [NTG-context] beta

2012-01-02 Thread Thomas A. Schmitz

On 01/02/2012 09:45 PM, Hans Hagen wrote:

 Is \enableprotruding obsolete, then?

One can wonder if it ever was solete

Hans


OK, I see :-) Must have been a leftover from the olden days, when we had 
to compile our context documents with a magnetized needle and a steady 
hand directly on the hard disk, remember those days? So anyway: I just 
found hand-ini.mkiv even on my linux installation, I had just not looked 
hard enough. The command is gone, and after replacing \enableprotruding 
with the proper new command, the document compiles (without protrusion, 
but that's another story...)


Thanks, and all best

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

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


Re: [NTG-context] beta

2012-01-02 Thread Thomas A. Schmitz

On 01/02/2012 09:44 PM, Hans Hagen wrote:

Other than that, the
parameters mechanism appears to have changed, so it baulks at our
simpleslides module which uses this all over the place. I'll have to
make a minimal example later. I keep 2011.11.29 around, for when I need
urgent results...


well, not really changed, but extended ... depends on how you use it ...
I'm busy changing all namespaces and renaming low level code .. but
regular parameter code should work (unless you use real low level never
meant to be used code) ... what is the message?


Here it is:

! Undefined control sequence.

system   tex  error on line 214 in file archaik.run: Undefined 
control sequence ...



argument \??vars
   :simpleslides:title:
\dousestylehashparameter #1#2-\ifcsname #1
   #2\endcsname \expandafter 
\douses...

\dostartattributes ...estylehashparameter {#1}{#2}

\dousecolorhashparameter {...
\placeTitle ...pleslides:title:}\c!style \c!color

\simpleslidestitlecomponen...
\006:xml:presentation ...{#1}{date}}]\placeTitle
  \xmltext 
{#1}{content} \pa...

l.214 }

But don't spend time on it, unless it immediately rings a bell, I'll try 
and come up with a simple example tomorrow.


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

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


Re: [NTG-context] beta

2012-01-02 Thread Wolfgang Schuster

Am 02.01.2012 um 23:23 schrieb Thomas A. Schmitz:

 On 01/02/2012 09:45 PM, Hans Hagen wrote:
 
  Is \enableprotruding obsolete, then?
 One can wonder if it ever was solete
 
 Hans
 
 OK, I see :-) Must have been a leftover from the olden days, when we had to 
 compile our context documents with a magnetized needle and a steady hand 
 directly on the hard disk, remember those days? So anyway: I just found 
 hand-ini.mkiv even on my linux installation, I had just not looked hard 
 enough. The command is gone, and after replacing \enableprotruding with the 
 proper new command, the document compiles (without protrusion, but that's 
 another story…)

You have \definefontfeature[default][default][protrusion=quality] or a similar 
setting in your document?

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

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


Re: [NTG-context] beta

2012-01-02 Thread Thomas A. Schmitz

On 01/02/2012 11:46 PM, Wolfgang Schuster wrote:

You have \definefontfeature[default][default][protrusion=quality] or a similar 
setting in your document?

Wolfgang


Now I do... Thanks Wolfgang, it works now!

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

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


Re: [NTG-context] beta

2012-01-02 Thread Wolfgang Schuster

Am 02.01.2012 um 23:25 schrieb Thomas A. Schmitz:

 On 01/02/2012 09:44 PM, Hans Hagen wrote:
 Other than that, the
 parameters mechanism appears to have changed, so it baulks at our
 simpleslides module which uses this all over the place. I'll have to
 make a minimal example later. I keep 2011.11.29 around, for when I need
 urgent results...
 
 well, not really changed, but extended ... depends on how you use it ...
 I'm busy changing all namespaces and renaming low level code .. but
 regular parameter code should work (unless you use real low level never
 meant to be used code) ... what is the message?
 
 Here it is:
 
 ! Undefined control sequence.
 
 system   tex  error on line 214 in file archaik.run: Undefined 
 control sequence ...
 
 
 argument \??vars
   :simpleslides:title:
 \dousestylehashparameter #1#2-\ifcsname #1
   #2\endcsname \expandafter \douses...
 \dostartattributes ...estylehashparameter {#1}{#2}
 \dousecolorhashparameter {...
 \placeTitle ...pleslides:title:}\c!style \c!color
 \simpleslidestitlecomponen...
 \006:xml:presentation ...{#1}{date}}]\placeTitle
  \xmltext {#1}{content} \pa...
 l.214 }
 
 But don't spend time on it, unless it immediately rings a bell, I'll try and 
 come up with a simple example tomorrow.

Hans changed many of the namespaces from short to longer forms and what you did 
in your simple slides module isn’t good style anymore

simpleslides-s-default.tex:

\def\simpleslidestitlecomponent#1%
  {\simpleslidestitleparameter{\c!before#1}
  \startalignment[\simpleslidestitleparameter{#1\c!align}]
\doattributes{\??vars:simpleslides:title:}{#1\c!style}{#1\c!color}
  {\getvariable{simpleslides:title}{#1}}
   \stopalignment
\simpleslidestitleparameter{\c!after#1}}

The best is to replace your \setvariables based setup commands with a 
\getparameters based variant, for mkiv there are many helper functions in 
mult-aux.mkiv.

Wolfgang

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

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


Re: [NTG-context] beta

2012-01-02 Thread Andreas Harder

On 02.01.2012, at 21:06, Andreas Harder wrote:

 
 On 02.01.2012, at 19:41, Hans Hagen wrote:
 
 On 2-1-2012 18:46, Andreas Harder wrote:
 
 ! LuaTeX error ...-old/tex/texmf-context/tex/context/base/tabl-xtb.lua:913: 
 incorrect index value -1 for tex.getcount()
 ! TeX capacity exceeded, sorry [input stack size=1].
 
 fixed
 
 • \processxtablebuffer[…]
 
 \starttext
 \startbuffer[table]
  \startxtable
  \startxrow \startxcell test \stopxcell \stopxrow
  \stopxtable
 \stopbuffer
 \processxtablebuffer[table]
 % \getbuffer[table] % OK
 \stoptext
 
 ! File ended while scanning use of \next.

Fixed, thank you!

Probably the last for today.

\defineinterlinespace[heads][line=2ex]
\setuphead[chapter][interlinespace=heads]

\starttext
  \chapter{Some long chapter head. Some long chapter head.}
\stoptext

! Undefined control sequence.

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

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


[NTG-context] most recent manual

2012-01-02 Thread Chris Lott
I'm working my way through the ConTeXt manual/reference. I discovered
the draft of a new manual at:
http://wiki.contextgarden.net/manual_being_revised -- is this the
latest available anywhere? I'm finding a lot of things that are out of
date in the new draft (for instance, using \setupnote[footnote]
instead of \setupfootnotes) which generally means doing it wrong,
searching google and the wiki for information, and finding out that
things have changed :) Is this the best way?

c
--
Chris Lott ch...@chrislott.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] setupnote[footnote] adding extra pages

2012-01-02 Thread Chris Lott
Why does this document create three pages, with the footnote on the
second and a third that is blank?

\setuppagenumbering[state=stop]
\setupnote[footnote][numberconversion=Romannumerals]
\starttext
This is a sample letter. \footnote{foo}
\stoptext

If I remove the \setupnote line, then everything is on one page, as it
should be.

c
--
Chris Lott ch...@chrislott.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] SciTE configuration to use mkiv instead of mkii

2012-01-02 Thread Peter Park Nelson
Hello, I installed and configured SciTE today to try it out. I am
using the standalone distribution. When I try to process a context
document with F7, SciTE calls texexec and uses mkii instead of mkiv (I
always use mkiv/luatex). How do I configure SciTE to use mkiv?

Here's the beginning of the output:

texexec --pdf H1.tex
/home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
warning: Insecure world writable dir /usr/local/texlive in PATH, mode
040777
TeXExec | processing document 'H1.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file H1.top
TeXExec | using randomseed 202
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en.mkii
warning: Could not open char translation file `natural.tcx'.
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 \write18 enabled.
entering extended mode
(./H1.tex

ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

system  : cont-new.mkii loaded
(/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii

[...more output...]
-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Beta: bug in \setuphead[chapter]

2012-01-02 Thread Otared Kavian
Dear Hans, dear all,

My best wishes to all the community for this New Year!
With the latest beta, \setuphead[chapter] has a strange behavior: the order of 
two keys seems to be important…
More precisely

\setuphead
[chapter]
[header=high,
align=middle
]

results in an error (see below), while

\setuphead
[chapter]
[align=middle,
header=high
]

works as expected (I had a tough time to find the bug and this minimal 
example…).
Minimal example that does not work:

%%% begin bug-setuphead.tex
\setuphead
[chapter]
[header=high,
align=middle
]

\starttext
 \chapter{My chapter title}
 \input knuth
\stoptext
%%% end bug-setuphead.tex

The error message points to:

\page_layouts_synchronize_element_indeed ...ounds 

\else \ifx \previoustextst...
\page_layouts_synchronize_element ...t_indeed {#1}
  \fi 
inserted text ..._element \currentlayoutelement 
  \fi 
\docommand ...=high]\the \everysetuplayoutelement 
  
\next1 #1,-\docommand {#1}
   \syst_helpers_do_process_comma_item 
\syst_helpers_do_process_comma_list ...rgument #1,
  
]\relax \global \advance \…


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

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


Re: [NTG-context] Undefined controle sequence with usemodule[vim]

2012-01-02 Thread Aditya Mahajan

On Mon, 2 Jan 2012, pol stra wrote:



Hello everyone,


When I use t-vim module, I get this error message:
error msg
system   tex  error on line 15 in file vim.tex: Undefined control 
sequence ...

/error msg


for example with this code:
code
\usemodule[vim]

\definevimtyping[python][syntax=python, escape=on]
\starttext
\startpython
   # Returns \m{\sum_{i=1}^{n}i}
   def sum_upto(n)
   r = range(1, n+1)
   return sum(r)
\stoppython
\stoptext
/code


This works fine with 2011.12.23. I'll update later to see why this is 
failing with 2011.12.31.


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

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


Re: [NTG-context] Beta: bug in \setuphead[chapter]

2012-01-02 Thread Wolfgang Schuster

Am 03.01.2012 um 06:41 schrieb Otared Kavian:

 Dear Hans, dear all,
 
 My best wishes to all the community for this New Year!
 With the latest beta, \setuphead[chapter] has a strange behavior: the order 
 of two keys seems to be important…
 More precisely
 
 \setuphead
   [chapter]
   [header=high,
   align=middle
   ]

You need a command after “align=middle” because you assign “middle ” (with a 
space) to the align key.

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

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