I have a short snippet of code that I want to include inline with the rest of the text and I am using the listings package. I have the following LaTex code:
Code: Select all
\documentclass[a4paper,twoside,10pt]{article}
\usepackage{listings}
\begin{document}
\lstset{language=Prolog,escapechar=\%}
This is a \lstinline!%$\mbox{Name}$%! test
\end{document}
Is there any way to escape into LaTex so the code above will work as expected?
Regards,
George