在Latex中的公式环境中,如何保证右侧的文本段落一致?

问题描述

我尝试在 Latex 中编写以下公式

enter image description here

我的问题是右边的公式怎么写?公式环境下如何保证右侧文本段落一致?

我的代码

$\mathbb{P}[\mBox{there exists a black path from ${0}\times [0,s]$ to $\pho s\mtis [0,s]$ in the rectangle $0,\pho s]\times [0,s]$}]

解决方法

我建议:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
Text

\[
f_s(\rho)=\mathrm{P}%
\left[
\begin{array}{l}
\text{there exists a black path from }\{0\}\times [0,s]\text{ to}\\
\{\rho s\}\times [0,s]\text{ in the rectangle }[0,\rho s]\times [0,s]
\end{array}
\right].
\]

Text
\end{document}

给出这个输出:

screenshot of output pdf

评论您的代码是否可以! :)