Using latex (amsmath) while publishing m code
16 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2015-10-12
1 个评论
Walter Roberson
2018-8-10
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 LaTeX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!