Re: [NTG-context] Continued chapter numbers

2021-01-07 Thread Henning Hraban Ramm

> Am 07.01.2021 um 12:20 schrieb Henning Hraban Ramm :
> 
> 
>> Am 07.01.2021 um 11:29 schrieb Marco Patzer :
>> 
>> Thanks for the info. I updated the wiki.
> 
> https://wiki.contextgarden.net/Titles
> 
> I did some more edits, but the page is still a mess.

I created the command page; not sure if I got the description right:

https://wiki.contextgarden.net/Command/defineresetset

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-07 Thread Henning Hraban Ramm

> Am 07.01.2021 um 11:29 schrieb Marco Patzer :
> 
> Thanks for the info. I updated the wiki.

https://wiki.contextgarden.net/Titles

I did some more edits, but the page is still a mess.

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-07 Thread Marco Patzer
On Thu, 7 Jan 2021 00:02:20 +0100
Wolfgang Schuster  wrote:

> > \definestructureresetset is the same as \defineresetset. I assume
> > that \definestructureresetset is the preferred way. But both will
> > work.  
> 
> No, \defineresetset is the main command and \definestructureresetset
> is a alias for backwards compatibility.

Thanks for the info. I updated the wiki.

Marco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Wolfgang Schuster

Marco Patzer schrieb am 06.01.2021 um 22:09:

On Thu, 7 Jan 2021 07:09:46 +1100
jbf  wrote:


I had searched everywhere on the wiki and in the manuals for
something like this, based on 'reset' but could not find it.

AFAIK it's not mentioned in the manuals. But a variant is on the
wiki “Independent Section Numbering”:

   https://wiki.contextgarden.net/Titles

   \definestructureresetset
 [default][1,1,0][1] %% reset part, chapter, but not section

   \setuphead
 [sectionresetset=default]

\definestructureresetset is the same as \defineresetset. I assume
that \definestructureresetset is the preferred way. But both will
work.


No, \defineresetset is the main command and \definestructureresetset is 
a alias for backwards compatibility.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
On Thu, 7 Jan 2021 07:09:46 +1100
jbf  wrote:

> I had searched everywhere on the wiki and in the manuals for
> something like this, based on 'reset' but could not find it.

AFAIK it's not mentioned in the manuals. But a variant is on the
wiki “Independent Section Numbering”:

  https://wiki.contextgarden.net/Titles

  \definestructureresetset
[default][1,1,0][1] %% reset part, chapter, but not section

  \setuphead
[sectionresetset=default]

\definestructureresetset is the same as \defineresetset. I assume
that \definestructureresetset is the preferred way. But both will
work.

Marco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread jbf
Thanks Denis, as you said not tested, but now it has been tested... did 
not work, though I might try some variations of that just to see if it 
could work somehow.


In the meantime Marco's solution has worked so the immediate problem is 
resolved.


Julian

On 6/1/21 9:10 pm, denis.ma...@ub.unibe.ch wrote:

Not tested, but what about this?

\setupcounter[chapter][way=bytext]

Best,
Denis


-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von jbf
Gesendet: Mittwoch, 6. Januar 2021 10:24
An: mailing list for ConTeXt users 
Betreff: [NTG-context] Continued chapter numbers

I need chapter numbers to continue sequentially across several parts. At the
moment, when Part 2 begins, it begins with Chapter 1 once more, while it
should be (in continued sequence) Chapter 4.

I know that I can achieve the desired result by including ownnumber=4, so:

\startchapter[title={My chapter title},ownnumber=4] will do that for me.
But this means I have to do it for every chapter that follows (there are
11 more!).

Perhaps there is a single way to get the result I want in the preamble with
\setuphead[chapter] or similar. I have searched the wiki but it is not easy to
find an answer to this. Can anyone point me to where, in the wiki, I can find a
simple way to ensure sequential chapter numbers?

Julian

__
_
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://context.aanhet.net archive  :
https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread jbf

\defineresetset
   [jbfreset] [] [0]

\setuphead
   [chapter]
   [sectionresetset=jbfreset]

That does indeed work for me. I had searched everywhere on the wiki and 
in the manuals for something like this, based on 'reset' but could not 
find it. While it is clearly something you knew (and I now know!), do 
you know where this is mentioned in any ConTeXt documentation?


Grateful for the solution!

Julian

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread denis.maier
Not tested, but what about this?

\setupcounter[chapter][way=bytext]

Best,
Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von jbf
> Gesendet: Mittwoch, 6. Januar 2021 10:24
> An: mailing list for ConTeXt users 
> Betreff: [NTG-context] Continued chapter numbers
> 
> I need chapter numbers to continue sequentially across several parts. At the
> moment, when Part 2 begins, it begins with Chapter 1 once more, while it
> should be (in continued sequence) Chapter 4.
> 
> I know that I can achieve the desired result by including ownnumber=4, so:
> 
> \startchapter[title={My chapter title},ownnumber=4] will do that for me.
> But this means I have to do it for every chapter that follows (there are
> 11 more!).
> 
> Perhaps there is a single way to get the result I want in the preamble with
> \setuphead[chapter] or similar. I have searched the wiki but it is not easy to
> find an answer to this. Can anyone point me to where, in the wiki, I can find 
> a
> simple way to ensure sequential chapter numbers?
> 
> Julian
> 
> __
> _
> 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://context.aanhet.net archive  :
> https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
On Wed, 6 Jan 2021 20:24:07 +1100
jbf  wrote:

> I need chapter numbers to continue sequentially across several parts.
> At the moment, when Part 2 begins, it begins with Chapter 1 once
> more, while it should be (in continued sequence) Chapter 4.

\defineresetset
  [jbfreset] [] [0]

\setuphead
  [chapter]
  [sectionresetset=jbfreset]

Marco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___