\vv
which looks like two line segments overlap in the middle. I want to make the vector arrow a smooth, continuous arrow with no overlap in the middle. You can see this if you compile the below code and see the output PDF.Code: Select all
\documentclass[fleqn]{article}
\usepackage[b]{esvect}
\makeatletter
\def\vectfill@{\traitfill@\relbaredd\relbareda\fldr}
%\end{macrocode}
%Construction of the arrow:
% \begin{macrocode}
\def\traitfill@#1#2#3#4{%
$\m@th\mkern2mu\relax#4#1\mkern-1.5mu%on met \relbaredd au d\’ebut
\cleaders\hbox{$#4\mkern0mu#2\mkern0mu$}\hfill % remplit avec relbareda
\mkern-1.5mu#3$%
}
\def\overvect@#1#2#3{\vbox{\ialign{##\crcr%
\noalign{\kern0pt\nointerlineskip}#1#2\crcr%
\noalign{\kern1.3pt\nointerlineskip}$\m@th\hfil#2#3\hfil$\crcr}}}
\makeatother
\begin{document}
$\vv{x}$
\end{document}
I have included the definition codes under headings "Definition of the characters used to draw the vector" an "Construction of the whole vector" from the esvect package in my preamble. I have changed the vertical shift of the vector arrow to
1.3pt
in this line.Code: Select all
\noalign{\kern1.3pt\nointerlineskip}$\m@th\hfil#2#3\hfil$\crcr}}}