Generalverbatim description item

LaTeX specific issues not fitting into one of the other forums of this category.
Locked
dalev
Posts: 1
Joined: Tue Aug 24, 2010 12:23 pm

verbatim description item

Post by dalev »

How do I make an item in a description list verbatim? \verb in \item[] seems to be not allowed:

Code: Select all

\begin{description}
    \item[\verb+list comprehension [f a | a <- M a]+] bla bla bla
\end{description}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

verbatim description item

Post by Stefan Kottwitz »

Hi,

there's a discussion regarding this subject on the TeX, LaTeX and friends site.

There are already two suggestions.

Stefan
LaTeX.org admin
Locked