Search found 2 matches
- Wed Nov 11, 2009 11:24 am
- Forum: General
- Topic: Define commands inside a command
- Replies: 2
- Views: 2853
Define commands inside a command
I want easily change them. That is, from \createcommands{1,2,3,4,5,6,7,8} \createcommands{a,b,c,d,e,f,g,h} etc, if there are defined in eight different commands, changing them requires moving the cursor, pressing backspace/delete many times. Any I want to write a sty package for this, and a command ...
- Tue Nov 10, 2009 4:51 pm
- Forum: General
- Topic: Define commands inside a command
- Replies: 2
- Views: 2853
Define commands inside a command
Hi, I want to define a command that takes a comma separated list and define (by \newcommand) several commands. That is, if I execute \createcommands{1,2,3,4,5,6,7,8}, the comma separated numbers are extracted (inside a \@for loop) and go to define eight new commands, as if I state them like this ...