Drawing a double headed LaTeX arrow

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite












To draw a LaTeX arrow I use the following code:



documentclassbeamer
beamertemplatenavigationsymbolsempty
usepackagetikz
usetikzlibraryarrows, arrows.meta
begindocument
beginframe[fragile,t]
frametitle
begintikzpicture[scale=.9, transform shape]
draw [ultra thick, green!40!black, -latex'] (-.72,4.) -- +(-90:1.4);
endtikzpicture
endframe
enddocument


Which gives me the left arrow. To make it a double headed arrow, I use a node to fake the second head, which gives me the right double headed arrow.



begintikzpicture[scale=.9, transform shape]
draw [ultra thick, green, -latex'] (-.72,4.) node [minimum size=.8cm, xshift=0cm, yshift=-.26cm, path picture=draw [ultra thick, green, solid, -latex'] (0,0) -- +(90:.4cm);] -- +(-90:1.4);
endtikzpicture


Enter image description here



Is there a way to make a true LaTeX double headed arrow without the use of the node to fake the second head?







share|improve this question


















  • 2




    Why don't you use latex'-latex' ?
    – BambOo
    Aug 8 at 9:05










  • Thank you. I tried -latex' -latex' which gave me an error, I did not know that I have to omit the first -
    – Hany
    Aug 8 at 9:09







  • 2




    - in arrows definitions represents the arrow line, while < or >, or whatever style, define the kind of tip and position: <-> two sided arrow, -> from left to right, <- from right to left.
    – Ignasi
    Aug 8 at 10:05















up vote
4
down vote

favorite












To draw a LaTeX arrow I use the following code:



documentclassbeamer
beamertemplatenavigationsymbolsempty
usepackagetikz
usetikzlibraryarrows, arrows.meta
begindocument
beginframe[fragile,t]
frametitle
begintikzpicture[scale=.9, transform shape]
draw [ultra thick, green!40!black, -latex'] (-.72,4.) -- +(-90:1.4);
endtikzpicture
endframe
enddocument


Which gives me the left arrow. To make it a double headed arrow, I use a node to fake the second head, which gives me the right double headed arrow.



begintikzpicture[scale=.9, transform shape]
draw [ultra thick, green, -latex'] (-.72,4.) node [minimum size=.8cm, xshift=0cm, yshift=-.26cm, path picture=draw [ultra thick, green, solid, -latex'] (0,0) -- +(90:.4cm);] -- +(-90:1.4);
endtikzpicture


Enter image description here



Is there a way to make a true LaTeX double headed arrow without the use of the node to fake the second head?







share|improve this question


















  • 2




    Why don't you use latex'-latex' ?
    – BambOo
    Aug 8 at 9:05










  • Thank you. I tried -latex' -latex' which gave me an error, I did not know that I have to omit the first -
    – Hany
    Aug 8 at 9:09







  • 2




    - in arrows definitions represents the arrow line, while < or >, or whatever style, define the kind of tip and position: <-> two sided arrow, -> from left to right, <- from right to left.
    – Ignasi
    Aug 8 at 10:05













up vote
4
down vote

favorite









up vote
4
down vote

favorite











To draw a LaTeX arrow I use the following code:



documentclassbeamer
beamertemplatenavigationsymbolsempty
usepackagetikz
usetikzlibraryarrows, arrows.meta
begindocument
beginframe[fragile,t]
frametitle
begintikzpicture[scale=.9, transform shape]
draw [ultra thick, green!40!black, -latex'] (-.72,4.) -- +(-90:1.4);
endtikzpicture
endframe
enddocument


Which gives me the left arrow. To make it a double headed arrow, I use a node to fake the second head, which gives me the right double headed arrow.



begintikzpicture[scale=.9, transform shape]
draw [ultra thick, green, -latex'] (-.72,4.) node [minimum size=.8cm, xshift=0cm, yshift=-.26cm, path picture=draw [ultra thick, green, solid, -latex'] (0,0) -- +(90:.4cm);] -- +(-90:1.4);
endtikzpicture


Enter image description here



Is there a way to make a true LaTeX double headed arrow without the use of the node to fake the second head?







share|improve this question














To draw a LaTeX arrow I use the following code:



documentclassbeamer
beamertemplatenavigationsymbolsempty
usepackagetikz
usetikzlibraryarrows, arrows.meta
begindocument
beginframe[fragile,t]
frametitle
begintikzpicture[scale=.9, transform shape]
draw [ultra thick, green!40!black, -latex'] (-.72,4.) -- +(-90:1.4);
endtikzpicture
endframe
enddocument


Which gives me the left arrow. To make it a double headed arrow, I use a node to fake the second head, which gives me the right double headed arrow.



begintikzpicture[scale=.9, transform shape]
draw [ultra thick, green, -latex'] (-.72,4.) node [minimum size=.8cm, xshift=0cm, yshift=-.26cm, path picture=draw [ultra thick, green, solid, -latex'] (0,0) -- +(90:.4cm);] -- +(-90:1.4);
endtikzpicture


Enter image description here



Is there a way to make a true LaTeX double headed arrow without the use of the node to fake the second head?









share|improve this question













share|improve this question




share|improve this question








edited Aug 8 at 20:37









Peter Mortensen

48136




48136










asked Aug 8 at 9:01









Hany

703314




703314







  • 2




    Why don't you use latex'-latex' ?
    – BambOo
    Aug 8 at 9:05










  • Thank you. I tried -latex' -latex' which gave me an error, I did not know that I have to omit the first -
    – Hany
    Aug 8 at 9:09







  • 2




    - in arrows definitions represents the arrow line, while < or >, or whatever style, define the kind of tip and position: <-> two sided arrow, -> from left to right, <- from right to left.
    – Ignasi
    Aug 8 at 10:05













  • 2




    Why don't you use latex'-latex' ?
    – BambOo
    Aug 8 at 9:05










  • Thank you. I tried -latex' -latex' which gave me an error, I did not know that I have to omit the first -
    – Hany
    Aug 8 at 9:09







  • 2




    - in arrows definitions represents the arrow line, while < or >, or whatever style, define the kind of tip and position: <-> two sided arrow, -> from left to right, <- from right to left.
    – Ignasi
    Aug 8 at 10:05








2




2




Why don't you use latex'-latex' ?
– BambOo
Aug 8 at 9:05




Why don't you use latex'-latex' ?
– BambOo
Aug 8 at 9:05












Thank you. I tried -latex' -latex' which gave me an error, I did not know that I have to omit the first -
– Hany
Aug 8 at 9:09





Thank you. I tried -latex' -latex' which gave me an error, I did not know that I have to omit the first -
– Hany
Aug 8 at 9:09





2




2




- in arrows definitions represents the arrow line, while < or >, or whatever style, define the kind of tip and position: <-> two sided arrow, -> from left to right, <- from right to left.
– Ignasi
Aug 8 at 10:05





- in arrows definitions represents the arrow line, while < or >, or whatever style, define the kind of tip and position: <-> two sided arrow, -> from left to right, <- from right to left.
– Ignasi
Aug 8 at 10:05











2 Answers
2






active

oldest

votes

















up vote
4
down vote



accepted










To provide a complete answer :



You can use the latex'-latex' style definition.



More documentation is available on arrows definition at section 16.2 page 182 of the pgf manual.






share|improve this answer




















  • Thank you very much for your answer. I will read this section thoroughly.
    – Hany
    Aug 8 at 9:44

















up vote
5
down vote













I hope this helps:



documentclassbeamer
beamertemplatenavigationsymbolsempty
usepackagetikz
usetikzlibraryarrows, arrows.meta
begindocument
beginframe[fragile,t]
frametitle
begintikzpicture[scale=.9, transform shape]
draw[>=triangle 45, <->] (0,0) -- (2,0);
endtikzpicture
endframe
enddocument


which shall give you



enter image description here



Extra



You could choose to play probably play with draw[>=style options, <->, color options] (0,0) -- (2,0);



enter image description here






share|improve this answer




















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f445108%2fdrawing-a-double-headed-latex-arrow%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote



    accepted










    To provide a complete answer :



    You can use the latex'-latex' style definition.



    More documentation is available on arrows definition at section 16.2 page 182 of the pgf manual.






    share|improve this answer




















    • Thank you very much for your answer. I will read this section thoroughly.
      – Hany
      Aug 8 at 9:44














    up vote
    4
    down vote



    accepted










    To provide a complete answer :



    You can use the latex'-latex' style definition.



    More documentation is available on arrows definition at section 16.2 page 182 of the pgf manual.






    share|improve this answer




















    • Thank you very much for your answer. I will read this section thoroughly.
      – Hany
      Aug 8 at 9:44












    up vote
    4
    down vote



    accepted







    up vote
    4
    down vote



    accepted






    To provide a complete answer :



    You can use the latex'-latex' style definition.



    More documentation is available on arrows definition at section 16.2 page 182 of the pgf manual.






    share|improve this answer












    To provide a complete answer :



    You can use the latex'-latex' style definition.



    More documentation is available on arrows definition at section 16.2 page 182 of the pgf manual.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 8 at 9:21









    BambOo

    2,355323




    2,355323











    • Thank you very much for your answer. I will read this section thoroughly.
      – Hany
      Aug 8 at 9:44
















    • Thank you very much for your answer. I will read this section thoroughly.
      – Hany
      Aug 8 at 9:44















    Thank you very much for your answer. I will read this section thoroughly.
    – Hany
    Aug 8 at 9:44




    Thank you very much for your answer. I will read this section thoroughly.
    – Hany
    Aug 8 at 9:44










    up vote
    5
    down vote













    I hope this helps:



    documentclassbeamer
    beamertemplatenavigationsymbolsempty
    usepackagetikz
    usetikzlibraryarrows, arrows.meta
    begindocument
    beginframe[fragile,t]
    frametitle
    begintikzpicture[scale=.9, transform shape]
    draw[>=triangle 45, <->] (0,0) -- (2,0);
    endtikzpicture
    endframe
    enddocument


    which shall give you



    enter image description here



    Extra



    You could choose to play probably play with draw[>=style options, <->, color options] (0,0) -- (2,0);



    enter image description here






    share|improve this answer
























      up vote
      5
      down vote













      I hope this helps:



      documentclassbeamer
      beamertemplatenavigationsymbolsempty
      usepackagetikz
      usetikzlibraryarrows, arrows.meta
      begindocument
      beginframe[fragile,t]
      frametitle
      begintikzpicture[scale=.9, transform shape]
      draw[>=triangle 45, <->] (0,0) -- (2,0);
      endtikzpicture
      endframe
      enddocument


      which shall give you



      enter image description here



      Extra



      You could choose to play probably play with draw[>=style options, <->, color options] (0,0) -- (2,0);



      enter image description here






      share|improve this answer






















        up vote
        5
        down vote










        up vote
        5
        down vote









        I hope this helps:



        documentclassbeamer
        beamertemplatenavigationsymbolsempty
        usepackagetikz
        usetikzlibraryarrows, arrows.meta
        begindocument
        beginframe[fragile,t]
        frametitle
        begintikzpicture[scale=.9, transform shape]
        draw[>=triangle 45, <->] (0,0) -- (2,0);
        endtikzpicture
        endframe
        enddocument


        which shall give you



        enter image description here



        Extra



        You could choose to play probably play with draw[>=style options, <->, color options] (0,0) -- (2,0);



        enter image description here






        share|improve this answer












        I hope this helps:



        documentclassbeamer
        beamertemplatenavigationsymbolsempty
        usepackagetikz
        usetikzlibraryarrows, arrows.meta
        begindocument
        beginframe[fragile,t]
        frametitle
        begintikzpicture[scale=.9, transform shape]
        draw[>=triangle 45, <->] (0,0) -- (2,0);
        endtikzpicture
        endframe
        enddocument


        which shall give you



        enter image description here



        Extra



        You could choose to play probably play with draw[>=style options, <->, color options] (0,0) -- (2,0);



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 8 at 9:17









        Raaja

        1,4571522




        1,4571522



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f445108%2fdrawing-a-double-headed-latex-arrow%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            List of Gilmore Girls characters

            Confectionery