This question led to a new package:
Does anybody have a quick and easy way to typeset some relatively long MATLAB code in the appendix? I looked up a few methods, and the
mcode package emerged as a possibility, but it seems to be unmaintained…
I have a ton of equations in my code, so I'd prefer a solution that avoids having to use
$ to denote equations.
Also, if possible, if there's a way to keep all of MATLAB's "natural" coding colors (e.g. green for comments), that would be great…