How do I define a right arrow with bar in LaTeX?












7















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










share|improve this question









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
















7















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










share|improve this question









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














7












7








7


0






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










share|improve this question









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.



enter image description here







math-mode symbols






share|improve this question









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.











share|improve this question









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.









share|improve this question




share|improve this question








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



















  • 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










3 Answers
3






active

oldest

votes


















15














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}


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{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}





share|improve this answer































    11














    Something like this?



    documentclass{article}
    usepackage{mathtools}

    newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}

    begin{document}

    $ A myRightarrow B$

    end{document}


    enter image description here



    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|$}}}}


    enter image description here






    share|improve this answer


























    • 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



















    9














    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}


    enter image description here




    Caution: This doesn't work in subscript. I'm trying to find some solution...







    share|improve this answer





















    • 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













    • @samcarter Added! Thank you very much!

      – JouleV
      2 days ago












    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.










    draft saved

    draft discarded


















    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









    15














    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}


    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{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}





    share|improve this answer




























      15














      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}


      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{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}





      share|improve this answer


























        15












        15








        15







        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}


        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{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}





        share|improve this answer













        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}


        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{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}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        egregegreg

        730k8819283242




        730k8819283242























            11














            Something like this?



            documentclass{article}
            usepackage{mathtools}

            newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}

            begin{document}

            $ A myRightarrow B$

            end{document}


            enter image description here



            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|$}}}}


            enter image description here






            share|improve this answer


























            • 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
















            11














            Something like this?



            documentclass{article}
            usepackage{mathtools}

            newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}

            begin{document}

            $ A myRightarrow B$

            end{document}


            enter image description here



            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|$}}}}


            enter image description here






            share|improve this answer


























            • 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














            11












            11








            11







            Something like this?



            documentclass{article}
            usepackage{mathtools}

            newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}

            begin{document}

            $ A myRightarrow B$

            end{document}


            enter image description here



            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|$}}}}


            enter image description here






            share|improve this answer















            Something like this?



            documentclass{article}
            usepackage{mathtools}

            newcommand{myRightarrow}{mathrel{{Longrightarrow}!vcenter{hbox{$scriptscriptstyle|$}}}}

            begin{document}

            $ A myRightarrow B$

            end{document}


            enter image description here



            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|$}}}}


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            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



















            • 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











            9














            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}


            enter image description here




            Caution: This doesn't work in subscript. I'm trying to find some solution...







            share|improve this answer





















            • 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













            • @samcarter Added! Thank you very much!

              – JouleV
              2 days ago
















            9














            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}


            enter image description here




            Caution: This doesn't work in subscript. I'm trying to find some solution...







            share|improve this answer





















            • 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













            • @samcarter Added! Thank you very much!

              – JouleV
              2 days ago














            9












            9








            9







            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}


            enter image description here




            Caution: This doesn't work in subscript. I'm trying to find some solution...







            share|improve this answer















            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}


            enter image description here




            Caution: This doesn't work in subscript. I'm trying to find some solution...








            share|improve this answer














            share|improve this answer



            share|improve this answer








            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 example hspace{-0.45em} instead of hspace{-4.3pt}

              – samcarter
              2 days ago













            • @samcarter Added! Thank you very much!

              – JouleV
              2 days ago














            • 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













            • @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










            CXB is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Category:香港粉麵

            List *all* the tuples!

            Channel [V]