Work Breakdown with TikzTikZ: Cropping the Bounding BoxTop-align text in a TikZ node of given size for...

GPS Rollover on Android Smartphones

What is the offset in a seaplane's hull?

What is the logic behind how bash tests for true/false?

Why is this code 6.5x slower with optimizations enabled?

How do you conduct xenoanthropology after first contact?

If Manufacturer spice model and Datasheet give different values which should I use?

Can I interfere when another PC is about to be attacked?

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

What would the Romans have called "sorcery"?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

What are these boxed doors outside store fronts in New York?

How does one intimidate enemies without having the capacity for violence?

Do airline pilots ever risk not hearing communication directed to them specifically, from traffic controllers?

Why CLRS example on residual networks does not follows its formula?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

"You are your self first supporter", a more proper way to say it

Pronouncing Dictionary.com's W.O.D "vade mecum" in English

Can a German sentence have two subjects?

How long does it take to type this?

Is there a familial term for apples and pears?

Should I join office cleaning event for free?

Can I make popcorn with any corn?

I probably found a bug with the sudo apt install function

What do you call a Matrix-like slowdown and camera movement effect?



Work Breakdown with Tikz


TikZ: Cropping the Bounding BoxTop-align text in a TikZ node of given size for single- and multiline caseDecorate path with just a colored thick lineWork breakdown structure (WBS) TikZHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizetrapezium, how to calculate angles?Input/Output Nodes - Specification and Description LanguageAdjusting edge alignment and positioning of fitted nodetikz and pgfdeclareshape why the text is not at the center anchor?













2















Im trying to create a Work Breakdown structure with tikz. I would like to have Desired structure



Instead I have the following:Actual Outcome



Here's my code:



documentclass[tikz,border=10pt]{standalone}usepackage{tikz}
usetikzlibrary{shadows,arrows,positioning}
usepackage{color,soul} %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayer{background}
pgfdeclarelayer{foreground}
pgfsetlayers{background,main,foreground}

% Define block styles
tikzstyle{materia}=[draw, text width=6.0em, text centered,
minimum height=1.5em]
tikzstyle{etape} = [materia, text width=12em, minimum width=10em,
minimum height=3em, rounded corners]
tikzstyle{texto} = [above, text width=6em, text centered]
tikzstyle{linepart} = [draw, thick, color=black!30, -latex', dashed]
tikzstyle{line} = [draw, thick, color=black!30, -latex']
tikzstyle{ur}=[draw, text centered, minimum height=0.01em]

% Define distances for bordering
newcommand{blockdist}{1.3}
newcommand{edgedist}{1.5}

newcommand{etape}[2]{node (p#1) [etape]
{#2}}

newcommand{transreceptor}[3]{%
path [linepart] (#1.east) -- node [above]
{scriptsize #2} (#3);}

begin{document}
begin{tikzpicture}[scale=0.7,transform shape]

% Draw diagram elements
path etape{1}{textbf{Operating Items}};
path (p1.west)+(-5.0,0.0)etape{2}{textbf{Non-Operating Items}};
path (p2.south)+(0.0,-1.0)etape{3}{textbf{Interest}};
path (p3.south)+(0.0,-1.0)etape{4}{textbf{Profits and Losses}};
path (p4.south)+(0.0,-1.0)etape{5}{textbf{Subsidies}};
path (p1.south)+(2.5,-1.0)etape{6}{textbf{Direct Operating Costs}};
path (p1.south)+(-2.5,-1.0)etape{7}{textbf{Indirect Operating Costs}};




% Draw arrows between elements

path [line] (p2.south) -- node [above] {} (p3);
path [line] (p3.south) -- node [above] {} (p4);
path [line] (p4.south) -- node [above] {} (p5);
path [line] (p1.south) -- +(0.0,-0.2) -- +(+2.5,-0.2)
-- node [above, midway] {} (p6);
path [line] (p1.south) -- +(0.0,-0.2) -- +(-2.5,-0.2)
-- node [above, midway] {} (p7);





end{tikzpicture}
end{document}

´´´









share|improve this question







New contributor




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

























    2















    Im trying to create a Work Breakdown structure with tikz. I would like to have Desired structure



    Instead I have the following:Actual Outcome



    Here's my code:



    documentclass[tikz,border=10pt]{standalone}usepackage{tikz}
    usetikzlibrary{shadows,arrows,positioning}
    usepackage{color,soul} %For highlighting
    % Define the layers to draw the diagram
    pgfdeclarelayer{background}
    pgfdeclarelayer{foreground}
    pgfsetlayers{background,main,foreground}

    % Define block styles
    tikzstyle{materia}=[draw, text width=6.0em, text centered,
    minimum height=1.5em]
    tikzstyle{etape} = [materia, text width=12em, minimum width=10em,
    minimum height=3em, rounded corners]
    tikzstyle{texto} = [above, text width=6em, text centered]
    tikzstyle{linepart} = [draw, thick, color=black!30, -latex', dashed]
    tikzstyle{line} = [draw, thick, color=black!30, -latex']
    tikzstyle{ur}=[draw, text centered, minimum height=0.01em]

    % Define distances for bordering
    newcommand{blockdist}{1.3}
    newcommand{edgedist}{1.5}

    newcommand{etape}[2]{node (p#1) [etape]
    {#2}}

    newcommand{transreceptor}[3]{%
    path [linepart] (#1.east) -- node [above]
    {scriptsize #2} (#3);}

    begin{document}
    begin{tikzpicture}[scale=0.7,transform shape]

    % Draw diagram elements
    path etape{1}{textbf{Operating Items}};
    path (p1.west)+(-5.0,0.0)etape{2}{textbf{Non-Operating Items}};
    path (p2.south)+(0.0,-1.0)etape{3}{textbf{Interest}};
    path (p3.south)+(0.0,-1.0)etape{4}{textbf{Profits and Losses}};
    path (p4.south)+(0.0,-1.0)etape{5}{textbf{Subsidies}};
    path (p1.south)+(2.5,-1.0)etape{6}{textbf{Direct Operating Costs}};
    path (p1.south)+(-2.5,-1.0)etape{7}{textbf{Indirect Operating Costs}};




    % Draw arrows between elements

    path [line] (p2.south) -- node [above] {} (p3);
    path [line] (p3.south) -- node [above] {} (p4);
    path [line] (p4.south) -- node [above] {} (p5);
    path [line] (p1.south) -- +(0.0,-0.2) -- +(+2.5,-0.2)
    -- node [above, midway] {} (p6);
    path [line] (p1.south) -- +(0.0,-0.2) -- +(-2.5,-0.2)
    -- node [above, midway] {} (p7);





    end{tikzpicture}
    end{document}

    ´´´









    share|improve this question







    New contributor




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























      2












      2








      2








      Im trying to create a Work Breakdown structure with tikz. I would like to have Desired structure



      Instead I have the following:Actual Outcome



      Here's my code:



      documentclass[tikz,border=10pt]{standalone}usepackage{tikz}
      usetikzlibrary{shadows,arrows,positioning}
      usepackage{color,soul} %For highlighting
      % Define the layers to draw the diagram
      pgfdeclarelayer{background}
      pgfdeclarelayer{foreground}
      pgfsetlayers{background,main,foreground}

      % Define block styles
      tikzstyle{materia}=[draw, text width=6.0em, text centered,
      minimum height=1.5em]
      tikzstyle{etape} = [materia, text width=12em, minimum width=10em,
      minimum height=3em, rounded corners]
      tikzstyle{texto} = [above, text width=6em, text centered]
      tikzstyle{linepart} = [draw, thick, color=black!30, -latex', dashed]
      tikzstyle{line} = [draw, thick, color=black!30, -latex']
      tikzstyle{ur}=[draw, text centered, minimum height=0.01em]

      % Define distances for bordering
      newcommand{blockdist}{1.3}
      newcommand{edgedist}{1.5}

      newcommand{etape}[2]{node (p#1) [etape]
      {#2}}

      newcommand{transreceptor}[3]{%
      path [linepart] (#1.east) -- node [above]
      {scriptsize #2} (#3);}

      begin{document}
      begin{tikzpicture}[scale=0.7,transform shape]

      % Draw diagram elements
      path etape{1}{textbf{Operating Items}};
      path (p1.west)+(-5.0,0.0)etape{2}{textbf{Non-Operating Items}};
      path (p2.south)+(0.0,-1.0)etape{3}{textbf{Interest}};
      path (p3.south)+(0.0,-1.0)etape{4}{textbf{Profits and Losses}};
      path (p4.south)+(0.0,-1.0)etape{5}{textbf{Subsidies}};
      path (p1.south)+(2.5,-1.0)etape{6}{textbf{Direct Operating Costs}};
      path (p1.south)+(-2.5,-1.0)etape{7}{textbf{Indirect Operating Costs}};




      % Draw arrows between elements

      path [line] (p2.south) -- node [above] {} (p3);
      path [line] (p3.south) -- node [above] {} (p4);
      path [line] (p4.south) -- node [above] {} (p5);
      path [line] (p1.south) -- +(0.0,-0.2) -- +(+2.5,-0.2)
      -- node [above, midway] {} (p6);
      path [line] (p1.south) -- +(0.0,-0.2) -- +(-2.5,-0.2)
      -- node [above, midway] {} (p7);





      end{tikzpicture}
      end{document}

      ´´´









      share|improve this question







      New contributor




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












      Im trying to create a Work Breakdown structure with tikz. I would like to have Desired structure



      Instead I have the following:Actual Outcome



      Here's my code:



      documentclass[tikz,border=10pt]{standalone}usepackage{tikz}
      usetikzlibrary{shadows,arrows,positioning}
      usepackage{color,soul} %For highlighting
      % Define the layers to draw the diagram
      pgfdeclarelayer{background}
      pgfdeclarelayer{foreground}
      pgfsetlayers{background,main,foreground}

      % Define block styles
      tikzstyle{materia}=[draw, text width=6.0em, text centered,
      minimum height=1.5em]
      tikzstyle{etape} = [materia, text width=12em, minimum width=10em,
      minimum height=3em, rounded corners]
      tikzstyle{texto} = [above, text width=6em, text centered]
      tikzstyle{linepart} = [draw, thick, color=black!30, -latex', dashed]
      tikzstyle{line} = [draw, thick, color=black!30, -latex']
      tikzstyle{ur}=[draw, text centered, minimum height=0.01em]

      % Define distances for bordering
      newcommand{blockdist}{1.3}
      newcommand{edgedist}{1.5}

      newcommand{etape}[2]{node (p#1) [etape]
      {#2}}

      newcommand{transreceptor}[3]{%
      path [linepart] (#1.east) -- node [above]
      {scriptsize #2} (#3);}

      begin{document}
      begin{tikzpicture}[scale=0.7,transform shape]

      % Draw diagram elements
      path etape{1}{textbf{Operating Items}};
      path (p1.west)+(-5.0,0.0)etape{2}{textbf{Non-Operating Items}};
      path (p2.south)+(0.0,-1.0)etape{3}{textbf{Interest}};
      path (p3.south)+(0.0,-1.0)etape{4}{textbf{Profits and Losses}};
      path (p4.south)+(0.0,-1.0)etape{5}{textbf{Subsidies}};
      path (p1.south)+(2.5,-1.0)etape{6}{textbf{Direct Operating Costs}};
      path (p1.south)+(-2.5,-1.0)etape{7}{textbf{Indirect Operating Costs}};




      % Draw arrows between elements

      path [line] (p2.south) -- node [above] {} (p3);
      path [line] (p3.south) -- node [above] {} (p4);
      path [line] (p4.south) -- node [above] {} (p5);
      path [line] (p1.south) -- +(0.0,-0.2) -- +(+2.5,-0.2)
      -- node [above, midway] {} (p6);
      path [line] (p1.south) -- +(0.0,-0.2) -- +(-2.5,-0.2)
      -- node [above, midway] {} (p7);





      end{tikzpicture}
      end{document}

      ´´´






      tikz-pgf tikz-trees






      share|improve this question







      New contributor




      L Lewis 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




      L Lewis 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






      New contributor




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









      asked 6 hours ago









      L LewisL Lewis

      132




      132




      New contributor




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





      New contributor





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






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






















          1 Answer
          1






          active

          oldest

          votes


















          3














          Welcome to TeX-SE! If your question is about a minimal damage modification of your code that produces something of that sort, here is a proposal:



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{shadows,arrows,positioning}
          usepackage{color,soul} %For highlighting
          % Define the layers to draw the diagram
          pgfdeclarelayer{background}
          pgfdeclarelayer{foreground}
          pgfsetlayers{background,main,foreground}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          texto/.style={above, text width=6em, text centered},
          linepart/.style={draw, thick, color=black!30, -latex', dashed},
          line/.style={draw, thick, color=black!30, -latex'},
          ur/.style={draw, text centered, minimum height=0.01em}}

          % Define distances for bordering
          newcommand{blockdist}{1.3}
          newcommand{edgedist}{1.5}

          newcommand{etape}[2]{node (p#1) [etape]
          {#2}}

          newcommand{transreceptor}[3]{%
          path [linepart] (#1.east) -- node [above]
          {scriptsize #2} (#3);}

          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]

          % Draw diagram elements
          path etape{1}{textbf{Operating Items}};
          path (p1.west)+(-6.5,0.0)etape{2}{textbf{Non-Operating Items}};
          path (p2.south)+(1,-1.0)etape{3}{textbf{Interest}};
          path (p3.south)+(0.0,-1.0)etape{4}{textbf{Profits and Losses}};
          path (p4.south)+(0.0,-1.0)etape{5}{textbf{Subsidies}};
          path (p1.south)+(2.5,-1.0)etape{6}{textbf{Direct Operating Costs}};
          path (p1.south)+(-2.5,-1.0)etape{7}{textbf{Indirect Operating Costs}};




          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          path [line] (p1.south) -- +(0.0,-0.2) -- +(+2.5,-0.2)
          -- node [above, midway] {} (p6);
          path [line] (p1.south) -- +(0.0,-0.2) -- +(-2.5,-0.2)
          -- node [above, midway] {} (p7);


          end{tikzpicture}
          end{document}


          enter image description here



          If you are asking about a cleaner code that achieves this output, the answer will be quite different. E.g. the following is already shorter and simpler IMHO.



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{arrows,positioning}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          line/.style={draw, thick, color=black!30, -latex'}}


          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]
          begin{scope}[nodes=etape,font=bfseries]
          node (p1) {Operating Items};
          node[left=6.5cm of p1] (p2) {Non-Operating Items};
          node[below=5mm of p2,xshift=8mm] (p3) {Interest};
          node[below=5mm of p3] (p4) {Profits and Losses};
          node[below=5mm of p4] (p5) {Subsidies};
          node[below left=8mm and 1mm of p1.south] (p6) {Direct Operating Costs};
          node[below right=8mm and 1mm of p1.south] (p7) {Indirect Operating Costs};
          end{scope}
          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          foreach X in {6,7}
          {path [line] (p1.south) -- ++(0,-2mm) -| (pX.north);}
          end{tikzpicture}
          end{document}





          share|improve this answer


























          • That was exactly what I was searching for

            – L Lewis
            6 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
          });


          }
          });






          L Lewis 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%2f483701%2fwork-breakdown-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














          Welcome to TeX-SE! If your question is about a minimal damage modification of your code that produces something of that sort, here is a proposal:



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{shadows,arrows,positioning}
          usepackage{color,soul} %For highlighting
          % Define the layers to draw the diagram
          pgfdeclarelayer{background}
          pgfdeclarelayer{foreground}
          pgfsetlayers{background,main,foreground}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          texto/.style={above, text width=6em, text centered},
          linepart/.style={draw, thick, color=black!30, -latex', dashed},
          line/.style={draw, thick, color=black!30, -latex'},
          ur/.style={draw, text centered, minimum height=0.01em}}

          % Define distances for bordering
          newcommand{blockdist}{1.3}
          newcommand{edgedist}{1.5}

          newcommand{etape}[2]{node (p#1) [etape]
          {#2}}

          newcommand{transreceptor}[3]{%
          path [linepart] (#1.east) -- node [above]
          {scriptsize #2} (#3);}

          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]

          % Draw diagram elements
          path etape{1}{textbf{Operating Items}};
          path (p1.west)+(-6.5,0.0)etape{2}{textbf{Non-Operating Items}};
          path (p2.south)+(1,-1.0)etape{3}{textbf{Interest}};
          path (p3.south)+(0.0,-1.0)etape{4}{textbf{Profits and Losses}};
          path (p4.south)+(0.0,-1.0)etape{5}{textbf{Subsidies}};
          path (p1.south)+(2.5,-1.0)etape{6}{textbf{Direct Operating Costs}};
          path (p1.south)+(-2.5,-1.0)etape{7}{textbf{Indirect Operating Costs}};




          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          path [line] (p1.south) -- +(0.0,-0.2) -- +(+2.5,-0.2)
          -- node [above, midway] {} (p6);
          path [line] (p1.south) -- +(0.0,-0.2) -- +(-2.5,-0.2)
          -- node [above, midway] {} (p7);


          end{tikzpicture}
          end{document}


          enter image description here



          If you are asking about a cleaner code that achieves this output, the answer will be quite different. E.g. the following is already shorter and simpler IMHO.



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{arrows,positioning}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          line/.style={draw, thick, color=black!30, -latex'}}


          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]
          begin{scope}[nodes=etape,font=bfseries]
          node (p1) {Operating Items};
          node[left=6.5cm of p1] (p2) {Non-Operating Items};
          node[below=5mm of p2,xshift=8mm] (p3) {Interest};
          node[below=5mm of p3] (p4) {Profits and Losses};
          node[below=5mm of p4] (p5) {Subsidies};
          node[below left=8mm and 1mm of p1.south] (p6) {Direct Operating Costs};
          node[below right=8mm and 1mm of p1.south] (p7) {Indirect Operating Costs};
          end{scope}
          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          foreach X in {6,7}
          {path [line] (p1.south) -- ++(0,-2mm) -| (pX.north);}
          end{tikzpicture}
          end{document}





          share|improve this answer


























          • That was exactly what I was searching for

            – L Lewis
            6 hours ago
















          3














          Welcome to TeX-SE! If your question is about a minimal damage modification of your code that produces something of that sort, here is a proposal:



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{shadows,arrows,positioning}
          usepackage{color,soul} %For highlighting
          % Define the layers to draw the diagram
          pgfdeclarelayer{background}
          pgfdeclarelayer{foreground}
          pgfsetlayers{background,main,foreground}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          texto/.style={above, text width=6em, text centered},
          linepart/.style={draw, thick, color=black!30, -latex', dashed},
          line/.style={draw, thick, color=black!30, -latex'},
          ur/.style={draw, text centered, minimum height=0.01em}}

          % Define distances for bordering
          newcommand{blockdist}{1.3}
          newcommand{edgedist}{1.5}

          newcommand{etape}[2]{node (p#1) [etape]
          {#2}}

          newcommand{transreceptor}[3]{%
          path [linepart] (#1.east) -- node [above]
          {scriptsize #2} (#3);}

          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]

          % Draw diagram elements
          path etape{1}{textbf{Operating Items}};
          path (p1.west)+(-6.5,0.0)etape{2}{textbf{Non-Operating Items}};
          path (p2.south)+(1,-1.0)etape{3}{textbf{Interest}};
          path (p3.south)+(0.0,-1.0)etape{4}{textbf{Profits and Losses}};
          path (p4.south)+(0.0,-1.0)etape{5}{textbf{Subsidies}};
          path (p1.south)+(2.5,-1.0)etape{6}{textbf{Direct Operating Costs}};
          path (p1.south)+(-2.5,-1.0)etape{7}{textbf{Indirect Operating Costs}};




          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          path [line] (p1.south) -- +(0.0,-0.2) -- +(+2.5,-0.2)
          -- node [above, midway] {} (p6);
          path [line] (p1.south) -- +(0.0,-0.2) -- +(-2.5,-0.2)
          -- node [above, midway] {} (p7);


          end{tikzpicture}
          end{document}


          enter image description here



          If you are asking about a cleaner code that achieves this output, the answer will be quite different. E.g. the following is already shorter and simpler IMHO.



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{arrows,positioning}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          line/.style={draw, thick, color=black!30, -latex'}}


          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]
          begin{scope}[nodes=etape,font=bfseries]
          node (p1) {Operating Items};
          node[left=6.5cm of p1] (p2) {Non-Operating Items};
          node[below=5mm of p2,xshift=8mm] (p3) {Interest};
          node[below=5mm of p3] (p4) {Profits and Losses};
          node[below=5mm of p4] (p5) {Subsidies};
          node[below left=8mm and 1mm of p1.south] (p6) {Direct Operating Costs};
          node[below right=8mm and 1mm of p1.south] (p7) {Indirect Operating Costs};
          end{scope}
          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          foreach X in {6,7}
          {path [line] (p1.south) -- ++(0,-2mm) -| (pX.north);}
          end{tikzpicture}
          end{document}





          share|improve this answer


























          • That was exactly what I was searching for

            – L Lewis
            6 hours ago














          3












          3








          3







          Welcome to TeX-SE! If your question is about a minimal damage modification of your code that produces something of that sort, here is a proposal:



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{shadows,arrows,positioning}
          usepackage{color,soul} %For highlighting
          % Define the layers to draw the diagram
          pgfdeclarelayer{background}
          pgfdeclarelayer{foreground}
          pgfsetlayers{background,main,foreground}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          texto/.style={above, text width=6em, text centered},
          linepart/.style={draw, thick, color=black!30, -latex', dashed},
          line/.style={draw, thick, color=black!30, -latex'},
          ur/.style={draw, text centered, minimum height=0.01em}}

          % Define distances for bordering
          newcommand{blockdist}{1.3}
          newcommand{edgedist}{1.5}

          newcommand{etape}[2]{node (p#1) [etape]
          {#2}}

          newcommand{transreceptor}[3]{%
          path [linepart] (#1.east) -- node [above]
          {scriptsize #2} (#3);}

          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]

          % Draw diagram elements
          path etape{1}{textbf{Operating Items}};
          path (p1.west)+(-6.5,0.0)etape{2}{textbf{Non-Operating Items}};
          path (p2.south)+(1,-1.0)etape{3}{textbf{Interest}};
          path (p3.south)+(0.0,-1.0)etape{4}{textbf{Profits and Losses}};
          path (p4.south)+(0.0,-1.0)etape{5}{textbf{Subsidies}};
          path (p1.south)+(2.5,-1.0)etape{6}{textbf{Direct Operating Costs}};
          path (p1.south)+(-2.5,-1.0)etape{7}{textbf{Indirect Operating Costs}};




          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          path [line] (p1.south) -- +(0.0,-0.2) -- +(+2.5,-0.2)
          -- node [above, midway] {} (p6);
          path [line] (p1.south) -- +(0.0,-0.2) -- +(-2.5,-0.2)
          -- node [above, midway] {} (p7);


          end{tikzpicture}
          end{document}


          enter image description here



          If you are asking about a cleaner code that achieves this output, the answer will be quite different. E.g. the following is already shorter and simpler IMHO.



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{arrows,positioning}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          line/.style={draw, thick, color=black!30, -latex'}}


          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]
          begin{scope}[nodes=etape,font=bfseries]
          node (p1) {Operating Items};
          node[left=6.5cm of p1] (p2) {Non-Operating Items};
          node[below=5mm of p2,xshift=8mm] (p3) {Interest};
          node[below=5mm of p3] (p4) {Profits and Losses};
          node[below=5mm of p4] (p5) {Subsidies};
          node[below left=8mm and 1mm of p1.south] (p6) {Direct Operating Costs};
          node[below right=8mm and 1mm of p1.south] (p7) {Indirect Operating Costs};
          end{scope}
          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          foreach X in {6,7}
          {path [line] (p1.south) -- ++(0,-2mm) -| (pX.north);}
          end{tikzpicture}
          end{document}





          share|improve this answer















          Welcome to TeX-SE! If your question is about a minimal damage modification of your code that produces something of that sort, here is a proposal:



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{shadows,arrows,positioning}
          usepackage{color,soul} %For highlighting
          % Define the layers to draw the diagram
          pgfdeclarelayer{background}
          pgfdeclarelayer{foreground}
          pgfsetlayers{background,main,foreground}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          texto/.style={above, text width=6em, text centered},
          linepart/.style={draw, thick, color=black!30, -latex', dashed},
          line/.style={draw, thick, color=black!30, -latex'},
          ur/.style={draw, text centered, minimum height=0.01em}}

          % Define distances for bordering
          newcommand{blockdist}{1.3}
          newcommand{edgedist}{1.5}

          newcommand{etape}[2]{node (p#1) [etape]
          {#2}}

          newcommand{transreceptor}[3]{%
          path [linepart] (#1.east) -- node [above]
          {scriptsize #2} (#3);}

          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]

          % Draw diagram elements
          path etape{1}{textbf{Operating Items}};
          path (p1.west)+(-6.5,0.0)etape{2}{textbf{Non-Operating Items}};
          path (p2.south)+(1,-1.0)etape{3}{textbf{Interest}};
          path (p3.south)+(0.0,-1.0)etape{4}{textbf{Profits and Losses}};
          path (p4.south)+(0.0,-1.0)etape{5}{textbf{Subsidies}};
          path (p1.south)+(2.5,-1.0)etape{6}{textbf{Direct Operating Costs}};
          path (p1.south)+(-2.5,-1.0)etape{7}{textbf{Indirect Operating Costs}};




          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          path [line] (p1.south) -- +(0.0,-0.2) -- +(+2.5,-0.2)
          -- node [above, midway] {} (p6);
          path [line] (p1.south) -- +(0.0,-0.2) -- +(-2.5,-0.2)
          -- node [above, midway] {} (p7);


          end{tikzpicture}
          end{document}


          enter image description here



          If you are asking about a cleaner code that achieves this output, the answer will be quite different. E.g. the following is already shorter and simpler IMHO.



          documentclass[tikz,border=10pt]{standalone}
          usetikzlibrary{arrows,positioning}

          % Define block styles
          tikzset{materia/.style={draw, text width=6.0em, text centered,
          minimum height=1.5em},
          etape/.style={materia, text width=12em, minimum width=10em,
          minimum height=3em, rounded corners},
          line/.style={draw, thick, color=black!30, -latex'}}


          begin{document}
          begin{tikzpicture}[scale=0.7,transform shape]
          begin{scope}[nodes=etape,font=bfseries]
          node (p1) {Operating Items};
          node[left=6.5cm of p1] (p2) {Non-Operating Items};
          node[below=5mm of p2,xshift=8mm] (p3) {Interest};
          node[below=5mm of p3] (p4) {Profits and Losses};
          node[below=5mm of p4] (p5) {Subsidies};
          node[below left=8mm and 1mm of p1.south] (p6) {Direct Operating Costs};
          node[below right=8mm and 1mm of p1.south] (p7) {Indirect Operating Costs};
          end{scope}
          % Draw arrows between elements
          foreach X in {3,4,5}
          {path [line] (p2.-165) |- (pX.west);}
          foreach X in {6,7}
          {path [line] (p1.south) -- ++(0,-2mm) -| (pX.north);}
          end{tikzpicture}
          end{document}






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 6 hours ago

























          answered 6 hours ago









          marmotmarmot

          116k5146277




          116k5146277













          • That was exactly what I was searching for

            – L Lewis
            6 hours ago



















          • That was exactly what I was searching for

            – L Lewis
            6 hours ago

















          That was exactly what I was searching for

          – L Lewis
          6 hours ago





          That was exactly what I was searching for

          – L Lewis
          6 hours ago










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










          draft saved

          draft discarded


















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













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












          L Lewis 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%2f483701%2fwork-breakdown-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

          Gersau Kjelder | Navigasjonsmeny46°59′0″N 8°31′0″E46°59′0″N...

          Hestehale Innhaldsliste Hestehale på kvinner | Hestehale på menn | Galleri | Sjå òg |...

          What is the “three and three hundred thousand syndrome”?Who wrote the book Arena?What five creatures were...