ios - 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
不起作用
解决方案
只需使用\n
例如:
label.latex = @"\\text{\(Highest degree=a \n power \ of\ x^2\ is\ 2 \\ sum=6= a+2 \\ therefore\ a= 4\)}";
推荐阅读
- python - 如何向 matplotlib 注释添加附加文本
- c# - 为什么 nCalc 不按预期评估长值
- powershell - Powershell Compare-Object 修改侧指示器
- excel - 将 xlA1 公式转换为 xlR1C1 会出错
- c++ - 特化模板内的模板别名
- google-apps-script - 根据复选框值或布尔值将范围复制到不同的工作表
- package - package.d 遇到问题
- reactjs - 如何使用量角器获得快速消失的吐司元素
- c# - Dapper'需要一个无参数的默认构造函数或一个匹配的签名'
- python - 如何将字节图像从灰度转换为 BGR