LaTeX: Enter vector - how it works
Entering a vector in LaTeX is not difficult. In this practical tip, we will show you how it works.
LaTeX: Enter vector - how it works
A LaTeX-based system for formulas is often used to improve readability in math forums, for example. In the continuous text of the LaTeX text program, you can insert vectors into the continuous text in the math environment. Here we show you exactly which commands you have to use to create a simple vector:
- Make sure you enter your vector between "\ [" and "\]" in the body text.
- Generally tables in LaTeX are implemented with "\ begin {array} {c} table text \ end {array}". "c" defines the column format. Write "cc" for two columns, "ccc" for three, etc. You can use "\ left" and "\ right" to create any vector and matrix.
- "\ vec {v} = \ left (\ begin {array} {c} x \\\ y \\\ z \\\ \ end {array} \ right)" creates a single-column vector with three elements.
- Alternatively, the command \ vec {v} = \ begin {pmatrix} x \\\ y \\\ z \ end {pmatrix} is possible for the vector input. You need the "amsmath" LaTeX package for this.
The next practical tip shows you how to incorporate breaks into your LaTeX document.