Problem drawing boxes with arrows in tikZ Announcing the arrival of Valued Associate #679:...
Why is black pepper both grey and black?
How discoverable are IPv6 addresses and AAAA names by potential attackers?
Are my PIs rude or am I just being too sensitive?
List *all* the tuples!
Using et al. for a last / senior author rather than for a first author
Why is "Captain Marvel" translated as male in Portugal?
How can I make names more distinctive without making them longer?
What is this single-engine low-wing propeller plane?
How can players work together to take actions that are otherwise impossible?
Bonus calculation: Am I making a mountain out of a molehill?
What's the difference between `auto x = vector<int>()` and `vector<int> x`?
Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?
Letter Boxed validator
If a contract sometimes uses the wrong name, is it still valid?
When is phishing education going too far?
When to stop saving and start investing?
How to find all the available tools in macOS terminal?
Is the Standard Deduction better than Itemized when both are the same amount?
I need to find the potential function of a vector field.
How to do this path/lattice with tikz
Is 1 ppb equal to 1 μg/kg?
Check which numbers satisfy the condition [A*B*C = A! + B! + C!]
Should I discuss the type of campaign with my players?
What do you call a phrase that's not an idiom yet?
Problem drawing boxes with arrows in tikZ
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)TikZ node placement and arrow drawingHow to define the default vertical distance between nodes?Computing the rectangle encompassing a node and a pointNumerical conditional within tikz keys?Input/Output Nodes - Specification and Description LanguageTikZ: Drawing an arc from an intersection to an intersectionHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?
Could someone, whenever it's possible, post a minimal tikZ example to draw this? I also would like to put an "R" inside the upper box. This is mi code so far (I know, it's a mess):
documentclass[tikz]{standalone}
begin{document}
tikzstyle{vspecies}=[rectangle, minimum size=0.5cm,draw=black,fill=blue]
begin{tikzpicture}
node [vspecies] (I) {I} ;
node [vspecies, above left of = I] (N) {M} ;
node [vspecies, below left of = I] (K) {K} ;
draw [->,thick] (S.south east) -- node {small{$N$}} (M) ; ;
draw [->,thick] (C) -- node [below right] {small{$M$}} (M) ;
end{tikzpicture}
end{document}
tikz-pgf
New contributor
add a comment |
Could someone, whenever it's possible, post a minimal tikZ example to draw this? I also would like to put an "R" inside the upper box. This is mi code so far (I know, it's a mess):
documentclass[tikz]{standalone}
begin{document}
tikzstyle{vspecies}=[rectangle, minimum size=0.5cm,draw=black,fill=blue]
begin{tikzpicture}
node [vspecies] (I) {I} ;
node [vspecies, above left of = I] (N) {M} ;
node [vspecies, below left of = I] (K) {K} ;
draw [->,thick] (S.south east) -- node {small{$N$}} (M) ; ;
draw [->,thick] (C) -- node [below right] {small{$M$}} (M) ;
end{tikzpicture}
end{document}
tikz-pgf
New contributor
1
You can uselocal bounding box
. Btw, your code is not even compilable
– JouleV
9 mins ago
add a comment |
Could someone, whenever it's possible, post a minimal tikZ example to draw this? I also would like to put an "R" inside the upper box. This is mi code so far (I know, it's a mess):
documentclass[tikz]{standalone}
begin{document}
tikzstyle{vspecies}=[rectangle, minimum size=0.5cm,draw=black,fill=blue]
begin{tikzpicture}
node [vspecies] (I) {I} ;
node [vspecies, above left of = I] (N) {M} ;
node [vspecies, below left of = I] (K) {K} ;
draw [->,thick] (S.south east) -- node {small{$N$}} (M) ; ;
draw [->,thick] (C) -- node [below right] {small{$M$}} (M) ;
end{tikzpicture}
end{document}
tikz-pgf
New contributor
Could someone, whenever it's possible, post a minimal tikZ example to draw this? I also would like to put an "R" inside the upper box. This is mi code so far (I know, it's a mess):
documentclass[tikz]{standalone}
begin{document}
tikzstyle{vspecies}=[rectangle, minimum size=0.5cm,draw=black,fill=blue]
begin{tikzpicture}
node [vspecies] (I) {I} ;
node [vspecies, above left of = I] (N) {M} ;
node [vspecies, below left of = I] (K) {K} ;
draw [->,thick] (S.south east) -- node {small{$N$}} (M) ; ;
draw [->,thick] (C) -- node [below right] {small{$M$}} (M) ;
end{tikzpicture}
end{document}
tikz-pgf
tikz-pgf
New contributor
New contributor
New contributor
asked 10 mins ago
naveganteXnaveganteX
395
395
New contributor
New contributor
1
You can uselocal bounding box
. Btw, your code is not even compilable
– JouleV
9 mins ago
add a comment |
1
You can uselocal bounding box
. Btw, your code is not even compilable
– JouleV
9 mins ago
1
1
You can use
local bounding box
. Btw, your code is not even compilable– JouleV
9 mins ago
You can use
local bounding box
. Btw, your code is not even compilable– JouleV
9 mins ago
add a comment |
1 Answer
1
active
oldest
votes
Something like this?
documentclass[tikz,margin=1mm]{standalone}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}
begin{scope}[local bounding box=a]
node[minimum width=2cm,minimum height=3cm,draw] (main-a) {};
path (main-a.west) node[left] {$N$} (main-a.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b2]
node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) {};
path (main-b2.east) node[right] {$K$} (main-b2.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b1]
node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) {};
path (main-b1.west) node[left] {$N$} (main-b1.north) node[above] {$K$};
end{scope}
draw[-stealth] (main-a.south) -- (b1.north east);
draw[-stealth] (main-a.south) -- (b2.north west);
end{tikzpicture}
end{document}
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
});
}
});
naveganteX 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%2f485078%2fproblem-drawing-boxes-with-arrows-in-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
Something like this?
documentclass[tikz,margin=1mm]{standalone}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}
begin{scope}[local bounding box=a]
node[minimum width=2cm,minimum height=3cm,draw] (main-a) {};
path (main-a.west) node[left] {$N$} (main-a.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b2]
node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) {};
path (main-b2.east) node[right] {$K$} (main-b2.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b1]
node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) {};
path (main-b1.west) node[left] {$N$} (main-b1.north) node[above] {$K$};
end{scope}
draw[-stealth] (main-a.south) -- (b1.north east);
draw[-stealth] (main-a.south) -- (b2.north west);
end{tikzpicture}
end{document}
add a comment |
Something like this?
documentclass[tikz,margin=1mm]{standalone}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}
begin{scope}[local bounding box=a]
node[minimum width=2cm,minimum height=3cm,draw] (main-a) {};
path (main-a.west) node[left] {$N$} (main-a.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b2]
node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) {};
path (main-b2.east) node[right] {$K$} (main-b2.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b1]
node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) {};
path (main-b1.west) node[left] {$N$} (main-b1.north) node[above] {$K$};
end{scope}
draw[-stealth] (main-a.south) -- (b1.north east);
draw[-stealth] (main-a.south) -- (b2.north west);
end{tikzpicture}
end{document}
add a comment |
Something like this?
documentclass[tikz,margin=1mm]{standalone}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}
begin{scope}[local bounding box=a]
node[minimum width=2cm,minimum height=3cm,draw] (main-a) {};
path (main-a.west) node[left] {$N$} (main-a.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b2]
node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) {};
path (main-b2.east) node[right] {$K$} (main-b2.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b1]
node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) {};
path (main-b1.west) node[left] {$N$} (main-b1.north) node[above] {$K$};
end{scope}
draw[-stealth] (main-a.south) -- (b1.north east);
draw[-stealth] (main-a.south) -- (b2.north west);
end{tikzpicture}
end{document}
Something like this?
documentclass[tikz,margin=1mm]{standalone}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}
begin{scope}[local bounding box=a]
node[minimum width=2cm,minimum height=3cm,draw] (main-a) {};
path (main-a.west) node[left] {$N$} (main-a.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b2]
node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) {};
path (main-b2.east) node[right] {$K$} (main-b2.north) node[above] {$M$};
end{scope}
begin{scope}[local bounding box=b1]
node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) {};
path (main-b1.west) node[left] {$N$} (main-b1.north) node[above] {$K$};
end{scope}
draw[-stealth] (main-a.south) -- (b1.north east);
draw[-stealth] (main-a.south) -- (b2.north west);
end{tikzpicture}
end{document}
answered 23 secs ago
JouleVJouleV
13.8k22664
13.8k22664
add a comment |
add a comment |
naveganteX is a new contributor. Be nice, and check out our Code of Conduct.
naveganteX is a new contributor. Be nice, and check out our Code of Conduct.
naveganteX is a new contributor. Be nice, and check out our Code of Conduct.
naveganteX 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%2f485078%2fproblem-drawing-boxes-with-arrows-in-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
1
You can use
local bounding box
. Btw, your code is not even compilable– JouleV
9 mins ago