![行列の LaTeX コードにエラーがあります](https://rvso.com/image/405355/%E8%A1%8C%E5%88%97%E3%81%AE%20LaTeX%20%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AB%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99.png)
誰かこのコードのエラーが何なのか調べてもらえますか?
\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
from the packagemathtools
や\colonequals
from 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˙or
engine. 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}