Work Breakdown with TikzTikZ: 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?
Why was the "bread communication" in the arena of Catching Fire left out in the movie?
Why is the design of haulage companies so “special”?
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
How to manage monthly salary
Add an angle to a sphere
Are objects structures and/or vice versa?
What is the offset in a seaplane's hull?
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
Can the Produce Flame cantrip be used to grapple, or as an unarmed strike, in the right circumstances?
Ideas for 3rd eye abilities
Typesetting a double Over Dot on top of a symbol
Why airport relocation isn't done gradually?
What are the advantages and disadvantages of running one shots compared to campaigns?
What happens when a metallic dragon and a chromatic dragon mate?
Symmetry in quantum mechanics
How do I create uniquely male characters?
Could Giant Ground Sloths have been a good pack animal for the ancient Mayans?
Doomsday-clock for my fantasy planet
What is the meaning of "of trouble" in the following sentence?
New order #4: World
Was there ever an axiom rendered a theorem?
What to wear for invited talk in Canada
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?
Im trying to create a Work Breakdown structure with tikz. I would like to have
Instead I have the following:
Here's my code:
documentclass[tikz,border=10pt]standaloneusepackagetikz
usetikzlibraryshadows,arrows,positioning
usepackagecolor,soul %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayerbackground
pgfdeclarelayerforeground
pgfsetlayersbackground,main,foreground
% Define block styles
tikzstylemateria=[draw, text width=6.0em, text centered,
minimum height=1.5em]
tikzstyleetape = [materia, text width=12em, minimum width=10em,
minimum height=3em, rounded corners]
tikzstyletexto = [above, text width=6em, text centered]
tikzstylelinepart = [draw, thick, color=black!30, -latex', dashed]
tikzstyleline = [draw, thick, color=black!30, -latex']
tikzstyleur=[draw, text centered, minimum height=0.01em]
% Define distances for bordering
newcommandblockdist1.3
newcommandedgedist1.5
newcommandetape[2]node (p#1) [etape]
#2
newcommandtransreceptor[3]%
path [linepart] (#1.east) -- node [above]
scriptsize #2 (#3);
begindocument
begintikzpicture[scale=0.7,transform shape]
% Draw diagram elements
path etape1textbfOperating Items;
path (p1.west)+(-5.0,0.0)etape2textbfNon-Operating Items;
path (p2.south)+(0.0,-1.0)etape3textbfInterest;
path (p3.south)+(0.0,-1.0)etape4textbfProfits and Losses;
path (p4.south)+(0.0,-1.0)etape5textbfSubsidies;
path (p1.south)+(2.5,-1.0)etape6textbfDirect Operating Costs;
path (p1.south)+(-2.5,-1.0)etape7textbfIndirect 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);
endtikzpicture
enddocument
´´´
tikz-pgf tikz-trees
New contributor
add a comment |
Im trying to create a Work Breakdown structure with tikz. I would like to have
Instead I have the following:
Here's my code:
documentclass[tikz,border=10pt]standaloneusepackagetikz
usetikzlibraryshadows,arrows,positioning
usepackagecolor,soul %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayerbackground
pgfdeclarelayerforeground
pgfsetlayersbackground,main,foreground
% Define block styles
tikzstylemateria=[draw, text width=6.0em, text centered,
minimum height=1.5em]
tikzstyleetape = [materia, text width=12em, minimum width=10em,
minimum height=3em, rounded corners]
tikzstyletexto = [above, text width=6em, text centered]
tikzstylelinepart = [draw, thick, color=black!30, -latex', dashed]
tikzstyleline = [draw, thick, color=black!30, -latex']
tikzstyleur=[draw, text centered, minimum height=0.01em]
% Define distances for bordering
newcommandblockdist1.3
newcommandedgedist1.5
newcommandetape[2]node (p#1) [etape]
#2
newcommandtransreceptor[3]%
path [linepart] (#1.east) -- node [above]
scriptsize #2 (#3);
begindocument
begintikzpicture[scale=0.7,transform shape]
% Draw diagram elements
path etape1textbfOperating Items;
path (p1.west)+(-5.0,0.0)etape2textbfNon-Operating Items;
path (p2.south)+(0.0,-1.0)etape3textbfInterest;
path (p3.south)+(0.0,-1.0)etape4textbfProfits and Losses;
path (p4.south)+(0.0,-1.0)etape5textbfSubsidies;
path (p1.south)+(2.5,-1.0)etape6textbfDirect Operating Costs;
path (p1.south)+(-2.5,-1.0)etape7textbfIndirect 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);
endtikzpicture
enddocument
´´´
tikz-pgf tikz-trees
New contributor
add a comment |
Im trying to create a Work Breakdown structure with tikz. I would like to have
Instead I have the following:
Here's my code:
documentclass[tikz,border=10pt]standaloneusepackagetikz
usetikzlibraryshadows,arrows,positioning
usepackagecolor,soul %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayerbackground
pgfdeclarelayerforeground
pgfsetlayersbackground,main,foreground
% Define block styles
tikzstylemateria=[draw, text width=6.0em, text centered,
minimum height=1.5em]
tikzstyleetape = [materia, text width=12em, minimum width=10em,
minimum height=3em, rounded corners]
tikzstyletexto = [above, text width=6em, text centered]
tikzstylelinepart = [draw, thick, color=black!30, -latex', dashed]
tikzstyleline = [draw, thick, color=black!30, -latex']
tikzstyleur=[draw, text centered, minimum height=0.01em]
% Define distances for bordering
newcommandblockdist1.3
newcommandedgedist1.5
newcommandetape[2]node (p#1) [etape]
#2
newcommandtransreceptor[3]%
path [linepart] (#1.east) -- node [above]
scriptsize #2 (#3);
begindocument
begintikzpicture[scale=0.7,transform shape]
% Draw diagram elements
path etape1textbfOperating Items;
path (p1.west)+(-5.0,0.0)etape2textbfNon-Operating Items;
path (p2.south)+(0.0,-1.0)etape3textbfInterest;
path (p3.south)+(0.0,-1.0)etape4textbfProfits and Losses;
path (p4.south)+(0.0,-1.0)etape5textbfSubsidies;
path (p1.south)+(2.5,-1.0)etape6textbfDirect Operating Costs;
path (p1.south)+(-2.5,-1.0)etape7textbfIndirect 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);
endtikzpicture
enddocument
´´´
tikz-pgf tikz-trees
New contributor
Im trying to create a Work Breakdown structure with tikz. I would like to have
Instead I have the following:
Here's my code:
documentclass[tikz,border=10pt]standaloneusepackagetikz
usetikzlibraryshadows,arrows,positioning
usepackagecolor,soul %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayerbackground
pgfdeclarelayerforeground
pgfsetlayersbackground,main,foreground
% Define block styles
tikzstylemateria=[draw, text width=6.0em, text centered,
minimum height=1.5em]
tikzstyleetape = [materia, text width=12em, minimum width=10em,
minimum height=3em, rounded corners]
tikzstyletexto = [above, text width=6em, text centered]
tikzstylelinepart = [draw, thick, color=black!30, -latex', dashed]
tikzstyleline = [draw, thick, color=black!30, -latex']
tikzstyleur=[draw, text centered, minimum height=0.01em]
% Define distances for bordering
newcommandblockdist1.3
newcommandedgedist1.5
newcommandetape[2]node (p#1) [etape]
#2
newcommandtransreceptor[3]%
path [linepart] (#1.east) -- node [above]
scriptsize #2 (#3);
begindocument
begintikzpicture[scale=0.7,transform shape]
% Draw diagram elements
path etape1textbfOperating Items;
path (p1.west)+(-5.0,0.0)etape2textbfNon-Operating Items;
path (p2.south)+(0.0,-1.0)etape3textbfInterest;
path (p3.south)+(0.0,-1.0)etape4textbfProfits and Losses;
path (p4.south)+(0.0,-1.0)etape5textbfSubsidies;
path (p1.south)+(2.5,-1.0)etape6textbfDirect Operating Costs;
path (p1.south)+(-2.5,-1.0)etape7textbfIndirect 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);
endtikzpicture
enddocument
´´´
tikz-pgf tikz-trees
tikz-pgf tikz-trees
New contributor
New contributor
New contributor
asked yesterday
L LewisL Lewis
232
232
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
usetikzlibraryshadows,arrows,positioning
usepackagecolor,soul %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayerbackground
pgfdeclarelayerforeground
pgfsetlayersbackground,main,foreground
% Define block styles
tikzsetmateria/.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
newcommandblockdist1.3
newcommandedgedist1.5
newcommandetape[2]node (p#1) [etape]
#2
newcommandtransreceptor[3]%
path [linepart] (#1.east) -- node [above]
scriptsize #2 (#3);
begindocument
begintikzpicture[scale=0.7,transform shape]
% Draw diagram elements
path etape1textbfOperating Items;
path (p1.west)+(-6.5,0.0)etape2textbfNon-Operating Items;
path (p2.south)+(1,-1.0)etape3textbfInterest;
path (p3.south)+(0.0,-1.0)etape4textbfProfits and Losses;
path (p4.south)+(0.0,-1.0)etape5textbfSubsidies;
path (p1.south)+(2.5,-1.0)etape6textbfDirect Operating Costs;
path (p1.south)+(-2.5,-1.0)etape7textbfIndirect Operating Costs;
% Draw arrows between elements
foreach X in 3,4,5
- (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);
endtikzpicture
enddocument
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
usetikzlibraryarrows,positioning
% Define block styles
tikzsetmateria/.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'
begindocument
begintikzpicture[scale=0.7,transform shape]
beginscope[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;
endscope
% Draw arrows between elements
foreach X in 3,4,5
- (pX.west);
foreach X in 6,7
path [line] (p1.south) -- ++(0,-2mm) -
endtikzpicture
enddocument
That was exactly what I was searching for
– L Lewis
yesterday
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
usetikzlibraryshadows,arrows,positioning
usepackagecolor,soul %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayerbackground
pgfdeclarelayerforeground
pgfsetlayersbackground,main,foreground
% Define block styles
tikzsetmateria/.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
newcommandblockdist1.3
newcommandedgedist1.5
newcommandetape[2]node (p#1) [etape]
#2
newcommandtransreceptor[3]%
path [linepart] (#1.east) -- node [above]
scriptsize #2 (#3);
begindocument
begintikzpicture[scale=0.7,transform shape]
% Draw diagram elements
path etape1textbfOperating Items;
path (p1.west)+(-6.5,0.0)etape2textbfNon-Operating Items;
path (p2.south)+(1,-1.0)etape3textbfInterest;
path (p3.south)+(0.0,-1.0)etape4textbfProfits and Losses;
path (p4.south)+(0.0,-1.0)etape5textbfSubsidies;
path (p1.south)+(2.5,-1.0)etape6textbfDirect Operating Costs;
path (p1.south)+(-2.5,-1.0)etape7textbfIndirect Operating Costs;
% Draw arrows between elements
foreach X in 3,4,5
- (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);
endtikzpicture
enddocument
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
usetikzlibraryarrows,positioning
% Define block styles
tikzsetmateria/.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'
begindocument
begintikzpicture[scale=0.7,transform shape]
beginscope[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;
endscope
% Draw arrows between elements
foreach X in 3,4,5
- (pX.west);
foreach X in 6,7
path [line] (p1.south) -- ++(0,-2mm) -
endtikzpicture
enddocument
That was exactly what I was searching for
– L Lewis
yesterday
add a comment |
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
usetikzlibraryshadows,arrows,positioning
usepackagecolor,soul %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayerbackground
pgfdeclarelayerforeground
pgfsetlayersbackground,main,foreground
% Define block styles
tikzsetmateria/.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
newcommandblockdist1.3
newcommandedgedist1.5
newcommandetape[2]node (p#1) [etape]
#2
newcommandtransreceptor[3]%
path [linepart] (#1.east) -- node [above]
scriptsize #2 (#3);
begindocument
begintikzpicture[scale=0.7,transform shape]
% Draw diagram elements
path etape1textbfOperating Items;
path (p1.west)+(-6.5,0.0)etape2textbfNon-Operating Items;
path (p2.south)+(1,-1.0)etape3textbfInterest;
path (p3.south)+(0.0,-1.0)etape4textbfProfits and Losses;
path (p4.south)+(0.0,-1.0)etape5textbfSubsidies;
path (p1.south)+(2.5,-1.0)etape6textbfDirect Operating Costs;
path (p1.south)+(-2.5,-1.0)etape7textbfIndirect Operating Costs;
% Draw arrows between elements
foreach X in 3,4,5
- (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);
endtikzpicture
enddocument
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
usetikzlibraryarrows,positioning
% Define block styles
tikzsetmateria/.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'
begindocument
begintikzpicture[scale=0.7,transform shape]
beginscope[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;
endscope
% Draw arrows between elements
foreach X in 3,4,5
- (pX.west);
foreach X in 6,7
path [line] (p1.south) -- ++(0,-2mm) -
endtikzpicture
enddocument
That was exactly what I was searching for
– L Lewis
yesterday
add a comment |
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
usetikzlibraryshadows,arrows,positioning
usepackagecolor,soul %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayerbackground
pgfdeclarelayerforeground
pgfsetlayersbackground,main,foreground
% Define block styles
tikzsetmateria/.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
newcommandblockdist1.3
newcommandedgedist1.5
newcommandetape[2]node (p#1) [etape]
#2
newcommandtransreceptor[3]%
path [linepart] (#1.east) -- node [above]
scriptsize #2 (#3);
begindocument
begintikzpicture[scale=0.7,transform shape]
% Draw diagram elements
path etape1textbfOperating Items;
path (p1.west)+(-6.5,0.0)etape2textbfNon-Operating Items;
path (p2.south)+(1,-1.0)etape3textbfInterest;
path (p3.south)+(0.0,-1.0)etape4textbfProfits and Losses;
path (p4.south)+(0.0,-1.0)etape5textbfSubsidies;
path (p1.south)+(2.5,-1.0)etape6textbfDirect Operating Costs;
path (p1.south)+(-2.5,-1.0)etape7textbfIndirect Operating Costs;
% Draw arrows between elements
foreach X in 3,4,5
- (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);
endtikzpicture
enddocument
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
usetikzlibraryarrows,positioning
% Define block styles
tikzsetmateria/.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'
begindocument
begintikzpicture[scale=0.7,transform shape]
beginscope[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;
endscope
% Draw arrows between elements
foreach X in 3,4,5
- (pX.west);
foreach X in 6,7
path [line] (p1.south) -- ++(0,-2mm) -
endtikzpicture
enddocument
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
usetikzlibraryshadows,arrows,positioning
usepackagecolor,soul %For highlighting
% Define the layers to draw the diagram
pgfdeclarelayerbackground
pgfdeclarelayerforeground
pgfsetlayersbackground,main,foreground
% Define block styles
tikzsetmateria/.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
newcommandblockdist1.3
newcommandedgedist1.5
newcommandetape[2]node (p#1) [etape]
#2
newcommandtransreceptor[3]%
path [linepart] (#1.east) -- node [above]
scriptsize #2 (#3);
begindocument
begintikzpicture[scale=0.7,transform shape]
% Draw diagram elements
path etape1textbfOperating Items;
path (p1.west)+(-6.5,0.0)etape2textbfNon-Operating Items;
path (p2.south)+(1,-1.0)etape3textbfInterest;
path (p3.south)+(0.0,-1.0)etape4textbfProfits and Losses;
path (p4.south)+(0.0,-1.0)etape5textbfSubsidies;
path (p1.south)+(2.5,-1.0)etape6textbfDirect Operating Costs;
path (p1.south)+(-2.5,-1.0)etape7textbfIndirect Operating Costs;
% Draw arrows between elements
foreach X in 3,4,5
- (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);
endtikzpicture
enddocument
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
usetikzlibraryarrows,positioning
% Define block styles
tikzsetmateria/.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'
begindocument
begintikzpicture[scale=0.7,transform shape]
beginscope[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;
endscope
% Draw arrows between elements
foreach X in 3,4,5
- (pX.west);
foreach X in 6,7
path [line] (p1.south) -- ++(0,-2mm) -
endtikzpicture
enddocument
edited yesterday
answered yesterday
marmotmarmot
116k5147277
116k5147277
That was exactly what I was searching for
– L Lewis
yesterday
add a comment |
That was exactly what I was searching for
– L Lewis
yesterday
That was exactly what I was searching for
– L Lewis
yesterday
That was exactly what I was searching for
– L Lewis
yesterday
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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