![Matrix의 LaTeX 코드 오류](https://rvso.com/image/405355/Matrix%EC%9D%98%20LaTeX%20%EC%BD%94%EB%93%9C%20%EC%98%A4%EB%A5%98.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
패키지 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˙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}