I am using the minted package for code highlighting in my thesis. My minted command looks like this:
\newminted[ps]{js}{frame=lines,style=manni,fontfamily=courier,linenos=true}
And I used it like this
\begin{listing}[H]
\caption{Syntax of function declaration}
\begin{ps}
// My code is here
\end{ps}
\end{listing}
I would like to use subscripts and superscripts within the minted code (I use it also for psuedocode and grammar rules, that's why I want subscripts..)
I've tried this to set mathescape
as described here Subscript and superscript in lstlisting? but \lstset
gives me Undefined control sequence error (I guess I am not using listing package...?)
Thanks for your time.
\documentclass
and ending with\end{document}
.listings
andminted
are very different beasts.listing
environment is another thing, independent of thelistings
package.