- #1
- 17,874
- 1,661
I don't know how much control admins have over how the tex parser here behaves.
Vectors can be typeset in LaTeX with the command \vec, which decorates the argument with a little arrow.
This was cute at first, but it doesn’t look very good, eg. inline [itex]\vec{r}[/itex], but especially in fractions. [tex]\frac{2\pi}{\vec{r}}[/tex]Don't get me wrong, it's not horrible ...
Textbooks use bold face for vectors, compare the above with; inline: [itex]\mathbf{r}[/itex], and in a fraction: [tex]\frac{2\pi}{\mathbf{r}}[/tex]...but I have to use the \mathbf to do it ... well OK, but let's have this as the default behavior of \vec ? I can set up [itex]\LaTeX[\itex] to do this as follows:
This also makes unit vectors (typeset with \hat) bold.
Maybe it's just what you're used to and it's all just cultural?
What do people think?
Vectors can be typeset in LaTeX with the command \vec, which decorates the argument with a little arrow.
This was cute at first, but it doesn’t look very good, eg. inline [itex]\vec{r}[/itex], but especially in fractions. [tex]\frac{2\pi}{\vec{r}}[/tex]Don't get me wrong, it's not horrible ...
Textbooks use bold face for vectors, compare the above with; inline: [itex]\mathbf{r}[/itex], and in a fraction: [tex]\frac{2\pi}{\mathbf{r}}[/tex]...but I have to use the \mathbf to do it ... well OK, but let's have this as the default behavior of \vec ? I can set up [itex]\LaTeX[\itex] to do this as follows:
Code:
\let\oldhat\hat
\renewcommand{\vec}[1]{\mathbf{#1}}
\renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}
Maybe it's just what you're used to and it's all just cultural?
What do people think?