1

When I'm writing an equation with multiple matrices, the comma is still placed at normal text-height, which looks strange.

$\mathrm{f}\left(
\begin{bmatrix} a_1\\a_2\end{bmatrix}, 
\begin{bmatrix} b_1\\b_2\end{bmatrix}\right)$

enter image description here

How can I automatically align it with the bottom of the vectors so it looks natural?

1
  • 2
    Im not sure it would lok very natural. What you show is aligned on the base line (see the bottom of the f).
    – Bernard
    Commented Mar 30, 2020 at 13:41

1 Answer 1

2

Make the comma part of a matrix, too.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\mathrm{f}\left(
\begin{bmatrix} a_1\\a_2\end{bmatrix}
\begin{matrix} \\,\end{matrix} 
\begin{bmatrix} b_1\\b_2\end{bmatrix}\right)$
\end{document}

enter image description here

1
  • This is close to what I wanted, but I still think the comma should be lower. Also another reminder to always post the exact problem I have, as I'm using a smallmatrix, which also makes the comma smaller... :) If noone suggests a better answer, I will accept this one
    – Atnas
    Commented Mar 30, 2020 at 13:56

You must log in to answer this question.

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