Re: [NTG-context] mkiv structure

2009-07-09 Thread Hans Hagen

Alan BRASLAU wrote:


In my understanding, \part serves to delimit
logical sections of related chapters, not volumes.
Maybe I am wrong in this interpretation;
maybe \part is to be used to delimit volumes.
Nevertheless, it should be relatively simple
for the basic user to be able to select the desired behavior
without having to acquire an understanding of the inner workings
such as prefixsets and sectionsegments.


part is just the first level of sectioning and happens to be configured 
in such a way that it does not show a title; really nothing special


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] mkiv structure

2009-07-09 Thread Alan BRASLAU
On Thursday 09 July 2009 09:38:07 Hans Hagen wrote:
 part is just the first level of sectioning and happens to be configured
 in such a way that it does not show a title; really nothing special

It is a question of default setup.
\part is configured differently : no title, additional page number, etc.
My suggestion is to behave by default (mkiv) as under mkii (and latex).

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] mkiv structure

2009-07-09 Thread Wolfgang Schuster


Am 09.07.2009 um 09:59 schrieb Alan BRASLAU:


On Thursday 09 July 2009 09:38:07 Hans Hagen wrote:
part is just the first level of sectioning and happens to be  
configured

in such a way that it does not show a title; really nothing special


It is a question of default setup.
\part is configured differently : no title, additional page number,  
etc.
My suggestion is to behave by default (mkiv) as under mkii (and  
latex).


The part handling in ConTeXt (MkII) is different from the one in LaTeX,
ConTeXt resets the chapter number while in LaTeX the chapter number
continues over parts.

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] mkiv structure

2009-07-08 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 03.07.2009 um 16:04 schrieb Hans Hagen:


Alan BRASLAU wrote:


In my understanding, \part serves to delimit
logical sections of related chapters, not volumes.
Maybe I am wrong in this interpretation;
maybe \part is to be used to delimit volumes.
Nevertheless, it should be relatively simple
for the basic user to be able to select the desired behavior
without having to acquire an understanding of the inner workings
such as prefixsets and sectionsegments.


there will be presets but i had no time yet to make them


Can you give a example how to continue chapter numbering over parts, I 
tried

a few settings with \definestructureresetset but I wasn't very successful.


needs a fix (seems to be old code mixed into newer)

-
  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] mkiv structure

2009-07-08 Thread Hans Hagen

Hi Wolfgang


Alan BRASLAU wrote:


In my understanding, \part serves to delimit
logical sections of related chapters, not volumes.
Maybe I am wrong in this interpretation;
maybe \part is to be used to delimit volumes.
Nevertheless, it should be relatively simple
for the basic user to be able to select the desired behavior
without having to acquire an understanding of the inner workings
such as prefixsets and sectionsegments.


there will be presets but i had no time yet to make them


Can you give a example how to continue chapter numbering over parts, I 
tried

a few settings with \definestructureresetset but I wasn't very successful.


i redid that bit of code so we now have

\definestructureresetset[default][0,1,1,0][1]

% normally we use the shared default so there is no need to configure
% all levels (confusing anyway)
%
% \setuphead[part][sectionresetset=default]

\starttext
\placelist[chapter,section,subsection][criterium=all,width=3cm]
\part{first}  \chapter{alpha} \section{a} \section{b} 
\subsection{x} \subsection{y} \chapter{beta}
\part{second} \chapter{gamma} \section{a} \section{b} 
\subsection{x} \subsection{y} \chapter{delta}

\stoptext

(this example resets only chapter and section)

(only in the experimental version on the ftp)

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] mkiv structure

2009-07-06 Thread Hans Hagen

Alan BRASLAU wrote:

On Friday 03 July 2009 16:04:07 Hans Hagen wrote:

Obsolete in mkii?
Shouldn't basic use (read standard users)
treat source text transparently
between mkii and mkiv?

no, this is one of the few places where there will be a difference; we
have way more control now (also to the detail of setting up styles for
each separator in a composed number) but that comes at a price; i don't
want to complicate the mkiv code with too many compatibility hacks


I understand and I do agree, basically.
However, any (and all) differences need to be clearly documented.
I know that you are working on this. Perhaps we need to put together
a mkii-mkiv changes summary document, from the users point of view
updating http://wiki.contextgarden.net/Mark_IV (or Mark_IV_differences).


feel free to document this on the wiki

we can tag such incompatibilities as 'permanent', 'temporary' and 'to be 
discussed'


there will also be a module that collects a couple of 'obsolete' 
commands (often obsolete because we have better methods now but some 
ancient style might use them)


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] mkiv structure

2009-07-05 Thread Alan BRASLAU
On Friday 03 July 2009 16:04:07 Hans Hagen wrote:
  Obsolete in mkii?
  Shouldn't basic use (read standard users)
  treat source text transparently
  between mkii and mkiv?

 no, this is one of the few places where there will be a difference; we
 have way more control now (also to the detail of setting up styles for
 each separator in a composed number) but that comes at a price; i don't
 want to complicate the mkiv code with too many compatibility hacks

I understand and I do agree, basically.
However, any (and all) differences need to be clearly documented.
I know that you are working on this. Perhaps we need to put together
a mkii-mkiv changes summary document, from the users point of view
updating http://wiki.contextgarden.net/Mark_IV (or Mark_IV_differences).

I am aware of a few differences, but am far from having a complete view.


On Sunday 05 July 2009 11:32:35 Wolfgang Schuster wrote:
 Can you give a example how to continue chapter numbering over parts, I  
 tried a few settings with \definestructureresetset but I wasn't very  
 successful.

Yes, please provide an example. I too have tried different blind guesses
and have not succeeded 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] mkiv structure

2009-07-03 Thread Alan BRASLAU
In my experience, a \part is generally
(except in some rather technical documents)
not treated as a super-chapter, that is
chapter numbers (and titles) are not reset
and retain their status as if the book was not
divided into parts.

A very long work is commonly broken into volumes.
Here, each volume may or may not reset chapter numbers.
Page numbering may or may not reflect the volume number.
This is a sylistic choice.

In my understanding, \part serves to delimit
logical sections of related chapters, not volumes.
Maybe I am wrong in this interpretation;
maybe \part is to be used to delimit volumes.
Nevertheless, it should be relatively simple
for the basic user to be able to select the desired behavior
without having to acquire an understanding of the inner workings
such as prefixsets and sectionsegments.

Alan

On Thursday 02 July 2009 23:25:57 Hans Hagen wrote:
 keys like partnumber (sectionnumber) are obsolete ... and replace by
 prefxset etc (see strc-def.mkiv for example definitions)

Obsolete in mkii?
Shouldn't basic use (read standard users)
treat source text transparently
between mkii and mkiv?

\setuphead[part][placehead=yes,resetnumber=no]
\doifmodeelse{mkiv}{
\setuphead[part][sectionsegments=1:1]
\setupstructureheads[sectionsegments=2:5]
} {
\setuppagenumbering[partnumber=no]
\setuplist[chapter,section,subsection,subsubsection]
[partnumber=no]
}

___
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] mkiv structure

2009-07-03 Thread Hans Hagen

Alan BRASLAU wrote:


In my understanding, \part serves to delimit
logical sections of related chapters, not volumes.
Maybe I am wrong in this interpretation;
maybe \part is to be used to delimit volumes.
Nevertheless, it should be relatively simple
for the basic user to be able to select the desired behavior
without having to acquire an understanding of the inner workings
such as prefixsets and sectionsegments.


there will be presets but i had no time yet to make them


Obsolete in mkii?
Shouldn't basic use (read standard users)
treat source text transparently
between mkii and mkiv?


no, this is one of the few places where there will be a difference; we 
have way more control now (also to the detail of setting up styles for 
each separator in a composed number) but that comes at a price; i don't 
want to complicate the mkiv code with too many compatibility hacks


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] mkiv structure

2009-07-02 Thread Alan BRASLAU
On Monday 15 June 2009 10:02:35 Hans Hagen wrote:

 I was wondering ... the last time quite some nice small test samples
 were posted for testing the structure code


% Example taken from cont-enp.pdf
% However, adding \part{} is problematic...
% (maybe someone can correct this?)
%
\setuppagenumbering[alternative=doublesided,way=bytext,partnumber=no]
\setuphead[part][placehead=yes,resetnumber=no]
\doifmode{mkiv}{
\setuphead[part][sectionsegments=1:1]
\setupstructureheads[sectionsegments=2:5]
}
\setuplabeltext[chapter=Chapter ] \setuplist[chapter][label=yes]
\setuplist[part,chapter,section,subsection,subsubsection]
  [partnumber=no,interaction=all,alternative=c]
  % number – title – dots – pagenumber

\starttext

\startfrontmatter
\completecontent
\chapter{Introduction}  % in content, no number
\stopfrontmatter
\startbodymatter
\part{Beginning}
\chapter{First} % number 1, in content
\section{Alfa}  % number 1.1, in content
\section{Beta}  % number 1.2, in content
\chapter{Second}% number 2, in content
\subject{Blabla}% no number, not in content
\part{End}
\chapter{Third} % number 3, in content
\stopbodymatter
\startappendices
\chapter{Index} % letter A, in content
\chapter{Abbreviations} % letter B, in content
\stopappendices
\startbackmatter
\chapter{Acknowlegdement}   % no number, in content
\title{Colofon} % no number, not in content
\stopbackmatter

\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] mkiv structure

2009-07-02 Thread Hans Hagen

Alan BRASLAU wrote:

On Monday 15 June 2009 10:02:35 Hans Hagen wrote:

I was wondering ... the last time quite some nice small test samples
were posted for testing the structure code



% Example taken from cont-enp.pdf
% However, adding \part{} is problematic...
% (maybe someone can correct this?)
%
\setuppagenumbering[alternative=doublesided,way=bytext,partnumber=no]
\setuphead[part][placehead=yes,resetnumber=no]
\doifmode{mkiv}{
\setuphead[part][sectionsegments=1:1]
\setupstructureheads[sectionsegments=2:5]
}
\setuplabeltext[chapter=Chapter ] \setuplist[chapter][label=yes]
\setuplist[part,chapter,section,subsection,subsubsection]
  [partnumber=no,interaction=all,alternative=c]
  % number – title – dots – pagenumber


keys like partnumber (sectionnumber) are obsolete ... and replace by 
prefxset etc (see strc-def.mkiv for example definitions)



-
  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] mkiv structure

2009-06-15 Thread Hans Hagen

Hi,

I was wondering ... the last time quite some nice small test samples 
were posted for testing the structure code


maybe we can set up a repository with such test files (but someone needs 
to coordinate it) where they can end up after posting and fixing 
possible errors in the examples; we do need some ordering


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
___