Subject: | |
From: | |
Reply To: | |
Date: | Fri, 10 Apr 2015 11:17:41 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Am Fri, 10 Apr 2015 11:13:18 +0200 schrieb Ulrike Fischer:
> Is there a way to assign the default key to "none and all groups"
> so that is always processed by both commands?
As expected, once I post a question I find a solution:
\documentclass{article}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
\keys_define:nn {mymodule}
{
initkey .code:n = {init!~},
initkey .groups:n = {init},
laterkey .code:n = {later!~},
laterkey .groups:n = {later},
default .meta:n = {initkey,laterkey},
default .groups:n = {meta},
}
\keys_set_groups:nnn {mymodule} {meta,init} {default} \par %init
\keys_set_filter:nnn {mymodule} {init} {default} \par %later
\ExplSyntaxOff
\end{document}
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
|
|
|