
我有以下矩陣:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\begin{bmatrix}
\begin{vmatrix}
168 & 368 \\
368 & 1026
\end{vmatrix} & \begin{vmatrix}
26 & 368\\
70 & 1026
\end{vmatrix} & \begin{vmatrix}
26 & 168\\
70 & 368
\end{vmatrix}\\
\begin{vmatrix}
26 & 70\\
368 & 1026
\end{vmatrix} & \begin{vmatrix}
5 & 70\\
70 & 1026
\end{vmatrix} & \begin{vmatrix}
5 & 26\\
70 & 368
\end{vmatrix}\\
\begin{vmatrix}
26 & 70\\
168 & 368
\end{vmatrix} & \begin{vmatrix}
5 & 70\\
26 & 368
\end{vmatrix} & \begin{vmatrix}
5 & 26\\
26 & 168
\end{vmatrix}
\end{bmatrix} =
\begin{bmatrix}
36944 & -916 & -2192 \\
\end{bmatrix}
$
\end{document}
每行包含一個 2x2 行列式。問題在於相鄰行列式的垂直線相互接觸,給人一種這是一個具有三個 6x2 行列式的 3x1 矩陣的印象。我嘗試[3pt]
在分隔 \\ 之後添加一些內容,但沒有成功。任何幫助將不勝感激!
順便說一句,我從 Markdown 文件中呼叫 LaTeX,這意味著使用額外/替代套件是非常不可取的(儘管在文字轉換期間進行手動幹預後是可能的)。先致謝!
答案1
可選參數[]
不會添加那麼多空間,而是指定一個最小深度,但您的矩陣已經很深,因此您需要一個更大的值。
\end{vmatrix}\\[15pt]
\begin{vmatrix}
看起來更好
答案2
下面的解法中的值\vskip
太大,效果不太好,但是思路應該很清晰。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\begin{bmatrix}
\begin{vmatrix}
168 & 368 \\
368 & 1026
\end{vmatrix} & \begin{vmatrix}
26 & 368\\
70 & 1026
\end{vmatrix} & \begin{vmatrix}
26 & 168\\
70 & 368
\end{vmatrix}\\\noalign{\vskip12pt}
\begin{vmatrix}
26 & 70\\
368 & 1026
\end{vmatrix} & \begin{vmatrix}
5 & 70\\
70 & 1026
\end{vmatrix} & \begin{vmatrix}
5 & 26\\
70 & 368
\end{vmatrix}\\ \noalign{\vskip18pt}
\begin{vmatrix}
26 & 70\\
168 & 368
\end{vmatrix} & \begin{vmatrix}
5 & 70\\
26 & 368
\end{vmatrix} & \begin{vmatrix}
5 & 26\\
26 & 168
\end{vmatrix}
\end{bmatrix} =
\begin{bmatrix}
36944 & -916 & -2192 \\
\end{bmatrix}
$
\end{document}
答案3
bmatrix
您可以調整和/或的延伸vmatrix
,也許可以透過一個新的環境:
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\newenvironment{BMatrix}[1][1]
{\begingroup\renewcommand{\arraystretch}{#1}
\begin{bmatrix}}
{\end{bmatrix}\endgroup}
\newenvironment{VMatrix}[1][1]
{\begingroup\renewcommand{\arraystretch}{#1}
\begin{vmatrix}}
{\end{vmatrix}\endgroup}
\begin{document}
\[
\begin{BMatrix}[2]
\begin{VMatrix}
168 & 368 \\ 368 & 1026
\end{VMatrix} & \begin{VMatrix}
26 & 368 \\ 70 & 1026
\end{VMatrix} & \begin{VMatrix}
26 & 168 \\ 70 & 368
\end{VMatrix} \\
\begin{VMatrix}
26 & 70 \\ 368 & 1026
\end{VMatrix} & \begin{VMatrix}
5 & 70 \\ 70 & 1026
\end{VMatrix} & \begin{VMatrix}
5 & 26 \\ 70 & 368
\end{VMatrix} \\
\begin{VMatrix}
26 & 70 \\ 168 & 368
\end{VMatrix} & \begin{VMatrix}
5 & 70 \\ 26 & 368
\end{VMatrix} & \begin{VMatrix}
5 & 26 \\ 26 & 168
\end{VMatrix}
\end{BMatrix} =
\begin{bmatrix}
36944 & -916 & -2192
\end{bmatrix}
\]
\end{document}
BMatrix
和都VMatrix
採用一個可選參數來指定所\arraystretch
使用的(預設為1
)。外部BMatrix
設定\arraystretch
有2
。