jupyter-notebook - 在对齐环境中换行

jupyter-notebook - 在对齐环境中换行

以下是 jupyter-notebooks 的 markdown 单元的片段。

$$
\begin{aligned}
\mathrm{d}J & = \mathrm{tr}(\frac{\mathrm{d}J}{\mathrm{d}\mathbf{A}^{[3]}} \frac{\mathrm{d}\mathbf{A}^{[3]}}{\mathrm{d}\mathbf{Z}^{[3]}} \mathrm{d}\mathbf{Z}^{[3]})\\
&\begin{aligned}
& \text{Here, $\frac{\mathrm{d}\mathbf{A}^{[3]}}{\mathrm{d}\mathbf{Z}^{[3]}}$ should be a rank-4 tensor. But, the derivatives corresponding to a single training-example, i.e. $\frac{\mathrm{d}\mathbf{A}^{[3](i)}}{\mathrm{d}\mathbf{Z}^{[3](i)}}$, is a rank-2 tensor (more specifically, a 2D diagnonal-matrix), computed as follows: } \\
\frac{\mathrm{d}\mathbf{A}^{[3](i)}}{\mathrm{d}\mathbf{Z}^{[3](i)}} & = 
\biggl[\frac{\partial}{\partial{z}^{[3](i)}_1}, \frac{\partial}{\partial{z}^{[3](i)}_2}, \dots, \frac{\partial}{\partial{z}^{[3](i)}_{n^{[3]}}}\biggr]\otimes
\begin{bmatrix}
{a}^{[3](i)}_1\\
{a}^{[3](i)}_2\\
\vdots\\
{a}^{[3](i)}_{n^{[3]}}\\
\end{bmatrix} \\
& = \begin{bmatrix}
\frac{\partial {a}^{[3](i)}_1}{\partial{z}^{[3](i)}_1} & 0 & \dots & 0\\
0 & \frac{\partial {a}^{[3](i)}_2}{\partial{z}^{[3](i)}_2} & \dots & 0\\
\vdots & \vdots & \ddots & \vdots \\
0 & 0 & \dots & \frac{\partial {a}^{[3](i)}_{n^{[3]}}}{\partial{z}^{[3](i)}_{n^{[3]}}}\\
\end{bmatrix}
\end{aligned}
\end{aligned}
$$

呈现如下: latex 渲染

如何让里面的文字\text{}换行?

附言:还有其他帖子(见下文)提出了同样的问题。但是,他们提供的解决方案(例如使用、、\parbox等)在 Jupyter-notebook 的 markdown 单元格中不起作用(使用 MathJax -\minipage\intertext看这里)。

相关内容