【源码】M代码的LaTeX支持包——在LaTeX文件中轻松展示M代码的语法结构

M代码的LaTeX支持包——在LaTeX文件中轻松展示M代码的语法结构

有很多支持包实现了与此相同的功能。

There are many packages out there that dopretty much the same.

然而,其它支持包需要很多设置和调整,从而实现恰到好处的功能。

However, there are also usually manysettings 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.

我最初编写这个软件包是为了在LaTeX中突出显示彩色的源代码,看起来和Matlab编辑器中完全一样——能够直接复制粘贴代码(没有使用highlight.m或类似的预处理),或者简单地给出文件名,并且让其中的内容和语法突出显示。

I originally wrote this package for myselfto have colourful source code highlighted in LaTeX, looking exactly like in theMatlab editor — being able to just copy-paste the code directly (nopre-treatment with highlight.m or the likes), or simply give a file name andhave its contents included and syntax highlighted.

下载源码地址:

http://page2.dfpan.com/fs/el4c5j92c2718209166/

更多精彩文章请关注微信号:在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42825609/article/details/82809739