ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "\"H. Özoguz\"" <h.oezoguz@mmnetz.de>
To: ntg-context@ntg.nl
Subject: Different counters for titles
Date: Tue, 03 Sep 2013 08:14:41 +0200	[thread overview]
Message-ID: <52257E51.5040203@mmnetz.de> (raw)

To solve my last asked question, I chose a somewhat easiert way and 
defined an own chapter-title, which is unnumbered.

Here is my Minexample:

\definehead[mychapter][chapter]
\setuphead[mychapter][number=no]
\setupcombinedlist[content]
[list={mychapter, chapter, section}]

\starttext
\completecontent
\mychapter{Vorwort}
\chapter{First Chapter}
\section{Some section in the first chapter}
\chapter{Second chapter}
\section{Some section in the second chapter}
\stoptext

The problem is now: Obviously the counter of mychapter and chapter is 
the same. Because "first chapter" begins with number 2, but should with 
1 – that was the intention of this new chapter style, which is nothing 
but a unnumbered copy of the default chapter. Was that idea wrong? How 
to give chapter and mychapter their own counters, to achieve this result 
– or any other way to let "first chapter" begin with 1 (but not subtract 
1 from the numbers, because that ends up in the first section "1.0". The 
first section of the first chapter should be numbered with "1.1", as usual).

Huseyin


___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2013-09-03  6:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03  6:14 "H. Özoguz" [this message]
2013-09-03  7:36 ` Hans Hagen
2013-09-03  8:24 "H. Özoguz"

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52257E51.5040203@mmnetz.de \
    --to=h.oezoguz@mmnetz.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).