## LaTeX forum ⇒ Math & Science ⇒ Landscape matrix

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Posts: 2
Joined: Fri Dec 26, 2008 8:22 am

### Landscape matrix

Hi everybody,
I am trying to place a huge matrix into a LaTeX document. It needs to be in landscape mode as in portrait mode just doesn't fit.
I found two methods to do it but each one gives me a different kind of problem:
1)Using lscape package and \begin{landscape} \end{landscape} the matrix fits perfectly, but LaTex places a blank page (without counting the last portrait page, which obviosly was left half-blank, but that is OK) before the matrix.
2)Using rotating package \begin{sideways} \end{sideways} the blank page doesn't appear but the matrix is cut by the right margin of the page.
Maybe I am not using the environment in the right way. I am not experienced with these packages.

The matrix is basically:
\begin{displaymath}
T=
\left[
\begin{array}{cccc}
...
\end{array}
\right]
\end{displaymath}

Many thanks for the help.
Salva

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

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

### Landscape matrix

Assuming that you have loaded the amsmath package (you should if you write maths), the following code works fine for me:
\begin{sideways}
\begin{minipage}{\textheight}
$T= \begin{bmatrix} \text{big expression here} & \text{even a bigger expression here} & \text{other enormous expression} \\ 12345 & 67890 & 12345 \end{bmatrix}$
\end{minipage}
\end{sideways}


Observe that you can use bmatrix instead of array + \left-\right. For a more precise answer, you should provide a minimal working example.

You can also consider to simplify notations or change the way you write. For example, perhaps you may type something like this:
Let
$T=\begin{bmatrix} t_{11} & t_{12} & t_{13} & t_{14} \\ t_{21} & t_{22} & t_{23} & t_{24} \end{bmatrix},$
where
\begin{align*}
t_{11}&= \text{some expression here}, \\
t_{12}&= \text{other expression here}, \\
t_{13}&= \text{and so on}.
\end{align*}

The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.