Math & ScienceMatrix spanning over two pages?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kkudi
Posts: 1
Joined: Mon Nov 22, 2010 11:56 pm

Matrix spanning over two pages?

Post by kkudi »

Hi everyone

I have matrix which has 81 rows and I'm having difficulties to place it over two pages. Presently, when it reaches at the end of the page (very end, disobeying any borders), the rest of the matrix is not showing.

How can I span the matrix over two pages?

This is the code for the matrix...

Code: Select all

\begin{table}[H]
\[
\bordermatrix{
~ & 1 & 2 & 3 & 4 & 5 & 6 \cr
	1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \cr
	2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \cr	
.......
      }
\]
     \caption{ 80 row matrix}

\end{table}

Thanks,
Andreas

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Matrix spanning over two pages?

Post by achim »

I can't think of an easy way how to do this. But you could manually separate the large matrix and indicate that it continues on the next page with \vdots or so. Also you could use \lceil, \lfloor, \rceil and \rfloor as brackets (definitely not ideal, but better than the closed round brackets).

Code: Select all

\documentclass{article}
\begin{document}

$$
\stackrel{
\left\lceil
\begin{array}{ccccccc}
~ & 1 & 2 & 3 & 4 & 5 & 6 \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
\end{array}
\right\rceil}
{\vdots}
$$

$$
\stackrel{\vdots}{
\left\lfloor
\begin{array}{ccccccc}
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629\\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629  \\
   1 & 0.0741 & 0.0741 & 0 & 0 & 0.0741 & 0.7778    \\
   2 &  0.2097 & 0.0806 & 0.0081 & 0.0323 & 0.0403 & 0.629
\end{array}
\right\rfloor}
$$
\end{document}
Note how I use \stackrel{}{} in order to stack the matrix and the \vdots.

This looks something like (second part of the matrix only):
mat.png
mat.png (56.95 KiB) Viewed 1959 times
Hope this helps...
Achim

EDIT:
An alternative would be to use the longtable environment. But it is not a math environment and probably wouldn't look as good. But it will do the page break for you.
OS: Kubuntu
Distribution: TexLive
Editor: Kile
Post Reply