A→
This template creates vectors using arrow notation in HTML, as an alternative to boldface.
Parameters[edit]
The template has three parameters:
- Vector symbol: Insert the character, i.e. A, Ω etc. Default is A; to immediately show the template is in use, and prevent the arrow moving and overlapping text to one side.
- Arrow direction: Select one of left, right, or double for the arrows →, ←, or ↔ respectively. The default is right.
- Arrow position: Select one of under or over to place the arrow over or under the character symbolizing the vector. The default is over.
The defaults for 2 and 3 are set to match the LaTeX analogue of \vec
: .
Examples[edit]
No {{math}}[edit]
Illustration of all possibilities for italic A:
Default | Overarrow | Underarrow | |
---|---|---|---|
Default | A→ | A→ | A→ |
Left | A← | A← | A← |
Right | A→ | A→ | A→ |
Double | A↔ | A↔ | A↔ |
with code:
Default | Overarrow | Underarrow | |
---|---|---|---|
Default | {} | {} | {} |
Left | {} | {} | {} |
Right | {} | {} | {} |
Double | {} | {} | {} |
Formulae:
Vorticity of a fluid with velocity field u→:
- ω→ = ∇→ × u→
Tangential velocity in rigid body dynamics:
- v→ = ω→ × r→
- ^{dA′→}⁄_{dt} = ^{dA→}⁄_{dt} − ω→ × A→
- dA′→/dt = dA→/dt − ω→ × A→
Including {{math}}[edit]
Illustration of all possibilities for italic A:
Default | Overarrow | Underarrow | |
---|---|---|---|
Default | A→ | A→ | A→ |
Left | A← | A← | A← |
Right | A→ | A→ | A→ |
Double | A↔ | A↔ | A↔ |
with code:
Default | Overarrow | Underarrow | |
---|---|---|---|
Default | {}}} | {}}} | {}}} |
Left | {}}} | {}}} | {}}} |
Right | {}}} | {}}} | {}}} |
Double | {}}} | {}}} | {}}} |
Formulae:
Vorticity of a fluid with velocity field u→:
- ω→ = ∇→ × u→
Tangential velocity in rigid body dynamics:
- v→ = ω→ × r→
- ^{dA′→}⁄_{dt} = ^{dA→}⁄_{dt} − ω→ × A→
- dA′→/dt = dA→/dt − ω→ × A→
See also[edit]
- For quantum state vectors, see {{braket}}
- For more general templates, allowing arbitrary characters and diacritics set above or below one another, see {{overset}} and {{underset}}
The above documentation is transcluded from Template:Vec/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |