ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to reset the chapter number
@ 2009-09-19 10:43 Joshua Lee
  2009-09-19 11:32 ` Derek CORDEIRO
  0 siblings, 1 reply; 6+ messages in thread
From: Joshua Lee @ 2009-09-19 10:43 UTC (permalink / raw)
  To: ntg-context

Hi Guys,
Here's a little example,
 \setupcolors[state=start]
 \starttext
 
 \completecontent
 \part{First Part}
 \chapter{First Chapter}
 \chapter{Second Chapter}
 \part{Second Part}
 \chapter{Third Chapter}
 \chapter{Chapter 4}
 \stoptext

I would like to show the chapter number 1,2,3,4.. instead of 1.1,1.2,2.1,2.2 .. how to do it? 

Thanks.

Best regards,
Joshua


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


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

* Re: How to reset the chapter number
  2009-09-19 10:43 How to reset the chapter number Joshua Lee
@ 2009-09-19 11:32 ` Derek CORDEIRO
  2009-09-21 15:40   ` Joshua Lee
  0 siblings, 1 reply; 6+ messages in thread
From: Derek CORDEIRO @ 2009-09-19 11:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Sat, Sep 19, 2009 at 4:13 PM, Joshua Lee <muzili@gmail.com> wrote:

> Hi Guys,
> Here's a little example,
>  \setupcolors[state=start]
>

\setuphead[chapter][sectionsegments=2:100]


>  \starttext
>
>  \completecontent
>  \part{First Part}
>  \chapter{First Chapter}
>  \chapter{Second Chapter}
>  \part{Second Part}
>  \chapter{Third Chapter}
>  \chapter{Chapter 4}
>  \stoptext
>
> I would like to show the chapter number 1,2,3,4.. instead of
> 1.1,1.2,2.1,2.2 .. how to do it?
>
>

Read http://www.opensubscriber.com/message/ntg-context@ntg.nl/12416208.html

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

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: How to reset the chapter number
  2009-09-19 11:32 ` Derek CORDEIRO
@ 2009-09-21 15:40   ` Joshua Lee
  2009-09-21 15:45     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Joshua Lee @ 2009-09-21 15:40 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]

Hi Derek,
I write a little example, there's still a little issue. The chapter
number start with 1 for part II, how to make it continue from part I.
Thanks.


Best regards,
Joshua

On Sat, 19 Sep 2009, Derek CORDEIRO wrote:

> On Sat, Sep 19, 2009 at 4:13 PM, Joshua Lee <muzili@gmail.com> wrote:
> 
> > Hi Guys,
> > Here's a little example,
> >  \setupcolors[state=start]
> >
> 
> \setuphead[chapter][sectionsegments=2:100]
> 
> 
> >  \starttext
> >
> >  \completecontent
> >  \part{First Part}
> >  \chapter{First Chapter}
> >  \chapter{Second Chapter}
> >  \part{Second Part}
> >  \chapter{Third Chapter}
> >  \chapter{Chapter 4}
> >  \stoptext
> >
> > I would like to show the chapter number 1,2,3,4.. instead of
> > 1.1,1.2,2.1,2.2 .. how to do it?
> >
> >
> 
> Read http://www.opensubscriber.com/message/ntg-context@ntg.nl/12416208.html

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


-- 
Joshua Lee
Alpha Networks(Chengdu) Co., LTD
Shanghai Branch

TEL: (86-21)61609650 EXT: 8020
FAX: (86-21)61609650 EXT: 8041
ADD: Suite 301, No.10, 198 Lane, Zhangheng Road,
     ZJ Hi-Tech Park, Shanghai, China 201204


[-- Attachment #2: example.pdf --]
[-- Type: application/pdf, Size: 6727 bytes --]

[-- Attachment #3: example.tex --]
[-- Type: text/x-tex, Size: 472 bytes --]

\setuphead[part][resetnumber=no,placehead=yes,conversion=R]
\setuphead[chapter,section,subsection][resetnumber=no,placehead=yes,sectionsegments=2:100]
\starttext
\part{part one}
\chapter{chapter one}
\section{section one}
\section{section two}
\chapter{chapter two}
\section{section one}
\section{section two}
\part{part two}
\chapter{chapter three}
\section{section one}
\section{section two}
\chapter{chapter four}
\section{section one}
\section{section two}
\stoptext


[-- Attachment #4: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: How to reset the chapter number
  2009-09-21 15:40   ` Joshua Lee
@ 2009-09-21 15:45     ` Wolfgang Schuster
  2009-09-21 16:05       ` Joshua Lee
  2009-09-21 17:04       ` Aditya Mahajan
  0 siblings, 2 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2009-09-21 15:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 21.09.2009 um 17:40 schrieb Joshua Lee:

> Hi Derek,
> I write a little example, there's still a little issue. The chapter
> number start with 1 for part II, how to make it continue from part I.

\definestructureresetset[default][0,0][1]

\setuphead[part][sectionresetset=default]

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


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

* Re: How to reset the chapter number
  2009-09-21 15:45     ` Wolfgang Schuster
@ 2009-09-21 16:05       ` Joshua Lee
  2009-09-21 17:04       ` Aditya Mahajan
  1 sibling, 0 replies; 6+ messages in thread
From: Joshua Lee @ 2009-09-21 16:05 UTC (permalink / raw)
  To: ntg-context

Hi Wolfgang,
It works, thanks for your quick response.

Best regards,
Joshua

On Mon, 21 Sep 2009, Wolfgang Schuster wrote:

> 
> Am 21.09.2009 um 17:40 schrieb Joshua Lee:
> 
> > Hi Derek,
> > I write a little example, there's still a little issue. The chapter
> > number start with 1 for part II, how to make it continue from part I.
> 
> \definestructureresetset[default][0,0][1]
> 
> \setuphead[part][sectionresetset=default]
> 
> 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://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

-- 
Joshua Lee
Alpha Networks(Chengdu) Co., LTD
Shanghai Branch

TEL: (86-21)61609650 EXT: 8020
FAX: (86-21)61609650 EXT: 8041
ADD: Suite 301, No.10, 198 Lane, Zhangheng Road,
     ZJ Hi-Tech Park, Shanghai, China 201204

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


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

* Re: How to reset the chapter number
  2009-09-21 15:45     ` Wolfgang Schuster
  2009-09-21 16:05       ` Joshua Lee
@ 2009-09-21 17:04       ` Aditya Mahajan
  1 sibling, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2009-09-21 17:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Wolfgang,

On Mon, 21 Sep 2009, Wolfgang Schuster wrote:

>
> Am 21.09.2009 um 17:40 schrieb Joshua Lee:
>
>> Hi Derek,
>> I write a little example, there's still a little issue. The chapter
>> number start with 1 for part II, how to make it continue from part I.
>
> \definestructureresetset[default][0,0][1]
>
> \setuphead[part][sectionresetset=default]

Can you (or someone else) explain how the new numbering mechanism works? I 
have looked at the examples posted in this and other threads, and I do not 
understand how things work.

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


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

end of thread, other threads:[~2009-09-21 17:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-19 10:43 How to reset the chapter number Joshua Lee
2009-09-19 11:32 ` Derek CORDEIRO
2009-09-21 15:40   ` Joshua Lee
2009-09-21 15:45     ` Wolfgang Schuster
2009-09-21 16:05       ` Joshua Lee
2009-09-21 17:04       ` Aditya Mahajan

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