1

Possible Duplicate:
Add bullet points to description lists

I want to create a new environment, called usecase that will function like description environment:

\begin{usecase}
   \item[Request item] Item is requested
   \item[Response] System returns requested item
\end{usecase}

And I want it to look like a regular billeted list with italicized terms, the same as the result of this code:

\begin{enumerate}
  \item \emph{Request item} Item is requested
  \item \emph{Response] System returns requested item
\end{enumerate}

However, I am not sure how to get to the argument of the item, e.g. "Request item".

Thanks

  • @egreg Thanks, but would it be possible to explain what is going on there? – Andriy Drozdyuk Jun 18 '12 at 14:52
  • @drozzy in Herbert's solution he creates a switch called \SpecialItem to turn on the formatting. He then changes the description environment so that it turns the switch off by default for the next occurrence. – cmhughes Jun 18 '12 at 14:59
  • Thanks @cmhughes! But I don't want to change description environment, but define a new one called usecase to use alongside it. – Andriy Drozdyuk Jun 18 '12 at 15:02
  • I've added an answer there, that you can possibly adapt for your need. If none of those answers helps, please tell so. – egreg Jun 18 '12 at 15:04

0 Answers0