首页 > 解决方案 > iosMath 中的换行符

问题描述

iosmath用于在我的 ios 应用程序中显示数学方程。

我如何在里面插入换行符\text{}

我的代码是:

label.latex = @"\\text{\(Highest degree=a \\ \newline \linebreak power \ of\ x^2\ is\ 2 \\ sum=6= a+2 \\ therefore\ a= 4\)}";

\\, \newline,都\linebreak不起作用

标签: iosobjective-clatex

解决方案


只需使用\n

例如:

label.latex = @"\\text{\(Highest degree=a \n power \ of\ x^2\ is\ 2 \\ sum=6= a+2 \\ therefore\ a= 4\)}";

推荐阅读