
我正在編寫一個文件,其中我必須以一種很好的方式呈現(列)長度為 14 的 14 個特徵向量。到目前為止,我已經嘗試過align*
環境,但沒有得到預期的結果。基本上我想要並排的一行 7 個向量和第二行另外 7 個向量(或者如果空間允許的話全部在一行中),但我現在不知道如何逐項對齊它們以便垂直長度排隊。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{mathtools}
\usepackage{commath}
\usepackage[sc,osf]{mathpazo}
\usepackage{authblk}
\usepackage{calc}
\usepackage{tkz-graph}
\usepackage{tikz}
\begin{document}
\begin{align*}
\begin{pmatrix} 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \\ 1 \end{pmatrix},
& \begin{pmatrix} 0 \\ \frac{1}{\sqrt{2}} \\ 0 \\ \frac{-1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \\ \frac{-1}{\sqrt{2}} \\ 0 \\ 1 \\ -1 \\ 0 \\ 0 \\ 0 \\ 0 \\0 \end{pmatrix},
& \begin{pmatrix} 0 \\ \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \\ \frac{-1}{\sqrt{2}} \\ 0 \\ 0 \\ \frac{-1}{\sqrt{2}} \\ 1 \\ 0 \\ -1 \\ 0 \\ 0 \\ 0 \\ 0 \\0 \end{pmatrix},
& \begin{pmatrix} 0 \\ \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \\ \frac{-1}{\sqrt{2}} \\ 0 \\ 0 \\ \frac{-1}{\sqrt{2}} \\ 1 \\ 0 \\ -1 \\ 0 \\ 0 \\ 0 \\ 0 \\0 \end{pmatrix},
& \begin{pmatrix} 0 \\ \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \\ \frac{-1}{\sqrt{2}} \\ 0 \\ 0 \\ \frac{-1}{\sqrt{2}} \\ 1 \\ 0 \\ -1 \\ 0 \\ 0 \\ 0 \\ 0 \\0 \end{pmatrix},
& \begin{pmatrix} 0 \\ \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \\ \frac{-1}{\sqrt{2}} \\ 0 \\ 0 \\ \frac{-1}{\sqrt{2}} \\ 1 \\ 0 \\ -1 \\ 0 \\ 0 \\ 0 \\ 0 \\0 \end{pmatrix},
& \begin{pmatrix} 0 \\ \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \\ \frac{-1}{\sqrt{2}} \\ 0 \\ 0 \\ \frac{-1}{\sqrt{2}} \\ 1 \\ 0 \\ -1 \\ 0 \\ 0 \\ 0 \\ 0 \\0 \end{pmatrix},
& \begin{pmatrix} 0 \\ \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \\ \frac{-1}{\sqrt{2}} \\ 0 \\ 0 \\ \frac{-1}{\sqrt{2}} \\ 1 \\ 0 \\ -1 \\ 0 \\ 0 \\ 0 \\ 0 \\0 \end{pmatrix}
% \begin{pmatrix}1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & -1 & 1 & 1 & 0 & 0 & 0\end{pmatrix} \\
% \begin{pmatrix}1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & -1 & 1 & 1 & 0 & 0 & 0\end{pmatrix}
\end{align*}
\end{document}
答案1
這是一種不同的方法,將整個向量集合設為矩陣。您可以\arraycolsep
根據文字區塊中的可用空間調整列分隔 ( ) 以滿足您的需求。
\documentclass{article}
\usepackage{amsmath,bm}
\usepackage[sc,osf]{mathpazo}
\setcounter{MaxMatrixCols}{20}% https://tex.stackexchange.com/q/95162/5764
\begin{document}
\[
\bm{\epsilon} =
\begin{bmatrix}
\bm{\epsilon}_1^T \\
\\
\vdots \\
\\
\bm{\epsilon}_{14}^T
\end{bmatrix} =
\setlength{\arraycolsep}{.8\arraycolsep}% Reduce array column separation by 20%
\begin{bmatrix}
1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\ % 1
0 & s & 0 & -s & s & -s & 0 & 1 & -1 & 0 & 0 & 0 & 0 & 0 \\ % 2
0 & s & 0 & -s & s & -s & 0 & 1 & -1 & 0 & 0 & 0 & 0 & 0 \\ % 3
0 & -s & 1 & s & 0 & 0 & -s & 1 & 0 & 1 & 1 & 0 & 0 & -1 \\ % 4
-1 & s & 1 & s & 0 & 0 & -s & -1 & 0 & 1 & 1 & 0 & 0 & -1 \\ % 5
1 & s & 1 & s & 0 & 0 & -s & -1 & 0 & -1 & 1 & 0 & 0 & 1 \\ % 6
1 & s & 1 & -s & 0 & 1 & s & -1 & 0 & -1 & -1 & 0 & -1 & 0 \\ % 7
1 & s & 1 & s & 0 & 0 & -s & -1 & 0 & -1 & 1 & 0 & 0 & 1 \\ % 8
1 & s & 1 & s & 0 & 0 & -s & -1 & 0 & -1 & 1 & -1 & 0 & 1 \\ % 9
1 & s & 1 & s & 0 & 0 & -s & -1 & 0 & -1 & 1 & 0 & 0 & 1 \\ % 10
1 & s & 1 & s & 0 & 0 & -s & -1 & 0 & -1 & 1 & 0 & 0 & 1 \\ % 11
1 & s & 1 & s & 0 & 0 & -s & -1 & 0 & -1 & 1 & 0 & 0 & 1 \\ % 12
1 & s & 1 & s & 0 & 0 & -s & -1 & 0 & -1 & 1 & 0 & 0 & 1 \\ % 13
1 & s & 1 & s & 0 & 0 & -s & -1 & 0 & -1 & 1 & 0 & 0 & 1 % 14
\end{bmatrix}
\]
where $s = 1/\sqrt{2}$.
\end{document}