* Numbered enumerations in MK-IV (howto) ?
@ 2010-03-16 13:22 gummybears
2010-03-16 13:56 ` Bernhard Rosensteiner
2010-03-16 14:31 ` Mehdi Omidali
0 siblings, 2 replies; 4+ messages in thread
From: gummybears @ 2010-03-16 13:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1620 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1760 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Numbered enumerations in MK-IV (howto) ?
2010-03-16 13:22 Numbered enumerations in MK-IV (howto) ? gummybears
@ 2010-03-16 13:56 ` Bernhard Rosensteiner
2010-03-16 14:31 ` Mehdi Omidali
1 sibling, 0 replies; 4+ messages in thread
From: Bernhard Rosensteiner @ 2010-03-16 13:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]
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
[-- Attachment #2: enumeration.tex --]
[-- Type: application/octet-stream, Size: 1388 bytes --]
\defineenumeration[artikel][way=bysection, location=left,text=Artikel,headstyle=bold,numberstopper=.,distance=5pt,width=broad,before=\blank,after=\blank]% look at: way=bysection; you don´t need to give multible stoppers: numberstopper=. is enough in \defineenumeration
\setupenumerations[subartikel][text=,location=left,width=broad,distance=5pt,before=,after=]
\setupenumerations[subsubartikel][text=,location=left,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
[-- Attachment #3: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Numbered enumerations in MK-IV (howto) ?
2010-03-16 13:22 Numbered enumerations in MK-IV (howto) ? gummybears
2010-03-16 13:56 ` Bernhard Rosensteiner
@ 2010-03-16 14:31 ` Mehdi Omidali
1 sibling, 0 replies; 4+ messages in thread
From: Mehdi Omidali @ 2010-03-16 14:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1794 bytes --]
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
[-- Attachment #2: test.tex --]
[-- Type: text/plain, Size: 2728 bytes --]
%% 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
[-- Attachment #3: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Numbered enumerations in MK-IV (howto) ?
@ 2010-03-16 15:17 gummybears
0 siblings, 0 replies; 4+ messages in thread
From: gummybears @ 2010-03-16 15:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 43 bytes --]
@Bernard , thanks for your help, it works.
[-- Attachment #1.2: Type: text/html, Size: 47 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-16 15:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-16 13:22 Numbered enumerations in MK-IV (howto) ? gummybears
2010-03-16 13:56 ` Bernhard Rosensteiner
2010-03-16 14:31 ` Mehdi Omidali
2010-03-16 15:17 gummybears
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).