如何在 Latex 中编写公式使用大括号

问题描述

我是 Latex 代码的新手。我想在 Latex 中编写以下公式

GenaralFormula

谢谢!!

解决方法

您可以使用 cases 环境:

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\[
x = \begin{cases}
            0 & \text{true}\\
      1 & \text{false}
         \end{cases}
\]


\end{document}

enter image description here