m-code to LaTeX converter

This m-file (with GUI) converts m-code into a tex-file for including in a LaTeX-document.

Download
Download

You are now following this Submission

Cite As

Uwe Lelke (2026). m-code to LaTeX converter (https://www.mathworks.com/matlabcentral/fileexchange/24515-m-code-to-latex-converter), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Symbolic Math Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updated to include an App file for R2012b

Download
1.9.0

1. New option 'bwc' for code in black and white
2. The programm consists again only of one m-file

Download
1.8.0

I corrected all things in respect to the false strings.
But I couldn't solve the "waitfor" problem, there are now 2 m-files: the command-line tool and the GUI.
How do I put the two files together in one m-file?
Please let me to know.

Download
1.7.0

I upgraded the input options for specifying a source and target file, for example (instead of only a filename, you can write there the whole path):
m2tex('num','input.m','output.tex')

I have also added a GUI (my first one).

Download
1.6.0

"if else end" can be handled now in one line, which the program was already supposed to do.
The requested input options will follow later.

Download
1.5.0

Corrected a minor error with respect to lines, which contain only space characters cause of a kindly tip from an user.

Download
1.4.0

Upgraded the distinction between strings, e.g 'xyz' and apostrophs for transpose purpose, e.g. G=P*C'/(C*P*C'+R).

Download
1.3.0

Corrected a minor error in respect of one single "second word" string.
Added a question dialog window for the option of numbered lines, because I always forgot to activate it in the command line.

Download
1.2.0

recognizes now a linebreak, but only with a leading space character, i.e. " ..." and only once in a line

Download
1.1.0

(just minor things updated and a photo of the output)
more will follow...

Download
1.0.0

Download