Theoretically, you could use \xrightarrow[\sim]{}
(from amsmath
) or \xlongrightarrow[\sim]{}
(from extarrows
). Both look horrible though. The \sim
on top of the arrow (like \xlongrightarrow{\sim}
) looks somewhat better.
Unicode defines ⥴ (U+2974 RIGHTWARDS ARROW ABOVE TILDE OPERATOR), which you can use in case you run Xe/LuaLaTeX with unicode-math
(either directly or with the \rightarrowsimilar
alias). There are also ⥱ (\equalrightarrow
), ⥲ (\similarrightarrow
), ⥳ (\leftarrowsimilar
), ⥵ (\rightarrowapprox
) and other strange things.
You could, of course, use TikZ for this:
The symbol will scale with your font size, since it uses ex
to define the path.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\newcommand\shield{%
\tikz [baseline] \draw (0,1.75ex) -- (0,0.75ex) arc [radius=0.75ex, start angle=-180, end angle=0] -- (1.5ex,1.75ex) -- cycle;%
}
A shield: \shield
\end{document}
If you're feeling fancy, you could parametrise it a bit:
\documentclass[border=3mm]{standalone}
\usepackage{tikz}
\begin{document}
\newcommand\shield[1][]{%
\tikzset{
shield width/.store in=\shieldwidth,
shield width=1.5ex,
shield height/.store in=\shieldheight,
shield height=1.75ex
}%
\tikz [baseline,#1] \draw (0,\shieldheight) -- (0,\shieldwidth/2) arc [radius=\shieldwidth/2, start angle=-180, end angle=0] -- (\shieldwidth,\shieldheight) -- cycle;%
}
A shield: \shield
A wide shield: \shield[shield width=2ex]
A tall shield: \shield[shield height=3ex]
\end{document}
Best Answer
See Sergio's answer if you can use a modern Unicode engine like LuaLaTeX (or XeLaTeX).
If you want to access the symbol in pdfLaTeX, it helps to know that this is an obsolete IPA symbol, so you can use the
tipa
package: It provides the symbol as\textctt
(standing for text curly tail t):Also a general hint if you don't find symbols using detexify: There is a similar site https://shapecatcher.com/ which searches all Unicode symbols.