![Fehler im LaTeX-Code für eine Matrix](https://rvso.com/image/405355/Fehler%20im%20LaTeX-Code%20f%C3%BCr%20eine%20Matrix.png)
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}
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 \coloneqq
aus dem Paket mathtools
oder \colonequals
aus dem Paket colonequals
usw. 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}
Eine weitere Möglichkeit ist die Verwendung unicode-math
mit xelatex˙or
lualatex engine. This fonts define
\coloneq`, was Folgendes ergibt:
@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^'
.
Ich schlage vor, \ddots
und 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}