I don't know how much control admins have over how the tex parser here behaves.(adsbygoogle = window.adsbygoogle || []).push({});

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 nothorrible...

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:

This also makes unit vectors (typeset with \hat) bold.Code (Text):\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?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Suggestion Bold-face for vectors in tex

Loading...

Similar Threads for Bold face vectors |
---|

Complaint Facing problems while reaching PF |

**Physics Forums | Science Articles, Homework Help, Discussion**