File Exchange

image thumbnail

Export from Live Script into LaTeX Improvement

version 1.0.0 (2.14 KB) by Jan Koprnický
The improvement concerns the modification of the matlab.sty file that is created during export phase.


Updated 25 Nov 2019

View License

Live Script document is possible to export into several formats (PDF, Word, HTML, LaTeX). Actually the form of automatic LaTeX export does not match the Matlab-language syntax highlighting, and it does not solve problems by special characters displaying (e.g. special letters or symbols in comments or in text strings).
The improvement is in modification of matlab.sty:
- adding required package matlab-prettifier (package in LaTeX distributions)
- changing lst-style into Matlab-editor
- adding special characters in lstset from following link:

In matlabINF.sty there are special Czech characters support, but it is possible to use the same technique for supporting other languages as well (see the link above).

Cite As

Jan Koprnický (2021). Export from Live Script into LaTeX Improvement (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

MAzharul Islam

It works fine, I have just changed the package name. However, In Matlab R2021a the code comes in shaded which looks better than the boxed one. If possible just adjust this change in this package. Great work

MAzharul Islam

How to use this? I have downloaded and installed this packege. I have a livescript imported from matlab. It still compiles as the same old format.

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!