On 3/16/2010 4:52 PM, gummybears wrote:
Hi,

In MK-II the following enumeration worked, sadly in MK-IV they don't. I browsed the internet, tried the proclaim "solution" and searched the mailing list for an solution, found that several people experiencing the same problem with different numbering schemes.
Tried several of the proposed solution but no success.

I hope someone can help to fix this.

Test file

\defineenumeration[artikel][location=left,text=Artikel,headstyle=bold,stopper=.,distance=5pt,width=broad,before=\blank,after=\blank]
\setupenumerations[subartikel][text=,location=left,stopper=.,width=broad,distance=5pt,before=,after=]
\setupenumerations[subsubartikel][text=,location=left,stopper=.,width=broad,distance=5pt,before=,after=]
\starttext
%\startcolumns[n=2]
\startartikel  Number should be 1. \stopartikel
\startsubartikel Number should be 1.1. \stopsubartikel
\startsubartikel Number should be 1.2. \stopsubartikel
\startsubsubartikel Number should be 1.2.1. \stopsubsubartikel
\startsubsubartikel Number should be 1.2.2. \stopsubsubartikel

\startartikel  Number should be 2. \stopartikel
\startsubartikel Number should be 2.1. \stopsubartikel
\startsubartikel Number should be 2.2. \stopsubartikel
\startsubsubartikel Number should be 2.2.1. \stopsubsubartikel
\startsubsubartikel Number should be 2.2.2. \stopsubsubartikel

\startartikel  Number should be 3. \stopartikel
\startsubartikel Number should be 3.1. \stopsubartikel
\startsubartikel Number should be 3.2. \stopsubartikel
\startsubsubartikel Number should be 3.2.1. \stopsubsubartikel
\startsubsubartikel Number should be 3.2.2. \stopsubsubartikel
%\stopcolumns
\stoptext

I use the attached file in MKIV and it works for me.
Mehdi
%% Defining \proclaim style Remark, Lemmas, Theorem, Corollary, etc
\defineenumeration[remark]
        [text=Remark,
        location=serried,
        width=fit,
        headstyle=bold,
    headcolor=darkgreen,        
    prefix=yes,
        prefixsegments=chapter:section,
        right={.~}]
\setupnumber[remark][way=bysection]

\defineenumeration[lemma]
        [text=Lemma,
        location=serried,
        width=fit,
        counter=remark, % only use counter of remark
        prefix=yes,
        prefixsegments=chapter:section,
        style=slanted,
        headstyle=bold,
    headcolor=red,      
        right={.~}]

\defineenumeration[theorem]
        [text=Theorem,
        location=serried,
        width=fit,
        counter=remark,
        style=slanted,
        headstyle=bold,
    headcolor=darkred,  
    prefix=yes,
        prefixsegments=chapter:section,
        right={.~}]

\defineenumeration[definition]
        [text=Definition,
        location=serried,
        width=fit,
        counter=remark,
        style=normal,
        headstyle=bold,
    headcolor=darkblue, 
    prefix=yes,
        prefixsegments=chapter:section,
        right={.~}]
        
\defineenumeration[corollary]
        [text=Corollary,
        location=serried,
        width=fit,
        counter=remark,
        style=italic,
        headstyle=bold,
    headcolor=red,
    prefix=yes,
        prefixsegments=chapter:section,
        right={.~}]

\definecolor [blue:7] [r=0.40, g=0.40, b=1.00]
\definecolor [blue:8] [r=0.30, g=0.30, b=1.00]

\defineenumeration[example]
        [text=Example,
        location=serried,
        width=fit,
        counter=remark,
        style=normal,
        headstyle=bold,
    headcolor=blue:7,
    prefix=yes,
        prefixsegments=chapter:section,
        right={.~}]
        
\defineenumeration[exercise]
        [text=Exercise,
        location=serried,
        width=fit,
        counter=remark,
        style=normal,
        headstyle=bold,
    headcolor=green,
    prefix=yes,
        prefixsegments=chapter:section,
        right={.~}]

\defineenumeration[proposition]
        [text=Proposition,
        location=serried,
        width=fit,
        counter=remark,
        style=slanted,
        headstyle=bold,
    headcolor=orange,   
    prefix=yes,
        prefixsegments=chapter:section,
        right={.~}]

\defineenumeration[fact]
        [text=Fact,
        location=serried,
        width=fit,
        counter=remark,
        style=normal,
        headstyle=bold,
    headcolor=green:7,  
    prefix=yes,
        prefixsegments=chapter:section,
        right={.~}]


\definedescription
  [proof]
  [
   location=serried,
   width=broad,
        text=Proof.,
        headcolor=black,
    headstyle=cap,
    titlestyle=italic,
    distance=1ex,
    style=normal,
    titleleft=,
    titleright=,
    stopper=.,
    closesymbol=\math{\square},
  ]

\definedescription
  [solution]
  [
   location=serried,
   width=broad,
        text=Solution.,
        headcolor=black,
    headstyle=cap,
    titlestyle=italic,
    distance=1ex,
    style=normal,
    titleleft=,
    titleright=,
    stopper=.,
    closesymbol=\math{\square},
  ]
\starttext
\chapter{One}
\section{One-One}
\starttheorem
This is a theorem.
\stoptheorem
\stoptext
___________________________________________________________________________________
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 via email to