↧
Answer by egreg for Define macro for sequence/list/tuple macros
Rather than a long list of arguments, I think it's better to use a key-value syntax.\documentclass{article}\usepackage{xparse}\ExplSyntaxOn\NewDocumentCommand{\definelistcommand}{mm} {% #1 is the...
View ArticleAnswer by user31729 for Define macro for sequence/list/tuple macros
Here's a expl3 version with seq variables.The command \NewListCommand declares the command list macro named like the first argument and uses a global seq variable with some prefix, see...
View ArticleAnswer by wipet for Define macro for sequence/list/tuple macros
You can try this macro:\newcount\tmpnum\def\definelistcommand#1#2#3#4#5#6#7{% \expandafter\def\csname\string#1:list\endcsname##1{% \ifcase##1 #2\or#3\or#4\or#5\or#6\or#7\fi}%...
View ArticleDefine macro for sequence/list/tuple macros
I would like to define a macro for defining further macros to display sequences/lists/tuples of elements by specifying the following parameters:The name of the new command.What to display for an empty...
View Article
More Pages to Explore .....