pmatrix 관련 문제

pmatrix 관련 문제

다음과 같이 pmatrix를 사용하려고 합니다.

\begin{equation}\label{Eq.11}
J =
\begin{pmatrix}
  \frac{\partial c_{1}(t+1)}{\partial c_{1}(t)} & \frac{\partial c_{1}(t+1)}{\partial c_{2}(t)} & \cdots & \frac{\partial c_{1}(t+1)}{\partial c_{L}(t)} \\
  \frac{\partial c_{2}(t+1)}{\partial c_{1}(t)} & \frac{\partial c_{2}(t+1)}{\partial c_{2}(t)} & \cdots & \frac{\partial c_{2}(t+1)}{\partial c_{L}(t)} \\
  \vdots  & \vdots  & \ddots & \vdots  \\
  \frac{\partial c_{L}(t+1)}{\partial c_{1}(t)} & \frac{\partial c_{L}(t+1)}{\partial c_{2}(t)} & \cdots & \frac{\partial c_{L}(t+1)}{\partial c_{L}(t)} 
 \end{pmatrix}.
\end{equation}

다음 오류가 나타납니다.

! Extra \right.\endpmatrix -> \endmatrix \right ) \end{pmatrix}
! Missing $ inserted.<inserted text>$ \end{pmatrix}
! Missing } inserted.<inserted text>} \end{pmatrix}
! You can't use `\eqno' in math mode.\endmathdisplay@a ...\df@tag \@empty \else \veqno\alt@tag \df@tag \fi \ifx ... \end{equation}
! Missing \right. inserted.<inserted text>\right . \end{equation}
! Missing \endgroup inserted.<inserted text>\endgroup \end{equation}

이 코드는 다른 문서에서는 잘 작동하지만, 제가 작업 중인 마지막 문서는 각각 문서의 장을 나타내는 여러 파일로 구성되어 있습니다.

어떤 제안이라도 대단히 감사하겠습니다.

감사해요

답변1

항상 포스팅해주세요완벽한오류를 발생시키는 문서. 특히 게시하는 조각이 실제로 오류를 생성하는지 확인할 수 있습니다. 귀하의 질문에 있는 조각은 오류를 생성하지 않으며 오류 메시지는 TeX 오류 메시지가 완전하지 않습니다.

그러나 나는 귀하의 실제 문서 운영 체제가 이와 유사한 오류를 발생시키는 것으로 추측합니다. 여기에는 필터링된 보기보다 더 많은 정보를 제공하는 전체 TeX 오류가 표시됩니다.

\documentclass{article}

\usepackage{amsmath}
\begin{document}

$\left(     % unfinished math expression
\begin{equation}\label{Eq.11}
J =
\begin{pmatrix}
  \frac{\partial c_{1}(t+1)}{\partial c_{1}(t)} & \frac{\partial c_{1}(t+1)}{\partial c_{2}(t)} & \cdots & \frac{\partial c_{1}(t+1)}{\partial c_{L}(t)} \\
  \frac{\partial c_{2}(t+1)}{\partial c_{1}(t)} & \frac{\partial c_{2}(t+1)}{\partial c_{2}(t)} & \cdots & \frac{\partial c_{2}(t+1)}{\partial c_{L}(t)} \\
  \vdots  & \vdots  & \ddots & \vdots  \\
  \frac{\partial c_{L}(t+1)}{\partial c_{1}(t)} & \frac{\partial c_{L}(t+1)}{\partial c_{2}(t)} & \cdots & \frac{\partial c_{L}(t+1)}{\partial c_{L}(t)} 
 \end{pmatrix}.
\end{equation}

\end{document}

다음과 같은 오류가 발생합니다(TeX에서는언제나첫 번째 오류를 먼저 살펴보세요. 이 경우 다음 오류는 모두 가짜입니다.)

! LaTeX Error: Bad math environment delimiter.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.7 \begin{equation}
                    \label{Eq.11}
? 
! You can't use `\eqno' in math mode.
\endmathdisplay@a ...\df@tag \@empty \else \veqno 
                                                  \alt@tag \df@tag \fi \ifx ...
l.15 \end{equation}

? 
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.15 \end{equation}

? 
! Missing \right. inserted.
<inserted text> 
                \right .
l.15 \end{equation}

? 

! LaTeX Error: \begin{document} ended by \end{equation}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.15 \end{equation}

관련 정보