Tag Info

New answers tagged


keys_set:nn is missing in the usage of \DeclareDocumentCommand, so \l_mymodule_tl is effectively empty. \documentclass[10pt]{article} \usepackage{xparse} \ExplSyntaxOn \tl_new:N \l_mymodule_tl \keys_define:nn { mymodule } { key-start-date .tl_set:N= \l_mymodule_tl } \DeclareDocumentCommand \MyModuleSetup {O{}m } { ...


#1 is the optional argument in your definition, #2 would be the mandatory one: \DeclareDocumentCommand \MyModuleSetup { o m }. So when you use \MyModuleSetup[key-start-date={Date}]{Goodbye~World} #1 is key-start-date={Date} and #2 is Goodbye~World. This is exactly what you're seeing. Also you are defining the key with \keys_define:nn but aren't setting ...

Top 50 recent answers are included