Hopefully this is a simple question: is there a simple, fast, and general method of porting the the text of an m-file verbatim into LaTeX and have it appear as it does in VI, i.e. ignore all of the MATLAB nomenclature, like % and so on, to appear as standard text consistent with whatever package I am using?
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
\begin{verbatim}...\end{verbatim}or if you need fancier formatting look at the fancyvrb or listings packages/ – David Carlisle Jan 13 at 21:38