- 17,871
- 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 \vec{r}, but especially in fractions. \frac{2\pi}{\vec{r}}Don't get me wrong, it's not horrible ...
Textbooks use bold face for vectors, compare the above with; inline: \mathbf{r}, and in a fraction: \frac{2\pi}{\mathbf{r}}...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 \LaTeX[\itex] to do this as follows:<br /> <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"> <div class="bbCodeBlock-title"> <i class="fa--xf fal fa-code "><svg xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" ><use href="/data/local/icons/light.svg?v=1756418028#code"></use></svg></i> Code: </div> <div class="bbCodeBlock-content" dir="ltr"> <pre class="bbCodeCode" dir="ltr" data-xf-init="code-block" data-lang=""><code>\let\oldhat\hat \renewcommand{\vec}[1]{\mathbf{#1}} \renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}</code></pre> </div> </div>This also makes unit vectors (typeset with \hat) bold.<br /> <br /> Maybe it's just what you're used to and it's all just cultural?<br /> 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 \vec{r}, but especially in fractions. \frac{2\pi}{\vec{r}}Don't get me wrong, it's not horrible ...
Textbooks use bold face for vectors, compare the above with; inline: \mathbf{r}, and in a fraction: \frac{2\pi}{\mathbf{r}}...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 \LaTeX[\itex] to do this as follows:<br /> <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"> <div class="bbCodeBlock-title"> <i class="fa--xf fal fa-code "><svg xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" ><use href="/data/local/icons/light.svg?v=1756418028#code"></use></svg></i> Code: </div> <div class="bbCodeBlock-content" dir="ltr"> <pre class="bbCodeCode" dir="ltr" data-xf-init="code-block" data-lang=""><code>\let\oldhat\hat \renewcommand{\vec}[1]{\mathbf{#1}} \renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}</code></pre> </div> </div>This also makes unit vectors (typeset with \hat) bold.<br /> <br /> Maybe it's just what you're used to and it's all just cultural?<br /> What do people think?