From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91972 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: What is a better way to do this macro? Date: Fri, 17 Jul 2015 20:07:29 +0200 Message-ID: <55A94461.3070407@gmail.com> References: <55A7FFF3.7080205@gmail.com> <55A88621.2040202@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0722916547==" X-Trace: ger.gmane.org 1437156504 3047 80.91.229.3 (17 Jul 2015 18:08:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2015 18:08:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 17 20:08:13 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZGA3M-0005ka-Dv for gctc-ntg-context-518@m.gmane.org; Fri, 17 Jul 2015 20:08:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6FCDE10235 for ; Fri, 17 Jul 2015 20:08: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 5IU_wKyWDbw9 for ; Fri, 17 Jul 2015 20:08:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 773EB1023B for ; Fri, 17 Jul 2015 20:07:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B513101FD for ; Fri, 17 Jul 2015 20:07:37 +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 dUxQPqpZ4esP for ; Fri, 17 Jul 2015 20:07:33 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 291F7101FB for ; Fri, 17 Jul 2015 20:07:33 +0200 (CEST) Original-Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t6HI7W5a000382 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 17 Jul 2015 20:07:32 +0200 Original-Received: by wgxm20 with SMTP id m20so87957161wgx.3 for ; Fri, 17 Jul 2015 11:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=18VrK/+1R2b6moi/BBgtWsPjqzB7eY+Mva93KEfG1kQ=; b=bQV7CiaU9sXpT4vV5XjzH6e2YfyDvkxpZxvkwHCM93p2AmKxbZc1QCwSjNNE3q1LmI CCkJ+Twg4bj98sORw2RM11AFnbZK9eUfgchp6dNk/K/edUmLRcJJhTY96Yvo0AqlR2xy TRqhYS/tyEHK6buIEbtPESr0utG0597i1YjGI5BxwKdHN8JiDTjT/clYR+WtU+LKZEHF iYlw3aefEBqIghIp5s5DrfLMwnMZBX8Mb+Ird5M50+THDsEMMBCPXNgzJGtLnafXjiXL uuho1z23MKBFah+JqVUp6nwU7v0fny+jgMqc63TG49F6XxtX6nKtqXOvd6eAcF2R6cRZ hkBA== X-Received: by 10.180.90.209 with SMTP id by17mr17712595wib.2.1437156452164; Fri, 17 Jul 2015 11:07:32 -0700 (PDT) Original-Received: from keima.localdomain (x2f28615.dyn.telefonica.de. [2.242.134.21]) by smtp.googlemail.com with ESMTPSA id n6sm9517739wix.1.2015.07.17.11.07.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jul 2015 11:07:31 -0700 (PDT) User-Agent: Postbox 4.0.1 (Macintosh/20150514) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::231; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01ORu7wVq - 3f27002519af - 20150717 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c00::231 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c00::231; envelope-from=; helo=mail-wg0-x231.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:91972 Archived-At: This is a multi-part message in MIME format. --===============0722916547== Content-Type: multipart/alternative; boundary="------------010603030106050805070102" This is a multi-part message in MIME format. --------------010603030106050805070102 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Idris Samawi Hamid =D8=A7=D8=AF=D8=B1=D9=8A=D8=B3 =D8=B3=D9=85=D8=A7=D9= =88=D9=8A =D8=AD=D8=A7=D9=85=D8=AF > 17. Juli 2015 19:56 > On Thu, 16 Jul 2015 22:35:45 -0600, Wolfgang Schuster=20 > wrote: > > > Works like a charm. Question: Should the wiki page be edited: > > http://wiki.contextgarden.net/Command/setupframed > > It has the equivalent of > > foregroundstyle =3D > > Shouldn't that be changed to > > foregroundstyle =3D > > Originally I looked for keys mapped to so I tried bottom and=20 > top because and those are the only keys that are mapped to =20 > in the description. Or am I missing something here? The foregroundstyle should list the same arguments as the style key from=20 other commands/environments. For a example look at the arguments for \setupdescriptions:=20 http://wiki.contextgarden.net/Command/setupdescriptions Wolfgang --------------010603030106050805070102 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
= =20 17. Juli 2015=20 19:56
On Thu, 16 Jul 2015 22:35:45= =20 -0600, Wolfgang Schuster <schuster.wolfgang@gmail.com> wr= ote:


Works like a charm. Question: Should the wiki page be edited:

http://wiki.contextgarden.net/Command/setupframe= d

It has the equivalent of

foregroundstyle =3D <name>

Shouldn't that be changed to

foregroundstyle =3D <command>

Originally I looked for keys mapped to <command> so I tried=20 bottom and top because and those are the only keys that are mapped to=20 <command> in the description. Or am I missing something here?

The foregroundstyle should list the same arguments as the style key from other commands/environments.

For a example look at the arguments for \setupdescriptions:=20 http://wiki.contextgarden.net/Command/setupdes= criptions

Wolfgang
--------------010603030106050805070102-- --===============0722916547== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0722916547==--