Tagged Questions
7
votes
1answer
93 views
Getting a random sublist from a given list
The etoolbox package provides macros to handle list, which can be useful to package/class writers, however it miss macros to get random sublists.
So I want to define the following macros:
...
13
votes
3answers
252 views
Get n-th element of a list (with etoolbox, or not)
I'm defining a list and I need to obtain the n-th element of this list. I was surprised that etoolbox doesn't provide a way to obtain it. The way I found to obtain the n-th element is along these ...
11
votes
1answer
167 views
Using etoolbox to automatically generate input for \xymatrix
I'd like to make a command \exactseq such that, for example,
\exactseq{A,f,B,g,C}
corresponds to
\xymatrix{A \ar[r]^{f} & B \ar[r]^{g} & C}
and such that this works for inputs of ...
5
votes
1answer
198 views
Why am I processing a comma-separated list incorrectly when using etoolbox and kvoptions?
I'm trying to pick something out of a list that has been passed from some package options by kvoptions, but docsvlist doesn't appear to be recognising the commas.
I suspect this may be something to ...