TIKZ - changing one block into parallel multiple blocksRotate a node but not its content: the case of the...
Disappearing left side of `aligned`
How much cash can I safely carry into the USA and avoid civil forfeiture?
Was there a Viking Exchange as well as a Columbian one?
Can we say “you can pay when the order gets ready”?
Why did C use the -> operator instead of reusing the . operator?
How to limit Drive Letters Windows assigns to new removable USB drives
Mjolnir's timeline from Thor's perspective
Why must Chinese maps be obfuscated?
555 timer FM transmitter
Was there a shared-world project before "Thieves World"?
Why do games have consumables?
Contradiction proof for inequality of P and NP?
Why was primality test thought to be NP?
Does Gita support doctrine of eternal cycle of birth and death for evil people?
Do I have to worry about players making “bad” choices on level up?
Are Boeing 737-800’s grounded?
Minor Revision with suggestion of an alternative proof by reviewer
Apply MapThread to all but one variable
Pulling the rope with one hand is as heavy as with two hands?
Which context has the verb "admit" been used in here?
Is it idiomatic to construct against `this`?
Can an Area of Effect spell cast outside a Prismatic Wall extend inside it?
How to fry ground beef so it is well-browned
Philosophical question on logistic regression: why isn't the optimal threshold value trained?
TIKZ - changing one block into parallel multiple blocks
Rotate a node but not its content: the case of the ellipse decorationReuse of soft path in fading declaration? Transformation of fadings?How to define the default vertical distance between nodes?Numerical conditional within tikz keys?changing your latex code to modify the existing block diagramLine up nested tikz enviroments or how to get rid of themHow to draw an arrow from one block to two blocks with TikzTikz: merging three parallel lines into one bigger arrowrearrange tikz dashed rectangle blocksAlignment of various blocks in tikz
I have the following code:
documentclass[crop,tikz]{standalone}
usepackage{tikz}
usepackage{textcomp}
usetikzlibrary{shapes,arrows}
usetikzlibrary{positioning}
usetikzlibrary{arrows,
chains,
decorations.markings,
shadows, shapes.arrows,shapes}
begin{document}
begin{tikzpicture}
begin{scope}[start chain = going below,
every node/.append style={on chain,fill opacity=0.8,draw,
join},every join/.style={thick,-latex},
cs/.style={minimum width=4.5cm,copy shadow={shadow scale=1, shadow xshift=0.5ex, shadow yshift=-0.5ex}}
]
node[fill=white] (N1) {begin{tabular}{p{1cm}cp{1cm}}
IOH\
& enspacetiny $Ktimes K$quadquad quad &
end{tabular}};
node[fill=orange] (N2) {begin{tabular}{p{4cm}cp{1cm}}
COI\
qquadenspacetinyquadquadquadquad $Ktimes K$
end{tabular}};
node[fill=white] (N3) {begin{tabular}{p{4cm}cp{4cm}}
qquad
end{tabular}};
node[fill=white] (N4) {begin{tabular}{p{1cm}cp{1cm}}
GOH &\
& tiny $Ktimes K$ enspaceenspace&
end{tabular}};
end{scope}
path (N1) -- (N2) coordinate[pos=0.5] (aux);
path (N2) -- (N3) node[pos=0.5,right,font=bfseriesitshape]{};
path (N3) -- (N4) node[pos=0.5,right,font=bfseriesitshape]{};
end{tikzpicture}
end{document}
which produces the following figure:
Now I want to change this code in order to get the new figure:
Note that above the character 'N' appears an underbrace.
tikz-pgf tikz-styles tikz-arrows tikz-trees tikz-node
add a comment |
I have the following code:
documentclass[crop,tikz]{standalone}
usepackage{tikz}
usepackage{textcomp}
usetikzlibrary{shapes,arrows}
usetikzlibrary{positioning}
usetikzlibrary{arrows,
chains,
decorations.markings,
shadows, shapes.arrows,shapes}
begin{document}
begin{tikzpicture}
begin{scope}[start chain = going below,
every node/.append style={on chain,fill opacity=0.8,draw,
join},every join/.style={thick,-latex},
cs/.style={minimum width=4.5cm,copy shadow={shadow scale=1, shadow xshift=0.5ex, shadow yshift=-0.5ex}}
]
node[fill=white] (N1) {begin{tabular}{p{1cm}cp{1cm}}
IOH\
& enspacetiny $Ktimes K$quadquad quad &
end{tabular}};
node[fill=orange] (N2) {begin{tabular}{p{4cm}cp{1cm}}
COI\
qquadenspacetinyquadquadquadquad $Ktimes K$
end{tabular}};
node[fill=white] (N3) {begin{tabular}{p{4cm}cp{4cm}}
qquad
end{tabular}};
node[fill=white] (N4) {begin{tabular}{p{1cm}cp{1cm}}
GOH &\
& tiny $Ktimes K$ enspaceenspace&
end{tabular}};
end{scope}
path (N1) -- (N2) coordinate[pos=0.5] (aux);
path (N2) -- (N3) node[pos=0.5,right,font=bfseriesitshape]{};
path (N3) -- (N4) node[pos=0.5,right,font=bfseriesitshape]{};
end{tikzpicture}
end{document}
which produces the following figure:
Now I want to change this code in order to get the new figure:
Note that above the character 'N' appears an underbrace.
tikz-pgf tikz-styles tikz-arrows tikz-trees tikz-node
add a comment |
I have the following code:
documentclass[crop,tikz]{standalone}
usepackage{tikz}
usepackage{textcomp}
usetikzlibrary{shapes,arrows}
usetikzlibrary{positioning}
usetikzlibrary{arrows,
chains,
decorations.markings,
shadows, shapes.arrows,shapes}
begin{document}
begin{tikzpicture}
begin{scope}[start chain = going below,
every node/.append style={on chain,fill opacity=0.8,draw,
join},every join/.style={thick,-latex},
cs/.style={minimum width=4.5cm,copy shadow={shadow scale=1, shadow xshift=0.5ex, shadow yshift=-0.5ex}}
]
node[fill=white] (N1) {begin{tabular}{p{1cm}cp{1cm}}
IOH\
& enspacetiny $Ktimes K$quadquad quad &
end{tabular}};
node[fill=orange] (N2) {begin{tabular}{p{4cm}cp{1cm}}
COI\
qquadenspacetinyquadquadquadquad $Ktimes K$
end{tabular}};
node[fill=white] (N3) {begin{tabular}{p{4cm}cp{4cm}}
qquad
end{tabular}};
node[fill=white] (N4) {begin{tabular}{p{1cm}cp{1cm}}
GOH &\
& tiny $Ktimes K$ enspaceenspace&
end{tabular}};
end{scope}
path (N1) -- (N2) coordinate[pos=0.5] (aux);
path (N2) -- (N3) node[pos=0.5,right,font=bfseriesitshape]{};
path (N3) -- (N4) node[pos=0.5,right,font=bfseriesitshape]{};
end{tikzpicture}
end{document}
which produces the following figure:
Now I want to change this code in order to get the new figure:
Note that above the character 'N' appears an underbrace.
tikz-pgf tikz-styles tikz-arrows tikz-trees tikz-node
I have the following code:
documentclass[crop,tikz]{standalone}
usepackage{tikz}
usepackage{textcomp}
usetikzlibrary{shapes,arrows}
usetikzlibrary{positioning}
usetikzlibrary{arrows,
chains,
decorations.markings,
shadows, shapes.arrows,shapes}
begin{document}
begin{tikzpicture}
begin{scope}[start chain = going below,
every node/.append style={on chain,fill opacity=0.8,draw,
join},every join/.style={thick,-latex},
cs/.style={minimum width=4.5cm,copy shadow={shadow scale=1, shadow xshift=0.5ex, shadow yshift=-0.5ex}}
]
node[fill=white] (N1) {begin{tabular}{p{1cm}cp{1cm}}
IOH\
& enspacetiny $Ktimes K$quadquad quad &
end{tabular}};
node[fill=orange] (N2) {begin{tabular}{p{4cm}cp{1cm}}
COI\
qquadenspacetinyquadquadquadquad $Ktimes K$
end{tabular}};
node[fill=white] (N3) {begin{tabular}{p{4cm}cp{4cm}}
qquad
end{tabular}};
node[fill=white] (N4) {begin{tabular}{p{1cm}cp{1cm}}
GOH &\
& tiny $Ktimes K$ enspaceenspace&
end{tabular}};
end{scope}
path (N1) -- (N2) coordinate[pos=0.5] (aux);
path (N2) -- (N3) node[pos=0.5,right,font=bfseriesitshape]{};
path (N3) -- (N4) node[pos=0.5,right,font=bfseriesitshape]{};
end{tikzpicture}
end{document}
which produces the following figure:
Now I want to change this code in order to get the new figure:
Note that above the character 'N' appears an underbrace.
tikz-pgf tikz-styles tikz-arrows tikz-trees tikz-node
tikz-pgf tikz-styles tikz-arrows tikz-trees tikz-node
edited 3 hours ago
Codevan
asked 3 hours ago
CodevanCodevan
473
473
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
chains,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
}
usepackage{textcomp}
usepackage{array}
begin{document}
begin{tikzpicture}[
node distance = 5mm and 7mm,
start chain = going below,
box/.style = {draw, fill=#1, minimum size=2em},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
begin{scope}[every node/.append style={on chain}]
node (N1) [box]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
IOH & & \
& $Ktimes K$ &
end{tabular}};
node (N2) [box=orange]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
COI & & \
& $Ktimes K$ &
end{tabular}};
node (N3) [box, node font=bfseries] {A};
end{scope}
node (N4) [box,below=11mm of N3]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
GOH & & \
& $Ktimes K$ &
end{tabular}};
node (N3L) [box, node font=bfseries, left=of N3] {A};
node (N3R) [box, node font=bfseries,right=of N3] {A};
%
path (N1) edge (N2)
(N2) edge (N3)
(N2) edge (N3L.north)
(N2) edge (N3R.north);
draw[BC] (N3R.south east) -- node (aux) [below=2mm] {$N$} (N3L.south west);
path[shorten >=1pt] (aux -| N3L) edge (N4)
(aux) edge (N4)
(aux -| N3R) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3L) edge[-] (N3)
(N3R) edge[-] (N3);
end{tikzpicture}
end{document}
Note:: from your MWE I remove all not used TikZ libraries and defined style and add arrows.meta
(for arrows head), and decorations.pathreplacing
and calligraphy
for brace under nodes with text "A".
add a comment |
This is a little variation on Zarko's excellent code.
Node's contents are defined as labels
instead of tabulars
. This way, node's size must be declared.
Positions are defined with positioning
library and no chains
are used.
Nodes in third row are declared with a matrix
node.
All edges are drawn using Zarko's code adapted to new names for third row nodes.
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
matrix,
positioning
}
usepackage{textcomp}
begin{document}
begin{tikzpicture}[
node distance = 5mm,
box/.style = {draw, fill=#1, minimum height=1cm, minimum width=4.5cm},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
node (N1) [box, label={[anchor=north west]north west:IOH},
label={[anchor=south, font=tiny]south:$Ktimes K$}]
{};
node (N2) [box=orange, label={[anchor=north west]north west:COI},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=of N1]
{};
matrix (N3) [matrix of nodes, inner sep=0pt, nodes={minimum size=1cm, draw, anchor=center, node font=bfseries, node contents=A}, nodes in empty cells, column sep=.5cm,
below=of N2]{&&\};
node (N4) [box, label={[anchor=north west]north west:GOH},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=1cm of N3]
{};
path (N1) edge (N2)
(N2) edge (N3-1-1.north)
(N2) edge (N3-1-2)
(N2) edge (N3-1-3.north);
draw[BC] (N3.south east) -- node (aux) [below=2mm] {$N$} (N3.south west);
path[shorten >=1pt] (aux -| N3-1-1) edge (N4)
(aux) edge (N4)
(aux -| N3-1-3) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3-1-1) edge[-] (N3-1-2)
(N3-1-2) edge[-] (N3-1-3);
end{tikzpicture}
end{document}
nice answer (+1)! somewhere in my remembrance i had your solutions for labels inside nodes which you probably show in some my question ;-)
– Zarko
5 mins ago
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
});
}
});
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%2f487890%2ftikz-changing-one-block-into-parallel-multiple-blocks%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
chains,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
}
usepackage{textcomp}
usepackage{array}
begin{document}
begin{tikzpicture}[
node distance = 5mm and 7mm,
start chain = going below,
box/.style = {draw, fill=#1, minimum size=2em},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
begin{scope}[every node/.append style={on chain}]
node (N1) [box]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
IOH & & \
& $Ktimes K$ &
end{tabular}};
node (N2) [box=orange]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
COI & & \
& $Ktimes K$ &
end{tabular}};
node (N3) [box, node font=bfseries] {A};
end{scope}
node (N4) [box,below=11mm of N3]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
GOH & & \
& $Ktimes K$ &
end{tabular}};
node (N3L) [box, node font=bfseries, left=of N3] {A};
node (N3R) [box, node font=bfseries,right=of N3] {A};
%
path (N1) edge (N2)
(N2) edge (N3)
(N2) edge (N3L.north)
(N2) edge (N3R.north);
draw[BC] (N3R.south east) -- node (aux) [below=2mm] {$N$} (N3L.south west);
path[shorten >=1pt] (aux -| N3L) edge (N4)
(aux) edge (N4)
(aux -| N3R) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3L) edge[-] (N3)
(N3R) edge[-] (N3);
end{tikzpicture}
end{document}
Note:: from your MWE I remove all not used TikZ libraries and defined style and add arrows.meta
(for arrows head), and decorations.pathreplacing
and calligraphy
for brace under nodes with text "A".
add a comment |
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
chains,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
}
usepackage{textcomp}
usepackage{array}
begin{document}
begin{tikzpicture}[
node distance = 5mm and 7mm,
start chain = going below,
box/.style = {draw, fill=#1, minimum size=2em},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
begin{scope}[every node/.append style={on chain}]
node (N1) [box]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
IOH & & \
& $Ktimes K$ &
end{tabular}};
node (N2) [box=orange]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
COI & & \
& $Ktimes K$ &
end{tabular}};
node (N3) [box, node font=bfseries] {A};
end{scope}
node (N4) [box,below=11mm of N3]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
GOH & & \
& $Ktimes K$ &
end{tabular}};
node (N3L) [box, node font=bfseries, left=of N3] {A};
node (N3R) [box, node font=bfseries,right=of N3] {A};
%
path (N1) edge (N2)
(N2) edge (N3)
(N2) edge (N3L.north)
(N2) edge (N3R.north);
draw[BC] (N3R.south east) -- node (aux) [below=2mm] {$N$} (N3L.south west);
path[shorten >=1pt] (aux -| N3L) edge (N4)
(aux) edge (N4)
(aux -| N3R) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3L) edge[-] (N3)
(N3R) edge[-] (N3);
end{tikzpicture}
end{document}
Note:: from your MWE I remove all not used TikZ libraries and defined style and add arrows.meta
(for arrows head), and decorations.pathreplacing
and calligraphy
for brace under nodes with text "A".
add a comment |
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
chains,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
}
usepackage{textcomp}
usepackage{array}
begin{document}
begin{tikzpicture}[
node distance = 5mm and 7mm,
start chain = going below,
box/.style = {draw, fill=#1, minimum size=2em},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
begin{scope}[every node/.append style={on chain}]
node (N1) [box]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
IOH & & \
& $Ktimes K$ &
end{tabular}};
node (N2) [box=orange]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
COI & & \
& $Ktimes K$ &
end{tabular}};
node (N3) [box, node font=bfseries] {A};
end{scope}
node (N4) [box,below=11mm of N3]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
GOH & & \
& $Ktimes K$ &
end{tabular}};
node (N3L) [box, node font=bfseries, left=of N3] {A};
node (N3R) [box, node font=bfseries,right=of N3] {A};
%
path (N1) edge (N2)
(N2) edge (N3)
(N2) edge (N3L.north)
(N2) edge (N3R.north);
draw[BC] (N3R.south east) -- node (aux) [below=2mm] {$N$} (N3L.south west);
path[shorten >=1pt] (aux -| N3L) edge (N4)
(aux) edge (N4)
(aux -| N3R) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3L) edge[-] (N3)
(N3R) edge[-] (N3);
end{tikzpicture}
end{document}
Note:: from your MWE I remove all not used TikZ libraries and defined style and add arrows.meta
(for arrows head), and decorations.pathreplacing
and calligraphy
for brace under nodes with text "A".
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
chains,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
}
usepackage{textcomp}
usepackage{array}
begin{document}
begin{tikzpicture}[
node distance = 5mm and 7mm,
start chain = going below,
box/.style = {draw, fill=#1, minimum size=2em},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
begin{scope}[every node/.append style={on chain}]
node (N1) [box]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
IOH & & \
& $Ktimes K$ &
end{tabular}};
node (N2) [box=orange]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
COI & & \
& $Ktimes K$ &
end{tabular}};
node (N3) [box, node font=bfseries] {A};
end{scope}
node (N4) [box,below=11mm of N3]
{begin{tabular}{p{12mm} >{tiny}c p{12mm}}
GOH & & \
& $Ktimes K$ &
end{tabular}};
node (N3L) [box, node font=bfseries, left=of N3] {A};
node (N3R) [box, node font=bfseries,right=of N3] {A};
%
path (N1) edge (N2)
(N2) edge (N3)
(N2) edge (N3L.north)
(N2) edge (N3R.north);
draw[BC] (N3R.south east) -- node (aux) [below=2mm] {$N$} (N3L.south west);
path[shorten >=1pt] (aux -| N3L) edge (N4)
(aux) edge (N4)
(aux -| N3R) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3L) edge[-] (N3)
(N3R) edge[-] (N3);
end{tikzpicture}
end{document}
Note:: from your MWE I remove all not used TikZ libraries and defined style and add arrows.meta
(for arrows head), and decorations.pathreplacing
and calligraphy
for brace under nodes with text "A".
answered 2 hours ago
ZarkoZarko
131k870170
131k870170
add a comment |
add a comment |
This is a little variation on Zarko's excellent code.
Node's contents are defined as labels
instead of tabulars
. This way, node's size must be declared.
Positions are defined with positioning
library and no chains
are used.
Nodes in third row are declared with a matrix
node.
All edges are drawn using Zarko's code adapted to new names for third row nodes.
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
matrix,
positioning
}
usepackage{textcomp}
begin{document}
begin{tikzpicture}[
node distance = 5mm,
box/.style = {draw, fill=#1, minimum height=1cm, minimum width=4.5cm},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
node (N1) [box, label={[anchor=north west]north west:IOH},
label={[anchor=south, font=tiny]south:$Ktimes K$}]
{};
node (N2) [box=orange, label={[anchor=north west]north west:COI},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=of N1]
{};
matrix (N3) [matrix of nodes, inner sep=0pt, nodes={minimum size=1cm, draw, anchor=center, node font=bfseries, node contents=A}, nodes in empty cells, column sep=.5cm,
below=of N2]{&&\};
node (N4) [box, label={[anchor=north west]north west:GOH},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=1cm of N3]
{};
path (N1) edge (N2)
(N2) edge (N3-1-1.north)
(N2) edge (N3-1-2)
(N2) edge (N3-1-3.north);
draw[BC] (N3.south east) -- node (aux) [below=2mm] {$N$} (N3.south west);
path[shorten >=1pt] (aux -| N3-1-1) edge (N4)
(aux) edge (N4)
(aux -| N3-1-3) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3-1-1) edge[-] (N3-1-2)
(N3-1-2) edge[-] (N3-1-3);
end{tikzpicture}
end{document}
nice answer (+1)! somewhere in my remembrance i had your solutions for labels inside nodes which you probably show in some my question ;-)
– Zarko
5 mins ago
add a comment |
This is a little variation on Zarko's excellent code.
Node's contents are defined as labels
instead of tabulars
. This way, node's size must be declared.
Positions are defined with positioning
library and no chains
are used.
Nodes in third row are declared with a matrix
node.
All edges are drawn using Zarko's code adapted to new names for third row nodes.
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
matrix,
positioning
}
usepackage{textcomp}
begin{document}
begin{tikzpicture}[
node distance = 5mm,
box/.style = {draw, fill=#1, minimum height=1cm, minimum width=4.5cm},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
node (N1) [box, label={[anchor=north west]north west:IOH},
label={[anchor=south, font=tiny]south:$Ktimes K$}]
{};
node (N2) [box=orange, label={[anchor=north west]north west:COI},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=of N1]
{};
matrix (N3) [matrix of nodes, inner sep=0pt, nodes={minimum size=1cm, draw, anchor=center, node font=bfseries, node contents=A}, nodes in empty cells, column sep=.5cm,
below=of N2]{&&\};
node (N4) [box, label={[anchor=north west]north west:GOH},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=1cm of N3]
{};
path (N1) edge (N2)
(N2) edge (N3-1-1.north)
(N2) edge (N3-1-2)
(N2) edge (N3-1-3.north);
draw[BC] (N3.south east) -- node (aux) [below=2mm] {$N$} (N3.south west);
path[shorten >=1pt] (aux -| N3-1-1) edge (N4)
(aux) edge (N4)
(aux -| N3-1-3) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3-1-1) edge[-] (N3-1-2)
(N3-1-2) edge[-] (N3-1-3);
end{tikzpicture}
end{document}
nice answer (+1)! somewhere in my remembrance i had your solutions for labels inside nodes which you probably show in some my question ;-)
– Zarko
5 mins ago
add a comment |
This is a little variation on Zarko's excellent code.
Node's contents are defined as labels
instead of tabulars
. This way, node's size must be declared.
Positions are defined with positioning
library and no chains
are used.
Nodes in third row are declared with a matrix
node.
All edges are drawn using Zarko's code adapted to new names for third row nodes.
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
matrix,
positioning
}
usepackage{textcomp}
begin{document}
begin{tikzpicture}[
node distance = 5mm,
box/.style = {draw, fill=#1, minimum height=1cm, minimum width=4.5cm},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
node (N1) [box, label={[anchor=north west]north west:IOH},
label={[anchor=south, font=tiny]south:$Ktimes K$}]
{};
node (N2) [box=orange, label={[anchor=north west]north west:COI},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=of N1]
{};
matrix (N3) [matrix of nodes, inner sep=0pt, nodes={minimum size=1cm, draw, anchor=center, node font=bfseries, node contents=A}, nodes in empty cells, column sep=.5cm,
below=of N2]{&&\};
node (N4) [box, label={[anchor=north west]north west:GOH},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=1cm of N3]
{};
path (N1) edge (N2)
(N2) edge (N3-1-1.north)
(N2) edge (N3-1-2)
(N2) edge (N3-1-3.north);
draw[BC] (N3.south east) -- node (aux) [below=2mm] {$N$} (N3.south west);
path[shorten >=1pt] (aux -| N3-1-1) edge (N4)
(aux) edge (N4)
(aux -| N3-1-3) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3-1-1) edge[-] (N3-1-2)
(N3-1-2) edge[-] (N3-1-3);
end{tikzpicture}
end{document}
This is a little variation on Zarko's excellent code.
Node's contents are defined as labels
instead of tabulars
. This way, node's size must be declared.
Positions are defined with positioning
library and no chains
are used.
Nodes in third row are declared with a matrix
node.
All edges are drawn using Zarko's code adapted to new names for third row nodes.
documentclass[tikz, margin=3mm]{standalone}
usetikzlibrary{arrows.meta,
decorations.pathreplacing,
calligraphy,% had to be after lib. decorations.pathreplacings
matrix,
positioning
}
usepackage{textcomp}
begin{document}
begin{tikzpicture}[
node distance = 5mm,
box/.style = {draw, fill=#1, minimum height=1cm, minimum width=4.5cm},
box/.default = white,
every edge/.style = {draw, -Latex},
BC/.style = {decorate,
decoration={calligraphic brace, amplitude=5pt,
raise=1mm},
very thick, pen colour=#1
}
]
node (N1) [box, label={[anchor=north west]north west:IOH},
label={[anchor=south, font=tiny]south:$Ktimes K$}]
{};
node (N2) [box=orange, label={[anchor=north west]north west:COI},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=of N1]
{};
matrix (N3) [matrix of nodes, inner sep=0pt, nodes={minimum size=1cm, draw, anchor=center, node font=bfseries, node contents=A}, nodes in empty cells, column sep=.5cm,
below=of N2]{&&\};
node (N4) [box, label={[anchor=north west]north west:GOH},
label={[anchor=south, font=tiny]south:$Ktimes K$},
below=1cm of N3]
{};
path (N1) edge (N2)
(N2) edge (N3-1-1.north)
(N2) edge (N3-1-2)
(N2) edge (N3-1-3.north);
draw[BC] (N3.south east) -- node (aux) [below=2mm] {$N$} (N3.south west);
path[shorten >=1pt] (aux -| N3-1-1) edge (N4)
(aux) edge (N4)
(aux -| N3-1-3) edge (N4);
draw[ultra thick, shorten <=1mm, shorten >=1mm, dotted]
(N3-1-1) edge[-] (N3-1-2)
(N3-1-2) edge[-] (N3-1-3);
end{tikzpicture}
end{document}
answered 1 hour ago
IgnasiIgnasi
96.4k5176324
96.4k5176324
nice answer (+1)! somewhere in my remembrance i had your solutions for labels inside nodes which you probably show in some my question ;-)
– Zarko
5 mins ago
add a comment |
nice answer (+1)! somewhere in my remembrance i had your solutions for labels inside nodes which you probably show in some my question ;-)
– Zarko
5 mins ago
nice answer (+1)! somewhere in my remembrance i had your solutions for labels inside nodes which you probably show in some my question ;-)
– Zarko
5 mins ago
nice answer (+1)! somewhere in my remembrance i had your solutions for labels inside nodes which you probably show in some my question ;-)
– Zarko
5 mins ago
add a comment |
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%2f487890%2ftikz-changing-one-block-into-parallel-multiple-blocks%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