呈现整齐排列的向量列表

呈现整齐排列的向量列表

我正在编写一个文件,其中我必须以一种好的方式呈现 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}

相关内容