From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73944 Path: news.gmane.org!not-for-mail From: Kip Warner Newsgroups: gmane.comp.tex.context Subject: Re: Questions on \definition Date: Tue, 17 Jan 2012 17:47:21 -0800 Message-ID: <1326851241.3469.5.camel@kip-laptop> References: <1326772359.18560.21.camel@kip-laptop> <20120117043804.GF972@smoon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0622076018==" X-Trace: dough.gmane.org 1326851282 4467 80.91.229.12 (18 Jan 2012 01:48:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jan 2012 01:48:02 +0000 (UTC) Cc: mailing list for ConTeXt users To: Vladimir Lomov Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 18 02:47:56 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 1RnKcy-0002M2-Vx for gctc-ntg-context-518@m.gmane.org; Wed, 18 Jan 2012 02:47:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 31A0CCB1F8; Wed, 18 Jan 2012 02:47: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 yUYy0O-8hVsI; Wed, 18 Jan 2012 02:47:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F27B7CB1F4; Wed, 18 Jan 2012 02:47:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B929CB1F4 for ; Wed, 18 Jan 2012 02:47:47 +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 iNq+FgjSC+e8 for ; Wed, 18 Jan 2012 02:47:34 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 77D44CB1F0 for ; Wed, 18 Jan 2012 02:47:33 +0100 (CET) Original-Received: from homiemail-a48.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0I1lTjq005388 for ; Wed, 18 Jan 2012 02:47:30 +0100 Original-Received: from homiemail-a48.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a48.g.dreamhost.com (Postfix) with ESMTP id B7CFA4F8058; Tue, 17 Jan 2012 17:47:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thevertigo.com; h=subject:from:to :cc:in-reply-to:references:content-type:date:message-id: mime-version; q=dns; s=thevertigo.com; b=bNpWQhDIPU9QAo49gNmzCVW DegXPDSQCembjUL2VAFxWyAbv797ihSW0QM+vYbdk2NuL1FXUTKmE1fPSolF5NN5 29suyADDZfQ7rRTC+9P3EK8ranyMlGJBjGT4X2UZuWqtmM5hH5MBt032X+fD9STQ +bBqUH0sTRnRgzqxoAPY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thevertigo.com; h=subject :from:to:cc:in-reply-to:references:content-type:date:message-id: mime-version; s=thevertigo.com; bh=9gMnFPNwjPLpinT3L0bL8LN4DjI=; b=Erg7rXlp4+bq++4lBEXmx3ikYeF97ayLfTt3NRG5jVVhF5o6A2yAZnb8y19cE wuzM866rtGzfWwusMMucz0c4PD4NbZ/pyRxy0hXOemoYWxhWICvFi7oaOfqeOTs3 07RJkMVYB1H7ZNH+12o95zDqsJwM5JI8BVcWF1bpGqXY8M= Original-Received: from [192.168.1.64] (76-10-185-222.dsl.teksavvy.com [76.10.185.222]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kip@thevertigo.com) by homiemail-a48.g.dreamhost.com (Postfix) with ESMTPSA id 5EF8D4F8057; Tue, 17 Jan 2012 17:47:26 -0800 (PST) In-Reply-To: <20120117043804.GF972@smoon> X-Mailer: Evolution 2.32.1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.113.200.5; country=US; region=CA; city=Brea; postalcode=92821; latitude=33.9269; longitude=-117.8612; metrocode=803; areacode=714; http://maps.google.com/maps?q=33.9269,-117.8612&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0HGmNLthI - 03e06f1b82b2 - 20120118 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:73944 Archived-At: --===============0622076018== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-7b93udVno+yBPaWQ8FfG" --=-7b93udVno+yBPaWQ8FfG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2012-01-17 at 13:38 +0900, Vladimir Lomov wrote: Hey Vlad. > (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? > > (2) What is the difference between \definition and \description? > This example > > \starttext >=20 > \definition{Hi} >=20 > \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=3Dtop,headstyle=3Dbold] search \definition{icon} ... Or maybe you mean \description which is on the same page. > > (3) How do I change the colour of the definition header? I tried the > > following, but it did not work: >=20 > > \setuphead > > [definition] > > [color=3Dcolour_head] >=20 > If I were you I would do that: > > \starttext >=20 > \definedescription[definition][headcolor=3Dcolour_head] >=20 > \definition{Hi}. This is definition. > \setupdescriptions[definition][headcolor=3Dcolour_head2] >=20 > \definition{Hi2}. This is second definition. >=20 > \stoptext > Thank you. That makes sense now. But why does \setuphead[definition] method not work? --=20 Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com --=-7b93udVno+yBPaWQ8FfG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk8WJKkACgkQLXnfK7bii223rwCeJuVqIrHDHUkVh5/hPk6WSgSa 33QAnj+CxEDQY2nJ7rLbZtCVfnQbTD4Y =9mQP -----END PGP SIGNATURE----- --=-7b93udVno+yBPaWQ8FfG-- --===============0622076018== 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 ___________________________________________________________________________________ --===============0622076018==--