From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73946 Path: news.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.comp.tex.context Subject: Re: Questions on \definition Date: Wed, 18 Jan 2012 11:44:32 +0900 Message-ID: <20120118024431.GI972@smoon> References: <1326772359.18560.21.camel@kip-laptop> <20120117043804.GF972@smoon> <1326851241.3469.5.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326854700 23604 80.91.229.12 (18 Jan 2012 02:45:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jan 2012 02:45:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 18 03:44:53 2012 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 1RnLW9-0005f8-1A for gctc-ntg-context-518@m.gmane.org; Wed, 18 Jan 2012 03:44:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 202D9CB1F8; Wed, 18 Jan 2012 03:44:52 +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 o154xl7EXKEZ; Wed, 18 Jan 2012 03:44:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 516F3CB1F4; Wed, 18 Jan 2012 03:44:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B1E19CB1F4 for ; Wed, 18 Jan 2012 03:44:48 +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 rHJ7BP-TmJJt for ; Wed, 18 Jan 2012 03:44:37 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 2A8C5CB1F0 for ; Wed, 18 Jan 2012 03:44:36 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0I2iaKt015727 for ; Wed, 18 Jan 2012 03:44:36 +0100 Original-Received: by bkbzx1 with SMTP id zx1so1616511bkb.14 for ; Tue, 17 Jan 2012 18:44:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=f4xOAY6li3J8FuruOahTTQAiOHOCzBK+rB+OjdNlOA4=; b=wuGYsUw3rHn/uNM/PTuJZOuHbgl3Ak5VNcHJCQjrgxuDg6TYGxdU633RhjByOMMNgU g0/3/uEZNnNVjyywtA0wk9VF0jtdYcAtHUy5EPF/HS1wUH3P1XrGYEdVgOZJvUsxB5XZ Ie3m+Wn/b0LQJ9km69O8t7DbjOCp3c9HXQDxM= Original-Received: by 10.204.16.136 with SMTP id o8mr7872160bka.119.1326854675871; Tue, 17 Jan 2012 18:44:35 -0800 (PST) Original-Received: from smoon ([141.105.33.55]) by mx.google.com with ESMTPS id ig13sm19198652bkc.9.2012.01.17.18.44.34 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jan 2012 18:44:35 -0800 (PST) Mail-Followup-To: Vladimir Lomov , mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <1326851241.3469.5.camel@kip-laptop> User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 0eGmOIApb - 1bf9c9f764d0 - 20120118 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:73946 Archived-At: Hello, ** Kip Warner [2012-01-17 17:47:21 -0800]: > On Tue, 2012-01-17 at 13:38 +0900, Vladimir Lomov wrote: > Hey Vlad. Actually Vladimir, Vlad is usually used as short for Vladislav. >> (not an expert, just read command reference) >>> (1) What is the difference between \definedescription and >>> \setupdescriptions? >> the first should define new "description", the second change style of >> already defined "description". > Ah, so \setupdescriptions inherits the default values of > \definedescription? I suppose no, '\define...', eh-m, defines a command while '\setup...', eh-m, sets up its 'style'. When one defines a command one could set its custom 'style' instead of default. Consider the following example: \starttext \definedescription[definition] \definition{Hi} This is first definition. \setupdescriptions[definition][headstyle=italic,color=blue] \definition{Hi2} This is second definition. \stoptext The first 'definition' would be: [bold] TEXT after '\setup...' it would be [italic] TEXT >>> (2) What is the difference between \definition and \description? >> This example >> >> \starttext >> \definition{Hi} >> \stoptext >> >> gives error: "Undefined control sequence ...". Where this command is >> defined? > In section 10.2 of the ConTeXt User Manual (p222 of the pdf). Maybe it > is a type: > ... > An example of the definition is: > \definedescription[definition][location=top,headstyle=bold] > search > \definition{icon} > ... > Or maybe you mean \description which is on the same page. May be because this is an example? I would say that ConTeX User Manual shows different commands from context itself and how one could define custom commands. The '\definition' is one them. >>> (3) How do I change the colour of the definition header? I tried the >>> following, but it did not work: >>> \setuphead >>> [definition] >>> [color=colour_head] >> If I were you I would do that: >> >> \starttext >> \definedescription[definition][headcolor=colour_head] >> \definition{Hi}. This is definition. >> \setupdescriptions[definition][headcolor=colour_head2] >> \definition{Hi2}. This is second definition. >> \stoptext >> > Thank you. That makes sense now. But why does \setuphead[definition] > method not work? I don't know but reading manuals (context and latex ones), wiki and etc somehow convince me that 'head' relates with section heading (styling), for the rest there are '\setup...' commands and 'headstyle' key (not always, of course), may be that's why I always consult reference on wiki and sometimes source code. --- WBR, Vladimir Lomov -- The only way to learn a new programming language is by writing programs in it. - Brian Kernighan ___________________________________________________________________________________ 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 ___________________________________________________________________________________