Fehler im LaTeX-Code für eine Matrix

Fehler im LaTeX-Code für eine Matrix

Kann jemand bitte herausfinden, wo der Fehler in diesem Code liegt?

\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}

Antwort1

\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}

Bildbeschreibung hier eingeben

Nachtrag: Manche Leute bevorzugen stattdessen die Verwendung :=anderer Symbole zur Definition. Diskussionen und verschiedene Symbole zu diesen Symbolen finden Sie inSo setzen Sie := richtig. Zum Beispiel \coloneqqaus dem Paket mathtoolsoder \colonequalsaus dem Paket colonequalsusw. Die Unterschiede zwischen sind subtil, aber für Menschen mit einem ausgeprägten Sinn für Ästhetik sind sie wichtig. Betrachten Sie zum Vergleich den Anwendungsfall von \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}

Bildbeschreibung hier eingeben

Eine weitere Möglichkeit ist die Verwendung unicode-mathmit xelatex˙orlualatex engine. This fonts define\coloneq`, was Folgendes ergibt:

Bildbeschreibung hier eingeben

@Sebastiano, danke, dass du mich auf dieses Detail aufmerksam gemacht hast. Persönlich verwende ich (aufgrund meines beruflichen Hintergrunds) sehr selten oder nie Symbole fürper Definition gleich:-)

Antwort2

Verwenden Sie f_1^{\prime}anstelle von f_1^'.

Bildbeschreibung hier eingeben

Ich schlage vor, \ddotsund zu verwenden \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}

verwandte Informationen