Re: [NTG-context] Numbered enumerations in MK-IV (howto) ?
@Bernard , thanks for your help, it works. ___ 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 ___
Re: [NTG-context] Numbered enumerations in MK-IV (howto) ?
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
Re: [NTG-context] Numbered enumerations in MK-IV (howto) ?
Hi, hope that helps (see attachment). best regards Bernhard Am 16.03.2010 um 14:22 schrieb gummybears: > 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 enumeration.tex Description: Binary data ___ 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 ___
[NTG-context] Numbered enumerations in MK-IV (howto) ?
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 ___ 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 ___