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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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