I'd like to left align -1 entry in the following matrix so that the 1s line up. Is there a way to get matrices to ignore signs in that way?
\begin{matrix}
1 & 1 \\
1 & -1 \\
\end{matrix}
Using \flushright{-1} doesn't seem to work.
|
I'd like to left align -1 entry in the following matrix so that the 1s line up. Is there a way to get matrices to ignore signs in that way?
Using |
|||||
|
|
A quick way to do this is by adding phantom characters:
Although for simple arrays like this it's probably simpler just to use a standard array environment
for the same result. Note that if you need control over alignment, then array is the preferred way to typeset matrices (you can simply wrap in |
|||||
|
|
If you using LaTeX2e out of the box, you can use the
|
||||
|
|