行列の LaTeX コードにエラーがあります

行列の 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}

ここに画像の説明を入力してください

補遺: 定義に別の記号を使うことを好む人もいます:=。この記号に関する議論と別の記号については、:= を正しくタイプセットする方法たとえば、\coloneqqfrom the packagemathtools\colonequalsfrom the packagecolonequalsなどです。 間の違いは微妙ですが、鋭い美的感覚を持つ人にとっては重要です。 比較のために、 の使用例を観察します\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}

関連情報