Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm investigating about possible strategies to get nice vectors, discarding bold fonts. To make it simple, I'm not very happy with traditional ways of writing vectors with arrows. Please compare $\overrightarrow{OM}$, $\overrightarrow{M}$, $\vec{OM}$ and $\vec{M}$. My preference goes to the $\vec{M}$ command which is not suited for longer names like $\vec{OM}$ and I do not like \overrightarrow. I would be interested in possibles ways to overcome these problems. Thank you

share|improve this question
3  
One thought is that $\vec{M}$ and $\vec{OM}$ are pretty different things: the first is the vector called 'M', the second the (nameless) vector from point O to point M (as you of course know). You'd want those to be formatted in very different ways, so the fact that $\vec{OM}$ doesn't work is neither surprising nor undesirable. –  Norman Gray Aug 18 '10 at 17:39
    
I think you are right but sometimes, you still need something like $\vec{OM}$ and none of the existing solutions look fine to me. –  pluton Aug 23 '10 at 2:45
add comment

3 Answers

up vote 15 down vote accepted

The esvect package allows to choose between several vector arrows:

alt text

Width (according to the argument) and size (according to the context, normal, subscripts, subsubscripts) are automatically calculated.

share|improve this answer
    
I stop using TeX's way of denoting vectors and \renewcommand\vec{\mathbold}. This is the case where everybody else is assuming bold letters the standard format for vectors. –  Leo Liu Aug 19 '10 at 6:18
    
but how do you make the difference between a vector written in a basis and a vector as an object? (same difference as a tensor and its respective matrix in a specific basis?) –  pluton Aug 23 '10 at 2:42
add comment

Just be sure to use your own newcommand as a wrapper, so that you can then make any changes you like. I recently changed the textbook I wrote for my class from bold-face notation to over-arrow notation. (I did this because the students preferred it. If, this year, the students prefer bold-face, I can go back to that in a jiffy.)

share|improve this answer
    
this is a very good advice. Most of latex works should be thought this way. –  pluton Aug 23 '10 at 2:43
add comment

This has long been a bugbear for me as well. While boldface is standard in my field, and good enough for almost all of my work, there have always been occasions when I wished for extensible and well-placed harpoons as well.

Prompted by your question, I've looked once more, and found a potential solution: I submit for your approval the harpoon package.

share|improve this answer
    
this package seems a bit old. –  pluton Aug 23 '10 at 13:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.