I have been trying to express my matrices in a clear way. The problem I have is that the symbolic terms inside the matrices are sometime large and this kind of disturbs the matrix look of the matrix. I mean

x & y

looks like how a matrix should. But if you have an expression there, like

x + y cos(\theta) & y + x sin(\theta)

the matrix resembles less like a 2X1 matrix and more like two terms with a little space in between and surrounded by brackets. Is there a better command that makes matrices with reasonably large terms appear 'normal'. I can imagine my question maybe a bit unclear.

Edit: Maybe a better font for math dominated text would be better for representation? Suggestions?

  • bmatrix with | in the middle ? Inline matrices are always strange to read anyways
    – percusse
    Nov 20, 2016 at 20:22
  • I like pmatrix in general...and it would be hard for me to change the expression everywhere now...anyways what do you mean with | in the middle? Can you give me the syntax to try out?
    – Zero
    Nov 20, 2016 at 20:23
  • (\begin{array}{c|c} .... \end{array})
    – percusse
    Nov 20, 2016 at 20:24
  • 2
    Oh and \sin and \cos is an absolute must
    – Au101
    Nov 20, 2016 at 20:38
  • 1
    @Zero \sin sir/madam, not /sin. Shouldn't be very difficult, find and replace. replace \begin{pmatrix} with \begin{bmatrix}. Same for \end
    – Au101
    Nov 20, 2016 at 20:44

1 Answer 1


I see nothing wrong with the usual typesetting: the large space between entries is sufficient. I probably would use bmatrix anyway.

You can see whether the following trick is what you need: we reduce the space around binary operation symbols.




$\begin{pmatrix} x+y\cos(\theta) & y+x\sin(\theta)\end{pmatrix}$


$\begin{rpmatrix} x+y\cos(\theta) & y+x\sin(\theta)\end{rpmatrix}$


enter image description here

  • 1
    +1. I'd be tempted to omit the parentheses around \theta, i.e., I'd write \cos\theta and \sin\theta. That way, there are no parentheses in the interior of the pmatrix environments to compete visually with the parentheses that enclose the environments.
    – Mico
    Nov 20, 2016 at 21:11
  • 1
    @Mico I too prefer not having them if the argument is a variable or of the form “number times variable”.
    – egreg
    Nov 20, 2016 at 21:34

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.