Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New label with parameter #9

Open
umrenato opened this issue Dec 14, 2018 · 2 comments
Open

New label with parameter #9

umrenato opened this issue Dec 14, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@umrenato
Copy link

Would it be possible to modify the command \SetEnumitemKey so it could define a new label with one parameter (maybe more)?
In the readme pdf, consider the example that defines a twocol label. I'd like to modify it, being able to define a ncol label, so that we could add ncol = 3 to the list options and have the desired number of columns.
Something like this:

\SetEnumitemKey{ncols}[1]{ %specifies that it has 1 parameter
itemsep=1\itemsep,
parsep=1\parsep,
before=\raggedcolumns\begin{multicols}{#1},
after=\end{multicols}}

So we would use that new key like this

\begin{enumerate}[ncols = 3]

or maybe using some other notation, like

\begin{enumerate}[ncols{3}]

This last one could possibly be extended to allow something like this with more parameters...

\begin{enumerate}[mykey{3}{4}]

@jbezos jbezos added the enhancement New feature or request label Dec 22, 2018
@jbezos
Copy link
Owner

jbezos commented Dec 22, 2018

While admittedly it could be useful in some contexts, I'm sorry to say I have no plans to add it. Actually, long ago I even began to write it, but it turned out to be more complicated as it seems at first sight.

@umrenato
Copy link
Author

Thanks for the answer! Anyway your package is great. It has been a default for me since I have found it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants