M-code LaTeX Package

Easily include nicely syntax highlighted m-code in your LaTeX documents.

Download
Download

You are now following this Submission

Editor's Note: Popular File 2012 2013 2015 2016 2018 2019 2020

Cite As

Florian Knorn (2026). M-code LaTeX Package (https://ch.mathworks.com/matlabcentral/fileexchange/8015-m-code-latex-package), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: export_tex

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.7.0

Added more MATLAB keywords, fixed frame colour problem

Download
1.18.0

Added support for µ, get a nicer looking tilde character, included Stefan Karlsson's fix for the minus character issue (thanks!!).

Download
1.17.0

Renamed internal variables in order to prevent conflicts with other packages.

Download
1.16.0

Added the \mcodefn{} function for placing inline code in footnotes.

Download
1.15.0

Added more keywords for syntax highlighting.

Download
1.14.0

Small bugfix

Download
1.13.0

Finally "end" and "end" are automatically told apart and coloured correctly.

Download
1.11.0

Now supports automatic line breaking. Added two new options, and now included the demo document in the download.

Download
1.9.0

For some reason, the listings package replaces the normal "minus" by a "math minus", which causes problems when you want to use the source code from the final pdf in an application again . . .

Download
1.7.0

Fixed typo in documentation regarding §...§

Download
1.6.0

Added MATLAB block-quote support (which a user kindly pointed out to me): %{ block comment %}

Download
1.4.0

Tweaked some descriptions, added feature to distinguish formatting between "end" and "end" to either end a clause or access the last element in a vector, updated demo document

Download
1.3.0

A user pointed out a problem when this package is used together with the beamer package, which is now fixed.

Download
1.2.0

I've added the link to a demo-document that shows how to use the package.

Download
1.1.0

fixed misconfiguration, further tidied up source code and comments

Download
1.0.0

-Cosmetic changes in the source code
-Updated the description a bit

Download