From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48037 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: boldstyle for numbers in defineenumeration Date: Thu, 5 Mar 2009 15:04:17 -0500 (EST) Message-ID: References: <49AEE060.9060406@telefonica.net> <49AFE9EF.6070503@telefonica.net> <49B01C65.9030909@telefonica.net> <01109E7D-A3C7-4BDA-98EA-56A735492443@gmail.com> <6D5EB0BD-B1CC-4185-8134-3FDF3A9C2D5C@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236283795 24260 80.91.229.12 (5 Mar 2009 20:09:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 20:09:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 05 21:11:09 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LfJu5-0008Fr-Eg for gctc-ntg-context-518@m.gmane.org; Thu, 05 Mar 2009 21:10:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9936C1FB6D; Thu, 5 Mar 2009 21:09:15 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14941-01; Thu, 5 Mar 2009 21:08:23 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 10E441FB38; Thu, 5 Mar 2009 21:08:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ABB131FB49 for ; Thu, 5 Mar 2009 21:07:23 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11799-02-7 for ; Thu, 5 Mar 2009 21:06:41 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 3A26E1FB38 for ; Thu, 5 Mar 2009 21:05:57 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n25K4tlu031829 for ; Thu, 5 Mar 2009 21:05:38 +0100 Original-Received: FROM dhcp128036150124.central.yale.edu (dhcp128036150124.central.yale.edu [128.36.150.124]) BY skycaptain.mr.itd.umich.edu ID 49B03065.CC093.20510 ; 5 Mar 2009 15:04:53 -0500 In-Reply-To: <6D5EB0BD-B1CC-4185-8134-3FDF3A9C2D5C@gmail.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.93.160; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 189339458 - e44b22b6afb7 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48037 Archived-At: On Thu, 5 Mar 2009, Wolfgang Schuster wrote: > > Am 05.03.2009 um 20:19 schrieb Aditya Mahajan: > >> On Thu, 5 Mar 2009, Wolfgang Schuster wrote: >> >>> >>> Am 05.03.2009 um 19:48 schrieb Aditya Mahajan: >>> >>>>> The textcolor does not work. I have to put in in text field. >>>>> The example that works is: >>>> Hans: does it make sense to add text(style|color|command) and >>>> number(style|color|command) keys to enumerations? I could patch >>>> core-des.tex with these keys. >>> >>> Hi Aditya, if you do this, can you also integrate the headalign key which >>> is mentioned in core-des? >> >> What should headalign do? > > > It should control the alignment of the headtext. > > \setuplayout > [backspace=5cm, > leftmargin=4cm, > width=12cm] > > \definedescription > [description] > [location=margin, > width=\leftmarginwidth] > > \showframe > > \starttext > > \description{text} bla bla bla > > \description{longer text} bla bla bla > > %\setupdescriptions[description][headalign=flushright] > \setupdescriptions[description][text=\hfill] > > \description{text} bla bla bla > > \description{longer text} bla bla bla > > \stoptext Thanks. I first guess was \defineframed [framehead] [location=low,width=\leftmarginwidth,align=flushright,frame=off] \setupdescriptions[description][text=,location=command,headcommand=\framehead] but this does not work. You can also use, but it will be nice to have a headalign key. \setupdescriptions[description][command=\framehead] \description{text} bla bla bla \description{longer text} bla bla bla My only trouble with core-des is that it is ugly. It is an old module, and lot of features have been added in an ad-hoc manner with time. I hope that at some stage it will be rewritten in the new strc-* style. Aditya ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________