方法一

方法一

我用數學TeXForm以及轉換方程式的命令。數組太長。我試圖找到一種方法,但無法對齊這個方程式。我能怎麼做?

\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fourier}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\begin{document}
\[\left(
\begin{array}{ccc}
 \{-7,-2,2\} & \{-5,8,0\} &\{-3,-6,4\} \\
 \{-7,-2,2\} & \{-3,-6,4\} &\{7,-4,6\} \\
 \{-7,-2,2\} & \{-3,6,10\} &\{4,8,9\} \\
 \{-7,-2,4\} & \{-5,8,6\} & \{-3,-6,2\} \\
 \{-7,-2,4\} & \{-3,-6,2\} &\{7,-4,0\} \\
 \{-7,3,-1\} & \{-3,-5,7\} &\{4,-4,9\} \\
 \{-7,3,7\} & \{-3,-5,-1\} &\{-2,8,9\} \\
 \{-7,6,2\} & \{-5,-4,0\} &\{-3,10,4\} \\
 \{-7,6,2\} & \{-3,-2,10\} &\{4,-4,9\} \\
 \{-7,6,4\} & \{-3,10,2\} &\{7,8,0\} \\
 \{-6,-2,-1\} & \{2,6,-5\} &\{7,8,0\} \\
 \{-6,-2,7\} & \{-5,-4,0\} &\{2,6,11\} \\
 \{-6,6,-1\} & \{2,-2,-5\} &\{7,-4,0\} \\
 \{-6,6,7\} & \{-5,8,0\} &\{2,-2,11\} \\
 \{-5,-4,0\} & \{5,-6,2\} &\{9,-2,4\} \\
 \{-5,-4,6\} & \{-3,1,11\} &\{5,9,7\} \\
 \{-5,-4,6\} & \{5,-6,4\} & \{9,-2,2\} \\
 \{-5,-1,9\} & \{-3,-6,4\} &\{5,-2,-4\} \\
 \{-5,5,-3\} & \{0,10,-1\} &\{8,6,7\} \\
 \{-5,5,9\} & \{0,10,7\} &\{8,6,-1\} \\
 \{-5,8,0\} & \{-3,9,7\} &\{5,1,11\} \\
 \{-5,8,0\} & \{5,10,2\} & \{9,6,4\} \\
 \{-3,-2,-4\} & \{5,-6,4\} &\{7,-1,9\} \\
 \{-3,1,-5\} & \{5,9,-1\} &\{7,8,6\} \\
 \{-3,9,-1\} & \{5,1,-5\} &\{7,-4,0\} \\
 \{-2,-4,-3\} & \{0,6,-5\} &\{2,10,-1\} \\
 \{-2,-4,-3\} & \{5,-5,-1\} &\{9,3,7\} \\
 \{-2,-4,9\} & \{0,6,11\} &\{2,10,7\} \\
 \{-2,8,-3\} & \{0,10,7\} &\{2,6,11\} \\
 \{-2,8,9\} & \{0,10,-1\} &\{2,6,-5\} \\
 \{0,-6,-1\} & \{2,-2,-5\} & \{4,8,-3\} \\
 \{0,-6,7\} & \{2,-2,11\} &\{4,8,9\} \\
 \{0,-2,-5\} & \{2,-6,-1\} &\{4,-4,9\} \\
 \{0,-2,11\} & \{2,-6,7\} &\{4,-4,-3\} \\
 \{0,6,-5\} & \{2,10,-1\} & \{4,8,9\} \\
 \{0,6,11\} & \{2,10,7\} & \{4,8,-3\} \\
 \{0,10,-1\} & \{2,6,-5\} & \{4,-4,-3\} \\
 \{0,10,7\} & \{2,6,11\} & \{4,-4,9\} \\
 \{4,-4,-3\} & \{5,6,10\} & \{9,-2,2\} \\
 \{4,8,-3\} & \{5,-5,7\} &\{9,3,-1\} \\
 \{4,8,-3\} & \{5,-2,10\} & \{9,6,2\} \\
 \{5,-6,2\} & \{7,8,6\} &\{9,-2,4\} \\
 \{5,-6,4\} & \{7,8,0\} &\{9,-2,2\} \\
\{5,10,4\} & \{7,-4,0\} &\{9,6,2\} \\
 \{0,10,7\} & \{2,6,11\} & \{4,-4,9\} \\
 \{4,-4,-3\} & \{5,6,10\} & \{9,-2,2\} \\
 \{4,8,-3\} & \{5,-5,7\} & \{9,3,-1\} \\
 \{4,8,-3\} & \{5,-2,10\} &\{9,6,2\} \\
 \{5,-6,2\} & \{7,8,6\} & \{9,-2,4\} \\
 \{5,-6,4\} & \{7,8,0\} &\{9,-2,2\} \\
 \{5,10,4\} & \{7,-4,0\} &\{9,6,2\}
\end{array}
\right)\]
\end{document}

答案1

在此輸入影像描述

\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fourier}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\begin{document}
\small\[
\left(\begin{array}{*{3}{r@{,}r@{,}r}}
 \{-7&-2&2\} & \{-5&8&0\} &\{-3&-6&4\} \\
 \{-7&-2&2\} & \{-3&-6&4\} &\{7&-4&6\} \\
 \{-7&-2&2\} & \{-3&6&10\} &\{4&8&9\} \\
 \{-7&-2&4\} & \{-5&8&6\} & \{-3&-6&2\} \\
 \{-7&-2&4\} & \{-3&-6&2\} &\{7&-4&0\} \\
 \{-7&3&-1\} & \{-3&-5&7\} &\{4&-4&9\} \\
 \{-7&3&7\} & \{-3&-5&-1\} &\{-2&8&9\} \\
 \{-7&6&2\} & \{-5&-4&0\} &\{-3&10&4\} \\
 \{-7&6&2\} & \{-3&-2&10\} &\{4&-4&9\} \\
 \{-7&6&4\} & \{-3&10&2\} &\{7&8&0\} \\
 \{-6&-2&-1\} & \{2&6&-5\} &\{7&8&0\} \\
 \{-6&-2&7\} & \{-5&-4&0\} &\{2&6&11\} \\
 \{-6&6&-1\} & \{2&-2&-5\} &\{7&-4&0\} \\
 \{-6&6&7\} & \{-5&8&0\} &\{2&-2&11\} \\
 \{-5&-4&0\} & \{5&-6&2\} &\{9&-2&4\} \\
 \{-5&-4&6\} & \{-3&1&11\} &\{5&9&7\} \\
 \{-5&-4&6\} & \{5&-6&4\} & \{9&-2&2\} \\
 \{-5&-1&9\} & \{-3&-6&4\} &\{5&-2&-4\} \\
 \{-5&5&-3\} & \{0&10&-1\} &\{8&6&7\} \\
 \{-5&5&9\} & \{0&10&7\} &\{8&6&-1\} \\
 \{-5&8&0\} & \{-3&9&7\} &\{5&1&11\} \\
 \{-5&8&0\} & \{5&10&2\} & \{9&6&4\} \\
 \{-3&-2&-4\} & \{5&-6&4\} &\{7&-1&9\} \\
 \{-3&1&-5\} & \{5&9&-1\} &\{7&8&6\} \\
 \{-3&9&-1\} & \{5&1&-5\} &\{7&-4&0\} \\
 \{-2&-4&-3\} & \{0&6&-5\} &\{2&10&-1\} \\
 \{-2&-4&-3\} & \{5&-5&-1\} &\{9&3&7\} \\
 \{-2&-4&9\} & \{0&6&11\} &\{2&10&7\} \\
 \{-2&8&-3\} & \{0&10&7\} &\{2&6&11\} \\
 \{-2&8&9\} & \{0&10&-1\} &\{2&6&-5\} \\
 \{0&-6&-1\} & \{2&-2&-5\} & \{4&8&-3\} \\
 \{0&-6&7\} & \{2&-2&11\} &\{4&8&9\} \\
 \{0&-2&-5\} & \{2&-6&-1\} &\{4&-4&9\} \\
 \{0&-2&11\} & \{2&-6&7\} &\{4&-4&-3\} \\
 \{0&6&-5\} & \{2&10&-1\} & \{4&8&9\} \\
 \{0&6&11\} & \{2&10&7\} & \{4&8&-3\} \\
 \{0&10&-1\} & \{2&6&-5\} & \{4&-4&-3\} \\
 \{0&10&7\} & \{2&6&11\} & \{4&-4&9\} \\
 \{4&-4&-3\} & \{5&6&10\} & \{9&-2&2\} \\
 \{4&8&-3\} & \{5&-5&7\} &\{9&3&-1\} \\
 \{4&8&-3\} & \{5&-2&10\} & \{9&6&2\} \\
 \{5&-6&2\} & \{7&8&6\} &\{9&-2&4\} \\
 \{5&-6&4\} & \{7&8&0\} &\{9&-2&2\} \\
\{5&10&4\} & \{7&-4&0\} &\{9&6&2\} \\
 \{0&10&7\} & \{2&6&11\} & \{4&-4&9\} \\
 \{4&-4&-3\} & \{5&6&10\} & \{9&-2&2\} \\
 \{4&8&-3\} & \{5&-5&7\} & \{9&3&-1\} \\
 \{4&8&-3\} & \{5&-2&10\} &\{9&6&2\} \\
 \{5&-6&2\} & \{7&8&6\} & \{9&-2&4\} \\
 \{5&-6&4\} & \{7&8&0\} &\{9&-2&2\} \\
 \{5&10&4\} & \{7&-4&0\} &\{9&6&2\}
\end{array}\right)\]
\end{document}

答案2

根據您的需要,這裡有兩種方法。每個都需要手動編輯輸出。結果和完整代碼顯示在底部。

方法一

由於整個表達式都括在括號中,因此沒有標準方法可以執行此操作。我建議你將矩陣描述為

X = ( X_1 )
    ( X_2 )

其中 X_1 和 X_2 是適合可用空間的較小子矩陣。現在X_1 =在 之前插入\left(\begin{array}並插入

\end{array}\right)\]
and 
\[ X_2 = \left(
\begin{array}{ccc}

在適合分頁符號的位置。

(另一種方法是將 X_1 和 X_2 的定義放置在浮動環境中,例如table和 引用這些tables。然後您只需確保每個 X_i 小於一頁。)

方法2

如果括號不重要,那麼您可以使用longtable包,或者mdframed.兩者都不需要手動選擇分頁符號。這是一種mdframed方法。將\[\left(\array{ccc}' and\end{array}\right)]`替換為

\begin{mdframed}[hidealllines=true]
\allowdisplaybreaks 
\begin{align*}

\end{align*}
\end{mdframed}

並將每個替換&&&.

方法 1 的結果

版本 1 第 1 頁

版本 1 第 2 頁

方法2的結果

版本 2 第 1 頁

版本 2 第 2 頁

方法 1 的程式碼

\documentclass[12pt,a4paper]{article}

\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fourier}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}

\usepackage{lipsum}% for dummy text

\begin{document}

\lipsum[1-2]

\begin{equation*}
  X =
  \begin{pmatrix}
    X_1 \\ X_2
  \end{pmatrix}
  ,
\end{equation*}
where
\[
X_1 = 
\left(
\begin{array}{ccc}
 \{-7,-2,2\} & \{-5,8,0\} &\{-3,-6,4\} \\
 \{-7,-2,2\} & \{-3,-6,4\} &\{7,-4,6\} \\
 \{-7,-2,2\} & \{-3,6,10\} &\{4,8,9\} \\
 \{-7,-2,4\} & \{-5,8,6\} & \{-3,-6,2\} \\
 \{-7,-2,4\} & \{-3,-6,2\} &\{7,-4,0\} \\
 \{-7,3,-1\} & \{-3,-5,7\} &\{4,-4,9\} \\
 \{-7,3,7\} & \{-3,-5,-1\} &\{-2,8,9\} \\
 \{-7,6,2\} & \{-5,-4,0\} &\{-3,10,4\} \\
 \{-7,6,2\} & \{-3,-2,10\} &\{4,-4,9\} \\
 \{-7,6,4\} & \{-3,10,2\} &\{7,8,0\} \\
 \{-6,-2,-1\} & \{2,6,-5\} &\{7,8,0\} \\
 \{-6,-2,7\} & \{-5,-4,0\} &\{2,6,11\} \\
 \{-6,6,-1\} & \{2,-2,-5\} &\{7,-4,0\} \\
 \{-6,6,7\} & \{-5,8,0\} &\{2,-2,11\} \\
 \{-5,-4,0\} & \{5,-6,2\} &\{9,-2,4\} \\
 \{-5,-4,6\} & \{-3,1,11\} &\{5,9,7\} \\
 \{-5,-4,6\} & \{5,-6,4\} & \{9,-2,2\} \\
 \{-5,-1,9\} & \{-3,-6,4\} &\{5,-2,-4\} \\
 \{-5,5,-3\} & \{0,10,-1\} &\{8,6,7\} \\
 \{-5,5,9\} & \{0,10,7\} &\{8,6,-1\} \\
 \{-5,8,0\} & \{-3,9,7\} &\{5,1,11\} \\
 \{-5,8,0\} & \{5,10,2\} & \{9,6,4\} \\
 \{-3,-2,-4\} & \{5,-6,4\} &\{7,-1,9\} \\
 \{-3,1,-5\} & \{5,9,-1\} &\{7,8,6\} \\
 \{-3,9,-1\} & \{5,1,-5\} &\{7,-4,0\} \\
 \{-2,-4,-3\} & \{0,6,-5\} &\{2,10,-1\}\\
\{-2,-4,-3\} & \{5,-5,-1\} &\{9,3,7\} \\
 \{-2,-4,9\} & \{0,6,11\} &\{2,10,7\} \\
 \{-2,8,-3\} & \{0,10,7\} &\{2,6,11\} \\
 \{-2,8,9\} & \{0,10,-1\} &\{2,6,-5\} \\
 \{0,-6,-1\} & \{2,-2,-5\} & \{4,8,-3\} \\
\end{array}\right)\]
and 
\[ X_2 = \left(
\begin{array}{ccc}
 \{0,-6,7\} & \{2,-2,11\} &\{4,8,9\} \\
 \{0,-2,-5\} & \{2,-6,-1\} &\{4,-4,9\} \\
 \{0,-2,11\} & \{2,-6,7\} &\{4,-4,-3\} \\
 \{0,6,-5\} & \{2,10,-1\} & \{4,8,9\} \\
 \{0,6,11\} & \{2,10,7\} & \{4,8,-3\} \\
 \{0,10,-1\} & \{2,6,-5\} & \{4,-4,-3\} \\
 \{0,10,7\} & \{2,6,11\} & \{4,-4,9\} \\
 \{4,-4,-3\} & \{5,6,10\} & \{9,-2,2\} \\
 \{4,8,-3\} & \{5,-5,7\} &\{9,3,-1\} \\
 \{4,8,-3\} & \{5,-2,10\} & \{9,6,2\} \\
 \{5,-6,2\} & \{7,8,6\} &\{9,-2,4\} \\
 \{5,-6,4\} & \{7,8,0\} &\{9,-2,2\} \\
\{5,10,4\} & \{7,-4,0\} &\{9,6,2\} \\
 \{0,10,7\} & \{2,6,11\} & \{4,-4,9\} \\
 \{4,-4,-3\} & \{5,6,10\} & \{9,-2,2\} \\
 \{4,8,-3\} & \{5,-5,7\} & \{9,3,-1\} \\
 \{4,8,-3\} & \{5,-2,10\} &\{9,6,2\} \\
 \{5,-6,2\} & \{7,8,6\} & \{9,-2,4\} \\
 \{5,-6,4\} & \{7,8,0\} &\{9,-2,2\} \\
 \{5,10,4\} & \{7,-4,0\} &\{9,6,2\}
\end{array}
\right)\]
\end{document}

方法 2 的程式碼

\documentclass[12pt,a4paper]{article}

\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fourier}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}

\usepackage[tikz]{mdframed}

\usepackage{lipsum}% for dummy text

\begin{document}

\lipsum[1-2]

\begin{mdframed}[hidealllines=true]
\allowdisplaybreaks 
\begin{align*}
  \{-7,-2,2\} && \{-5,8,0\} &&\{-3,-6,4\} \\
  \{-7,-2,2\} && \{-3,-6,4\} &&\{7,-4,6\} \\
  \{-7,-2,2\} && \{-3,6,10\} &&\{4,8,9\} \\
  \{-7,-2,4\} && \{-5,8,6\} && \{-3,-6,2\} \\
  \{-7,-2,4\} && \{-3,-6,2\} &&\{7,-4,0\} \\
  \{-7,3,-1\} && \{-3,-5,7\} &&\{4,-4,9\} \\
  \{-7,3,7\} && \{-3,-5,-1\} &&\{-2,8,9\} \\
  \{-7,6,2\} && \{-5,-4,0\} &&\{-3,10,4\} \\
  \{-7,6,2\} && \{-3,-2,10\} &&\{4,-4,9\} \\
  \{-7,6,4\} && \{-3,10,2\} &&\{7,8,0\} \\
  \{-6,-2,-1\} && \{2,6,-5\} &&\{7,8,0\} \\
  \{-6,-2,7\} && \{-5,-4,0\} &&\{2,6,11\} \\
  \{-6,6,-1\} && \{2,-2,-5\} &&\{7,-4,0\} \\
  \{-6,6,7\} && \{-5,8,0\} &&\{2,-2,11\} \\
  \{-5,-4,0\} && \{5,-6,2\} &&\{9,-2,4\} \\
  \{-5,-4,6\} && \{-3,1,11\} &&\{5,9,7\} \\
  \{-5,-4,6\} && \{5,-6,4\} && \{9,-2,2\} \\
  \{-5,-1,9\} && \{-3,-6,4\} &&\{5,-2,-4\} \\
  \{-5,5,-3\} && \{0,10,-1\} &&\{8,6,7\} \\
  \{-5,5,9\} && \{0,10,7\} &&\{8,6,-1\} \\
  \{-5,8,0\} && \{-3,9,7\} &&\{5,1,11\} \\
  \{-5,8,0\} && \{5,10,2\} && \{9,6,4\} \\
  \{-3,-2,-4\} && \{5,-6,4\} &&\{7,-1,9\} \\
  \{-3,1,-5\} && \{5,9,-1\} &&\{7,8,6\} \\
  \{-3,9,-1\} && \{5,1,-5\} &&\{7,-4,0\} \\
  \{-2,-4,-3\} && \{0,6,-5\} &&\{2,10,-1\}\\
  \{-2,-4,-3\} && \{5,-5,-1\} &&\{9,3,7\} \\
  \{-2,-4,9\} && \{0,6,11\} &&\{2,10,7\} \\
  \{-2,8,-3\} && \{0,10,7\} &&\{2,6,11\} \\
  \{-2,8,9\} && \{0,10,-1\} &&\{2,6,-5\} \\
  \{0,-6,-1\} && \{2,-2,-5\} && \{4,8,-3\} \\
  \{0,-6,7\} && \{2,-2,11\} &&\{4,8,9\} \\
  \{0,-2,-5\} && \{2,-6,-1\} &&\{4,-4,9\} \\
  \{0,-2,11\} && \{2,-6,7\} &&\{4,-4,-3\} \\
  \{0,6,-5\} && \{2,10,-1\} && \{4,8,9\} \\
  \{0,6,11\} && \{2,10,7\} && \{4,8,-3\} \\
  \{0,10,-1\} && \{2,6,-5\} && \{4,-4,-3\} \\
  \{0,10,7\} && \{2,6,11\} && \{4,-4,9\} \\
  \{4,-4,-3\} && \{5,6,10\} && \{9,-2,2\} \\
  \{4,8,-3\} && \{5,-5,7\} &&\{9,3,-1\} \\
  \{4,8,-3\} && \{5,-2,10\} && \{9,6,2\} \\
  \{5,-6,2\} && \{7,8,6\} &&\{9,-2,4\} \\
  \{5,-6,4\} && \{7,8,0\} &&\{9,-2,2\} \\
  \{5,10,4\} && \{7,-4,0\} &&\{9,6,2\} \\
  \{0,10,7\} && \{2,6,11\} && \{4,-4,9\} \\
  \{4,-4,-3\} && \{5,6,10\} && \{9,-2,2\} \\
  \{4,8,-3\} && \{5,-5,7\} && \{9,3,-1\} \\
  \{4,8,-3\} && \{5,-2,10\} &&\{9,6,2\} \\
  \{5,-6,2\} && \{7,8,6\} && \{9,-2,4\} \\
  \{5,-6,4\} && \{7,8,0\} &&\{9,-2,2\} \\
  \{5,10,4\} && \{7,-4,0\} &&\{9,6,2\}\\
\end{align*}
\end{mdframed}

\end{document}

答案3

您可以使用longtable具有九列的環境。每個欄位都會以數學模式自動處理,並自動插入大括號和逗號。因為 alongtable可以跨頁面分隔,所以您不必擔心允許(或不允許...)分頁只是為了使數組適合頁面。

結果陣列的前六行如下所示:

在此輸入影像描述

\documentclass[12pt,a4paper]{article}
\usepackage[margin=2cm]{geometry}
\usepackage{fourier,longtable,array}
\begin{document}
\begin{longtable}{| *{3}{>{$\{}r<{$} @{,\,} >{$}r<{$} @{,\,} >{$}r<{\}$} } |}
\endfirsthead  % blank header on first page
\multicolumn{9}{l}{(\emph{array continued from previous page})}
\endhead
\multicolumn{9}{r}{(\emph{array continued on next page})}
\endfoot
\endlastfoot  % blank footer on final page
 -7 & -2 & 2 & -5 & 8 & 0 &-3 & -6 & 4 \\
 -7 & -2 & 2 & -3 & -6 & 4 &7 & -4 & 6 \\
 -7 & -2 & 2 & -3 & 6 & 10 &4 & 8 & 9 \\
 -7 & -2 & 4 & -5 & 8 & 6 & -3 & -6 & 2 \\
 -7 & -2 & 4 & -3 & -6 & 2 &7 & -4 & 0 \\
 -7 & 3 & -1 & -3 & -5 & 7 &4 & -4 & 9 \\
 -7 & 3 & 7 & -3 & -5 & -1 &-2 & 8 & 9 \\
 -7 & 6 & 2 & -5 & -4 & 0 &-3 & 10 & 4 \\
 -7 & 6 & 2 & -3 & -2 & 10 &4 & -4 & 9 \\
 -7 & 6 & 4 & -3 & 10 & 2 &7 & 8 & 0 \\
 -6 & -2 & -1 & 2 & 6 & -5 &7 & 8 & 0 \\
 -6 & -2 & 7 & -5 & -4 & 0 &2 & 6 & 11 \\
 -6 & 6 & -1 & 2 & -2 & -5 &7 & -4 & 0 \\
 -6 & 6 & 7 & -5 & 8 & 0 &2 & -2 & 11 \\
 -5 & -4 & 0 & 5 & -6 & 2 &9 & -2 & 4 \\
 -5 & -4 & 6 & -3 & 1 & 11 &5 & 9 & 7 \\
 -5 & -4 & 6 & 5 & -6 & 4 & 9 & -2 & 2 \\
 -5 & -1 & 9 & -3 & -6 & 4 &5 & -2 & -4 \\
 -5 & 5 & -3 & 0 & 10 & -1 &8 & 6 & 7 \\
 -5 & 5 & 9 & 0 & 10 & 7 &8 & 6 & -1 \\
 -5 & 8 & 0 & -3 & 9 & 7 &5 & 1 & 11 \\
 -5 & 8 & 0 & 5 & 10 & 2 & 9 & 6 & 4 \\
 -3 & -2 & -4 & 5 & -6 & 4 &7 & -1 & 9 \\
 -3 & 1 & -5 & 5 & 9 & -1 &7 & 8 & 6 \\
 -3 & 9 & -1 & 5 & 1 & -5 &7 & -4 & 0 \\
 -2 & -4 & -3 & 0 & 6 & -5 &2 & 10 & -1 \\
 -2 & -4 & -3 & 5 & -5 & -1 &9 & 3 & 7 \\
 -2 & -4 & 9 & 0 & 6 & 11 &2 & 10 & 7 \\
 -2 & 8 & -3 & 0 & 10 & 7 &2 & 6 & 11 \\
 -2 & 8 & 9 & 0 & 10 & -1 &2 & 6 & -5 \\
 0 & -6 & -1 & 2 & -2 & -5 & 4 & 8 & -3 \\
 0 & -6 & 7 & 2 & -2 & 11 &4 & 8 & 9 \\
 0 & -2 & -5 & 2 & -6 & -1 &4 & -4 & 9 \\
 0 & -2 & 11 & 2 & -6 & 7 &4 & -4 & -3 \\
 0 & 6 & -5 & 2 & 10 & -1 & 4 & 8 & 9 \\
 0 & 6 & 11 & 2 & 10 & 7 & 4 & 8 & -3 \\
 0 & 10 & -1 & 2 & 6 & -5 & 4 & -4 & -3 \\
 0 & 10 & 7 & 2 & 6 & 11 & 4 & -4 & 9 \\
 4 & -4 & -3 & 5 & 6 & 10 & 9 & -2 & 2 \\
 4 & 8 & -3 & 5 & -5 & 7 &9 & 3 & -1 \\
 4 & 8 & -3 & 5 & -2 & 10 & 9 & 6 & 2 \\
 5 & -6 & 2 & 7 & 8 & 6 &9 & -2 & 4 \\
 5 & -6 & 4 & 7 & 8 & 0 &9 & -2 & 2 \\
 5 & 10 & 4 & 7 & -4 & 0 &9 & 6 & 2 \\
 0 & 10 & 7 & 2 & 6 & 11 & 4 & -4 & 9 \\
 4 & -4 & -3 & 5 & 6 & 10 & 9 & -2 & 2 \\
 4 & 8 & -3 & 5 & -5 & 7 & 9 & 3 & -1 \\
 4 & 8 & -3 & 5 & -2 & 10 &9 & 6 & 2 \\
 5 & -6 & 2 & 7 & 8 & 6 & 9 & -2 & 4 \\
 5 & -6 & 4 & 7 & 8 & 0 &9 & -2 & 2 \\
 5 & 10 & 4 & 7 & -4 & 0 &9 & 6 & 2 \\
\end{longtable}
\end{document} 

附錄:如果您選擇保留 Mathematica 提供的陣列主體代碼,您仍然可以使用環境longtable而不是array環境來排版材料。只需替換當前指令即可

\[ \left( \begin{array}{ccc}

\begin{longtable}{| *{3}{>{$}c<{$}} | }

如果陣列中的某個位置出現分頁符,您可以提供以下程式碼來引導讀者的眼睛:

\endfirsthead  % blank header on first page
\multicolumn{3}{@{}l}{(\emph{array continued from previous page})}
\endhead
\multicolumn{3}{r@{}}{(\emph{array continued on next page})}
\endfoot
\endlastfoot  % blank footer on final page

第二頁的資料如下所示:

在此輸入影像描述

\documentclass{article}
\usepackage{array,longtable,fourier}
\begin{document}
\begin{longtable}{| *{3}{>{$}c<{$}} | }
\endfirsthead  % blank header on first page
\multicolumn{3}{@{}l}{(\emph{array continued from previous page})}
\endhead
\multicolumn{3}{r@{}}{(\emph{array continued on next page})}
\endfoot
\endlastfoot  % blank footer on final page
 \{-7,-2,2\} & \{-5,8,0\} &\{-3,-6,4\} \\
 \{-7,-2,2\} & \{-3,-6,4\} &\{7,-4,6\} \\
 \{-7,-2,2\} & \{-3,6,10\} &\{4,8,9\} \\
 \{-7,-2,4\} & \{-5,8,6\} & \{-3,-6,2\} \\
 \{-7,-2,4\} & \{-3,-6,2\} &\{7,-4,0\} \\
 \{-7,3,-1\} & \{-3,-5,7\} &\{4,-4,9\} \\
 \{-7,3,7\} & \{-3,-5,-1\} &\{-2,8,9\} \\
 \{-7,6,2\} & \{-5,-4,0\} &\{-3,10,4\} \\
 \{-7,6,2\} & \{-3,-2,10\} &\{4,-4,9\} \\
 \{-7,6,4\} & \{-3,10,2\} &\{7,8,0\} \\
 \{-6,-2,-1\} & \{2,6,-5\} &\{7,8,0\} \\
 \{-6,-2,7\} & \{-5,-4,0\} &\{2,6,11\} \\
 \{-6,6,-1\} & \{2,-2,-5\} &\{7,-4,0\} \\
 \{-6,6,7\} & \{-5,8,0\} &\{2,-2,11\} \\
 \{-5,-4,0\} & \{5,-6,2\} &\{9,-2,4\} \\
 \{-5,-4,6\} & \{-3,1,11\} &\{5,9,7\} \\
 \{-5,-4,6\} & \{5,-6,4\} & \{9,-2,2\} \\
 \{-5,-1,9\} & \{-3,-6,4\} &\{5,-2,-4\} \\
 \{-5,5,-3\} & \{0,10,-1\} &\{8,6,7\} \\
 \{-5,5,9\} & \{0,10,7\} &\{8,6,-1\} \\
 \{-5,8,0\} & \{-3,9,7\} &\{5,1,11\} \\
 \{-5,8,0\} & \{5,10,2\} & \{9,6,4\} \\
 \{-3,-2,-4\} & \{5,-6,4\} &\{7,-1,9\} \\
 \{-3,1,-5\} & \{5,9,-1\} &\{7,8,6\} \\
 \{-3,9,-1\} & \{5,1,-5\} &\{7,-4,0\} \\
 \{-2,-4,-3\} & \{0,6,-5\} &\{2,10,-1\} \\
 \{-2,-4,-3\} & \{5,-5,-1\} &\{9,3,7\} \\
 \{-2,-4,9\} & \{0,6,11\} &\{2,10,7\} \\
 \{-2,8,-3\} & \{0,10,7\} &\{2,6,11\} \\
 \{-2,8,9\} & \{0,10,-1\} &\{2,6,-5\} \\
 \{0,-6,-1\} & \{2,-2,-5\} & \{4,8,-3\} \\
 \{0,-6,7\} & \{2,-2,11\} &\{4,8,9\} \\
 \{0,-2,-5\} & \{2,-6,-1\} &\{4,-4,9\} \\
 \{0,-2,11\} & \{2,-6,7\} &\{4,-4,-3\} \\
 \{0,6,-5\} & \{2,10,-1\} & \{4,8,9\} \\
 \{0,6,11\} & \{2,10,7\} & \{4,8,-3\} \\
 \{0,10,-1\} & \{2,6,-5\} & \{4,-4,-3\} \\
 \{0,10,7\} & \{2,6,11\} & \{4,-4,9\} \\
 \{4,-4,-3\} & \{5,6,10\} & \{9,-2,2\} \\
 \{4,8,-3\} & \{5,-5,7\} &\{9,3,-1\} \\
 \{4,8,-3\} & \{5,-2,10\} & \{9,6,2\} \\
 \{5,-6,2\} & \{7,8,6\} &\{9,-2,4\} \\
 \{5,-6,4\} & \{7,8,0\} &\{9,-2,2\} \\
\{5,10,4\} & \{7,-4,0\} &\{9,6,2\} \\
 \{0,10,7\} & \{2,6,11\} & \{4,-4,9\} \\
 \{4,-4,-3\} & \{5,6,10\} & \{9,-2,2\} \\
 \{4,8,-3\} & \{5,-5,7\} & \{9,3,-1\} \\
 \{4,8,-3\} & \{5,-2,10\} &\{9,6,2\} \\
 \{5,-6,2\} & \{7,8,6\} & \{9,-2,4\} \\
 \{5,-6,4\} & \{7,8,0\} &\{9,-2,2\} \\
 \{5,10,4\} & \{7,-4,0\} &\{9,6,2\}
\end{longtable}
\end{document}

相關內容