From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82592 Path: news.gmane.org!not-for-mail From: Xan Newsgroups: gmane.comp.tex.context Subject: [***SPAM***] \defineenumeration options? Date: Tue, 21 May 2013 17:41:51 +0200 Message-ID: <519B95BF.6000802@telefonica.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1462992924==" X-Trace: ger.gmane.org 1369150935 10846 80.91.229.3 (21 May 2013 15:42:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 May 2013 15:42:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 21 17:42:16 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ueohb-0004Z3-SC for gctc-ntg-context-518@m.gmane.org; Tue, 21 May 2013 17:42:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5EF8E101F5; Tue, 21 May 2013 17:42:15 +0200 (CEST) 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 Kh0P+LnLjBcw; Tue, 21 May 2013 17:42:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8750E101E4; Tue, 21 May 2013 17:42:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32B27101E4 for ; Tue, 21 May 2013 17:42:07 +0200 (CEST) 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 vmoHyiT0SkNG for ; Tue, 21 May 2013 17:42:06 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 179C3101E0 for ; Tue, 21 May 2013 17:41:56 +0200 (CEST) Original-Received: from telefonica.net (impaqm4.telefonica.net [213.4.138.20]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4LFfq2S016216 for ; Tue, 21 May 2013 17:41:53 +0200 Original-Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm4.telefonica.net with bizsmtp id eboX1l00D2iL0W23Qfhs2q; Tue, 21 May 2013 17:41:52 +0200 Original-Received: from [172.26.0.6] ([81.47.138.17]) by IMPmailhost4.adm.correo with BIZ IMP id efhp1l00h0NiMKD1kfhpF1; Tue, 21 May 2013 17:41:50 +0200 X-CMAE-Analysis: v=1.1 cv=K3NpUh7EwZ8y1pMHBHmSkbPxE3nffOv4K0e0aY/vw38= c=1 sm=1 a=LlOSm3cjFWgA:10 a=6Jywd8Q4MLgA:10 a=VY-2JVJxNB4A:10 a=tOC4kGaAeBlGomqVsvfEcg==:17 a=AcE6sN14deHCBzZi7MAA:9 a=PUjeQqilurYA:10 a=_W_S_7VecoQA:10 a=Ofoiis5ekcEfT7hZ:21 a=tOC4kGaAeBlGomqVsvfEcg==:117 X-original-sender: publicitat@telefonica.net User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 X-Bayes-Prob: 0.9842 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=213.4.138.20; country=ES; latitude=40.0000; longitude=-4.0000; http://maps.google.com/maps?q=40.0000,-4.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NJCDFRJw - 3138722c04bd - 20130521 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82592 Archived-At: This is a multi-part message in MIME format. --===============1462992924== Content-Type: multipart/alternative; boundary="------------050801010200000909080506" This is a multi-part message in MIME format. --------------050801010200000909080506 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Hi, I have two enumerations: \defineenumeration [exercici] [alternative=serried,text={\startcolor[middlecyan]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss] \defineenumeration [exercicivora] [alternative=serried,text={\startcolor[middlecyan]Exercici\stopcolor},stopper={.\space},left={\bgroup\startframedtext[background=screen,frame=off,width=broad]},right={\stopframedtext\egroup},width=fit,headstyle=\ss] I just want to join into one: when I do \startexercici ... \stopexercici ConTeXt do the first, and when I pass \startexercici[vora] ... \stopexercici then do the second. That is, 'vora' as optional argument. How can I achieve that? I use MKIV. Thanks in advance, Xan. PS: Please CCme --------------050801010200000909080506 Content-Type: text/html; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Hi,

I have two enumerations:

=
\defineenumeration
  [exercici]
  [alternative=3Dserried,text=3D{\startcolor[middlecyan]Exercici\stopcolo=
r},stopper=3D{.\space},left=3D{\bgroup},right=3D{\egroup},width=3Dfit,hea=
dstyle=3D\ss]

\defineenumeration
  [exercicivora]
  [alternative=3Dserried,text=3D{\startcolor[middlecyan]Exercici\stopcolo=
r},stopper=3D{.\space},left=3D{\bgroup\startframedtext[background=3Dscree=
n,frame=3Doff,width=3Dbroad]},right=3D{\stopframedtext\egroup},width=3Dfi=
t,headstyle=3D\ss]


I just want to join into one: when I do \startexercici ... =A0 =A0=A0 \stopexercici ConTeXt do the first, and when I pass \startexercici[vora] ... \stopexercici then do the second. That is, 'vora' as optional argument.

How can I achieve that?

I use MKIV.

Thanks in advance,
Xan.

PS: Please CCme
--------------050801010200000909080506-- --===============1462992924== 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 ___________________________________________________________________________________ --===============1462992924==--