- #1

Simon Bridge

Science Advisor

Homework Helper

- 17,857

- 1,654

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 lets 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?