Difference between revisions of "Vectors"

From Wiki
Jump to navigation Jump to search
Line 7: Line 7:
=== \vec, <context>$\vec{\strut}$</context> ===
=== \vec, <context>$\vec{\strut}$</context> ===
The siplest way to write vectors is to use <code>\vec</code>:
The simplest way to write vectors is to use <code>\vec</code>:
<context source="yes">
<context source="yes">
$(\vec{\imath}, \vec{\jmath}, \vec{k})$
$(\vec{\imath}, \vec{\jmath}, \vec{k})$

Latest revision as of 18:16, 2 January 2021

This short article (being far from complete) is about Math and arrows used for vectors, as in .

If anyone feels like writing a more extensive article about math arrows in general, you're wellcome to do so.

Vectors with arrows


The simplest way to write vectors is to use \vec:

$(\vec{\imath}, \vec{\jmath}, \vec{k})$

However, that solution is not applicable when one needs to use longer arrows, as in:



For such cases, the plain format provides another command, \overrightarrow:


Hovever, again, that command seems to be unsuitable for short letters:

$(\overrightarrow{\imath}, \overrightarrow{\jmath}, \overrightarrow{k})$

which means that one would need to combine both commands at best.

Another nasty property of \overrightarrow is that it doesn't scale down (textstyle, scriptstyle, ...):

$(X_{Y_{AB}}, X_{Y_{\overrightarrow{AB}}})$

Wait a minute ... has it really been fixed in ConTeXt when compared to plain TeX ??? That's not fair! I cannot demonstrate the problem now! -- Mojca (crying)

Anyway, here's how it looks like in plain TeX:

Vectors with harpoons

In some countries vectors are written with harpoons as opposed to arrows. Plain TeX has no support for that, add to that the fact that fonts have no suitable glyphs.

TODO: clean the code (some might be in the core already), describe Aditya's macros (See: To-Do List)


TODO: compare sizes of different arrows (See: To-Do List)

Antykwa Toruńska

TODO: Jacko and Janusz have added some extra glyphs - explore, describe the problem & solution and draw (See: To-Do List)


See also

This is a My Way about a related topic: