1

enter image description hereI made a matrix with some elements in, and now I want to ajust space of right and left side to the first(last) element in matrix, but HOW?

\begin{displaymath}
P=
\left[
\begin{matrix}
x & 0 & 0 \\
x & x & 0 \\
x & x & x \\
0 & x & x \\
0 & 0 & x \\
\end{matrix}
10
  • 2
    Is this relative to other elements in the tikzpicture, or things outside the tikzpicture? Do you want to add or remove space? If you can make a minimal working example, that might be helpful in order to give you a good answer. Commented May 21, 2017 at 21:15
  • 2
    Welcome to TeX SX! Could you be more explicit?
    – Bernard
    Commented May 21, 2017 at 21:15
  • 3
    matrix normally means the environment of that name from amsmath but you have tagged tikz-matrix do you intend to ask about that? Commented May 21, 2017 at 21:15
  • I added an example
    – Bonnie
    Commented May 21, 2017 at 21:27
  • 2
    just get rid of the \left[..\right] and use bmatrix instead of matrix and better positioned brackets will be added. Commented May 21, 2017 at 21:49

1 Answer 1

1

enter image description here

\documentclass{article}   
\usepackage{amsmath}

\begin{document}

\begin{equation}
P=
\left[\;
\begin{matrix}
x & 0 & 0 \\
x & x & 0 \\
x & x & x \\
0 & x & x \\
0 & 0 & x \\
\end{matrix}\;
\right]
\end{equation}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .