You can nest array
environments and use the dcolumn package to achieve the alignment at the decimal point. A little example:
\documentclass{article}
\usepackage{dcolumn}
\newcolumntype{R}{D{.}{.}{2,2}}
\begin{document}
\fontsize{16}{20}\selectfont
\[
\begin{array}{l@{}l@{}l}
\begin{array}{r}
ab=[ \\
xyz=[
\end{array}
&
\begin{array}{@{}RRR@{}}
-2.3 & 4 & 3.56\\
5 & -3.5 & -0.5
\end{array}
&
\begin{array}{l}
] \\ ]
\end{array}
\end{array}
\]
\end{document}
I don't believe there's a standard recommendation to answer your question, but it's probably not just a matter of personal preference either. A main criterion for good writing -- in any field, not just in mathematics! -- is the avoidance of all (unnecessary) ambiguity. One approach to keeping ambiguity low is to make sure that all symbols and notational conventions are explained at the outset. For instance, if you wrote something like
Let $\{\vec{v}_1,\vec{v}_2,\dots,\vec{v}_n\}$ denote a set of
$n$ elements of some vector space $V$.
in your paper, it should be clear to all readers that each \vec{v}_i
, i=1,\dots,n
, is a vector and that the subscript i
merely serves to distinguish among the $n$
vectors. No further clarity would be gained, in my view, if the arrow symbol were shifted to the right to make it straddle both the v
glyph and the subscript.
In contrast, suppose that the vector space V
happens to be R^n
and \vec{v}
is some n
-tuple. Now, there might be some ambiguity as to whether \vec{v}_i
denotes the i
-th element of v
(i.e., a scalar) or the i
-th n
-tuple out of some set of n
-tuples. If you need to refer to both types of variables in your paper, you might achieve a slight improvement in clarity by shifting the vector arrow to the right whenever you want to emphasize that you're dealing with an n
-tuple rather than with a scalar.
To be sure, my recommendation in the second case would be to find a different notational solution altogether, in order to avoid any possible ambiguity. For instance, I might write v_i
to denote the scalar quantity, i.e., I'd leave off the arrow entirely. I think that's much more direct and doesn't rely on your readers being alert enough to figure out on their own the meaning of a right-shifted arrow.
Best Answer
You can use the
accents
package: