The following is a snippet from a jupyter-notebooks' markdown cell.
$$
\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}
$$
How do I make the text inside the \text{}
to wrap?
PS: There are other posts (see below) that ask the same question. However, the solutions they offer (like using \parbox
, \minipage
, \intertext
, etc.) are not working within Jupyter-notebook's markdown cell (which uses MathJax - see here).
align*
environments? That shouldn't be legal. What exactly are you hoping to achieve with this construction?aligned
and notalign*
. (For that matter, the outer one too, since you are wrapping in$$...$$
.)div.myindent
with left indentmargin-left: 30px;
and do<div class="myindent">text </div>
in your markdown cell.