gpt4 book ai didi

latex - 方程中大括号旁边的两个语句

转载 作者:行者123 更新时间:2023-12-03 05:00:29 28 4
gpt4 key购买 nike

如何用一个大括号 ({) 编写一个方程,并在大括号右侧的两行不同的行中写出两个语句?

最佳答案

您可以尝试 amsmath 中的 cases env。

\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}

amsmath cases

关于latex - 方程中大括号旁边的两个语句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4027363/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com