0

I'm trying to get the exact same arrow used in the \vec command. The \rightarrow command gives me an arrow that looks different. Looks like it's a different font. Anybody has any idea what's the secret behind the difference?

I know the the \vec give an italic or slanted font but that's not the entire explanation :)

Thanks for any insight!

Arrow difference between \vec and \rightarrow

2
  • Welcome to TSE. Which fonts are you using? Commented Feb 13, 2022 at 14:01
  • Thanks for the reply. I didn't set any specific font and this is the standard computer modern font, I think. I used LaTeXiT to produce the screenshot of my post and here is the header : \documentclass[10pt]{article} \usepackage[usenames]{color} \usepackage{amsmath} \usepackage[utf8]{inputenc}
    – Zaxonov
    Commented Feb 13, 2022 at 14:05

1 Answer 1

2

This is math accent 17E. I found the character code with \xshowcmd from the xpatch package. You can print the character by itself with \mathchar", however it will be in the accent position. To use it standalone you can lower and scale it. MWE:

\documentclass{article}
\usepackage{amsmath}
%\usepackage{xpatch}
\usepackage{graphicx}
\begin{document}
%\xshowcmd\vec
$\vec{v} \rightarrow \mathchar"17E$\raisebox{-6pt}{\scalebox{1.5}{$\mathchar"17E$}}
\end{document}

Result:

enter image description here

2
  • 1
    Very nice answer.
    – Sebastiano
    Commented Feb 13, 2022 at 22:08
  • Thanks a lot. A pinpoint answer! :D
    – Zaxonov
    Commented Feb 14, 2022 at 13:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .