Arrow between lines in the align environment












3















I want to add some texts between lines in the align* environment like this:



enter image description here



I tried the following code:



begin{align*}
abc &= def + def + def + def tikzmark{a}\
&= ghi + ghi tikzmark{b}\
&= jkltikzmark{c}\
&= mno + mnotikzmark{d}
end{align*}
begin{tikzpicture}[remember picture, overlay]
draw[->] ([xshift=2mm] pic cs:a)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize defitnition}
([xshift=2mm] pic cs:b);
draw[->] ([xshift=2mm] pic cs:c)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize blablabla}
([xshift=2mm] pic cs:d);
end{tikzpicture}


but it only gives



enter image description here



There are two problems:



(i) I want to make every arrow aligned vertically



(ii) As I am going to use this arrow very frequently, I want to define it as a sort of newcommand thing.



What can I do?










share|improve this question









New contributor




user182849 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Welcome to TeX.SE! Can you please show us what you have tried so far?

    – Kurt
    4 hours ago
















3















I want to add some texts between lines in the align* environment like this:



enter image description here



I tried the following code:



begin{align*}
abc &= def + def + def + def tikzmark{a}\
&= ghi + ghi tikzmark{b}\
&= jkltikzmark{c}\
&= mno + mnotikzmark{d}
end{align*}
begin{tikzpicture}[remember picture, overlay]
draw[->] ([xshift=2mm] pic cs:a)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize defitnition}
([xshift=2mm] pic cs:b);
draw[->] ([xshift=2mm] pic cs:c)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize blablabla}
([xshift=2mm] pic cs:d);
end{tikzpicture}


but it only gives



enter image description here



There are two problems:



(i) I want to make every arrow aligned vertically



(ii) As I am going to use this arrow very frequently, I want to define it as a sort of newcommand thing.



What can I do?










share|improve this question









New contributor




user182849 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Welcome to TeX.SE! Can you please show us what you have tried so far?

    – Kurt
    4 hours ago














3












3








3








I want to add some texts between lines in the align* environment like this:



enter image description here



I tried the following code:



begin{align*}
abc &= def + def + def + def tikzmark{a}\
&= ghi + ghi tikzmark{b}\
&= jkltikzmark{c}\
&= mno + mnotikzmark{d}
end{align*}
begin{tikzpicture}[remember picture, overlay]
draw[->] ([xshift=2mm] pic cs:a)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize defitnition}
([xshift=2mm] pic cs:b);
draw[->] ([xshift=2mm] pic cs:c)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize blablabla}
([xshift=2mm] pic cs:d);
end{tikzpicture}


but it only gives



enter image description here



There are two problems:



(i) I want to make every arrow aligned vertically



(ii) As I am going to use this arrow very frequently, I want to define it as a sort of newcommand thing.



What can I do?










share|improve this question









New contributor




user182849 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I want to add some texts between lines in the align* environment like this:



enter image description here



I tried the following code:



begin{align*}
abc &= def + def + def + def tikzmark{a}\
&= ghi + ghi tikzmark{b}\
&= jkltikzmark{c}\
&= mno + mnotikzmark{d}
end{align*}
begin{tikzpicture}[remember picture, overlay]
draw[->] ([xshift=2mm] pic cs:a)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize defitnition}
([xshift=2mm] pic cs:b);
draw[->] ([xshift=2mm] pic cs:c)
to [out=0,in=0 ]
node[midway,anchor=west,xshift=3mm] {footnotesize blablabla}
([xshift=2mm] pic cs:d);
end{tikzpicture}


but it only gives



enter image description here



There are two problems:



(i) I want to make every arrow aligned vertically



(ii) As I am going to use this arrow very frequently, I want to define it as a sort of newcommand thing.



What can I do?







tikz-pgf align arrows






share|improve this question









New contributor




user182849 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




user182849 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 hours ago









Sandy G

2,6671321




2,6671321






New contributor




user182849 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 4 hours ago









user182849user182849

183




183




New contributor




user182849 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user182849 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user182849 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    Welcome to TeX.SE! Can you please show us what you have tried so far?

    – Kurt
    4 hours ago














  • 1





    Welcome to TeX.SE! Can you please show us what you have tried so far?

    – Kurt
    4 hours ago








1




1





Welcome to TeX.SE! Can you please show us what you have tried so far?

– Kurt
4 hours ago





Welcome to TeX.SE! Can you please show us what you have tried so far?

– Kurt
4 hours ago










2 Answers
2






active

oldest

votes


















3














This can be done using the witharrows package.



enter image description here



Here is the code:



documentclass{article}

usepackage{witharrows}

begin{document}

[
begin{WithArrows}
abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
&= hgi+hgi\
&= jklArrow[tikz={font={mdseries}}]{blablabla}\
&=mno+mno
end{WithArrows}
]

end{document}


Note that you may have to compile twice when using witharrows.



Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.






share|improve this answer
























  • This's exactly what I want. Thanks!

    – user182849
    2 hours ago






  • 1





    My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!

    – Sandy G
    2 hours ago











  • Thank you for introducing me to this wonderful package witharrows : -)

    – AndréC
    1 hour ago





















0














Just for completeness: with tikzmark, which you are using, there is no problem in completing the code to give



documentclass{article}
usepackage{amsmath}
usepackage{tikz}
usetikzlibrary{tikzmark}
begin{document}
begin{align*}
abc &= def + def + def + def tikzmarknode{a}{}\
&= ghi + ghi tikzmarknode{b}{}\
&= jkltikzmarknode{c}{}\
&= mno + mnotikzmarknode{d}{}
end{align*}
begin{tikzpicture}[remember picture, overlay,font=footnotesize]
draw[-latex] ([xshift=2mm]a.east) coordinate (r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {definition}
(b -| r);
draw[-latex] (c-|r)
to [out=0,in=0,looseness=2]
node[midway,anchor=west,xshift=3mm] {blablabla}
(d-|r);
end{tikzpicture}
end{document}


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',
    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
    });


    }
    });






    user182849 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%2f477956%2farrow-between-lines-in-the-align-environment%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    This can be done using the witharrows package.



    enter image description here



    Here is the code:



    documentclass{article}

    usepackage{witharrows}

    begin{document}

    [
    begin{WithArrows}
    abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
    &= hgi+hgi\
    &= jklArrow[tikz={font={mdseries}}]{blablabla}\
    &=mno+mno
    end{WithArrows}
    ]

    end{document}


    Note that you may have to compile twice when using witharrows.



    Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.






    share|improve this answer
























    • This's exactly what I want. Thanks!

      – user182849
      2 hours ago






    • 1





      My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!

      – Sandy G
      2 hours ago











    • Thank you for introducing me to this wonderful package witharrows : -)

      – AndréC
      1 hour ago


















    3














    This can be done using the witharrows package.



    enter image description here



    Here is the code:



    documentclass{article}

    usepackage{witharrows}

    begin{document}

    [
    begin{WithArrows}
    abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
    &= hgi+hgi\
    &= jklArrow[tikz={font={mdseries}}]{blablabla}\
    &=mno+mno
    end{WithArrows}
    ]

    end{document}


    Note that you may have to compile twice when using witharrows.



    Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.






    share|improve this answer
























    • This's exactly what I want. Thanks!

      – user182849
      2 hours ago






    • 1





      My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!

      – Sandy G
      2 hours ago











    • Thank you for introducing me to this wonderful package witharrows : -)

      – AndréC
      1 hour ago
















    3












    3








    3







    This can be done using the witharrows package.



    enter image description here



    Here is the code:



    documentclass{article}

    usepackage{witharrows}

    begin{document}

    [
    begin{WithArrows}
    abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
    &= hgi+hgi\
    &= jklArrow[tikz={font={mdseries}}]{blablabla}\
    &=mno+mno
    end{WithArrows}
    ]

    end{document}


    Note that you may have to compile twice when using witharrows.



    Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.






    share|improve this answer













    This can be done using the witharrows package.



    enter image description here



    Here is the code:



    documentclass{article}

    usepackage{witharrows}

    begin{document}

    [
    begin{WithArrows}
    abc &= def+def+def+def Arrow[tikz={font={mdseries}}]{definition} \
    &= hgi+hgi\
    &= jklArrow[tikz={font={mdseries}}]{blablabla}\
    &=mno+mno
    end{WithArrows}
    ]

    end{document}


    Note that you may have to compile twice when using witharrows.



    Go to the package documentation at CTAN to see the many options for usage including fonts, arrowheads, curvature, color, etc.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 2 hours ago









    Sandy GSandy G

    2,6671321




    2,6671321













    • This's exactly what I want. Thanks!

      – user182849
      2 hours ago






    • 1





      My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!

      – Sandy G
      2 hours ago











    • Thank you for introducing me to this wonderful package witharrows : -)

      – AndréC
      1 hour ago





















    • This's exactly what I want. Thanks!

      – user182849
      2 hours ago






    • 1





      My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!

      – Sandy G
      2 hours ago











    • Thank you for introducing me to this wonderful package witharrows : -)

      – AndréC
      1 hour ago



















    This's exactly what I want. Thanks!

    – user182849
    2 hours ago





    This's exactly what I want. Thanks!

    – user182849
    2 hours ago




    1




    1





    My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!

    – Sandy G
    2 hours ago





    My pleasure, @user182849. It may seem strange, but we typically don't thank posters in comments. Thanks are expressed by voting up (when you have sufficient reputation) and by accepting the answer you find best resolves your question. Welcome to TeX.SX!

    – Sandy G
    2 hours ago













    Thank you for introducing me to this wonderful package witharrows : -)

    – AndréC
    1 hour ago







    Thank you for introducing me to this wonderful package witharrows : -)

    – AndréC
    1 hour ago













    0














    Just for completeness: with tikzmark, which you are using, there is no problem in completing the code to give



    documentclass{article}
    usepackage{amsmath}
    usepackage{tikz}
    usetikzlibrary{tikzmark}
    begin{document}
    begin{align*}
    abc &= def + def + def + def tikzmarknode{a}{}\
    &= ghi + ghi tikzmarknode{b}{}\
    &= jkltikzmarknode{c}{}\
    &= mno + mnotikzmarknode{d}{}
    end{align*}
    begin{tikzpicture}[remember picture, overlay,font=footnotesize]
    draw[-latex] ([xshift=2mm]a.east) coordinate (r)
    to [out=0,in=0,looseness=2]
    node[midway,anchor=west,xshift=3mm] {definition}
    (b -| r);
    draw[-latex] (c-|r)
    to [out=0,in=0,looseness=2]
    node[midway,anchor=west,xshift=3mm] {blablabla}
    (d-|r);
    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer




























      0














      Just for completeness: with tikzmark, which you are using, there is no problem in completing the code to give



      documentclass{article}
      usepackage{amsmath}
      usepackage{tikz}
      usetikzlibrary{tikzmark}
      begin{document}
      begin{align*}
      abc &= def + def + def + def tikzmarknode{a}{}\
      &= ghi + ghi tikzmarknode{b}{}\
      &= jkltikzmarknode{c}{}\
      &= mno + mnotikzmarknode{d}{}
      end{align*}
      begin{tikzpicture}[remember picture, overlay,font=footnotesize]
      draw[-latex] ([xshift=2mm]a.east) coordinate (r)
      to [out=0,in=0,looseness=2]
      node[midway,anchor=west,xshift=3mm] {definition}
      (b -| r);
      draw[-latex] (c-|r)
      to [out=0,in=0,looseness=2]
      node[midway,anchor=west,xshift=3mm] {blablabla}
      (d-|r);
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer


























        0












        0








        0







        Just for completeness: with tikzmark, which you are using, there is no problem in completing the code to give



        documentclass{article}
        usepackage{amsmath}
        usepackage{tikz}
        usetikzlibrary{tikzmark}
        begin{document}
        begin{align*}
        abc &= def + def + def + def tikzmarknode{a}{}\
        &= ghi + ghi tikzmarknode{b}{}\
        &= jkltikzmarknode{c}{}\
        &= mno + mnotikzmarknode{d}{}
        end{align*}
        begin{tikzpicture}[remember picture, overlay,font=footnotesize]
        draw[-latex] ([xshift=2mm]a.east) coordinate (r)
        to [out=0,in=0,looseness=2]
        node[midway,anchor=west,xshift=3mm] {definition}
        (b -| r);
        draw[-latex] (c-|r)
        to [out=0,in=0,looseness=2]
        node[midway,anchor=west,xshift=3mm] {blablabla}
        (d-|r);
        end{tikzpicture}
        end{document}


        enter image description here






        share|improve this answer













        Just for completeness: with tikzmark, which you are using, there is no problem in completing the code to give



        documentclass{article}
        usepackage{amsmath}
        usepackage{tikz}
        usetikzlibrary{tikzmark}
        begin{document}
        begin{align*}
        abc &= def + def + def + def tikzmarknode{a}{}\
        &= ghi + ghi tikzmarknode{b}{}\
        &= jkltikzmarknode{c}{}\
        &= mno + mnotikzmarknode{d}{}
        end{align*}
        begin{tikzpicture}[remember picture, overlay,font=footnotesize]
        draw[-latex] ([xshift=2mm]a.east) coordinate (r)
        to [out=0,in=0,looseness=2]
        node[midway,anchor=west,xshift=3mm] {definition}
        (b -| r);
        draw[-latex] (c-|r)
        to [out=0,in=0,looseness=2]
        node[midway,anchor=west,xshift=3mm] {blablabla}
        (d-|r);
        end{tikzpicture}
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 51 mins ago









        marmotmarmot

        106k4127242




        106k4127242






















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










            draft saved

            draft discarded


















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













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












            user182849 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%2f477956%2farrow-between-lines-in-the-align-environment%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

            Statuo de Libereco

            Tanganjiko

            Liste der Baudenkmäler in Enneberg