이러한 다중선 방정식이 렌더링되지 않는 이유는 무엇입니까?

이러한 다중선 방정식이 렌더링되지 않는 이유는 무엇입니까?

여기:

$$\begin{alignat}{2}
x(t) & = X+v\cos \theta t \\
y(t)& =Y+c\sin \theta t-\dfrac{1}{2}gt^2 \\
\end{alignat}$$

MathJax는 이를 렌더링하지 않으므로 ShareLatex.com도 마찬가지입니다. 특별한 이유가 있나요?

답변1

예, 특별한 이유가 있습니다. $$주변을 제거해야 합니다 alignat.

$$해당 구성은 MathJax에서 작동하지만 LaTeX에서 작동 해야 하는 이유는 아닙니다.절대사용됩니다.

단일 번호 방정식의 경우 \begin{equation}...\end{equation}; 정렬된 방정식에는 이 경우 align보다 더 좋습니다 . 각 환경 에는 이름 끝에 번호가 없는 alignat버전이 있습니다 .*

마지막 줄도 참고하세요해서는 안 된다에 의해 종료됩니다 \\.

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{alignat}{2}
x(t) & = X+v\cos \theta t \\
y(t)& =Y+c\sin \theta t-\dfrac{1}{2}gt^2
\end{alignat}

\begin{align}
x(t) & = X+v\cos \theta t \\
y(t)& =Y+c\sin \theta t-\dfrac{1}{2}gt^2
\end{align}

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보