6

I have this equation that doesnt fit the page

\documentclass[11pt]{article}
\usepackage{amsmath}

\begin{document}

\begin{equation*}
[a_{ii}]=[\phi]^T[A][\phi]=\begin{bmatrix}
-0.0829 + 0.2686i&0&0&0&0&0\\
0&-0.0829 - 0.2686i&0&0&0&0\\
0&0&-0.2040 + 2.5845i&0&0&0\\
0&0&0&-0.2040 - 2.5845i&0&0\\
0&0&0&0&3.2154&0\\
0&0&0&0&0&-3.0137
\end{bmatrix}
\end{equation*}



\end{document}

How can I correct it??

  • Some ideas: - typeset the matrix in a smaller fontsize; - tell that it is a diagonal matrix that is zero except for the diagonal (and you give the diagonal elements); - start the matrix on a new line. – Karlo Nov 1 '16 at 15:02
  • 1
    you can use \begin{equation*}\resizebox{\textwidth}{!}$<your content goes here>$}\end{equation*} – Nico Boni Nov 1 '16 at 15:04
10

Yet another possibility is negative space as column separator.

\documentclass[11pt]{article}
\usepackage{amsmath}
\begin{document}
\newcommand\shrink{\hspace{-3em}}
\begin{align*}
[a_{ii}]&=[\phi]^T[A][\phi]\\
&=
\left[\begin{array}{@{}c@{\shrink}c@{\shrink}c@{\shrink}c@{}c@{\hspace{-0.5em}}c@{}}
-0.0829 + 0.2686i&0&0&0&0&0\\
0&-0.0829 - 0.2686i&0&0&0&0\\
0&0&-0.2040 + 2.5845i&0&0&0\\
0&0&0&-0.2040 - 2.5845i&0&0\\
0&0&0&0&3.2154&0\\
0&0&0&0&0&-3.0137
\end{array}
\right]
\end{align*}
\end{document}

enter image description here

16

Use symbols:

\documentclass[11pt]{article}
\usepackage{amsmath}

\DeclareMathOperator{\diag}{diag}

\begin{document}

\begin{equation*}
[a_{ii}]=[\phi]^T[A][\phi] = \diag(\delta_1,\delta_2,\delta_3,\delta_4,\delta_5,\delta_6)
\end{equation*}
where
\begin{equation*}
\begin{aligned}
\delta_1 &= -0.0829 + 0.2686i, \\
\delta_2 &= -0.0829 - 0.2686i, \\
\delta_3 &= -0.2040 + 2.5845i, \\
\delta_4 &= -0.2040 - 2.5845i, \\
\delta_5 &= 3.2154, \\
\delta_6 &= -3.0137
\end{aligned}
\end{equation*}

\end{document}

enter image description here

You can also type in the full matrix, but the “diag” notation is clearer, in my opinion.

3

Yet another option, change the textsize:

\documentclass[11pt]{article}
\usepackage[fleqn]{amsmath}

\begin{document}

\begin{tiny}

{\setlength{\mathindent}{0cm}
\begin{equation*}
[a_{ii}]=[\phi]^T[A][\phi]=\begin{bmatrix}
-0.0829 + 0.2686i&0&0&0&0&0\\
0&-0.0829 - 0.2686i&0&0&0&0\\
0&0&-0.2040 + 2.5845i&0&0&0\\
0&0&0&-0.2040 - 2.5845i&0&0\\
0&0&0&0&3.2154&0\\
0&0&0&0&0&-3.0137
\end{bmatrix}
\end{equation*}
}

\end{tiny}

\end{document}
2

One possibility would be to set the equation in landscape on the page.

\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{lscape}

\begin{document}

\begin{landscape}

\begin{equation*}
[a_{ii}]=[\phi]^T[A][\phi]=\begin{bmatrix}
-0.0829 + 0.2686i&0&0&0&0&0\\
0&-0.0829 - 0.2686i&0&0&0&0\\
0&0&-0.2040 + 2.5845i&0&0&0\\
0&0&0&-0.2040 - 2.5845i&0&0\\
0&0&0&0&3.2154&0\\
0&0&0&0&0&-3.0137
\end{bmatrix}
\end{equation*}

\end{landscape}

\end{document}
  • no I can't do that there's text in between – H.H Nov 1 '16 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.