# \vectorarrow

Used in physics notation to denote a bold vector with an arrow accent.

https://texform.dev/latex/commands/vectorarrow

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Physics: vectors](https://texform.dev/latex/topics/physics-vectors) |
| Packages | physics |
| Allowed mode | math |
| Tags |  |
| Commonality | low |
| Kind | prefix |

## Syntax

### physics

Argument specification: `s m`

Used in physics notation to denote a bold vector with an arrow accent.

## Examples

```latex
\vectorarrow{v}
```

[Open in Playground](https://play.texform.dev/?input=%5Cvectorarrow%7Bv%7D)

```latex
\vectorarrow*{v}
```

[Open in Playground](https://play.texform.dev/?input=%5Cvectorarrow*%7Bv%7D)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| physics | full | none | full |

## In TeXForm

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

### Expands to (physics)

```latex
\vectorarrow{#1}
```

→

```latex
\vec{\vb{#1}}
```

If the optional star is present, the template parts are joined with '*', so \vectorarrow*{#1} reparses as \vec{\vb*{#1}}.

### [physics/vectorarrow-to-va](https://texform.dev/rules/physics/vectorarrow-to-va)

Collapse vectorarrow to the short va helper.

Level: authoring. Fidelity: render.

```latex
\vectorarrow{#1}
```

→

```latex
\va{#1}
```

```latex
\vectorarrow{r}(t)=\vb{r}_0+t\vb{v}
```

→

```latex
\va{r}(t)=\vb{r}_0+t\vb{v}
```

## Equivalent forms

```latex
\vec{\vb{#1}}
```

exact. 

```latex
\vec{\vb*{#1}}
```

exact. Starred form.

```latex
\va{#1}
```

exact. 

```latex
\va*{#1}
```

exact. Starred alias form.

## See also

- [\\va](https://texform.dev/latex/commands/va)
- [\\vectorunit](https://texform.dev/latex/commands/vectorunit)
- [\\vu](https://texform.dev/latex/commands/vu)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \vectorarrow{a} | Positive: baseline | Pass | Fail | Pass |
| \vectorarrow*{a} | Positive: vary:s[0] | Pass | Fail | Pass |
| \vectorarrow a | Positive: bare[1] | Pass | Fail | Pass |
