方程式中花括号旁边的两个陈述 [英] Two statements next to curly brace in an equation

查看:36
本文介绍了方程式中花括号旁边的两个陈述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何编写一个带有大括号( {)的方程式,并在大括号旁边的右侧用两行不同的文字写出两个语句?

How can I write an equation with one curly brace ({), and on the right-hand side next to the curly, two statements in two different lines?

推荐答案

您可以在amsmath中尝试 cases env.

You can try the cases env in amsmath.

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
  f(x)=\begin{cases}
    1, & \text{if $x<0$}.\\
    0, & \text{otherwise}.
  \end{cases}
\end{equation}

\end{document}

这篇关于方程式中花括号旁边的两个陈述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆