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: Re: Different counters for titles
Date: Tue, 03 Sep 2013 10:24:09 +0200	[thread overview]
Message-ID: <52259CA9.1000101@mmnetz.de> (raw)

> \startchapter[ownnumber=1,title=chap 1]

This cheat gives the chapter his own number, but the counter still 
counts. So for my minexample it does not work:

\definehead[mychapter][chapter]
\setuphead[mychapter][number=no]

\setupcombinedlist
  [content]
  [list={mychapter, chapter, section}]

\starttext
\completecontent
\startmychapter[ownnumber=0,title=Vorwort]
\chapter{First Chapter}
\section{Some section in the first chapter}
\chapter{Second chapter}
\section{Some section in the second chapter}
\stoptext

Still "first chapter" has the number 2 etc. Of course I could change all 
chapter numbers by my own with this cheat "ownnumber", but that would be 
inappropriate, I have many of them in my currect project, and maybe 
things change and then I have to change and correct all of them again 
and again ...

Maybe this way would work too: To define a new title (same styled like 
chapter, but not a clone), which has no counter and to add this title 
"Vorwort" into the toc. Then the first "real" chapter would 
automatically begin with "1"?! Would that work, and if yes, how to do that?

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  8:24 UTC|newest]

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

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=52259CA9.1000101@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).