Mathjax中的换行符 [英] Newline in Mathjax

查看:1043
本文介绍了Mathjax中的换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mathjax中,如何将它写成由第二个=分隔的两层?

这是Mathjax代码:

$= 2[2W(k-2) + (k-1)2^{k-1}] + k2^k= 2^2W(k-2)+(k-1)2^{k-1}+ k2^k$

要在第二个=符号之前添加新行需要更改什么?

解决方案

对Mathjax换行符使用\\.

比预期容易的方式,而且这里已经回答了- http://meta .math.stackexchange.com/questions/11720/new-line-within-mathjax

$= 2[2W(k-2) + (k-1)2^{k-1}] + k2^k\\= 2^2W(k-2)+(k-1)2^{k-1}+ k2^k$
                                   ^^ 
                                   slashes here

In Mathjax, how do I write this as a two-liner separated by the second =?

This is the Mathjax code:

$= 2[2W(k-2) + (k-1)2^{k-1}] + k2^k= 2^2W(k-2)+(k-1)2^{k-1}+ k2^k$

What do I need to change to add a new line before the second = sign?

解决方案

Use \\ for Mathjax newline.

Way easier than expected, plus this was already answered here - http://meta.math.stackexchange.com/questions/11720/new-line-within-mathjax

$= 2[2W(k-2) + (k-1)2^{k-1}] + k2^k\\= 2^2W(k-2)+(k-1)2^{k-1}+ k2^k$
                                   ^^ 
                                   slashes here

这篇关于Mathjax中的换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆