111 views (last 30 days)

Show older comments

François
on 19 Mar 2016

Hi,

You have just to put your own XSL file.

For instance:

publish('General.m','format','latex','stylesheet','/FullPath/mydom2latex.tex') where mydom2latex.tex is my own mxdom2latex.xsl, the default file using by matlab.

I add \usepackage{listings} and colours, some package and encoding for UTF8 french and it works...

So I attach files.

Walter Roberson
on 2 Aug 2015

I am not sure if the following will help you: http://www.mathworks.com/matlabcentral/answers/88491-latex-support-to-publish-in-html-format

If not then see http://www.mathworks.com/matlabcentral/answers/52340-why-do-deep-paths-in-usepackage-cause-texmex-to-crash-segmentation-violation. Or perhaps easier: http://www.mathworks.com/matlabcentral/newsreader/view_thread/283068

See also http://www.mathworks.com/matlabcentral/answers/170464-importing-matlab-figures-into-latex for a caution.

Walter Roberson
on 2 Aug 2015

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

Start Hunting!