Matrix의 LaTeX 코드 오류

Matrix의 LaTeX 코드 오류

누군가 이 코드의 오류가 무엇인지 알아낼 수 있습니까?

\begin{equation}
W(f_1,\dots,f_g):= \text{det} \begin{pmatrix}
                            f_1 & f_2 & \dots & f_g\\
                            f_1^' & f_2^' & \dots & f_g^'\\
                            . & . & &.\\
                            . & . & &.\\
                            . & . & &.\\
                            f_1^{(g-1)} & f_2^{(g-1)}& \dots & f_g^{(g-1)}
                            \end{pmatrix}
\end{equation}

답변1

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{equation}
W(f_1,\dotsc,f_g) := \text{det} 
    \begin{pmatrix}
f_1         & f_2           & \dots & f_g           \\
f_1'        & f_2'          & \dots & f_g'          \\ % <---
.           & .             &       & .             \\
.           & .             &       & .             \\
.           & .             &       & .             \\
f_1^{(g-1)} & f_2^{(g-1)}   & \dots & f_g^{(g-1)}
    \end{pmatrix}
\end{equation}
or better
\begin{equation}
W(f_1,\dotsc,f_g) := \det
    \begin{pmatrix}
f_1         & f_2           & \dots     & f_g           \\
f_1'        & f_2'          & \dots     & f_g'          \\
\vdots      & \vdots        & \ddots    & \vdots        \\
f_1^{(g-1)} & f_2^{(g-1)}   & \dots     & f_g^{(g-1)}
    \end{pmatrix}
\end{equation}
\end{document}

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

부록: 어떤 사람들은 :=정의를 위해 다른 기호를 사용하는 것을 선호합니다. 이 기호에 대한 토론 및 다양한 기호는 다음에서 찾을 수 있습니다.조판하는 방법 := 올바르게. 예를 들어 \coloneqq패키지 mathtools또는 \colonequals패키지 colonequals등 사이의 차이는 미묘하지만 미적 감각이 예리한 사람들에게는 중요합니다. 비교를 위해 다음 사용 사례를 관찰하십시오 \colonequals.

\documentclass{article}
\usepackage{mathtools}

\begin{document}
\begin{equation}
W(f_1,\dotsc,f_g) \coloneqq \det\begin{pmatrix}
        f_1         & f_2           & \dots     & f_g           \\
        f_1'        & f_2'          & \dots     & f_g'          \\
        \vdots      & \vdots        & \ddots    & \vdots        \\
        f_1^{(g-1)} & f_2^{(g-1)}   & \dots     & f_g^{(g-1)}
                                \end{pmatrix}
\end{equation}
\end{document}

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

추가 가능성은 다음을 제공하는 lualatex \coloneq` unicode-math와 함께 사용하는 것입니다:xelatex˙orengine. This fonts define

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

@Sebastiano, 이 세부 사항을 알려주셔서 감사합니다. 개인적으로 나는 (내 직업적 배경으로 인해) 기호를 사용하는 경우가 거의 없습니다.정의상 동등하다:-)

답변2

f_1^{\prime}대신 사용하십시오 f_1^'.

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

\ddots및 를 사용하는 것이 좋습니다 \vdots.

\documentclass{standalone}
\usepackage{amsmath}

\begin{document}

\begin{equation}
W(f_1,\dots,f_g):= \det
                \begin{pmatrix}
                    f_1         & f_2           & \dots & f_g \\
                    f_1^{\prime}& f_2^{\prime}  & \dots & f_g^{\prime} \\
                    \vdots      & \vdots        & \ddots& \vdots \\
                    f_1^{(g-1)} & f_2^{(g-1)}   & \dots & f_g^{(g-1)}
                \end{pmatrix}
\end{equation}

\end{document}

관련 정보