Using latex packages in MATLAB publish markup

I am on Mac OSX 10.10.5 and MATLAB 2015b, and now spent hours trying to follow various instructions on Google how to import LaTeX packages and use them in the MATLAB Functionality Markup . The most concise instructions I have found are here:

How do you use LaTeX board font in MATLAB?

http://mathforum.org/kb/message.jspa?messageID=7574110

However, so far nothing has worked. I tried:

  • copy .clsfiles to /Applications/MATLAB_R2015b.app/sys/tex/latex/base/(s /Applications/MATLAB_R2015b.app/sys/tex/)
  • edit mine /Applications/MATLAB_R2015b.app/sys/tex/mwarticle.clsbefore \usepackage, \RequirePackageor \includeas described here
  • edit the file /Applications/MATLAB_R2015b.app/toolbox/matlab/graphics/tex.mon \usepackageor \RequirePackageas described here
  • add texpathin .../tex.mwith downloaded batch zip codes or those that have Tex in my distribution, for example. /usr/local/texlive/2014/texmf-dist/tex/latex/amsmath, .../source/latex/amsmathand .../doc/latex/amsmath(both using function fullfileand simple strings)

This is trivial with free software Rand R Studiowith R markdown documents . I am very surprised that it is so difficult for proprietary software, especially considering that it was noted as early as five years ago

+4
source share

Source: https://habr.com/ru/post/1616983/


All Articles