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
Condense Mail Headers

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

Print Reply
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Thu, 11 Jul 2013 22:21:57 +0100
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID:
Subject:
MIME-Version:
1.0
Content-Transfer-Encoding:
7bit
In-Reply-To:
Content-Type:
text/plain; charset=windows-1252
From:
Joseph Wright <[log in to unmask]>
Parts/Attachments:
text/plain (34 lines)
On 11/07/2013 22:13, Joseph Wright wrote:
> Looks at what seems to be needed, an ('opt-in') interface such as
> 
>   \keys_define:nn { module }
>     {
>       key-one .code:n  = { \tl_show:n { key-one } },
>       key-one .group:n = { a },
>       key-two .code:n  = { \tl_show:n { key-two } },
>     }
>   \keys_set_grouped:nnn { module } { a }
>     { key-one = value , key-two = value }
> 
> is not unreasonable. This allows each key to be in exactly one group:
> doing multiple groups is possible but more tricky. (Code follows a bit
> later.) My thinking with this is that you can simply do a 'filtered' or
> 'grouped' setting without having to track when filtering is on/off.
> 
> The above interface leaves open a few questions:
> 
>  - How is nesting handled? Does \keys_set:nn within
>    \keys_set_grouped:nnn respect groups? Does
>    \keys_set_grouped:nnn within \keys_set_grouped:nnn
>    work in a union or intersection way?
> 
>  - Do unknown keys raise an error, or are they ignored as they
>    are not in any group?

Also

 - Do unused options need to be collected/available?

-- 
Joseph Wright

ATOM RSS1 RSS2