bloc rectangle with several arrows as input with tikz












2















I want this :



enter image description here



With arrows aligned and the possibility to add or remove some at the left or right sides. And the possibility to add labels at arrows extremities.
I try this technique but it does not work well for my case.



EDIT 1: I tried this :



begin{tikzpicture}[node distance=2cm]
node[draw, rectangle, minimum height=2cm, minimum width=2cm,align=center] (bloc) {};
node[rectangle, minimum height=2cm, minimum width=0cm, left of=bloc] (hide) {};
draw[->] (hide.40) -- (bloc.220) {};
draw[->] (hide) -- (bloc) {};
end{tikzpicture}









share|improve this question

























  • You can keep only (bloc) node and then use draw[->] ([xshift=-1cm]bloc.220) -- (bloc.220); or simpler draw[<-] (bloc.220)-- +(-1,0);.

    – Kpym
    10 hours ago


















2















I want this :



enter image description here



With arrows aligned and the possibility to add or remove some at the left or right sides. And the possibility to add labels at arrows extremities.
I try this technique but it does not work well for my case.



EDIT 1: I tried this :



begin{tikzpicture}[node distance=2cm]
node[draw, rectangle, minimum height=2cm, minimum width=2cm,align=center] (bloc) {};
node[rectangle, minimum height=2cm, minimum width=0cm, left of=bloc] (hide) {};
draw[->] (hide.40) -- (bloc.220) {};
draw[->] (hide) -- (bloc) {};
end{tikzpicture}









share|improve this question

























  • You can keep only (bloc) node and then use draw[->] ([xshift=-1cm]bloc.220) -- (bloc.220); or simpler draw[<-] (bloc.220)-- +(-1,0);.

    – Kpym
    10 hours ago
















2












2








2


2






I want this :



enter image description here



With arrows aligned and the possibility to add or remove some at the left or right sides. And the possibility to add labels at arrows extremities.
I try this technique but it does not work well for my case.



EDIT 1: I tried this :



begin{tikzpicture}[node distance=2cm]
node[draw, rectangle, minimum height=2cm, minimum width=2cm,align=center] (bloc) {};
node[rectangle, minimum height=2cm, minimum width=0cm, left of=bloc] (hide) {};
draw[->] (hide.40) -- (bloc.220) {};
draw[->] (hide) -- (bloc) {};
end{tikzpicture}









share|improve this question
















I want this :



enter image description here



With arrows aligned and the possibility to add or remove some at the left or right sides. And the possibility to add labels at arrows extremities.
I try this technique but it does not work well for my case.



EDIT 1: I tried this :



begin{tikzpicture}[node distance=2cm]
node[draw, rectangle, minimum height=2cm, minimum width=2cm,align=center] (bloc) {};
node[rectangle, minimum height=2cm, minimum width=0cm, left of=bloc] (hide) {};
draw[->] (hide.40) -- (bloc.220) {};
draw[->] (hide) -- (bloc) {};
end{tikzpicture}






tikz-pgf tikz-arrows






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 11 hours ago







Welgriv

















asked 11 hours ago









WelgrivWelgriv

133




133













  • You can keep only (bloc) node and then use draw[->] ([xshift=-1cm]bloc.220) -- (bloc.220); or simpler draw[<-] (bloc.220)-- +(-1,0);.

    – Kpym
    10 hours ago





















  • You can keep only (bloc) node and then use draw[->] ([xshift=-1cm]bloc.220) -- (bloc.220); or simpler draw[<-] (bloc.220)-- +(-1,0);.

    – Kpym
    10 hours ago



















You can keep only (bloc) node and then use draw[->] ([xshift=-1cm]bloc.220) -- (bloc.220); or simpler draw[<-] (bloc.220)-- +(-1,0);.

– Kpym
10 hours ago







You can keep only (bloc) node and then use draw[->] ([xshift=-1cm]bloc.220) -- (bloc.220); or simpler draw[<-] (bloc.220)-- +(-1,0);.

– Kpym
10 hours ago












1 Answer
1






active

oldest

votes


















3














Think in a simple way.



documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0);
draw[<-] (0,.3)--++(-1,0);
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0);
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}


enter image description here



Shorter code



documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
foreach i in {1,1.3} % Add to this list
draw[->] (2.5,i)--++(1,0);
foreach i in {.3,.9,1.2,1.6} % Add to this list
draw[<-] (0,i)--++(-1,0);
end{tikzpicture}
end{document}


enter image description here



I don't know how you want the labels to be, but this may be a start



documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[>=latex]
draw (0,0) rectangle (2.5,2);
draw[->] (2.5,1)--++(1,0) node[right] {xyz};
draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
draw[<-] (0,.9)--++(-1,0);
draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
draw[<-] (0,1.6)--++(-1,0);
end{tikzpicture}
end{document}


enter image description here



Remember increasing the size of the picture in case the size of the label is too big.






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


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483177%2fbloc-rectangle-with-several-arrows-as-input-with-tikz%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Think in a simple way.



    documentclass[tikz]{standalone}
    begin{document}
    begin{tikzpicture}[>=latex]
    draw (0,0) rectangle (2.5,2);
    draw[->] (2.5,1)--++(1,0);
    draw[<-] (0,.3)--++(-1,0);
    draw[<-] (0,.9)--++(-1,0);
    draw[<-] (0,1.2)--++(-1,0);
    draw[<-] (0,1.6)--++(-1,0);
    end{tikzpicture}
    end{document}


    enter image description here



    Shorter code



    documentclass[tikz]{standalone}
    begin{document}
    begin{tikzpicture}[>=latex]
    draw (0,0) rectangle (2.5,2);
    foreach i in {1,1.3} % Add to this list
    draw[->] (2.5,i)--++(1,0);
    foreach i in {.3,.9,1.2,1.6} % Add to this list
    draw[<-] (0,i)--++(-1,0);
    end{tikzpicture}
    end{document}


    enter image description here



    I don't know how you want the labels to be, but this may be a start



    documentclass[tikz]{standalone}
    begin{document}
    begin{tikzpicture}[>=latex]
    draw (0,0) rectangle (2.5,2);
    draw[->] (2.5,1)--++(1,0) node[right] {xyz};
    draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
    draw[<-] (0,.9)--++(-1,0);
    draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
    draw[<-] (0,1.6)--++(-1,0);
    end{tikzpicture}
    end{document}


    enter image description here



    Remember increasing the size of the picture in case the size of the label is too big.






    share|improve this answer






























      3














      Think in a simple way.



      documentclass[tikz]{standalone}
      begin{document}
      begin{tikzpicture}[>=latex]
      draw (0,0) rectangle (2.5,2);
      draw[->] (2.5,1)--++(1,0);
      draw[<-] (0,.3)--++(-1,0);
      draw[<-] (0,.9)--++(-1,0);
      draw[<-] (0,1.2)--++(-1,0);
      draw[<-] (0,1.6)--++(-1,0);
      end{tikzpicture}
      end{document}


      enter image description here



      Shorter code



      documentclass[tikz]{standalone}
      begin{document}
      begin{tikzpicture}[>=latex]
      draw (0,0) rectangle (2.5,2);
      foreach i in {1,1.3} % Add to this list
      draw[->] (2.5,i)--++(1,0);
      foreach i in {.3,.9,1.2,1.6} % Add to this list
      draw[<-] (0,i)--++(-1,0);
      end{tikzpicture}
      end{document}


      enter image description here



      I don't know how you want the labels to be, but this may be a start



      documentclass[tikz]{standalone}
      begin{document}
      begin{tikzpicture}[>=latex]
      draw (0,0) rectangle (2.5,2);
      draw[->] (2.5,1)--++(1,0) node[right] {xyz};
      draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
      draw[<-] (0,.9)--++(-1,0);
      draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
      draw[<-] (0,1.6)--++(-1,0);
      end{tikzpicture}
      end{document}


      enter image description here



      Remember increasing the size of the picture in case the size of the label is too big.






      share|improve this answer




























        3












        3








        3







        Think in a simple way.



        documentclass[tikz]{standalone}
        begin{document}
        begin{tikzpicture}[>=latex]
        draw (0,0) rectangle (2.5,2);
        draw[->] (2.5,1)--++(1,0);
        draw[<-] (0,.3)--++(-1,0);
        draw[<-] (0,.9)--++(-1,0);
        draw[<-] (0,1.2)--++(-1,0);
        draw[<-] (0,1.6)--++(-1,0);
        end{tikzpicture}
        end{document}


        enter image description here



        Shorter code



        documentclass[tikz]{standalone}
        begin{document}
        begin{tikzpicture}[>=latex]
        draw (0,0) rectangle (2.5,2);
        foreach i in {1,1.3} % Add to this list
        draw[->] (2.5,i)--++(1,0);
        foreach i in {.3,.9,1.2,1.6} % Add to this list
        draw[<-] (0,i)--++(-1,0);
        end{tikzpicture}
        end{document}


        enter image description here



        I don't know how you want the labels to be, but this may be a start



        documentclass[tikz]{standalone}
        begin{document}
        begin{tikzpicture}[>=latex]
        draw (0,0) rectangle (2.5,2);
        draw[->] (2.5,1)--++(1,0) node[right] {xyz};
        draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
        draw[<-] (0,.9)--++(-1,0);
        draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
        draw[<-] (0,1.6)--++(-1,0);
        end{tikzpicture}
        end{document}


        enter image description here



        Remember increasing the size of the picture in case the size of the label is too big.






        share|improve this answer















        Think in a simple way.



        documentclass[tikz]{standalone}
        begin{document}
        begin{tikzpicture}[>=latex]
        draw (0,0) rectangle (2.5,2);
        draw[->] (2.5,1)--++(1,0);
        draw[<-] (0,.3)--++(-1,0);
        draw[<-] (0,.9)--++(-1,0);
        draw[<-] (0,1.2)--++(-1,0);
        draw[<-] (0,1.6)--++(-1,0);
        end{tikzpicture}
        end{document}


        enter image description here



        Shorter code



        documentclass[tikz]{standalone}
        begin{document}
        begin{tikzpicture}[>=latex]
        draw (0,0) rectangle (2.5,2);
        foreach i in {1,1.3} % Add to this list
        draw[->] (2.5,i)--++(1,0);
        foreach i in {.3,.9,1.2,1.6} % Add to this list
        draw[<-] (0,i)--++(-1,0);
        end{tikzpicture}
        end{document}


        enter image description here



        I don't know how you want the labels to be, but this may be a start



        documentclass[tikz]{standalone}
        begin{document}
        begin{tikzpicture}[>=latex]
        draw (0,0) rectangle (2.5,2);
        draw[->] (2.5,1)--++(1,0) node[right] {xyz};
        draw[<-] (0,.3)--++(-1,0) node[left] {mnp};
        draw[<-] (0,.9)--++(-1,0);
        draw[<-] (0,1.2)--++(-1,0) node[left] {abc};
        draw[<-] (0,1.6)--++(-1,0);
        end{tikzpicture}
        end{document}


        enter image description here



        Remember increasing the size of the picture in case the size of the label is too big.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 10 hours ago

























        answered 11 hours ago









        JouleVJouleV

        10.5k22559




        10.5k22559






























            draft saved

            draft discarded




















































            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%2f483177%2fbloc-rectangle-with-several-arrows-as-input-with-tikz%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

            Contact image not getting when fetch all contact list from iPhone by CNContact

            count number of partitions of a set with n elements into k subsets

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks