Using latex (amsmath) while publishing m code
19 views (last 30 days)
Show older comments
Hi,
I am trying to publish m file and I want to use amsmath and amsfont from latex. How can I include it ? I want to use the following latex code in m file and publish it:
\begin{equation*}
\begin{aligned}
& \underset{X}{\text{minimize}}
& & \mathrm{trace}(X) \\
& \text{subject to}
& & X_{ij} = M_{ij}, \; (i,j) \in \Omega, \\
&&& X \succeq 0.
\end{aligned}
\end{equation*}
0 Comments
Answers (1)
Walter Roberson
on 12 Oct 2015
1 Comment
Walter Roberson
on 10 Aug 2018
The answer for Publishing turns out to be rather easier. See https://www.mathworks.com/matlabcentral/answers/232055-is-there-a-hook-that-will-allow-me-to-change-the-document-style-and-or-add-packages-to-the-latex-fil#answer_214261
See Also
Categories
Find more on LaTeX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!