Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id p7RCJMe0023628 for ; Sat, 27 Aug 2011 14:19:23 +0200 Received: (qmail 17940 invoked by alias); 27 Aug 2011 12:19:17 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 27 Aug 2011 12:19:16 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx099) with SMTP; 27 Aug 2011 14:19:16 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p7RCGehj000321 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Aug 2011 14:16:41 +0200 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p7RCBA2t002634; Sat, 27 Aug 2011 14:16:40 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1601896 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 27 Aug 2011 14:16:40 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p7RCGe7V011593 for ; Sat, 27 Aug 2011 14:16:40 +0200 Received: from mail-fx0-f49.google.com (mail-fx0-f49.google.com [209.85.161.49]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p7RCGZnQ002423 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Sat, 27 Aug 2011 14:16:39 +0200 Received: by fxd20 with SMTP id 20so4780626fxd.22 for ; Sat, 27 Aug 2011 05:16:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.52.66 with SMTP id h2mr3416597fag.92.1314447395713; Sat, 27 Aug 2011 05:16:35 -0700 (PDT) Received: by 10.152.14.8 with HTTP; Sat, 27 Aug 2011 05:16:35 -0700 (PDT) References: <35FEA381-6EA8-4464-9E0F-C504C2D92641@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Whitelist: Message-ID: Date: Sat, 27 Aug 2011 08:16:35 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Bruno Le Floch Subject: Re: l3keys: mirror boolean key To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <35FEA381-6EA8-4464-9E0F-C504C2D92641@gmail.com> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (BackTrace mail analyze); Detail=5D7Q89H36p4L00VTXC6D4q0N+AH0PUCnGL2vqOgpaBYL16oitsMrgDt/NQNpSCZFFjDOy 97xb7Zpf+wZnd5ZXNcvLDXR3Wg3wRjdQbwEMh8=V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6834 On 8/27/11, Will Robertson wrote: > On 26/08/2011, at 3:04 AM, Ulrike Fischer wrote: > >> Now I want to define a "mirrored" key >> >> no-sym >> >> so that "no-sym = true" sets \l_chessfss_sym_bool to false. >> >> Is there some easy way? > > Not directly as far as I know (using > > .code:n = { \bool_set_false:N \l_chessfss_sym_bool } > > works of course but it's not the best interface), so I think this would be a > good addition. (I seem to remember kvoptions has a similar feature.) Which > do you think is best to name it? > > no-sym .bool_unset:N = \l_chessfss_sym_bool > no-sym .bool_set_false:N = \l_chessfss_sym_bool > no-sym .bool_set_reverse:N = \l_chessfss_sym_bool I find .bool_set_reverse:N more descriptive (cf. \reverse_if:N), as no-sym = false is valid user input, I guess? -- Bruno