LaTeX forum ⇒ Math & ScienceVector arrows without italic

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
User avatar
Cham
Posts: 826
Joined: Sat Apr 02, 2011 4:06 pm

Vector arrows without italic

Postby Cham » Sat Dec 09, 2017 12:08 am

I'm experimenting with the esvect package for vector arrows, and I think its arrows are too big and fat (they're just too obvious !). I prefer smaller, i.e. more subtle arrows, like the default symbols (actually, I usually don't use an arrow on vectors : I prefer up and bold symbols without an arrow, which is the modern notation for vectors). However, the default vector arrows are drawn with an oblique or italic-like shape. Is it possible to just remove the italic styling on the default vectors ?

Here's a MWE to mess with :
  1. \documentclass[12pt,letterpaper,twoside]{book}
  2. \usepackage{lmodern}
  3. \usepackage{amsmath}
  4. \usepackage{tensor}
  5. \usepackage[e]{esvect} % Choice of options a, b, c, d, e, f, g, h.
  6. \newcommand{\bvec}[1]{\mathbf{#1}}
  7.  
  8. \begin{document}
  9. Some nice but fat arrows from the \emph{esvect} package :
  10. \begin{equation}
  11. \vv{\bvec{i}} \cdot ( \vv{\bvec{j}} \times \vv{\bvec{k}} ) \ne \tensor{\vv{\bvec{u}}}{_r} = \vv*{\bvec{u}}{r} = \vv{\bvec{u}}_r.
  12. \end{equation}
  13. The default arrows have an italic-like shape that I want to remove :
  14. \begin{equation}
  15. \vec{\bvec{i}} \cdot ( \vec{\bvec{j}} \times \vec{\bvec{k}} ) \ne \tensor{\vec{\bvec{u}}}{_r} = \vec{\bvec{u}}_r.
  16. \end{equation}
  17.  
  18. \end{document}

mas
Posts: 204
Joined: Thu Dec 04, 2008 4:39 am

Postby mas » Sat Dec 09, 2017 4:35 am

Nice observation about the default vector arrow.

I personally use the option 'd' for esvect. Using 'a' gave me a thin arrow which looks similar in thickness to the default arrow.

Another reason why I prefer esvect is when using the vector on more than one character.
  1. \documentclass[12pt,letterpaper,twoside]{book}
  2. \usepackage{lmodern}
  3. \usepackage{amsmath}
  4. \usepackage{tensor}
  5. \usepackage[a]{esvect} % Choice of options a, b, c, d, e, f, g, h.
  6. \newcommand{\bvec}[1]{\mathbf{#1}}
  7.  
  8. \begin{document}
  9. Some nice but fat arrows from the \emph{esvect} package :
  10.  
  11. \begin{equation}
  12. \vv{\bvec{i}} \cdot ( \vv{\bvec{j}} \times \vv{\bvec{k}} )
  13. \ne \tensor{\vv{\bvec{u}}}{_r} = \vv*{\bvec{u}}{r} = \vv{\bvec{u}}_r.
  14. \end{equation}
  15.  
  16. The default arrows have an italic-like shape that I want to remove :
  17.  
  18. \begin{equation}
  19. \vec{\bvec{i}} \cdot ( \vec{\bvec{j}} \times \vec{\bvec{k}} )
  20. \ne \tensor{\vec{\bvec{u}}}{_r} = \vec{\bvec{u}}_r.
  21. \end{equation}
  22.  
  23. \[ \vv{\delta k} \;\; \vec{\delta k} \]
  24.  
  25. \end{document}

x.png
x.png (19.44 KiB) Viewed 393 times

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim

User avatar
Cham
Posts: 826
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Sat Dec 09, 2017 3:17 pm

In the last case, I prefer the arrow on "k" only, reading "variation of vector k", instead of "vector of variation of k" :
  1. \delta\vv{k} \;\; \delta\vec{k}


I prefer to get a constant lenght vector symbol on all mathematical expressions, than having a variable lenght. Of course, this is just a matter of taste.

While the esvect package is nice, its arrows are too long, with a large head. I prefer a smaller and more subtle arrow. See for example the effect on the unit vector "i" and "j". But I don't like much the italic shape of the default version.

mas
Posts: 204
Joined: Thu Dec 04, 2008 4:39 am

Postby mas » Sun Dec 10, 2017 3:43 am

Cham wrote:In the last case, I prefer the arrow on "k" only, reading "variation of vector k", instead of "vector of variation of k" :

I agree with that. Maybe choice of \delta was wrong :-) Sometimes I need to say \vec{AB}. Then esvect helps.

While the esvect package is nice, its arrows are too long, with a large head. I prefer a smaller and more subtle arrow.


A suggestion: Maybe you can edit the esvect font to create an alternate version to suit your tastes. That would provide another alternative for vector arrows.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim

User avatar
Cham
Posts: 826
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Sun Dec 10, 2017 6:45 pm

Well, I don't know how to do that. Is it even possible to edit the default vector arrows, to remove its italic shape?

mas
Posts: 204
Joined: Thu Dec 04, 2008 4:39 am

Postby mas » Mon Dec 11, 2017 3:12 am

It should be possible. Since the font sources are provided, a program like fontforge can be used to edit the font.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 3 guests