Re: [NTG-context] new structure code

2009-06-15 Thread Hans Hagen

Alan BRASLAU wrote:

On Sunday 14 June 2009 20:23:50 Hans Hagen wrote:

Alan BRASLAU wrote:

Blindly using the following minimal example, I almost get
the desired result, but the parts are unnumbered.

\setuphead[part][sectionsegments=1:1]


I am still fishing... and don't really get it...

\setuphead[part][placehead=yes,sectionsegments=1:1,resetnumber=no]
\setupstructureheads[sectionsegments=2:5]


take a look at the end of strc-def.mkiv to get an idea

resetting also happens with sets

-
  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-06-14 Thread Alan BRASLAU
Hello,

Different structuring behavior mkiv and mkii;
How can the following minimal example be achieved under mkiv?
(mkii gives the desired behavior)

Alan

\setuphead[part][resetnumber=no,placehead=yes]
\setuplist[part,chapter,section][partnumber=no]
\starttext
\part{part one}
\chapter{chapter one}
\section{section one}
\section{section two}
\chapter{chapter two}
\section{section one}
\section{section two}
\part{part two}
\chapter{chapter three}
\section{section one}braslau
\section{section two}
\chapter{chapter four}
\section{section one}
\section{section two}
\stoptext



foo_mkiv.pdf
Description: Adobe PDF document


foo_mkii.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 structure code

2009-06-14 Thread Hans Hagen

Alan BRASLAU wrote:

Hello,

Different structuring behavior mkiv and mkii;
How can the following minimal example be achieved under mkiv?
(mkii gives the desired behavior)

Alan

\setuphead[part][resetnumber=no,placehead=yes]
\setuplist[part,chapter,section][partnumber=no]
\starttext
\part{part one}
\chapter{chapter one}
\section{section one}
\section{section two}
\chapter{chapter two}
\section{section one}
\section{section two}
\part{part two}
\chapter{chapter three}
\section{section one}braslau
\section{section two}
\chapter{chapter four}
\section{section one}
\section{section two}
\stoptext


keys like 'partnumber' are gone in mkiv; we now have sets and segments; 
here is the variant with segments: (2 = section 2 == chapter)


\setuphead[part]   [resetnumber=no,placehead=yes]
% \setuphead[chapter][sectionsegments=2:100]
% \setuphead[section][sectionsegments=2:100]

\setupstructureheads[sectionsegments=2:100]

you can tune each number (also at list placement time or whatever)


-
  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-06-14 Thread Alan BRASLAU
On Sunday 14 June 2009 15:16:20 Hans Hagen wrote:
 keys like 'partnumber' are gone in mkiv; we now have sets and segments;
 here is the variant with segments: (2 = section 2 == chapter)

 \setuphead[part]   [resetnumber=no,placehead=yes]
 % \setuphead[chapter][sectionsegments=2:100]
 % \setuphead[section][sectionsegments=2:100]

 \setupstructureheads[sectionsegments=2:100]

 you can tune each number (also at list placement time or whatever)

Thanks. But I am not sure that I understand the syntax, sorry.
I tried looking at the code, but did not get very far.

Blindly using the following minimal example, I almost get
the desired result, but the parts are unnumbered.
I would like:

Part I. part one
Chapter 1. chapter one
1.1 section one\setuplist[part,chapter,section][partnumber=no]
1.2 section two
Chapter 2. chapter two
2.1 section one
2.2 section two
Part II. part two
Chapter 3. chapter three
3.1 section one
3.2 section two
Chapter 4. chapter four
4.1 section one
4.2 section two

\setuphead[part][resetnumber=no,placehead=yes]
%mkii \setuplist[part,chapter,section][partnumber=no]
\setupstructureheads[sectionsegments=2:100]
\starttext
\part{part one}
\chapter{chapter one}
\section{section one}
\section{section two}
\chapter{chapter two}
\section{section one}
\section{section two}
\part{part two}
\chapter{chapter three}
\section{section one}
\section{section two}
\chapter{chapter four}
\section{section one}
\section{section two}
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new structure code

2009-06-14 Thread Hans Hagen

Alan BRASLAU wrote:


Blindly using the following minimal example, I almost get
the desired result, but the parts are unnumbered.


\setuphead[part][sectionsegments=1:1]

-
  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-06-14 Thread Alan BRASLAU
On Sunday 14 June 2009 20:23:50 Hans Hagen wrote:
 Alan BRASLAU wrote:
  Blindly using the following minimal example, I almost get
  the desired result, but the parts are unnumbered.

 \setuphead[part][sectionsegments=1:1]

I am still fishing... and don't really get it...

\setuphead[part][placehead=yes,sectionsegments=1:1,resetnumber=no]
\setupstructureheads[sectionsegments=2:5]

gives

Part 1 part one
1 chapter one
1.1 section one
...
Part 2 part two
1 chapter three
1.1 section one

whereas I am seeking

Part 1 part one
Chapter 1 chapter one
...
Part 2 part two
Chapter 3 chapter 3

So, resetnumber=no is not correct.
Chapter does not print.
I tried
\setuphead[chapter][placehead=yes]
but this did not work either.

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

2009-04-24 Thread Kevin D. Robbins
Hi all,

I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11 and
LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been using
\nolist with long table captions, so I don't get the whole caption in the
list of tables. Is there a new way to accomplish this?

\starttext
\placetable
  {Foo. \nolist{Bar, Baz}}
{\starttable
   [s1|l|r|r|r|r|]
  \HL[5]
  \NC A \NC \Use4[c]{B} \AR
  \NC \NC C \NC D \NC E \NC F \NC \AR
  \HL[5]
  \NC G \NC 3 \NC 1 \NC 0   \NC 2   \NC \AR
  \NC H \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC I \NC 1 \NC 2 \NC 3   \NC 0   \NC \AR
  \NC J \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC K \NC 2 \NC 2 \NC 0   \NC 0   \NC \AR
  \HL[5]
 \stoptable}
\stoptext

Thanks,

Kevin

On Fri, Apr 10, 2009 at 7:38 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

 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

 ___

___
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-24 Thread Wolfgang Schuster


Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:


Hi all,

I just wanted to add that with the latest ConTeXt beta 2009.04.21  
16:11 and LuaTeX beta-0.40.0-200904, \nolist is no longer  
defined. I've been using \nolist with long table captions, so I  
don't get the whole caption in the list of tables. Is there a new  
way to accomplish this?



\defineselector[caption][max=2,n=2]

\starttext

\start
\setupselector[caption][n=1]
\completelistoftables
\stop

\placetable
  {\select{caption}{Foo.}{Foo. Bar, Baz}}
  {...}

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

2009-04-24 Thread Kevin D. Robbins
Thanks!

Kevin

On Fri, Apr 24, 2009 at 11:37 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:

  Hi all,

 I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11
 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been
 using \nolist with long table captions, so I don't get the whole caption in
 the list of tables. Is there a new way to accomplish this?



 \defineselector[caption][max=2,n=2]

 \starttext

 \start
 \setupselector[caption][n=1]
 \completelistoftables
 \stop

 \placetable
  {\select{caption}{Foo.}{Foo. Bar, Baz}}
  {...}

 \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

 ___

___
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-24 Thread Kevin D. Robbins
Another question regarding ConTeXt beta 2009.04.21 16:11, should the
\completelistoffigures in the example below work, or are the
\completelistofXXX macros still not fully supported in the new Mark IV
structure code?

\starttext
\completelistoffigures

\input knuth

\placefigure[fig:hacker]
  {Hacker.}
  {\externalfigure[hacker]}

\input tufte

\placefigure[fig:cow]
  {Cow.}
  {\externalfigure[cow]}

\stoptext

! LuaTeX error ...beta/tex/texmf-context/tex/context/base/strc-doc.lua:502:
attempt to index field 'sectiontitle' (a nil value)
stack traceback:
...beta/tex/texmf-context/tex/context/base/strc-doc.lua:502: in function
'sectiontitle'
...beta/tex/texmf-context/tex/context/base/strc-lst.lua:308: in function
'title'
main ctx instance:1: in main chunk.
\structurelistsectiontitle ...\currentlistindex )}

\listtextcommand #1-\begstrut #1
 \endstrut
argument ...tentry {\structurelistsectiontitle }
  }\egroup \ifdim \wd
4=\zer...
\secondoftwoarguments #1#2-#2

\dosomelistelement ... 4\relax \relax \fi }\hss }}
  \endgraf \nointerlineskip
...
\dodolistelement ...ement {#1}{#2}{#3}{#4}{#5}{#6}
  \global \utilitydonetrue
...
l.3


On Fri, Apr 10, 2009 at 7:38 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

 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

 ___

___
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-24 Thread Hans Hagen

Kevin D. Robbins wrote:

Another question regarding ConTeXt beta 2009.04.21 16:11, should the
\completelistoffigures in the example below work, or are the
\completelistofXXX macros still not fully supported in the new Mark IV
structure code?


expect an update next week (second stage clean up)

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

2009-04-24 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:


Hi all,

I just wanted to add that with the latest ConTeXt beta 2009.04.21 
16:11 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. 
I've been using \nolist with long table captions, so I don't get the 
whole caption in the list of tables. Is there a new way to accomplish 
this?



\defineselector[caption][max=2,n=2]

\starttext

\start
\setupselector[caption][n=1]
\completelistoftables
\stop

\placetable
  {\select{caption}{Foo.}{Foo. Bar, Baz}}
  {...}

\stoptext


ah .. you always surprise me .. i'd even forgot about that one

upcoming structure code will provide

\startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}] 





-
  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-24 Thread Kevin D. Robbins
On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen pra...@wxs.nl wrote:

 Wolfgang Schuster wrote:


 Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:

  Hi all,

 I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11
 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been
 using \nolist with long table captions, so I don't get the whole caption in
 the list of tables. Is there a new way to accomplish this?



 \defineselector[caption][max=2,n=2]

 \starttext

 \start
 \setupselector[caption][n=1]
 \completelistoftables
 \stop

 \placetable
  {\select{caption}{Foo.}{Foo. Bar, Baz}}
  {...}

 \stoptext


 ah .. you always surprise me .. i'd even forgot about that one

 upcoming structure code will provide

 \startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}]



You anticipated my next question! This is great news...I've always wanted to
be able to specify the text that should go in the bookmark when the title
itself includes markup.

But, will there be similar support for specifying bookmark text for things
like \completelistoffigures? Right now, the bookmark says something like
'\headtext{figures}' in my PDF viewer.

Thanks again,

Kevin
___
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-24 Thread Hans Hagen

Kevin D. Robbins wrote:

On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen pra...@wxs.nl wrote:


Wolfgang Schuster wrote:


Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:

 Hi all,

I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11
and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been
using \nolist with long table captions, so I don't get the whole caption in
the list of tables. Is there a new way to accomplish this?



\defineselector[caption][max=2,n=2]

\starttext

\start
\setupselector[caption][n=1]
\completelistoftables
\stop

\placetable
 {\select{caption}{Foo.}{Foo. Bar, Baz}}
 {...}

\stoptext


ah .. you always surprise me .. i'd even forgot about that one

upcoming structure code will provide

\startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}]




You anticipated my next question! This is great news...I've always wanted to
be able to specify the text that should go in the bookmark when the title
itself includes markup.


that has always been possible ...

\chapter{Some Text}

\bookmark{Overloads the previous one}


But, will there be similar support for specifying bookmark text for things
like \completelistoffigures? Right now, the bookmark says something like
'\headtext{figures}' in my PDF viewer.


you can turn on expansion (\setuplist[figure][expansion=yes]) but indeed 
 this will be taken care of;



-
  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-20 Thread Wolfgang Schuster

Another bug:

! Undefined control sequence.
argument \handlepagebreakB

\setuphead[chapter][placehead=no,incrementnumber=no]

\starttext
\chapter{Break?}
\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] new structure code

2009-04-20 Thread Hans Hagen

Wolfgang Schuster wrote:

Another bug:

! Undefined control sequence.
argument \handlepagebreakB

\setuphead[chapter][placehead=no,incrementnumber=no]


ok, fixed




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

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


Re: [NTG-context] new structure code

2009-04-16 Thread Hans Hagen

Wei-Wei Guo wrote:

Hi Wolfgang,

I just rsynced the latest beta, the error I posted in previous mail is 
gone, but a

new one comes.

! Argument of \doplacepagenumberatlocation has an extra }.


ok, will be fixed

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

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


Re: [NTG-context] new structure code

2009-04-16 Thread Hans Hagen

Yanrui Li wrote:

2009/4/15 Hans Hagen pra...@wxs.nl:

Wolfgang Schuster wrote:

Hi,

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

i fixed a few things



Hi, Hans,

Header and footer appear in the chapter page. Isn't this problem fixed?


also fixed in next beta

-
  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-16 Thread Yanrui Li
2009/4/16 Hans Hagen pra...@wxs.nl:
 Yanrui Li wrote:

 Header and footer appear in the chapter page. Isn't this problem fixed?

 also fixed in next beta


Thanks very much. Now I found a new bug with \setupinteraction in latest beta.

\setupinteraction
  [state=start,focus=standard]

\starttext
\chapter{Test}

\input knuth
\stoptext

When I use standard as  the value of focus, a strange string of 0 0
0 appeard under the head number, such as:

1  Test
000

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.16 15:20)
___
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-16 Thread Hans Hagen

Yanrui Li wrote:

2009/4/16 Hans Hagen pra...@wxs.nl:

Yanrui Li wrote:

Header and footer appear in the chapter page. Isn't this problem fixed?

also fixed in next beta



Thanks very much. Now I found a new bug with \setupinteraction in latest beta.


ok, fixed in next beta

ps. the backend code has been reshuffled in mkiv, no longer spec-* files 
and pdf only (although in the future we can support more backend formats 
 when luatex provides 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
___


Re: [NTG-context] new structure code

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

 Hi,

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

 i fixed a few things


Hi, Hans,

Header and footer appear in the chapter page. Isn't this problem fixed?


\setuphead[chapter][header=empty,footer=empty]
\setupheadertexts[text][chapter][][section][]
\setupfootertexts[text][chapter][][section][]

\starttext

\chapter{Test}

\section{Section Test}

\input knuth

\stoptext

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.14 22:49)
___
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-15 Thread Hans Hagen

Yanrui Li wrote:

2009/4/15 Hans Hagen pra...@wxs.nl:

Wolfgang Schuster wrote:

Hi,

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

i fixed a few things



Hi, Hans,

Header and footer appear in the chapter page. Isn't this problem fixed?


as currently i'm in the middle of backend cleanup, i'll look into when i 
have the accumulated bug report


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

2009-04-14 Thread Hans Hagen

Wolfgang Schuster wrote:


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

\starttext
text\\text
\stoptext


actually, \\ depends on the context; in the main text stream \\ being \ 
makes more sense(as \$ \# etc)


-
  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-14 Thread Hans Hagen

Wolfgang Schuster wrote:

Hi,

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


i fixed a few things

concerning prefixes and such, keep in mind that we do things a bit 
differently now, as in:


\definestructureprefixset   [mine][section-1,section-2]
\definestructureseparatorset[mine][:]

\setupuserpagenumber
  [way=bypart,
   prefix=yes,
   prefixset=mine,
   prefixseparatorset=mine]

\unprotect

\protect

\setuphead[part][placehead=yes]

\setupfootertexts[\completepagenumber/\prefixedpagenumber]

(we can predefine some meaningful sets)


-
  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-13 Thread Hans Hagen

Yanrui Li wrote:

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 $@



\let\headnumber\structureheadnumber


--

-
  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-13 Thread Hans Hagen

Peter Münster wrote:


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



this is somewhat tricky as the current catcode regime is forgotten; 
however since we store it in the data structures as metadata we can 
still use it (i fixed the code to honor this metadata also when 
recalling a title)


\unprotect

\def\...@bla{sec title}

\def\mysection{{\setcatcodetable\prtcatcodes\section{\...@bla}}}

\protect

so, by explicitly setting the catcode regime (grouped) it will be stored 
instead of the normal \ctxcatcodes regime;


btw, more fundamental, non crashing fixes will hapen when i get teh 
detailed list


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

2009-04-13 Thread Wei-Wei Guo

Hi Wolfgang,

I just notice that you said adding my error with new beta in this thread, so I
post it here again.

Problem with footertexts.

  ! 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


The minimal example:

  \setupfootertexts[][pagenumber][pagenumber][]

  \starttext
  \input knuth
  \stoptext


Best wishes,
Wei-Wei



Wolfgang Schuster 写道:


Am 11.04.2009 um 01:29 schrieb 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 ...


I can send you the files at the end of next week, I wait till more users 
can test the beta.


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-13 Thread Longmin Wang
On Fri, Apr 10, 2009 at 03:38:03PM +0200, Wolfgang Schuster wrote:
Hi,

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



\currentcounterreference is undefined in the latest beta. 

\starttext
\defineenumeration
  [theorem]
  [text=Theorem,
number=yes]

\starttheorem[test]
  Test. 
\stoptheorem

\in[test]. 
\stoptext

Best Wishes. 

Longmin Wang

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

2009-04-12 Thread Wolfgang Schuster


Am 11.04.2009 um 01:29 schrieb 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 ...


I can send you the files at the end of next week, I wait till more  
users can test the beta.


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-12 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 11.04.2009 um 01:29 schrieb 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 ...


I can send you the files at the end of next week, I wait till more users 
can test the beta.


good. and, many thanks!

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
___


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