Entries Tagged ‘LaTeX vector notation’:

Three Styles for LaTeX Vector Notation

LaTeX Vectors by Creativity103 LaTeX is a very flexible program for typesetting math, but sometimes figuring out how to get the effect you want can be tricky. Most of the stock math commands are written for typesetting math or computer science papers for academic journals, so you might need to dig deeper into LaTeX commands to get the vector notation styles that are common in physics textbooks and articles.

This post shows how to typeset a LaTeX vector with an arrow, a hat, or bold. Read the rest…

Tags: , , , , , , ,

Comments (2)


Bold vectors in LaTeX

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, especially in fractions. Textbooks use bold face for vectors, so here’s how to do that in LaTeX.

\let\oldhat\hat
\renewcommand{\vec}[1]{\mathbf{#1}}
\renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}

This also makes unit vectors (typeset with \hat) bold.

Tags: , , , , , ,

Comments (16)