I've got two matrices, were one is an ordered pair (a point) and the second one is a rotation matrix below that. How do I get them both to be the same width? I have two sets of parentheses and I still want them to be separate arrays.
\documentclass[12pt]{article}
\usepackage{a4wide}
\usepackage{amsmath}
\begin{document}
$$
\left(
\begin{array}{ccc}
2 & , & 3
\end{array}
\right)
\left[
\begin{array}{ccc}
\cos{\theta} & -\sin{\theta} \\
\sin{\theta} & \cos{\theta}
\end{array}
\right]
$$
\end{document}
Best Answer
Note that
$$...$$
shouldn't be used in LaTeX, see Why is \[ ... \] preferable to $$ ... $$?; alsoa4wide
is a deprecated package. If you want to widen the text area, usegeometry
.You can obtain what you want with
blkarray
:If you want to distance the two blocks, add a phantom row and some vertical negative space:
Original answer, superseded by OP's comments.
Matrices are better typeset with the environments provided by
amsmath
, rather than directly witharray
.