M-code LaTeX Package

버전 2.7.0.0 (47.5 KB) 작성자: Florian Knorn
Easily include nicely syntax highlighted m-code in your LaTeX documents.
다운로드 수: 159K
업데이트 날짜: 2015/11/11

라이선스 보기

편집자 메모: Popular File 2012 2013 2015 2016 2018 2019 2020

There are many packages out there that do pretty much the same. However, there are also usually many settings and tweaks needed to get it to look just right.
This package saves you from all this hassle — just include it and you're done.
I originally wrote this package for myself to have colourful source code highlighted in LaTeX, looking exactly like in the Matlab editor — being able to just copy-paste the code directly (no pre-treatment with highlight.m or the likes), or simply give a file name and have its contents included and syntax highlighted.
Again, this packages relies on a bunch of other packages (and in particular the listings package for the actual work), but spares you from loads of configurations... So please first check the source code or the configuration options of the packages used if you have any issues.
I've also thrown together a small demo-document (now included) which should give you a quick example on how to actually use the package.

인용 양식

Florian Knorn (2024). M-code LaTeX Package (https://www.mathworks.com/matlabcentral/fileexchange/8015-m-code-latex-package), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
2.7.0.0

Added more MATLAB keywords, fixed frame colour problem

1.18.0.0

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

1.17.0.0

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

1.16.0.0

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

1.15.0.0

Added more keywords for syntax highlighting.

1.14.0.0

Small bugfix

1.13.0.0

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

1.11.0.0

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

1.9.0.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 . . .

1.7.0.0

Fixed typo in documentation regarding §...§

1.6.0.0

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

1.4.0.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

1.3.0.0

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

1.2.0.0

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

1.1.0.0

fixed misconfiguration, further tidied up source code and comments

1.0.0.0

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