I would like to include some Matlab code in my latex document. I use the listing package to do this, however, the quotation marks in my code are made curly (both curve to the right). I want straight quotes. Also, the tilde symbol (meaning not() in matlab) is displayed too small and too high.
I would like to avoid using monospaced font as I would like syntax highlighting.
Thank you,
p.s. here is some code:
preamble:
Code: Select all
\lstset{frame=lines,tabsize=4,numbers=left, numberstyle=\tiny}
Code: Select all
\lstset{language=Matlab}
\begin{lstlisting}[float, caption=test, label=test]
### code here ###
\end{lstlisting}