如何实现公式跨array对齐?

2019-10-20 20:32发布

![跨array对齐](https://wenda.latexstudio.net/data/attach/191020/Ll0qNbGT.png 跨array对齐) ```tex $$ IM_x^t...

![跨array对齐](https://wenda.latexstudio.net/data/attach/191020/Ll0qNbGT.png "跨array对齐") ```tex $$ IM_x^t\left\{\begin{array}{} {CT_x^t } , {(t=1)} \\ {\left\{\begin{array}{l} {CT_x^t-CT_x^t *(C T_x^t-IM_x^{t-1})} &, {\text { if } IM_x^{t-1} \neq 0} \\ {CT_x^t * 0.5} &, {\text { if } IM_x^{t-1}=0} \end{array}\right.} \end{array}\right. $$ ``` 如图,如何实现array内和嵌套array内的公式按照逗号对齐呢? 要达到的效果是类似这样的: ![对齐效果](https://wenda.latexstudio.net/data/attach/191020/qddj3DpI.png)
3条回答
tuxiaoshi
2019-10-21 13:35
有个治标不治本的方法,但已经可以很好地解决你的问题。如下: ```tex \documentclass{article} \usepackage{amsmath} \begin{document} \[ IM_x^t\left\{ \begin{array}{ll} \quad \quad \quad CT_x^t,\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad(t=1)\\ \left\{\begin{array}{ll} CT_x^t- CT_x^t \ast \bigl( CT_x^t - IM_x^{t-1} \bigr), & \text{if} \; IM_x^{t-1} \neq 0, \\ CT_x^t \ast 0.5, & \text{if} \; IM_x^{t-1}=0. \end{array}\right. \end{array}\right. \] \end{document} ``` 运行结果如图所示: ![](https://wenda.latexstudio.net/data/attach/191021/aOWVMkhN.png)

一周热门 更多>