From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75893 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Seems `\definedescription' do not work Date: Sun, 29 Apr 2012 09:14:57 +0200 Message-ID: <6EF44E9A-EDD7-41A5-9C50-6892EF23B4BF@googlemail.com> References: <20120429064845.GF1360@smoon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1335683710 9832 80.91.229.3 (29 Apr 2012 07:15:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2012 07:15:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 29 09:15:09 2012 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 1SOOLc-0006zw-RZ for gctc-ntg-context-518@m.gmane.org; Sun, 29 Apr 2012 09:15:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0EDB101EE; Sun, 29 Apr 2012 09:15: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 (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id g79lgUwkRSyJ; Sun, 29 Apr 2012 09:15:05 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C868101E8; Sun, 29 Apr 2012 09:15:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91BB9101E8 for ; Sun, 29 Apr 2012 09:15:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ugGdJeov8UI1 for ; Sun, 29 Apr 2012 09:15:03 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id AF93F101E6 for ; Sun, 29 Apr 2012 09:15:03 +0200 (CEST) Original-Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q3T7F2rY011691 for ; Sun, 29 Apr 2012 09:15:03 +0200 Original-Received: by wgbdt14 with SMTP id dt14so1628434wgb.2 for ; Sun, 29 Apr 2012 00:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=mOYIFF/ZrKGQ475BjiLoOJ02QMvUYbp3VUUyzl7H6K0=; b=vY/o+TYp+zOm9ENoKuGHgNq5OKKAbK1xxWLvRYNt1rEetInR9kKNhwMmiqjVNcSx6+ nRzMx1AKi3Rbe/s4tIOgRrLz+46bjuQSC+xAgC+srk77UFDqfTKPsjudkKJZu8bvIsFB mh9Ijj9ZMCdi2PqgoO+Eld6jtbmjAxeqp5RWiOAa+GelKd7Lvwjo2pwu0KwaTncBvll1 ZoKRz99mc22QoDvFaezYdSZqvEbTG+DKDxzWxBVhwLw7s0HxBFYQ289WWtwlWLmJ/dhU jsCGjoJlRsIFo1NtKkWIVzlrQ8ogTrV6E4mxph71yL+ovoFGDM0e4qvilqKC8xN4P0cr nfHw== Original-Received: by 10.180.81.166 with SMTP id b6mr38731wiy.0.1335683702414; Sun, 29 Apr 2012 00:15:02 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFCBF3.dip.t-dialin.net. [87.175.203.243]) by mx.google.com with ESMTPS id l5sm18497187wia.11.2012.04.29.00.14.59 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Apr 2012 00:15:01 -0700 (PDT) In-Reply-To: <20120429064845.GF1360@smoon> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QH3Hf2ba - f1e162fd9b51 - 20120429 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:75893 Archived-At: Am 29.04.2012 um 08:48 schrieb Vladimir Lomov: > Hello, > = > I borrow this example from wiki: > > %\setupbodyfont[computer-modern-unicode,12pt] > = > \definedescription > [Desc] > [location=3Dtop,hang=3D20, > headstyle=3D{\bf\color[blue]}, > command=3D\hskip-1cm,margin=3D1cm] > = > \starttext > \startDesc{Tufte} > \input tufte > \stopDesc > \stoptext > The problem is \color which expects a argument for the text to be colored (= e.g. \color[blue]{=85}) which is never the case when you put it in a style = key but you can use the color key to set the value. \definedescription [description] [alternative=3Dtop, headstyle=3Dbold, headcolor=3Dblue, headcommand=3D{\offset[x=3D-1cm]}, margin=3D1cm] \starttext \input tufte \startdescription{Tufte} \input tufte \stopdescription \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________