Creating a node












3















I am trying to create a node as shown in the below figure. Could anyone help me how to create it?



Thank you in advance



enter image description here










share|improve this question





























    3















    I am trying to create a node as shown in the below figure. Could anyone help me how to create it?



    Thank you in advance



    enter image description here










    share|improve this question



























      3












      3








      3


      1






      I am trying to create a node as shown in the below figure. Could anyone help me how to create it?



      Thank you in advance



      enter image description here










      share|improve this question
















      I am trying to create a node as shown in the below figure. Could anyone help me how to create it?



      Thank you in advance



      enter image description here







      tikz-pgf tikz-node






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 18 hours ago









      JouleV

      8,15222153




      8,15222153










      asked 19 hours ago









      Akhilesh ThotharaAkhilesh Thothara

      191




      191






















          1 Answer
          1






          active

          oldest

          votes


















          11














          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}
          node[rectangle split, rectangle split parts=3, rectangle split horizontal, draw]{nodepart{two}ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here



          Update:



          Following code shows an improved version of previous code. It shows font and colors more similar to OP's example.



          A second solution is also provided. This one uses a regular node with larger inner xsep and a path picture option which draws inner lines. This solution avoids to use nodepart{two} inside node's contents and offers a better control over size of lateral boxes.



          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}[
          mynode/.style={
          rectangle split,
          rectangle split parts=3,
          rectangle split horizontal,
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange
          }
          ]
          node[mynode]{nodepart{two}ReadInput};
          end{tikzpicture}

          begin{tikzpicture}[
          mynode/.style={
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange,
          inner xsep=4mm,
          path picture={%
          draw ([xshift=-2mm]path picture bounding box.north east)--([xshift=-2mm]path picture bounding box.south east);
          draw ([xshift=2mm]path picture bounding box.north west)--([xshift=2mm]path picture bounding box.south west);},
          }
          ]
          node[mynode]{ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer





















          • 1





            Here are some suggestions: I think the second part should be of fixed width, the font should be in sffamily and the node should have a shade color. Anyway, +1 :)

            – JouleV
            17 hours ago











          • Thanks for your solution.

            – Akhilesh Thothara
            15 hours ago











          • How do I change the width of the rectangles on the end.

            – Akhilesh Thothara
            15 hours ago











          • @AkhileshThothara On second solution, the width is automaticaly adjusted to text width, but if you want to impose some width you can use minimum width or text width options.

            – Ignasi
            14 hours 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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481474%2fcreating-a-node%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









          11














          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}
          node[rectangle split, rectangle split parts=3, rectangle split horizontal, draw]{nodepart{two}ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here



          Update:



          Following code shows an improved version of previous code. It shows font and colors more similar to OP's example.



          A second solution is also provided. This one uses a regular node with larger inner xsep and a path picture option which draws inner lines. This solution avoids to use nodepart{two} inside node's contents and offers a better control over size of lateral boxes.



          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}[
          mynode/.style={
          rectangle split,
          rectangle split parts=3,
          rectangle split horizontal,
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange
          }
          ]
          node[mynode]{nodepart{two}ReadInput};
          end{tikzpicture}

          begin{tikzpicture}[
          mynode/.style={
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange,
          inner xsep=4mm,
          path picture={%
          draw ([xshift=-2mm]path picture bounding box.north east)--([xshift=-2mm]path picture bounding box.south east);
          draw ([xshift=2mm]path picture bounding box.north west)--([xshift=2mm]path picture bounding box.south west);},
          }
          ]
          node[mynode]{ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer





















          • 1





            Here are some suggestions: I think the second part should be of fixed width, the font should be in sffamily and the node should have a shade color. Anyway, +1 :)

            – JouleV
            17 hours ago











          • Thanks for your solution.

            – Akhilesh Thothara
            15 hours ago











          • How do I change the width of the rectangles on the end.

            – Akhilesh Thothara
            15 hours ago











          • @AkhileshThothara On second solution, the width is automaticaly adjusted to text width, but if you want to impose some width you can use minimum width or text width options.

            – Ignasi
            14 hours ago
















          11














          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}
          node[rectangle split, rectangle split parts=3, rectangle split horizontal, draw]{nodepart{two}ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here



          Update:



          Following code shows an improved version of previous code. It shows font and colors more similar to OP's example.



          A second solution is also provided. This one uses a regular node with larger inner xsep and a path picture option which draws inner lines. This solution avoids to use nodepart{two} inside node's contents and offers a better control over size of lateral boxes.



          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}[
          mynode/.style={
          rectangle split,
          rectangle split parts=3,
          rectangle split horizontal,
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange
          }
          ]
          node[mynode]{nodepart{two}ReadInput};
          end{tikzpicture}

          begin{tikzpicture}[
          mynode/.style={
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange,
          inner xsep=4mm,
          path picture={%
          draw ([xshift=-2mm]path picture bounding box.north east)--([xshift=-2mm]path picture bounding box.south east);
          draw ([xshift=2mm]path picture bounding box.north west)--([xshift=2mm]path picture bounding box.south west);},
          }
          ]
          node[mynode]{ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer





















          • 1





            Here are some suggestions: I think the second part should be of fixed width, the font should be in sffamily and the node should have a shade color. Anyway, +1 :)

            – JouleV
            17 hours ago











          • Thanks for your solution.

            – Akhilesh Thothara
            15 hours ago











          • How do I change the width of the rectangles on the end.

            – Akhilesh Thothara
            15 hours ago











          • @AkhileshThothara On second solution, the width is automaticaly adjusted to text width, but if you want to impose some width you can use minimum width or text width options.

            – Ignasi
            14 hours ago














          11












          11








          11







          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}
          node[rectangle split, rectangle split parts=3, rectangle split horizontal, draw]{nodepart{two}ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here



          Update:



          Following code shows an improved version of previous code. It shows font and colors more similar to OP's example.



          A second solution is also provided. This one uses a regular node with larger inner xsep and a path picture option which draws inner lines. This solution avoids to use nodepart{two} inside node's contents and offers a better control over size of lateral boxes.



          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}[
          mynode/.style={
          rectangle split,
          rectangle split parts=3,
          rectangle split horizontal,
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange
          }
          ]
          node[mynode]{nodepart{two}ReadInput};
          end{tikzpicture}

          begin{tikzpicture}[
          mynode/.style={
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange,
          inner xsep=4mm,
          path picture={%
          draw ([xshift=-2mm]path picture bounding box.north east)--([xshift=-2mm]path picture bounding box.south east);
          draw ([xshift=2mm]path picture bounding box.north west)--([xshift=2mm]path picture bounding box.south west);},
          }
          ]
          node[mynode]{ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer















          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}
          node[rectangle split, rectangle split parts=3, rectangle split horizontal, draw]{nodepart{two}ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here



          Update:



          Following code shows an improved version of previous code. It shows font and colors more similar to OP's example.



          A second solution is also provided. This one uses a regular node with larger inner xsep and a path picture option which draws inner lines. This solution avoids to use nodepart{two} inside node's contents and offers a better control over size of lateral boxes.



          documentclass[tikz,border=2mm]{standalone} 
          usetikzlibrary{positioning, shapes.multipart}

          begin{document}
          begin{tikzpicture}[
          mynode/.style={
          rectangle split,
          rectangle split parts=3,
          rectangle split horizontal,
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange
          }
          ]
          node[mynode]{nodepart{two}ReadInput};
          end{tikzpicture}

          begin{tikzpicture}[
          mynode/.style={
          font=sffamily,
          color = cyan!80!black,
          draw,
          top color=white,
          bottom color=orange,
          inner xsep=4mm,
          path picture={%
          draw ([xshift=-2mm]path picture bounding box.north east)--([xshift=-2mm]path picture bounding box.south east);
          draw ([xshift=2mm]path picture bounding box.north west)--([xshift=2mm]path picture bounding box.south west);},
          }
          ]
          node[mynode]{ReadInput};
          end{tikzpicture}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 16 hours ago

























          answered 18 hours ago









          IgnasiIgnasi

          95.3k4175319




          95.3k4175319








          • 1





            Here are some suggestions: I think the second part should be of fixed width, the font should be in sffamily and the node should have a shade color. Anyway, +1 :)

            – JouleV
            17 hours ago











          • Thanks for your solution.

            – Akhilesh Thothara
            15 hours ago











          • How do I change the width of the rectangles on the end.

            – Akhilesh Thothara
            15 hours ago











          • @AkhileshThothara On second solution, the width is automaticaly adjusted to text width, but if you want to impose some width you can use minimum width or text width options.

            – Ignasi
            14 hours ago














          • 1





            Here are some suggestions: I think the second part should be of fixed width, the font should be in sffamily and the node should have a shade color. Anyway, +1 :)

            – JouleV
            17 hours ago











          • Thanks for your solution.

            – Akhilesh Thothara
            15 hours ago











          • How do I change the width of the rectangles on the end.

            – Akhilesh Thothara
            15 hours ago











          • @AkhileshThothara On second solution, the width is automaticaly adjusted to text width, but if you want to impose some width you can use minimum width or text width options.

            – Ignasi
            14 hours ago








          1




          1





          Here are some suggestions: I think the second part should be of fixed width, the font should be in sffamily and the node should have a shade color. Anyway, +1 :)

          – JouleV
          17 hours ago





          Here are some suggestions: I think the second part should be of fixed width, the font should be in sffamily and the node should have a shade color. Anyway, +1 :)

          – JouleV
          17 hours ago













          Thanks for your solution.

          – Akhilesh Thothara
          15 hours ago





          Thanks for your solution.

          – Akhilesh Thothara
          15 hours ago













          How do I change the width of the rectangles on the end.

          – Akhilesh Thothara
          15 hours ago





          How do I change the width of the rectangles on the end.

          – Akhilesh Thothara
          15 hours ago













          @AkhileshThothara On second solution, the width is automaticaly adjusted to text width, but if you want to impose some width you can use minimum width or text width options.

          – Ignasi
          14 hours ago





          @AkhileshThothara On second solution, the width is automaticaly adjusted to text width, but if you want to impose some width you can use minimum width or text width options.

          – Ignasi
          14 hours ago


















          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%2f481474%2fcreating-a-node%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

          He _____ here since 1970 . Answer needed [closed]What does “since he was so high” mean?Meaning of “catch birds for”?How do I ensure “since” takes the meaning I want?“Who cares here” meaningWhat does “right round toward” mean?the time tense (had now been detected)What does the phrase “ring around the roses” mean here?Correct usage of “visited upon”Meaning of “foiled rail sabotage bid”It was the third time I had gone to Rome or It is the third time I had been to Rome

          Bunad

          Færeyskur hestur Heimild | Tengill | Tilvísanir | LeiðsagnarvalRossið - síða um færeyska hrossið á færeyskuGott ár hjá færeyska hestinum