To Latex

version 1.0.0 (2.81 KB) by Yvan Lengwiler
This tool allows you to export a numerical or cell array or a table into TeX or LaTeX by creating the codes that TeX/LaTeX can understand.

23 Downloads

Updated 29 Aug 2021

View License

Suppose c is a numerical array, or a cell array containing mixed strings and numerical entries. Or c is a table. And you would like to export the content of c into a TeX or LaTeX file. t = tolatex(c) puts the required LaTeX code into the variable t, which you can then copy and paste into your text editor.
The LaTeX code is bare bones, but the program gives you a starting point from which you can then manually beautify the result.
The code is adapted from the "Straigtforward Copy and Paste" FEX contribution.

Cite As

Yvan Lengwiler (2022). To Latex (https://www.mathworks.com/matlabcentral/fileexchange/98454-to-latex), MATLAB Central File Exchange. Retrieved .

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

Inspired by: Straightforward COPY and PASTE functions

Community Treasure Hunt

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

Start Hunting!