I want to define a personalized description environment, which adds a boldface and brackets around the label name, so I'm using enumitem:


What shall I put instead of ?? to access the optional argument passed to \item from the list?

To be as clear as possible, this is what I currently write:

    \item[\textbf{(Hello)}] lorem ipsum...

and this is what I want to write (to accomplish the same result but to save some keystrokes):

    \item[Hello] lorem ipsum...

You'll need a helper macro. The manual says that the commands in the font key can end with a macro taking one argument, which will be the item text.




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.