반응형
방정식에서 중괄호 옆에있는 두 개의 문
{
오른쪽에 중괄호 ( ) 가 하나 있고 곱슬 옆에 두 개의 다른 줄에 두 개의 문이 있는 방정식을 작성하고 싶습니다 . 어떻게하나요? 감사.
cases
amsmath 에서 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}
특정 패키지없이 일반 LaTeX에서 달성 할 수 있습니다.
\documentclass{article}
\begin{document}
This is your only binary choices
\begin{math}
\left\{
\begin{array}{l}
0\\
1
\end{array}
\right.
\end{math}
\end{document}
이 코드는 필요한 것처럼 보이는 것을 생성합니다.
를 찾습니까
\begin{cases}
math text
\end{cases}
설명에서 명확하지 않았습니다. 그러나 이것이 당신이 찾고있는 것일 수 있습니다. http://en.wikipedia.org/wiki/Help:Displaying_a_formula#Continuation_and_cases
@MLT의 의견에 대해서도 대답하기 위해 cases
두 줄에 번호가 매겨진 너무 정교하지 않은 표준 환경에 대한 대안이 있습니다. 이 코드 :
\documentclass{article}
\usepackage{amsmath}
\usepackage{cases}
\begin{document}
\begin{numcases}{f(x)=}
1, & if $x<0$\\
0, & otherwise
\end{numcases}
\end{document}
생산하다
여기서 math는 적어도 각 줄 의 오른쪽에 \(...\)
또는 로 구분되어야합니다 ( 참조 ).$...$
&
아니면 이거:
f(x)=\begin{cases}
0, & -\pi\leqslant x <0\\
\pi, & 0 \leqslant x \leqslant +\pi
\end{cases}
참고 URL : https://stackoverflow.com/questions/4027363/two-statements-next-to-curly-brace-in-an-equation
반응형
'developer tip' 카테고리의 다른 글
저장되지 않은 변경 사항 감지 (0) | 2020.09.09 |
---|---|
시간을 사용하지 않고 모든 고 루틴이 끝날 때까지 기다리는 방법. (0) | 2020.09.09 |
AngularJS 동적 라우팅 (0) | 2020.09.09 |
빈 문자열을 무시하는 String.Join 메서드? (0) | 2020.09.09 |
Xcode 6/7/8에서 디버그 빌드와 릴리스 빌드간에 어떻게 전환합니까? (0) | 2020.09.09 |