ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* new structure code
@ 2009-04-10 13:38 Wolfgang Schuster
  2009-04-10 17:09 ` Wolfgang Schuster
                   ` (4 more replies)
  0 siblings, 5 replies; 45+ messages in thread
From: Wolfgang Schuster @ 2009-04-10 13:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 13:38 new structure code Wolfgang Schuster
@ 2009-04-10 17:09 ` Wolfgang Schuster
  2009-04-10 20:01   ` Wolfgang Schuster
  2009-04-10 20:11   ` Peter Münster
  2009-04-10 20:24 ` Khaled Hosny
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 45+ messages in thread
From: Wolfgang Schuster @ 2009-04-10 17:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 17:09 ` Wolfgang Schuster
@ 2009-04-10 20:01   ` Wolfgang Schuster
  2009-04-14 12:21     ` Hans Hagen
  2009-04-14 20:56     ` Hans Hagen
  2009-04-10 20:11   ` Peter Münster
  1 sibling, 2 replies; 45+ messages in thread
From: Wolfgang Schuster @ 2009-04-10 20:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 17:09 ` Wolfgang Schuster
  2009-04-10 20:01   ` Wolfgang Schuster
@ 2009-04-10 20:11   ` Peter Münster
  2009-04-10 20:35     ` Wolfgang Schuster
  2009-04-13 11:53     ` Hans Hagen
  1 sibling, 2 replies; 45+ messages in thread
From: Peter Münster @ 2009-04-10 20:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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@bla{sec title}
\def\mySection{\section{\bla@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 13:38 new structure code Wolfgang Schuster
  2009-04-10 17:09 ` Wolfgang Schuster
@ 2009-04-10 20:24 ` Khaled Hosny
  2009-04-10 20:28   ` Wolfgang Schuster
  2009-04-13 15:54 ` Longmin Wang
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 45+ messages in thread
From: Khaled Hosny @ 2009-04-10 20:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 404 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 20:24 ` Khaled Hosny
@ 2009-04-10 20:28   ` Wolfgang Schuster
  2009-04-10 21:27     ` Khaled Hosny
  0 siblings, 1 reply; 45+ messages in thread
From: Wolfgang Schuster @ 2009-04-10 20:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 20:11   ` Peter Münster
@ 2009-04-10 20:35     ` Wolfgang Schuster
  2009-04-13 11:53     ` Hans Hagen
  1 sibling, 0 replies; 45+ messages in thread
From: Wolfgang Schuster @ 2009-04-10 20:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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@bla{sec title}
> \def\mySection{\section{\bla@bla}}

\def\mySection{\expanded{\section{\bla@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 20:28   ` Wolfgang Schuster
@ 2009-04-10 21:27     ` Khaled Hosny
  2009-04-10 21:45       ` Wolfgang Schuster
  0 siblings, 1 reply; 45+ messages in thread
From: Khaled Hosny @ 2009-04-10 21:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 472 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 21:27     ` Khaled Hosny
@ 2009-04-10 21:45       ` Wolfgang Schuster
  2009-04-10 23:29         ` Hans Hagen
  0 siblings, 1 reply; 45+ messages in thread
From: Wolfgang Schuster @ 2009-04-10 21:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 21:45       ` Wolfgang Schuster
@ 2009-04-10 23:29         ` Hans Hagen
  2009-04-11  0:32           ` Yanrui Li
                             ` (2 more replies)
  0 siblings, 3 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-10 23:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 23:29         ` Hans Hagen
@ 2009-04-11  0:32           ` Yanrui Li
  2009-04-11  1:46             ` Yanrui Li
  2009-04-13 11:12             ` Hans Hagen
  2009-04-12 11:06           ` Wolfgang Schuster
  2009-04-20  7:58           ` Wolfgang Schuster
  2 siblings, 2 replies; 45+ messages in thread
From: Yanrui Li @ 2009-04-11  0:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/4/11 Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-11  0:32           ` Yanrui Li
@ 2009-04-11  1:46             ` Yanrui Li
  2009-04-13 11:12             ` Hans Hagen
  1 sibling, 0 replies; 45+ messages in thread
From: Yanrui Li @ 2009-04-11  1:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/4/11 Yanrui Li <liyanrui.m2@gmail.com>:
> 2009/4/11 Hans Hagen <pragma@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 23:29         ` Hans Hagen
  2009-04-11  0:32           ` Yanrui Li
@ 2009-04-12 11:06           ` Wolfgang Schuster
  2009-04-12 12:43             ` Hans Hagen
  2009-04-13 13:09             ` Wei-Wei Guo
  2009-04-20  7:58           ` Wolfgang Schuster
  2 siblings, 2 replies; 45+ messages in thread
From: Wolfgang Schuster @ 2009-04-12 11:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-12 11:06           ` Wolfgang Schuster
@ 2009-04-12 12:43             ` Hans Hagen
  2009-04-13 13:09             ` Wei-Wei Guo
  1 sibling, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-12 12:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-11  0:32           ` Yanrui Li
  2009-04-11  1:46             ` Yanrui Li
@ 2009-04-13 11:12             ` Hans Hagen
  1 sibling, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-13 11:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Yanrui Li wrote:
> 2009/4/11 Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 20:11   ` Peter Münster
  2009-04-10 20:35     ` Wolfgang Schuster
@ 2009-04-13 11:53     ` Hans Hagen
  1 sibling, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-13 11:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Münster wrote:

> 6. problem with \unprotect and \section{}:
> 
> \unprotect
> \def\bla@bla{sec title}
> \def\mySection{\section{\bla@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@bla{sec title}

\def\mySection{{\setcatcodetable\prtcatcodes\section{\bla@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-12 11:06           ` Wolfgang Schuster
  2009-04-12 12:43             ` Hans Hagen
@ 2009-04-13 13:09             ` Wei-Wei Guo
  2009-04-16  0:43               ` Wei-Wei Guo
  1 sibling, 1 reply; 45+ messages in thread
From: Wei-Wei Guo @ 2009-04-13 13:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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#2\@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 13:38 new structure code Wolfgang Schuster
  2009-04-10 17:09 ` Wolfgang Schuster
  2009-04-10 20:24 ` Khaled Hosny
@ 2009-04-13 15:54 ` Longmin Wang
  2009-04-24 17:22 ` Kevin D. Robbins
  2009-04-24 18:28 ` Kevin D. Robbins
  4 siblings, 0 replies; 45+ messages in thread
From: Longmin Wang @ 2009-04-13 15:54 UTC (permalink / raw)
  To: ntg-context

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 <longminwang@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 20:01   ` Wolfgang Schuster
@ 2009-04-14 12:21     ` Hans Hagen
  2009-04-14 20:56     ` Hans Hagen
  1 sibling, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-14 12:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 20:01   ` Wolfgang Schuster
  2009-04-14 12:21     ` Hans Hagen
@ 2009-04-14 20:56     ` Hans Hagen
  2009-04-15 16:04       ` Yanrui Li
  1 sibling, 1 reply; 45+ messages in thread
From: Hans Hagen @ 2009-04-14 20:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-14 20:56     ` Hans Hagen
@ 2009-04-15 16:04       ` Yanrui Li
  2009-04-15 16:09         ` Hans Hagen
  2009-04-16  7:59         ` Hans Hagen
  0 siblings, 2 replies; 45+ messages in thread
From: Yanrui Li @ 2009-04-15 16:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/4/15 Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-15 16:04       ` Yanrui Li
@ 2009-04-15 16:09         ` Hans Hagen
  2009-04-16  7:59         ` Hans Hagen
  1 sibling, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-15 16:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Yanrui Li wrote:
> 2009/4/15 Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-13 13:09             ` Wei-Wei Guo
@ 2009-04-16  0:43               ` Wei-Wei Guo
  2009-04-16  7:55                 ` Hans Hagen
  0 siblings, 1 reply; 45+ messages in thread
From: Wei-Wei Guo @ 2009-04-16  0:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 }.
     <inserted text>
                     \par
     <to be read again>
                        }
     \doattributes ...name #1#2\@EA \endcsname \fi {#4}
                                                       \dostopattributes
     \dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}}}}}
                                                       \egroup
     <argument> ...?tk \v!header \v!text \c!righttext }
                                                       \@@nmpos {\getvalue {\??tk...
     \dododoplacelayouttextline ...#2 #3}\hbox to #1{#4
                                                       }\stoplayoutcomponent \get...
     ...
     l.19 \stoptext

The error appears when set 'pagenumber' in \setupheadertexts or \setupfootertexts.
Here is the minimal example.

     \setupheadertexts[pagenumber][][][]
     %\setupfootertexts[pagenumber][][][]

     \starttext

     \input knuth

     \stoptext


Best wishes,
Wei-Wei



Wei-Wei Guo 写道:
> Hi Wolfgang,
> 
> Problem with footertexts.
> 
>   ! Undefined control sequence.
>   <argument> \@@plaatspaginanummer
> 
>   \firstoftwoarguments #1#2->#1
> 
>   \doattributes ...sname #1#2\@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

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-16  0:43               ` Wei-Wei Guo
@ 2009-04-16  7:55                 ` Hans Hagen
  0 siblings, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-16  7:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-15 16:04       ` Yanrui Li
  2009-04-15 16:09         ` Hans Hagen
@ 2009-04-16  7:59         ` Hans Hagen
  2009-04-16 14:44           ` Yanrui Li
  1 sibling, 1 reply; 45+ messages in thread
From: Hans Hagen @ 2009-04-16  7:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Yanrui Li wrote:
> 2009/4/15 Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-16  7:59         ` Hans Hagen
@ 2009-04-16 14:44           ` Yanrui Li
  2009-04-16 15:35             ` Bug in mkiv: \setupinteraction (Was: new structure code) Otared Kavian
  2009-04-16 20:56             ` new structure code Hans Hagen
  0 siblings, 2 replies; 45+ messages in thread
From: Yanrui Li @ 2009-04-16 14:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/4/16 Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Bug in mkiv: \setupinteraction (Was: new structure code)
  2009-04-16 14:44           ` Yanrui Li
@ 2009-04-16 15:35             ` Otared Kavian
  2009-04-16 16:23               ` Yanrui Li
  2009-04-16 20:56             ` new structure code Hans Hagen
  1 sibling, 1 reply; 45+ messages in thread
From: Otared Kavian @ 2009-04-16 15:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Yanrui,

I tested your code on Mac OS X 10.5.6 with the latest beta (ConTeXt   
ver: 2009.04.15 12:15 MKIV  fmt: 2009.4.15  int: english/english): I  
don't see the problem you mention, but the interaction is not  
activated (while with mkii everything is as expected). Here is the  
code I tested:

\setuppapersize[S6][S6]
\setupinteraction
  [state=start,focus=standard]
\starttext
\placecontent
\page
\chapter{Test}
\input knuth
\stoptext

So there is a bug with mkiv and \setupinteraction, with or without the  
option on "focus=standard".

Best regards: OK


On 16 avr. 09, at 16:44, Yanrui Li wrote:

> 2009/4/16 Hans Hagen <pragma@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
> ___________________________________________________________________________________

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


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: Bug in mkiv: \setupinteraction (Was: new structure code)
  2009-04-16 15:35             ` Bug in mkiv: \setupinteraction (Was: new structure code) Otared Kavian
@ 2009-04-16 16:23               ` Yanrui Li
  0 siblings, 0 replies; 45+ messages in thread
From: Yanrui Li @ 2009-04-16 16:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/4/16 Otared Kavian <otared@gmail.com>:
> Hi Yanrui,
>
> I tested your code on Mac OS X 10.5.6 with the latest beta (ConTeXt  ver:
> 2009.04.15 12:15 MKIV  fmt: 2009.4.15  int: english/english): I don't see
> the problem you mention, but the interaction is not activated (while with
> mkii everything is as expected). Here is the code I tested:
>
> \setuppapersize[S6][S6]
> \setupinteraction
>  [state=start,focus=standard]
> \starttext
> \placecontent
> \page
> \chapter{Test}
> \input knuth
> \stoptext
>
> So there is a bug with mkiv and \setupinteraction, with or without the
> option on "focus=standard".
>
> Best regards: OK
>
>
> On 16 avr. 09, at 16:44, Yanrui Li wrote:
>
>> 2009/4/16 Hans Hagen <pragma@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
>>

Hi,

My ConTeXt version is 2009.04.16.
When it was 2009.4.15, there was no the problem with "0 0 0".

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-16 14:44           ` Yanrui Li
  2009-04-16 15:35             ` Bug in mkiv: \setupinteraction (Was: new structure code) Otared Kavian
@ 2009-04-16 20:56             ` Hans Hagen
  1 sibling, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-16 20:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Yanrui Li wrote:
> 2009/4/16 Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 23:29         ` Hans Hagen
  2009-04-11  0:32           ` Yanrui Li
  2009-04-12 11:06           ` Wolfgang Schuster
@ 2009-04-20  7:58           ` Wolfgang Schuster
  2009-04-20  8:37             ` Hans Hagen
  2 siblings, 1 reply; 45+ messages in thread
From: Wolfgang Schuster @ 2009-04-20  7:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-20  7:58           ` Wolfgang Schuster
@ 2009-04-20  8:37             ` Hans Hagen
  0 siblings, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-20  8:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 13:38 new structure code Wolfgang Schuster
                   ` (2 preceding siblings ...)
  2009-04-13 15:54 ` Longmin Wang
@ 2009-04-24 17:22 ` Kevin D. Robbins
  2009-04-24 17:37   ` Wolfgang Schuster
  2009-04-24 18:28 ` Kevin D. Robbins
  4 siblings, 1 reply; 45+ messages in thread
From: Kevin D. Robbins @ 2009-04-24 17:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1844 bytes --]

Hi all,

I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11 and
LuaTeX beta-0.40.0-2009042222, \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.wolfgang@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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2739 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-24 17:22 ` Kevin D. Robbins
@ 2009-04-24 17:37   ` Wolfgang Schuster
  2009-04-24 17:44     ` Kevin D. Robbins
  2009-04-24 18:36     ` Hans Hagen
  0 siblings, 2 replies; 45+ messages in thread
From: Wolfgang Schuster @ 2009-04-24 17:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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-2009042222, \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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-24 17:37   ` Wolfgang Schuster
@ 2009-04-24 17:44     ` Kevin D. Robbins
  2009-04-24 18:36     ` Hans Hagen
  1 sibling, 0 replies; 45+ messages in thread
From: Kevin D. Robbins @ 2009-04-24 17:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1220 bytes --]

Thanks!

Kevin

On Fri, Apr 24, 2009 at 11:37 AM, Wolfgang Schuster <
schuster.wolfgang@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-2009042222, \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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2184 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-10 13:38 new structure code Wolfgang Schuster
                   ` (3 preceding siblings ...)
  2009-04-24 17:22 ` Kevin D. Robbins
@ 2009-04-24 18:28 ` Kevin D. Robbins
  2009-04-24 18:34   ` Hans Hagen
  4 siblings, 1 reply; 45+ messages in thread
From: Kevin D. Robbins @ 2009-04-24 18:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2455 bytes --]

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.wolfgang@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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3760 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-24 18:28 ` Kevin D. Robbins
@ 2009-04-24 18:34   ` Hans Hagen
  0 siblings, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-04-24 18:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-24 17:37   ` Wolfgang Schuster
  2009-04-24 17:44     ` Kevin D. Robbins
@ 2009-04-24 18:36     ` Hans Hagen
  2009-04-24 18:54       ` Kevin D. Robbins
  1 sibling, 1 reply; 45+ messages in thread
From: Hans Hagen @ 2009-04-24 18:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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-2009042222, \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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-24 18:36     ` Hans Hagen
@ 2009-04-24 18:54       ` Kevin D. Robbins
  2009-04-24 20:54         ` Hans Hagen
  0 siblings, 1 reply; 45+ messages in thread
From: Kevin D. Robbins @ 2009-04-24 18:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1299 bytes --]

On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen <pragma@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-2009042222, \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

[-- Attachment #1.2: Type: text/html, Size: 1985 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-24 18:54       ` Kevin D. Robbins
@ 2009-04-24 20:54         ` Hans Hagen
  2009-06-14 11:30           ` Alan BRASLAU
  0 siblings, 1 reply; 45+ messages in thread
From: Hans Hagen @ 2009-04-24 20:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Kevin D. Robbins wrote:
> On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen <pragma@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-2009042222, \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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-04-24 20:54         ` Hans Hagen
@ 2009-06-14 11:30           ` Alan BRASLAU
  2009-06-14 13:16             ` Hans Hagen
  0 siblings, 1 reply; 45+ messages in thread
From: Alan BRASLAU @ 2009-06-14 11:30 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

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


[-- Attachment #2: foo_mkiv.pdf --]
[-- Type: application/pdf, Size: 7431 bytes --]

[-- Attachment #3: foo_mkii.pdf --]
[-- Type: application/pdf, Size: 26677 bytes --]

[-- Attachment #4: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-06-14 11:30           ` Alan BRASLAU
@ 2009-06-14 13:16             ` Hans Hagen
  2009-06-14 18:16               ` Alan BRASLAU
  0 siblings, 1 reply; 45+ messages in thread
From: Hans Hagen @ 2009-06-14 13:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-06-14 13:16             ` Hans Hagen
@ 2009-06-14 18:16               ` Alan BRASLAU
  2009-06-14 18:23                 ` Hans Hagen
  0 siblings, 1 reply; 45+ messages in thread
From: Alan BRASLAU @ 2009-06-14 18:16 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-06-14 18:16               ` Alan BRASLAU
@ 2009-06-14 18:23                 ` Hans Hagen
  2009-06-14 18:54                   ` Alan BRASLAU
  0 siblings, 1 reply; 45+ messages in thread
From: Hans Hagen @ 2009-06-14 18:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-06-14 18:23                 ` Hans Hagen
@ 2009-06-14 18:54                   ` Alan BRASLAU
  2009-06-15  7:23                     ` Hans Hagen
  0 siblings, 1 reply; 45+ messages in thread
From: Alan BRASLAU @ 2009-06-14 18:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

* Re: new structure code
  2009-06-14 18:54                   ` Alan BRASLAU
@ 2009-06-15  7:23                     ` Hans Hagen
  0 siblings, 0 replies; 45+ messages in thread
From: Hans Hagen @ 2009-06-15  7:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2009-06-15  7:23 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-10 13:38 new structure code Wolfgang Schuster
2009-04-10 17:09 ` Wolfgang Schuster
2009-04-10 20:01   ` Wolfgang Schuster
2009-04-14 12:21     ` Hans Hagen
2009-04-14 20:56     ` Hans Hagen
2009-04-15 16:04       ` Yanrui Li
2009-04-15 16:09         ` Hans Hagen
2009-04-16  7:59         ` Hans Hagen
2009-04-16 14:44           ` Yanrui Li
2009-04-16 15:35             ` Bug in mkiv: \setupinteraction (Was: new structure code) Otared Kavian
2009-04-16 16:23               ` Yanrui Li
2009-04-16 20:56             ` new structure code Hans Hagen
2009-04-10 20:11   ` Peter Münster
2009-04-10 20:35     ` Wolfgang Schuster
2009-04-13 11:53     ` Hans Hagen
2009-04-10 20:24 ` Khaled Hosny
2009-04-10 20:28   ` Wolfgang Schuster
2009-04-10 21:27     ` Khaled Hosny
2009-04-10 21:45       ` Wolfgang Schuster
2009-04-10 23:29         ` Hans Hagen
2009-04-11  0:32           ` Yanrui Li
2009-04-11  1:46             ` Yanrui Li
2009-04-13 11:12             ` Hans Hagen
2009-04-12 11:06           ` Wolfgang Schuster
2009-04-12 12:43             ` Hans Hagen
2009-04-13 13:09             ` Wei-Wei Guo
2009-04-16  0:43               ` Wei-Wei Guo
2009-04-16  7:55                 ` Hans Hagen
2009-04-20  7:58           ` Wolfgang Schuster
2009-04-20  8:37             ` Hans Hagen
2009-04-13 15:54 ` Longmin Wang
2009-04-24 17:22 ` Kevin D. Robbins
2009-04-24 17:37   ` Wolfgang Schuster
2009-04-24 17:44     ` Kevin D. Robbins
2009-04-24 18:36     ` Hans Hagen
2009-04-24 18:54       ` Kevin D. Robbins
2009-04-24 20:54         ` Hans Hagen
2009-06-14 11:30           ` Alan BRASLAU
2009-06-14 13:16             ` Hans Hagen
2009-06-14 18:16               ` Alan BRASLAU
2009-06-14 18:23                 ` Hans Hagen
2009-06-14 18:54                   ` Alan BRASLAU
2009-06-15  7:23                     ` Hans Hagen
2009-04-24 18:28 ` Kevin D. Robbins
2009-04-24 18:34   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).