ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Chapter numbering that does not follow a regular pattern
@ 2020-07-13  0:23 jbf
  2020-07-13  7:13 ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: jbf @ 2020-07-13  0:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi there,

I have a situation where numbered chapters are occasionally interspersed 
with unnumbered chapters, so, for example, it might be:

1 First chapter title with number

   second chapter title unnumbered

2 Second chapter title with  number

3 Third chapter title with number

-----------

Now, I can achieve what I want by putting something like the following 
for a 'normal' chapter (by which I mean one that needs to be numbered, 
but would otherwise be out of sequence):

\chapter[title={\sc My chapter title that needs a different 
number},ownnumber=2]

And in the case of the interspersed 'other' chapter (that is, the one 
that follows Chapter 1 numbered, still needs a title, but no number, and 
therefore breaks the normal number increment), I define 'mychapter' in 
the initial setup, then:

\mychapter[title={\sc MY UNNUMBERED CHAPTER TITLE},number=no]

-----------

But I was wondering if there was a way that I could achieve the result I 
want in the initial setup for the two different kinds of chapters. If it 
were a regular pattern, e.g. 1 chapter, unnumbered chapter, 2 chapter, 
unnumbered chapter, that might be easier to do, but in the situation I 
am dealing with, there is not this regularity.

You may well tell me that since I can achieve what I want as described 
above, that should suffice. I will be happy to have that confirmed. On 
the other hand, someone may have a more elegant suggestion in the 
initial setup that enables me to call in the specific kind of chapter I 
need at the time in a simpler way.

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] 4+ messages in thread

* Re: Chapter numbering that does not follow a regular pattern
  2020-07-13  0:23 Chapter numbering that does not follow a regular pattern jbf
@ 2020-07-13  7:13 ` Henning Hraban Ramm
  2020-07-13  9:27   ` Julian Fox
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2020-07-13  7:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 13.07.2020 um 02:23 schrieb jbf <roma83537@gmail.com>:
> 
> Hi there,
> 
> I have a situation where numbered chapters are occasionally interspersed with unnumbered chapters, so, for example, it might be:
> 
> 1 First chapter title with number
> 
>   second chapter title unnumbered
> 
> 2 Second chapter title with  number
> 
> 3 Third chapter title with number

Use \title (or \starttitle[title={}]) for unnumbered and \chapter (\startchaper) for numbered.

If you need the unnumbered chapters in your ToC, you must add them like \setupcombinedlist[content][list={chapter,title}]

You can setup most options for both using \setuphead[chapter,title][...]

HTH

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] 4+ messages in thread

* Re: Chapter numbering that does not follow a regular pattern
  2020-07-13  7:13 ` Henning Hraban Ramm
@ 2020-07-13  9:27   ` Julian Fox
  2020-07-13 10:21     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Julian Fox @ 2020-07-13  9:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

That's obviously much simpler! I was under the impression that 'title' was
only for use in front matter, or that if I used it elsewhere, then it
didn't show the number but that the next use of 'chapter' would increment
as if it had a number. I was wrong!

On Mon, 13 Jul 2020, 5:13 PM Henning Hraban Ramm <texml@fiee.net> wrote:

>
>
> > Am 13.07.2020 um 02:23 schrieb jbf <roma83537@gmail.com>:
> >
> > Hi there,
> >
> > I have a situation where numbered chapters are occasionally interspersed
> with unnumbered chapters, so, for example, it might be:
> >
> > 1 First chapter title with number
> >
> >   second chapter title unnumbered
> >
> > 2 Second chapter title with  number
> >
> > 3 Third chapter title with number
>
> Use \title (or \starttitle[title={}]) for unnumbered and \chapter
> (\startchaper) for numbered.
>
> If you need the unnumbered chapters in your ToC, you must add them like
> \setupcombinedlist[content][list={chapter,title}]
>
> You can setup most options for both using \setuphead[chapter,title][...]
>
> HTH
>
> 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
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Chapter numbering that does not follow a regular pattern
  2020-07-13  9:27   ` Julian Fox
@ 2020-07-13 10:21     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2020-07-13 10:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Julian Fox

On 7/13/2020 11:27 AM, Julian Fox wrote:
> That's obviously much simpler! I was under the impression that 'title' 
> was only for use in front matter, or that if I used it elsewhere, then 
> it didn't show the number but that the next use of 'chapter' would 
> increment as if it had a number. I was wrong!

titles normally don't end up in the toc, chapters do ... in frontmatter 
chapters are unnumbered too so it's kind of a combination: 
numbers/unnumbered and tocontents/nottocontents depending on the 
'matter' at hand

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-07-13 10:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13  0:23 Chapter numbering that does not follow a regular pattern jbf
2020-07-13  7:13 ` Henning Hraban Ramm
2020-07-13  9:27   ` Julian Fox
2020-07-13 10:21     ` 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).