[Tex/LaTex] How to define a right arrow with bar in LaTeX

math-modesymbols

could any one tell me how I can define the following symbol in Latex please?
It looks like an implies symbol concatenated with a vertical bar.

enter image description here

Best Answer

The stmaryrd font has \mapsfromchar:

\documentclass{article}
\usepackage{amsmath}
\usepackage{stmaryrd}

\newcommand{\Rightarrowbar}{\Rightarrow\mapsfromchar}
\newcommand{\Leftarrowbar}{\mapstochar\Leftarrow}

\begin{document}

$a\Rightarrowbar b$

$a\Leftarrowbar b$

\end{document}

enter image description here

If stmaryrd is not an option for you, it's possible to reflect \mapstochar:

\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}

\newcommand{\fakedmapsfromchar}{%
  \mathrel{\mathpalette\reflectmathchar\mapstochar}%
}
\makeatletter
\newcommand{\reflectmathchar}[2]{%
  \reflectbox{$\m@th#1#2$}%
}
\makeatother

\newcommand{\Rightarrowbar}{\Rightarrow\fakedmapsfromchar}
\newcommand{\Leftarrowbar}{\mapstochar\Leftarrow}

\begin{document}

$a\Rightarrowbar b$

$a\Leftarrowbar b$

\end{document}
Related Question