Tag Info

New answers tagged

3

I'd avoid grouping macros that should be equivalent to some other macro, because this will make harder changing the meaning: if they are a large number, they'll be difficult to spot in the groups. A line for each equivalence seems better, and easier to manage for changes. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand ...


9

A little bit simpler with \keyval_parse:NNn: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \cs_new_protected:Nn \cashner_make_semantic:Nn { \tl_map_inline:nn {#2} % for every token in the second argument, { \NewDocumentCommand ##1 {} {#1} } % create the alias to the first } \NewDocumentCommand \NewSemanticMarkup { m } % with ...



Top 50 recent answers are included