MathJax无法对齐\ vert

问题描述 投票:0回答:1

Misformatted mathjax

我遇到的问题应该在上面看到。

\color{red}{x = (1-t)^3x_0 + 3t(1-t)^2x_{1} + 3t^2(1-t)x_{2} + t^3x_{3}}\\
\color{blue}{y = (1-t)^3y_0 + 3t(1-t)^2y_{1} + 3t^2(1-t)y_{2} + t^3y_{3}}
}\Bigg\vert t\in{[0,1]}

我尝试了多种不同的方法。有人可以推荐我如何获取\ vert和条件以使中心对准等式的两行。

P.S。 -我知道数学看起来很难看……这实际上是故意的……在编程和数学之间是一种交叉……对于“程序员的数学”文档而言。

mathjax
1个回答
0
投票

尚不清楚您的想法,但这也许可以满足您的要求:

<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" id="MathJax-script"></script>

$$
\left.
\begin{aligned}
\color{red}{x} &\color{red}{{}= (1-t)^3x_0 + 3t(1-t)^2x_{1} + 3t^2(1-t)x_{2} + t^3x_{3}}\ \\
\color{blue}{y} &\color{blue}{{}= (1-t)^3y_0 + 3t(1-t)^2y_{1} + 3t^2(1-t)y_{2} + t^3y_{3}}
\end{aligned}
\right\vert \ t\in{[0,1]}
$$
© www.soinside.com 2019 - 2024. All rights reserved.