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

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