ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Continued chapter numbers
@ 2021-01-06 20:09 jbf
  2021-01-06 21:09 ` Marco Patzer
  0 siblings, 1 reply; 10+ messages in thread
From: jbf @ 2021-01-06 20:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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

* Re: Continued chapter numbers
  2021-01-06 20:09 Continued chapter numbers jbf
@ 2021-01-06 21:09 ` Marco Patzer
  2021-01-06 23:02   ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Patzer @ 2021-01-06 21:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 7 Jan 2021 07:09:46 +1100
jbf <roma83537@gmail.com> 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
___________________________________________________________________________________

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

* Re: Continued chapter numbers
  2021-01-06 21:09 ` Marco Patzer
@ 2021-01-06 23:02   ` Wolfgang Schuster
  2021-01-07 10:29     ` Marco Patzer
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2021-01-06 23:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Marco Patzer schrieb am 06.01.2021 um 22:09:
> On Thu, 7 Jan 2021 07:09:46 +1100
> jbf <roma83537@gmail.com> 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
___________________________________________________________________________________

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

* Re: Continued chapter numbers
  2021-01-06 23:02   ` Wolfgang Schuster
@ 2021-01-07 10:29     ` Marco Patzer
  2021-01-07 11:20       ` Henning Hraban Ramm
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Patzer @ 2021-01-07 10:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 7 Jan 2021 00:02:20 +0100
Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> 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
___________________________________________________________________________________

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

* Re: Continued chapter numbers
  2021-01-07 10:29     ` Marco Patzer
@ 2021-01-07 11:20       ` Henning Hraban Ramm
  2021-01-07 11:39         ` Henning Hraban Ramm
  0 siblings, 1 reply; 10+ messages in thread
From: Henning Hraban Ramm @ 2021-01-07 11:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 07.01.2021 um 11:29 schrieb Marco Patzer <lists@homerow.info>:
> 
> 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
___________________________________________________________________________________

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

* Re: Continued chapter numbers
  2021-01-07 11:20       ` Henning Hraban Ramm
@ 2021-01-07 11:39         ` Henning Hraban Ramm
  0 siblings, 0 replies; 10+ messages in thread
From: Henning Hraban Ramm @ 2021-01-07 11:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 07.01.2021 um 12:20 schrieb Henning Hraban Ramm <texml@fiee.net>:
> 
> 
>> Am 07.01.2021 um 11:29 schrieb Marco Patzer <lists@homerow.info>:
>> 
>> 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
___________________________________________________________________________________

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

* Re: Continued chapter numbers
  2021-01-06 10:10 ` denis.maier
@ 2021-01-06 20:58   ` jbf
  0 siblings, 0 replies; 10+ messages in thread
From: jbf @ 2021-01-06 20:58 UTC (permalink / raw)
  To: denis.maier; +Cc: mailing list for ConTeXt users

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.maier@ub.unibe.ch wrote:
> Not tested, but what about this?
>
> \setupcounter[chapter][way=bytext]
>
> Best,
> Denis
>
>> -----Ursprüngliche Nachricht-----
>> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von jbf
>> Gesendet: Mittwoch, 6. Januar 2021 10:24
>> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
>> 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
___________________________________________________________________________________

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

* Re: Continued chapter numbers
  2021-01-06  9:24 jbf
  2021-01-06 10:02 ` Marco Patzer
@ 2021-01-06 10:10 ` denis.maier
  2021-01-06 20:58   ` jbf
  1 sibling, 1 reply; 10+ messages in thread
From: denis.maier @ 2021-01-06 10:10 UTC (permalink / raw)
  To: ntg-context

Not tested, but what about this?

\setupcounter[chapter][way=bytext]

Best,
Denis

> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von jbf
> Gesendet: Mittwoch, 6. Januar 2021 10:24
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> 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
___________________________________________________________________________________

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

* Re: Continued chapter numbers
  2021-01-06  9:24 jbf
@ 2021-01-06 10:02 ` Marco Patzer
  2021-01-06 10:10 ` denis.maier
  1 sibling, 0 replies; 10+ messages in thread
From: Marco Patzer @ 2021-01-06 10:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 6 Jan 2021 20:24:07 +1100
jbf <roma83537@gmail.com> 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
___________________________________________________________________________________

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

* Continued chapter numbers
@ 2021-01-06  9:24 jbf
  2021-01-06 10:02 ` Marco Patzer
  2021-01-06 10:10 ` denis.maier
  0 siblings, 2 replies; 10+ messages in thread
From: jbf @ 2021-01-06  9:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

end of thread, other threads:[~2021-01-07 11:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 20:09 Continued chapter numbers jbf
2021-01-06 21:09 ` Marco Patzer
2021-01-06 23:02   ` Wolfgang Schuster
2021-01-07 10:29     ` Marco Patzer
2021-01-07 11:20       ` Henning Hraban Ramm
2021-01-07 11:39         ` Henning Hraban Ramm
  -- strict thread matches above, loose matches on Subject: below --
2021-01-06  9:24 jbf
2021-01-06 10:02 ` Marco Patzer
2021-01-06 10:10 ` denis.maier
2021-01-06 20:58   ` jbf

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).