# \overrightarrow

Used to place a right-pointing arrow over an expression, commonly for vectors, directed segments, or transformations.

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

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Accents](https://texform.dev/latex/topics/accents) |
| Packages | base |
| Allowed mode | math |
| Tags | decoration |
| Commonality | medium |
| Kind | prefix |

## Syntax

### base

Argument specification: `m`

Used to place a right-pointing arrow over an expression, commonly for vectors, directed segments, or transformations.

## Examples

```latex
\overrightarrow{AB}
```

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

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| base | full | full | full |

## Usage frequency

0.10% of formulas in the measured corpus contain this entry, rank 107 of 263 entries with frequency data.

## In TeXForm

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

## Equivalent forms

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

approximate. \vec typically produces a shorter arrow over a single character, whereas \overrightarrow spans the entire expression

## See also

- [\\overbrace](https://texform.dev/latex/commands/overbrace)
- [\\overleftarrow](https://texform.dev/latex/commands/overleftarrow)
- [\\overleftrightarrow](https://texform.dev/latex/commands/overleftrightarrow)
- [\\overline](https://texform.dev/latex/commands/overline)
- [\\overparen](https://texform.dev/latex/commands/overparen)
- [\\underbrace](https://texform.dev/latex/commands/underbrace)
- [\\underleftarrow](https://texform.dev/latex/commands/underleftarrow)
- [\\underleftrightarrow](https://texform.dev/latex/commands/underleftrightarrow)
- [\\underline](https://texform.dev/latex/commands/underline)
- [\\underparen](https://texform.dev/latex/commands/underparen)
- [\\underrightarrow](https://texform.dev/latex/commands/underrightarrow)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \overrightarrow{a} | Positive: baseline | Pass | Pass | Pass |
| \overrightarrow a | Positive: bare[0] | Pass | Pass | Pass |
