LATEX ROW AND COLUMN VECTORS: NOTATION AND TRANSPOSES
LaTeX Row and Column Vectors: Notation and Transposes
Examples checked with MathTexLab’s base and AMS math renderer · Display style
Write a column vector with one entry per row and a row vector with entries
separated by &. Use bmatrix for square brackets
or pmatrix for parentheses. A transpose changes the arrangement
of entries, not just the label.
Choose one column or one row
For the three-entry column vector below, set the Matrix Generator to 3 rows and 1 column. Enter a, b and c in successive cells. For its row form, use 1 row and 3 columns. These dimensions are different even though the entries are the same.
When editing source, \\ starts a new row and
& starts a new column. Replacing one separator with the
other changes the shape. The generator builds notation; it does not perform
vector arithmetic.
\mathbf{v}=\begin{bmatrix}a\\b\\c\end{bmatrix}\qquad\mathbf{v}^{\mathsf{T}}=\begin{bmatrix}a&b&c\end{bmatrix}Open example in editor Write a transpose explicitly
The superscript T in the example denotes a transpose. The source writes both the column and its row transpose explicitly. Adding a superscript to a matrix does not ask MathTexLab to rearrange its cells or calculate a result.
For complex-valued vectors, a transpose and a conjugate transpose are different operations. Define your notation in the surrounding document rather than assuming that every superscript marker means the same thing.
Keep brackets and indices consistent
Choose the same bracket convention for related vectors. Use the Matrix Generator for the entries, then open the Equation Editor to add a name, transpose marker or relation around the generated expression.
Compare styles in the matrix-bracket guide. For multi-character indices, follow subscripts and superscripts so the whole index stays grouped.
Syntax reference
Continue with LaTeX Matrix Generator.