I am writing a document related to computer science and I want to include a short summary of the commands that appear through the text at the end. I am using the listing package to handle the code and I want to use the nomencl package to create the summary, but when I try to add a new entry inside the lstinline
environment, it does not appear in the nomenclature:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{nomencl}
\usepackage{listings}
\makenomenclature
\begin{document}
\section{section}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
\clearpage
\mbox{}
\nomenclature{\lstinline|test command|}{This is a test with a command}
\nomenclature{test}{This is a test without a command}
\printnomenclature
\end{document}
The code produces the following output:
As you can see the nomenclature entry inside lstinline
does not appear. Is there a way of making this work or can you think of an alternative?