From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57159 Path: news.gmane.org!not-for-mail From: Mehdi Omidali Newsgroups: gmane.comp.tex.context Subject: Re: Numbered enumerations in MK-IV (howto) ? Date: Tue, 16 Mar 2010 18:01:03 +0330 Message-ID: <4B9F9627.7070506@gmail.com> References: <2c7b6d221003160622p5113bd77x83d79ef0078b3e19@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050608000000090309060809" X-Trace: dough.gmane.org 1268749905 25029 80.91.229.12 (16 Mar 2010 14:31:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 16 Mar 2010 14:31:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 16 15:31:41 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NrXo5-0006OY-Jl for gctc-ntg-context-518@m.gmane.org; Tue, 16 Mar 2010 15:31:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B3DBC9CE6; Tue, 16 Mar 2010 15:31:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EGYPi4i5SKJd; Tue, 16 Mar 2010 15:31:30 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ED3A3C9CAA; Tue, 16 Mar 2010 15:31:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 51EA4C9CAA for ; Tue, 16 Mar 2010 15:31:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qRBrub-AoQqB for ; Tue, 16 Mar 2010 15:31:01 +0100 (CET) Original-Received: from mail-bw0-f221.google.com (mail-bw0-f221.google.com [209.85.218.221]) by balder.ntg.nl (Postfix) with ESMTP id DEDDFC9C80 for ; Tue, 16 Mar 2010 15:31:01 +0100 (CET) Original-Received: by bwz21 with SMTP id 21so430742bwz.15 for ; Tue, 16 Mar 2010 07:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=0J27BGVvtGx1Z/oZtu+fQLGcDxBAjodNVNuwo5CeFV4=; b=jAOq+A1P/aZvfi+ux62oWXfcrwHPbfyigloiRcr7auqjuSsKERpr+xSLb7zZ62e4ai VcxvKB42x4z0aj3BoMRMxQQTP9KBVuyqkvsa0zv5M3mTTIntkKMc9U0UEINa5X9Mfvex fzJbpS7q8FxR0uaY7OByyR2sXYeGBXNUOebIo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=QKxcmf1/44XJljd2BSK9BN6tVNorOSwGEBh5yhBEYm5iwiD88MmpRG3Je72hxJj7pW yM39QJmmTkDIK44UkpwlerCmp18XeqKKbf1Vre+6XF39ZloqOtcSMtlRFU8pWe+3orZn URoVVLJwshtN1DxrJcBOfMbdjVMzMIki1QCzk= Original-Received: by 10.204.140.197 with SMTP id j5mr30603bku.68.1268749861517; Tue, 16 Mar 2010 07:31:01 -0700 (PDT) Original-Received: from [192.168.154.146] ([85.185.240.5]) by mx.google.com with ESMTPS id 24sm26243997bkr.18.2010.03.16.07.30.57 (version=SSLv3 cipher=RC4-MD5); Tue, 16 Mar 2010 07:31:00 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: <2c7b6d221003160622p5113bd77x83d79ef0078b3e19@mail.gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:57159 Archived-At: This is a multi-part message in MIME format. --------------050608000000090309060809 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------050608000000090309060809 Content-Type: text/plain; name="test.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test.tex" %% 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 --------------050608000000090309060809 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --------------050608000000090309060809--