
我嘗試在 Lyx 中插入以下矩陣 LaTeX 程式碼:
$u_{L}(k) = \sqrt{E}\begin{pmatrix} 0 \\ 1 \\ 0 \\ -1 \end{pmatrix}$.
在所有基於 LaTeX 的網站中,此程式碼都能正確顯示,但 Lyx 讓我失望:pdf-viewer Adobe Reader(顯示了先前的所有內容)顯示:
問題:如何強制 Lyx 正確轉換矩陣的 LaTeX 程式碼?
答案1
比較有和沒有的表達amsmath
:
\documentclass{article}
%\usepackage{amsmath}
\begin{document}
$u_{L}(k) = \sqrt{E}\begin{pmatrix} 0 \\ 1 \\ 0 \\ -1 \end{pmatrix}$
\end{document}