Using latex (amsmath) while publishing m code
14 ビュー (過去 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!