Math & ScienceA misplaced comma for a matrix

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

A misplaced comma for a matrix

Post by NELLLY »

Hi
I use the package amsmath. I have the following vector

Code: Select all

\begin{eqnarray*}
\mu^{(t)}=\begin{bmatrix}
 P(D_t \in I_1)& P(D_t \in
I^{'}_2)\end{bmatrix},
 \end{eqnarray*}
I need the comma to begin just after the end of the border of the vector. For my case there is a space between them. What can I do?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

A misplaced comma for a matrix

Post by localghost »

At first read why not use the eqnarray* environment [1]. There are several commands for spacing in math mode. Just use the negative thin space.

[1] The PracTeX Journal - TeX Users Group, Lars Madsen: Avoid eqnarray!


Thorsten
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

Re: A misplaced comma for a matrix

Post by NELLLY »

Thanks.
Post Reply