我是 Latex 代码的新手。我想在 Latex 中编写以下公式
谢谢!!
您可以使用 cases 环境:
cases
\documentclass{article} \usepackage{amsmath} \begin{document} \[ x = \begin{cases} 0 & \text{true}\\ 1 & \text{false} \end{cases} \] \end{document}