数学公式支持

2020-11-20
1分钟阅读时长

Eureka supports the rendering of mathematical formulas by using KaTeX.

You can type inline equation like $E=mc^2$.

And also displayed equation like:

\[ \int u \frac{dv}{dx}\, dx=uv-\int \frac{du}{dx}v\,dx \]

Matrix:

\[ \begin{pmatrix} a&b\\c&d \end{pmatrix} \quad \begin{bmatrix} a&b\\c&d \end{bmatrix} \quad \begin{Bmatrix} a&b\\c&d \end{Bmatrix} \quad \begin{vmatrix} a&b\\c&d \end{vmatrix} \]
\[ \begin{align*} s_{i,j,k,r} &=\text{TriAff}(\mathbf h_i,\mathbf h_j,\mathbf h_k,\mathcal{W}_r)\tag 5\\ \alpha_{i,j,k,r} &=\frac{\exp(s_i,j,k,r)}{\sum^j_{k'=i}\exp(s_i,j,k',r)}\tag 6 \\ \mathbf h_{i,j,r} &=\sum^j_{k=i}\alpha_{i,j,k,r}\text{MLP}(\mathbf h_k) \tag 7 \end{align*}\]

####################################

$$
\begin{align*}
s_{i,j,k,r}       &=\text{TriAff}(\mathbf h_i,\mathbf h_j,\mathbf h_k,\mathcal{W}_r)\tag 5\\
\alpha_{i,j,k,r}  &=\frac{\exp(s_i,j,k,r)}{\sum^j_{k'=i}\exp(s_i,j,k',r)}\tag 6 \\
\mathbf h_{i,j,r} &=\sum^j_{k=i}\alpha_{i,j,k,r}\text{MLP}(\mathbf h_k) \tag 7
\end{align*}
$$

Aligned equation:

\[\begin{aligned} x ={}& a+b+c+{} \\ &d+e+f+g \end{aligned}\]

And many other kinds of formulas.

Avatar

YISH

这个人很懒,什么都没有
下一页 Emoji Support