LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruno Le Floch <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Sat, 27 Aug 2011 08:16:35 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
On 8/27/11, Will Robertson <[log in to unmask]> 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

ATOM RSS1 RSS2