![\[ \] 환경에 방정식 번호 할당](https://rvso.com/image/370626/%5C%5B%20%5C%5D%20%ED%99%98%EA%B2%BD%EC%97%90%20%EB%B0%A9%EC%A0%95%EC%8B%9D%20%EB%B2%88%ED%98%B8%20%ED%95%A0%EB%8B%B9.png)
저는 라텍스를 처음 접하므로 이것이 어리석은 질문이라면 용서해주세요. 방정식에 숫자를 할당하고 싶고 다음과 같은 방정식을 정의했습니다.
\[
I^e(x,y) = \left\{\begin{array}{rl}
1 & \text{if edge is detected at pixel I(x,y)}\\
0 & \text{otherwise}\\
\end{array}\right.
\]
답변1
환경을 사용 equation
하고 더 간단하게는 cases*
환경(load mathtools
, 확장자 amsmath
)을 사용합니다. 코드는 다음과 같습니다.
\begin{equation}
I^e(x,y) = \begin{cases*}
1 & if edge is detected at pixel $I(x,y)$\\
0 & otherwise
\end{cases*}
\end{equation}