Quantcast
Channel: Define macro for sequence/list/tuple macros - TeX - LaTeX Stack Exchange
Browsing latest articles
Browse All 4 View Live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

Answer 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 Article

Answer 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 Article

Define 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
Browsing latest articles
Browse All 4 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>