How do I define a right arrow with bar in LaTeX?
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.

math-mode symbols
New contributor
CXB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
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.

math-mode symbols
New contributor
CXB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Might want to try detexify.kirelabs.org/classify.html otherwise I'm not too sure
– sab hoque
2 days ago
For what it's worth, the symbol does not seem to exist in unicode. Unless they have given it a really counter-intuitive name.
– Harald Hanche-Olsen
2 days ago
add a comment |
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.

math-mode symbols
New contributor
CXB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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.

math-mode symbols
math-mode symbols
New contributor
CXB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
CXB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 days ago
Davislor
6,9741431
6,9741431
New contributor
CXB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 days ago
CXBCXB
654
654
New contributor
CXB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
CXB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
CXB is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Might want to try detexify.kirelabs.org/classify.html otherwise I'm not too sure
– sab hoque
2 days ago
For what it's worth, the symbol does not seem to exist in unicode. Unless they have given it a really counter-intuitive name.
– Harald Hanche-Olsen
2 days ago
add a comment |
Might want to try detexify.kirelabs.org/classify.html otherwise I'm not too sure
– sab hoque
2 days ago
For what it's worth, the symbol does not seem to exist in unicode. Unless they have given it a really counter-intuitive name.
– Harald Hanche-Olsen
2 days ago
Might want to try detexify.kirelabs.org/classify.html otherwise I'm not too sure
– sab hoque
2 days ago
Might want to try detexify.kirelabs.org/classify.html otherwise I'm not too sure
– sab hoque
2 days ago
For what it's worth, the symbol does not seem to exist in unicode. Unless they have given it a really counter-intuitive name.
– Harald Hanche-Olsen
2 days ago
For what it's worth, the symbol does not seem to exist in unicode. Unless they have given it a really counter-intuitive name.
– Harald Hanche-Olsen
2 days ago
add a comment |
3 Answers
3
active
oldest
votes
The stmaryrd font has mapsfromchar:
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
newcommand{Rightarrowbar}{Rightarrowmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}

If stmaryrd is not an option for you, it's possible to reflect mapstochar:
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
newcommand{fakedmapsfromchar}{%
mathrel{mathpalettereflectmathcharmapstochar}%
}
makeatletter
newcommand{reflectmathchar}[2]{%
reflectbox{$m@th#1#2$}%
}
makeatother
newcommand{Rightarrowbar}{Rightarrowfakedmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}
add a comment |
Something like this?
documentclass{article}
usepackage{mathtools}
newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}
begin{document}
$ A myRightarrow B$
end{document}

Edit:
If you want the final bar to have the same width as the Rightarrow, you can use two consecutive | with some kerning between them:
newcommand{myvarRightarrow}{mathrel{{ =⇒ }!vcenter{hbox{$ scriptscriptstyle|mkern-5.4mu|$}}}}

Doesn't this have uneven stroke widths due to scaling the bar part?
– Joey
yesterday
That's right. I propose a work-around in my update.
– Bernard
yesterday
add a comment |
One can always build a symbol by himself (thanks to samcarter, this is a scalable version):
documentclass[margin=1mm]{standalone}
usepackage{graphicx}
usepackage{amssymb}
newcommand{yoursymbol}{mathbin{Rightarrowhspace{-0.45em}vcenter{hbox{scalebox{0.8}{$shortmid$}}}}}
begin{document}
$1yoursymbol2$ {Huge $1yoursymbol2$}
end{document}

Caution: This doesn't work in subscript. I'm trying to find some solution...
2
If you use a unit that scales with the font, this will also work with other font sizes. For examplehspace{-0.45em}instead ofhspace{-4.3pt}
– samcarter
2 days ago
@samcarter Added! Thank you very much!
– JouleV
2 days ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
CXB is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481480%2fhow-do-i-define-a-right-arrow-with-bar-in-latex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
The stmaryrd font has mapsfromchar:
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
newcommand{Rightarrowbar}{Rightarrowmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}

If stmaryrd is not an option for you, it's possible to reflect mapstochar:
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
newcommand{fakedmapsfromchar}{%
mathrel{mathpalettereflectmathcharmapstochar}%
}
makeatletter
newcommand{reflectmathchar}[2]{%
reflectbox{$m@th#1#2$}%
}
makeatother
newcommand{Rightarrowbar}{Rightarrowfakedmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}
add a comment |
The stmaryrd font has mapsfromchar:
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
newcommand{Rightarrowbar}{Rightarrowmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}

If stmaryrd is not an option for you, it's possible to reflect mapstochar:
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
newcommand{fakedmapsfromchar}{%
mathrel{mathpalettereflectmathcharmapstochar}%
}
makeatletter
newcommand{reflectmathchar}[2]{%
reflectbox{$m@th#1#2$}%
}
makeatother
newcommand{Rightarrowbar}{Rightarrowfakedmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}
add a comment |
The stmaryrd font has mapsfromchar:
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
newcommand{Rightarrowbar}{Rightarrowmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}

If stmaryrd is not an option for you, it's possible to reflect mapstochar:
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
newcommand{fakedmapsfromchar}{%
mathrel{mathpalettereflectmathcharmapstochar}%
}
makeatletter
newcommand{reflectmathchar}[2]{%
reflectbox{$m@th#1#2$}%
}
makeatother
newcommand{Rightarrowbar}{Rightarrowfakedmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}
The stmaryrd font has mapsfromchar:
documentclass{article}
usepackage{amsmath}
usepackage{stmaryrd}
newcommand{Rightarrowbar}{Rightarrowmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}

If stmaryrd is not an option for you, it's possible to reflect mapstochar:
documentclass{article}
usepackage{amsmath}
usepackage{graphicx}
newcommand{fakedmapsfromchar}{%
mathrel{mathpalettereflectmathcharmapstochar}%
}
makeatletter
newcommand{reflectmathchar}[2]{%
reflectbox{$m@th#1#2$}%
}
makeatother
newcommand{Rightarrowbar}{Rightarrowfakedmapsfromchar}
newcommand{Leftarrowbar}{mapstocharLeftarrow}
begin{document}
$aRightarrowbar b$
$aLeftarrowbar b$
end{document}
answered 2 days ago
egregegreg
730k8819283242
730k8819283242
add a comment |
add a comment |
Something like this?
documentclass{article}
usepackage{mathtools}
newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}
begin{document}
$ A myRightarrow B$
end{document}

Edit:
If you want the final bar to have the same width as the Rightarrow, you can use two consecutive | with some kerning between them:
newcommand{myvarRightarrow}{mathrel{{ =⇒ }!vcenter{hbox{$ scriptscriptstyle|mkern-5.4mu|$}}}}

Doesn't this have uneven stroke widths due to scaling the bar part?
– Joey
yesterday
That's right. I propose a work-around in my update.
– Bernard
yesterday
add a comment |
Something like this?
documentclass{article}
usepackage{mathtools}
newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}
begin{document}
$ A myRightarrow B$
end{document}

Edit:
If you want the final bar to have the same width as the Rightarrow, you can use two consecutive | with some kerning between them:
newcommand{myvarRightarrow}{mathrel{{ =⇒ }!vcenter{hbox{$ scriptscriptstyle|mkern-5.4mu|$}}}}

Doesn't this have uneven stroke widths due to scaling the bar part?
– Joey
yesterday
That's right. I propose a work-around in my update.
– Bernard
yesterday
add a comment |
Something like this?
documentclass{article}
usepackage{mathtools}
newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}
begin{document}
$ A myRightarrow B$
end{document}

Edit:
If you want the final bar to have the same width as the Rightarrow, you can use two consecutive | with some kerning between them:
newcommand{myvarRightarrow}{mathrel{{ =⇒ }!vcenter{hbox{$ scriptscriptstyle|mkern-5.4mu|$}}}}

Something like this?
documentclass{article}
usepackage{mathtools}
newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}
begin{document}
$ A myRightarrow B$
end{document}

Edit:
If you want the final bar to have the same width as the Rightarrow, you can use two consecutive | with some kerning between them:
newcommand{myvarRightarrow}{mathrel{{ =⇒ }!vcenter{hbox{$ scriptscriptstyle|mkern-5.4mu|$}}}}

edited yesterday
answered 2 days ago
BernardBernard
174k776207
174k776207
Doesn't this have uneven stroke widths due to scaling the bar part?
– Joey
yesterday
That's right. I propose a work-around in my update.
– Bernard
yesterday
add a comment |
Doesn't this have uneven stroke widths due to scaling the bar part?
– Joey
yesterday
That's right. I propose a work-around in my update.
– Bernard
yesterday
Doesn't this have uneven stroke widths due to scaling the bar part?
– Joey
yesterday
Doesn't this have uneven stroke widths due to scaling the bar part?
– Joey
yesterday
That's right. I propose a work-around in my update.
– Bernard
yesterday
That's right. I propose a work-around in my update.
– Bernard
yesterday
add a comment |
One can always build a symbol by himself (thanks to samcarter, this is a scalable version):
documentclass[margin=1mm]{standalone}
usepackage{graphicx}
usepackage{amssymb}
newcommand{yoursymbol}{mathbin{Rightarrowhspace{-0.45em}vcenter{hbox{scalebox{0.8}{$shortmid$}}}}}
begin{document}
$1yoursymbol2$ {Huge $1yoursymbol2$}
end{document}

Caution: This doesn't work in subscript. I'm trying to find some solution...
2
If you use a unit that scales with the font, this will also work with other font sizes. For examplehspace{-0.45em}instead ofhspace{-4.3pt}
– samcarter
2 days ago
@samcarter Added! Thank you very much!
– JouleV
2 days ago
add a comment |
One can always build a symbol by himself (thanks to samcarter, this is a scalable version):
documentclass[margin=1mm]{standalone}
usepackage{graphicx}
usepackage{amssymb}
newcommand{yoursymbol}{mathbin{Rightarrowhspace{-0.45em}vcenter{hbox{scalebox{0.8}{$shortmid$}}}}}
begin{document}
$1yoursymbol2$ {Huge $1yoursymbol2$}
end{document}

Caution: This doesn't work in subscript. I'm trying to find some solution...
2
If you use a unit that scales with the font, this will also work with other font sizes. For examplehspace{-0.45em}instead ofhspace{-4.3pt}
– samcarter
2 days ago
@samcarter Added! Thank you very much!
– JouleV
2 days ago
add a comment |
One can always build a symbol by himself (thanks to samcarter, this is a scalable version):
documentclass[margin=1mm]{standalone}
usepackage{graphicx}
usepackage{amssymb}
newcommand{yoursymbol}{mathbin{Rightarrowhspace{-0.45em}vcenter{hbox{scalebox{0.8}{$shortmid$}}}}}
begin{document}
$1yoursymbol2$ {Huge $1yoursymbol2$}
end{document}

Caution: This doesn't work in subscript. I'm trying to find some solution...
One can always build a symbol by himself (thanks to samcarter, this is a scalable version):
documentclass[margin=1mm]{standalone}
usepackage{graphicx}
usepackage{amssymb}
newcommand{yoursymbol}{mathbin{Rightarrowhspace{-0.45em}vcenter{hbox{scalebox{0.8}{$shortmid$}}}}}
begin{document}
$1yoursymbol2$ {Huge $1yoursymbol2$}
end{document}

Caution: This doesn't work in subscript. I'm trying to find some solution...
edited 2 days ago
answered 2 days ago
JouleVJouleV
8,64222154
8,64222154
2
If you use a unit that scales with the font, this will also work with other font sizes. For examplehspace{-0.45em}instead ofhspace{-4.3pt}
– samcarter
2 days ago
@samcarter Added! Thank you very much!
– JouleV
2 days ago
add a comment |
2
If you use a unit that scales with the font, this will also work with other font sizes. For examplehspace{-0.45em}instead ofhspace{-4.3pt}
– samcarter
2 days ago
@samcarter Added! Thank you very much!
– JouleV
2 days ago
2
2
If you use a unit that scales with the font, this will also work with other font sizes. For example
hspace{-0.45em} instead of hspace{-4.3pt}– samcarter
2 days ago
If you use a unit that scales with the font, this will also work with other font sizes. For example
hspace{-0.45em} instead of hspace{-4.3pt}– samcarter
2 days ago
@samcarter Added! Thank you very much!
– JouleV
2 days ago
@samcarter Added! Thank you very much!
– JouleV
2 days ago
add a comment |
CXB is a new contributor. Be nice, and check out our Code of Conduct.
CXB is a new contributor. Be nice, and check out our Code of Conduct.
CXB is a new contributor. Be nice, and check out our Code of Conduct.
CXB is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481480%2fhow-do-i-define-a-right-arrow-with-bar-in-latex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Might want to try detexify.kirelabs.org/classify.html otherwise I'm not too sure
– sab hoque
2 days ago
For what it's worth, the symbol does not seem to exist in unicode. Unless they have given it a really counter-intuitive name.
– Harald Hanche-Olsen
2 days ago