[texhax] [listing.sty] \item[lstinline{foo}] howto?

Philip G. Ratcliffe philip.ratcliffe at uninsubria.it
Wed Nov 17 14:22:42 CET 2004

> The example doesn't show the required result (the argument
> of the \item is hidden).
> \documentclass{scrartcl}
> \usepackage{listings}
> \begin{document}
>  \begin{itemize}
>   \item[\lstinline{ze_def.h}] ZE-spezifische Definitionen
>  \end{itemize}
> \end{document}
> What do I have to do to get the correct result?  I tried already
> \item[\protect\lstinline{bar}] and something like this without
> getting any improvement.

I suspect it's a bug or at any rate \lstinline is not supposed to be used

Look at what this gets you:

  \item[\lstinline!ze_def.h!] ZE-spezifische Definitionen

Why not try the package author?

Cordialmente,  Philip G. Ratcliffe
Professor of Nuclear & Subnuclear Physics
Dipartimento di Fisica e Matematica
Università degli Studi dell'Insubria
via Valleggio 11
22100 Como (CO)

Tel. +39 (039) 238.6231
Fax  +39 (039) 238.6119
Cell +39 (340) 2346580
Web  http://www.unico.it/~pgr

More information about the texhax mailing list