How can I align TeX equations when using the publish functionality of the MATLAB Editor?

3 vues (au cours des 30 derniers jours)
I would like to align the = and the minus sign in 
k = a +b
  - c+d
so that they are below each other in TeX/LaTeX formatted comments when using the publish functionality of the MATLAB Editor.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 5 Nov 2014
In order to obtain the alignment you would like to have, please use the following code:
%%
% $$
% \begin{array}{cl}
% k&=a+b\\
% &+c+d\end{array}
% $$
Note that using LaTeX commands from the amsmath package like eqnarray or equation are not supported by the "publish" function.

Plus de réponses (0)

Catégories

En savoir plus sur Adding custom doc dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by