Hi all, I could have sworn there was a thread recently about the same question, but can't find it: I want section numbers without the prefixed chapter number. Isn't this supposed to work? \setuphead[section] [previousnumber=no] \starttext \chapter{One} \section{one} I was expecting the section to be numbered 1, not 1.1! \stoptext It prints "1.1" both in mkii and mkiv. What is the magic bullet? Thanks Thomas
Am 19.10.2009 um 14:49 schrieb Thomas A. Schmitz:
Hi all,
I could have sworn there was a thread recently about the same question, but can't find it: I want section numbers without the prefixed chapter number. Isn't this supposed to work?
\setuphead[section] [previousnumber=no]
\setuphead [section] [sectionsegments=3:100] % show only the numbers for level 3 (=section) till 100 (subsubsub...section) Wolfgang
On Oct 19, 2009, at 4:10 PM, Wolfgang Schuster wrote:
\setuphead [section] [sectionsegments=3:100] % show only the numbers for level 3 (=section) till 100 (subsubsub...section)
Wolfgang
Thank you Wolfgang, that does it! At the risk of sounding like a crybaby: would one of the two people who have understood how the new structure code works please add some documentation somewhere? Just imagine what would happen if Hans and Wolfgang were struck by lightning on the same day :-) Thanks, and all best Thomas
Hello, I did not understand that this be the answer to the question, but, of course, I cannot contradict he who posted the question in the beginning. However, I understood that Thomas still wanted chapters to be numbered, but that sections be numbered independently. In my case, I have been struggling to have parts numbered (I, II, III, IV) and to have chapters numbered independently (1, 2, 3, 4, ...), such as: Part I Chapter 1 Chapter 2 Part II Chapter 3 Chapter 4 Part III Chapter 5 For this, I have \setuplabeltext[chapter=Chapter ] % By default, blank when using \part \doifmodeelse{mkiv}{ \setupstructureheads[sectionsegments=2:100] \setupstructurehead[part][resetnumber=no,placehead=yes] }{ % mkii \setuplist[chapter,section,subsection,subsubsection][partnumber=no] } but this is not quite right (works fine in mkii): - the parts are not numbered - the chapters are numbered 1, 2, 1, 2, 1, ... I have not yet figured this out (another problem kept me from using mkiv on this problem, resolved only recently). Alan On Monday 19 October 2009 16:28:10 Thomas A. Schmitz wrote:
On Oct 19, 2009, at 4:10 PM, Wolfgang Schuster wrote:
\setuphead [section] [sectionsegments=3:100] % show only the numbers for level 3 (=section) till 100 (subsubsub...section)
Wolfgang
Thank you Wolfgang, that does it! At the risk of sounding like a crybaby: would one of the two people who have understood how the new structure code works please add some documentation somewhere? Just imagine what would happen if Hans and Wolfgang were struck by lightning on the same day :-)
Thanks, and all best
Thomas
Hi Alan, Try attached example.tex. Best regards, Joshua On Mon, 19 Oct 2009, Alan BRASLAU wrote:
Hello,
I did not understand that this be the answer to the question, but, of course, I cannot contradict he who posted the question in the beginning. However, I understood that Thomas still wanted chapters to be numbered, but that sections be numbered independently.
In my case, I have been struggling to have parts numbered (I, II, III, IV) and to have chapters numbered independently (1, 2, 3, 4, ...), such as:
Part I Chapter 1 Chapter 2 Part II Chapter 3 Chapter 4 Part III Chapter 5
For this, I have
\setuplabeltext[chapter=Chapter ] % By default, blank when using \part \doifmodeelse{mkiv}{ \setupstructureheads[sectionsegments=2:100] \setupstructurehead[part][resetnumber=no,placehead=yes] }{ % mkii \setuplist[chapter,section,subsection,subsubsection][partnumber=no] }
but this is not quite right (works fine in mkii): - the parts are not numbered - the chapters are numbered 1, 2, 1, 2, 1, ...
I have not yet figured this out (another problem kept me from using mkiv on this problem, resolved only recently).
Alan
On Monday 19 October 2009 16:28:10 Thomas A. Schmitz wrote:
On Oct 19, 2009, at 4:10 PM, Wolfgang Schuster wrote:
\setuphead [section] [sectionsegments=3:100] % show only the numbers for level 3 (=section) till 100 (subsubsub...section)
Wolfgang
Thank you Wolfgang, that does it! At the risk of sounding like a crybaby: would one of the two people who have understood how the new structure code works please add some documentation somewhere? Just imagine what would happen if Hans and Wolfgang were struck by lightning on the same day :-)
Thanks, and all best
Thomas
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 ___________________________________________________________________________________
-- 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
participants (5)
-
Alan BRASLAU
-
Joshua Lee
-
luigi scarso
-
Thomas A. Schmitz
-
Wolfgang Schuster