From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29060 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: framed parameter Date: Fri, 30 Jun 2006 18:45:02 +0200 Message-ID: <44A5550E.1090402@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1151686020 534 80.91.229.2 (30 Jun 2006 16:47:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Jun 2006 16:47:00 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 30 18:46:58 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FwM8p-00063c-Lq for gctc-ntg-context-518@m.gmane.org; Fri, 30 Jun 2006 18:46:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D07281279C; Fri, 30 Jun 2006 18:46:51 +0200 (CEST) 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 26474-05; Fri, 30 Jun 2006 18:46:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 00EFD127A5; Fri, 30 Jun 2006 18:45:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CF956127A5 for ; Fri, 30 Jun 2006 18:45:04 +0200 (CEST) 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 26404-07-2 for ; Fri, 30 Jun 2006 18:45:03 +0200 (CEST) Original-Received: from post-24.mail.nl.demon.net (post-24.mail.nl.demon.net [194.159.73.194]) by ronja.ntg.nl (Postfix) with SMTP id CCCAB1279C for ; Fri, 30 Jun 2006 18:45:03 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:37189 helo=[192.168.1.3]) by post-24.mail.nl.demon.net with esmtp (Exim 4.51) id 1FwM75-000L1C-1D for ntg-context@ntg.nl; Fri, 30 Jun 2006 16:45:03 +0000 User-Agent: Mozilla Thunderbird 1.0.6-7.6.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:29060 Archived-At: Hans van der Meer wrote: > Is this somewhat inconsistent behaviour intrinsic to some parameters? It _is_ consistent, but not in the way you expect. :-) The rule is: you cannot have multiple parameters inside the \if statement, because that confuses the keyval parser that then picks up "\iftrue background=color" as a complete item. If you really need this, use \expanded around \framed and its option list, like so: \expanded{\framed[frame=on,\iftrue background=color,backgroundcolor=green\fi]}{abc} Greetings, Taco