ER diagram relationship node size adjustment
I am trying (unsuccessfully) to reduce the size of the CONTRACTED_By
relationship in this ER model using the tikz-er2
package. It naturally scales the height with the width, but I would prefer the height to be shorter. Is there any way to accomplish that? (Sorry, this is not as minimal as it could be, but I decided to replicate the figure I have.)
documentclass[12pt]{article}
usepackage{tikz,tikz-er2}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}[node distance=1.5cm]
tikzset={every entity/.style = {minimum width=1cm,minimum height=0.8cm, text width=1cm,inner sep=1pt},
every attribute/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every relationship/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every edge/.style = {link}
}
node[entity] (worker) {WORKER};
node[attribute] (w1) [above left=1cm of worker,xshift=1cm] {uline{Number}} edge (worker);
node[attribute] (w2) [above right=1cm of worker,xshift=-1cm] {Name} edge (worker);
node[attribute] (w3) [below left=1cm of worker,xshift=1cm] {Title} edge (worker);
node[attribute] (w4) [below right=1cm of worker,xshift=-1cm] {Salary} edge (worker);
node[relationship] (worksin) [right=of worker] {WORKS_IN} edge node[above right] {N} (worker);
node[attribute] (wn1) [above=of worksin,yshift=-0.5cm] {Responsibility} edge (worksin);
node[attribute] (wn2) [below=of worksin,yshift=0.5cm] {Duration} edge (worksin);
node[entity] (project) [right=of worksin] {PROJECT} edge node[above left] {1} (worksin);
node[attribute] (p1) [above left=1cm of project,xshift=1cm] {uline{Number}} edge (project);
node[attribute] (p2) [above=of project] {Project\Name} edge (project);
node[attribute] (p3) [above right=1cm of project,xshift=-1cm] {Budget} edge (project);
node[attribute] (p4) [right= of project] {Location} edge (project);
node[relationship] (contract) [below=of project] {CONTRACTED_BY} edge node[above right] {N} (project);
node[attribute] (c1) [below left=of contract] {Contract\number} edge (contract);
node[entity] (client) [below=of contract] {CLIENT} edge node[above right] {1} (contract);
node[attribute] (cl1) [below left=1cm of client, xshift=1cm] {uline{Client name}} edge (client);
node[attribute] (cl2) [below right=1cm of client, xshift=-1cm] {Address} edge (client);
end{tikzpicture}
end{document}
tikz-pgf diagrams
add a comment |
I am trying (unsuccessfully) to reduce the size of the CONTRACTED_By
relationship in this ER model using the tikz-er2
package. It naturally scales the height with the width, but I would prefer the height to be shorter. Is there any way to accomplish that? (Sorry, this is not as minimal as it could be, but I decided to replicate the figure I have.)
documentclass[12pt]{article}
usepackage{tikz,tikz-er2}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}[node distance=1.5cm]
tikzset={every entity/.style = {minimum width=1cm,minimum height=0.8cm, text width=1cm,inner sep=1pt},
every attribute/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every relationship/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every edge/.style = {link}
}
node[entity] (worker) {WORKER};
node[attribute] (w1) [above left=1cm of worker,xshift=1cm] {uline{Number}} edge (worker);
node[attribute] (w2) [above right=1cm of worker,xshift=-1cm] {Name} edge (worker);
node[attribute] (w3) [below left=1cm of worker,xshift=1cm] {Title} edge (worker);
node[attribute] (w4) [below right=1cm of worker,xshift=-1cm] {Salary} edge (worker);
node[relationship] (worksin) [right=of worker] {WORKS_IN} edge node[above right] {N} (worker);
node[attribute] (wn1) [above=of worksin,yshift=-0.5cm] {Responsibility} edge (worksin);
node[attribute] (wn2) [below=of worksin,yshift=0.5cm] {Duration} edge (worksin);
node[entity] (project) [right=of worksin] {PROJECT} edge node[above left] {1} (worksin);
node[attribute] (p1) [above left=1cm of project,xshift=1cm] {uline{Number}} edge (project);
node[attribute] (p2) [above=of project] {Project\Name} edge (project);
node[attribute] (p3) [above right=1cm of project,xshift=-1cm] {Budget} edge (project);
node[attribute] (p4) [right= of project] {Location} edge (project);
node[relationship] (contract) [below=of project] {CONTRACTED_BY} edge node[above right] {N} (project);
node[attribute] (c1) [below left=of contract] {Contract\number} edge (contract);
node[entity] (client) [below=of contract] {CLIENT} edge node[above right] {1} (contract);
node[attribute] (cl1) [below left=1cm of client, xshift=1cm] {uline{Client name}} edge (client);
node[attribute] (cl2) [below right=1cm of client, xshift=-1cm] {Address} edge (client);
end{tikzpicture}
end{document}
tikz-pgf diagrams
3
Can you provide a link totikz-er2
? It's not on CTAN.
– Alan Munn
10 hours ago
add a comment |
I am trying (unsuccessfully) to reduce the size of the CONTRACTED_By
relationship in this ER model using the tikz-er2
package. It naturally scales the height with the width, but I would prefer the height to be shorter. Is there any way to accomplish that? (Sorry, this is not as minimal as it could be, but I decided to replicate the figure I have.)
documentclass[12pt]{article}
usepackage{tikz,tikz-er2}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}[node distance=1.5cm]
tikzset={every entity/.style = {minimum width=1cm,minimum height=0.8cm, text width=1cm,inner sep=1pt},
every attribute/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every relationship/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every edge/.style = {link}
}
node[entity] (worker) {WORKER};
node[attribute] (w1) [above left=1cm of worker,xshift=1cm] {uline{Number}} edge (worker);
node[attribute] (w2) [above right=1cm of worker,xshift=-1cm] {Name} edge (worker);
node[attribute] (w3) [below left=1cm of worker,xshift=1cm] {Title} edge (worker);
node[attribute] (w4) [below right=1cm of worker,xshift=-1cm] {Salary} edge (worker);
node[relationship] (worksin) [right=of worker] {WORKS_IN} edge node[above right] {N} (worker);
node[attribute] (wn1) [above=of worksin,yshift=-0.5cm] {Responsibility} edge (worksin);
node[attribute] (wn2) [below=of worksin,yshift=0.5cm] {Duration} edge (worksin);
node[entity] (project) [right=of worksin] {PROJECT} edge node[above left] {1} (worksin);
node[attribute] (p1) [above left=1cm of project,xshift=1cm] {uline{Number}} edge (project);
node[attribute] (p2) [above=of project] {Project\Name} edge (project);
node[attribute] (p3) [above right=1cm of project,xshift=-1cm] {Budget} edge (project);
node[attribute] (p4) [right= of project] {Location} edge (project);
node[relationship] (contract) [below=of project] {CONTRACTED_BY} edge node[above right] {N} (project);
node[attribute] (c1) [below left=of contract] {Contract\number} edge (contract);
node[entity] (client) [below=of contract] {CLIENT} edge node[above right] {1} (contract);
node[attribute] (cl1) [below left=1cm of client, xshift=1cm] {uline{Client name}} edge (client);
node[attribute] (cl2) [below right=1cm of client, xshift=-1cm] {Address} edge (client);
end{tikzpicture}
end{document}
tikz-pgf diagrams
I am trying (unsuccessfully) to reduce the size of the CONTRACTED_By
relationship in this ER model using the tikz-er2
package. It naturally scales the height with the width, but I would prefer the height to be shorter. Is there any way to accomplish that? (Sorry, this is not as minimal as it could be, but I decided to replicate the figure I have.)
documentclass[12pt]{article}
usepackage{tikz,tikz-er2}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}[node distance=1.5cm]
tikzset={every entity/.style = {minimum width=1cm,minimum height=0.8cm, text width=1cm,inner sep=1pt},
every attribute/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every relationship/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every edge/.style = {link}
}
node[entity] (worker) {WORKER};
node[attribute] (w1) [above left=1cm of worker,xshift=1cm] {uline{Number}} edge (worker);
node[attribute] (w2) [above right=1cm of worker,xshift=-1cm] {Name} edge (worker);
node[attribute] (w3) [below left=1cm of worker,xshift=1cm] {Title} edge (worker);
node[attribute] (w4) [below right=1cm of worker,xshift=-1cm] {Salary} edge (worker);
node[relationship] (worksin) [right=of worker] {WORKS_IN} edge node[above right] {N} (worker);
node[attribute] (wn1) [above=of worksin,yshift=-0.5cm] {Responsibility} edge (worksin);
node[attribute] (wn2) [below=of worksin,yshift=0.5cm] {Duration} edge (worksin);
node[entity] (project) [right=of worksin] {PROJECT} edge node[above left] {1} (worksin);
node[attribute] (p1) [above left=1cm of project,xshift=1cm] {uline{Number}} edge (project);
node[attribute] (p2) [above=of project] {Project\Name} edge (project);
node[attribute] (p3) [above right=1cm of project,xshift=-1cm] {Budget} edge (project);
node[attribute] (p4) [right= of project] {Location} edge (project);
node[relationship] (contract) [below=of project] {CONTRACTED_BY} edge node[above right] {N} (project);
node[attribute] (c1) [below left=of contract] {Contract\number} edge (contract);
node[entity] (client) [below=of contract] {CLIENT} edge node[above right] {1} (contract);
node[attribute] (cl1) [below left=1cm of client, xshift=1cm] {uline{Client name}} edge (client);
node[attribute] (cl2) [below right=1cm of client, xshift=-1cm] {Address} edge (client);
end{tikzpicture}
end{document}
tikz-pgf diagrams
tikz-pgf diagrams
edited 29 mins ago
Henri Menke
76.1k8167282
76.1k8167282
asked 10 hours ago
ozsuozsu
1,10011126
1,10011126
3
Can you provide a link totikz-er2
? It's not on CTAN.
– Alan Munn
10 hours ago
add a comment |
3
Can you provide a link totikz-er2
? It's not on CTAN.
– Alan Munn
10 hours ago
3
3
Can you provide a link to
tikz-er2
? It's not on CTAN.– Alan Munn
10 hours ago
Can you provide a link to
tikz-er2
? It's not on CTAN.– Alan Munn
10 hours ago
add a comment |
2 Answers
2
active
oldest
votes
You can change the aspect
ratio of that node with the aspect
key. By default in the style it's set to 1
. Here I've changed it to 2
.
documentclass[border=5pt]{standalone}
usepackage{tikz,tikz-er2}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}[node distance=1.5cm]
tikzset={every entity/.style = {minimum width=1cm,minimum height=0.8cm, text width=1cm,inner sep=1pt},
every attribute/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every relationship/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every edge/.style = {link}
}
node[entity] (worker) {WORKER};
node[attribute] (w1) [above left=1cm of worker,xshift=1cm] {uline{Number}} edge (worker);
node[attribute] (w2) [above right=1cm of worker,xshift=-1cm] {Name} edge (worker);
node[attribute] (w3) [below left=1cm of worker,xshift=1cm] {Title} edge (worker);
node[attribute] (w4) [below right=1cm of worker,xshift=-1cm] {Salary} edge (worker);
node[relationship] (worksin) [right=of worker] {WORKS_IN} edge node[above right] {N} (worker);
node[attribute] (wn1) [above=of worksin,yshift=-0.5cm] {Responsibility} edge (worksin);
node[attribute] (wn2) [below=of worksin,yshift=0.5cm] {Duration} edge (worksin);
node[entity] (project) [right=of worksin] {PROJECT} edge node[above left] {1} (worksin);
node[attribute] (p1) [above left=1cm of project,xshift=1cm] {uline{Number}} edge (project);
node[attribute] (p2) [above=of project] {Project\Name} edge (project);
node[attribute] (p3) [above right=1cm of project,xshift=-1cm] {Budget} edge (project);
node[attribute] (p4) [right= of project] {Location} edge (project);
node[relationship,aspect=2] (contract) [below=of project,] {CONTRACTED_BY} edge node[above right] {N} (project);
node[attribute] (c1) [below left=of contract] {Contract\number} edge (contract);
node[entity] (client) [below=of contract] {CLIENT} edge node[above right] {1} (contract);
node[attribute] (cl1) [below left=1cm of client, xshift=1cm] {uline{Client name}} edge (client);
node[attribute] (cl2) [below right=1cm of client, xshift=-1cm] {Address} edge (client);
end{tikzpicture}
end{document}
Wonderful thank you.
– ozsu
9 hours ago
add a comment |
I can't compile your code as I'm missing tikz-er2, but looking at your code, the box of "CONTRACTED_BY" is bigger because of the text length. I'd assume if you reduced the size of the text the box would be smaller too. You can try the following:
node[relationship] (contract) [below=of project] {small CONTRACTED_BY} edge node[above right] {N} (project);
New contributor
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%2f478741%2fer-diagram-relationship-node-size-adjustment%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
You can change the aspect
ratio of that node with the aspect
key. By default in the style it's set to 1
. Here I've changed it to 2
.
documentclass[border=5pt]{standalone}
usepackage{tikz,tikz-er2}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}[node distance=1.5cm]
tikzset={every entity/.style = {minimum width=1cm,minimum height=0.8cm, text width=1cm,inner sep=1pt},
every attribute/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every relationship/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every edge/.style = {link}
}
node[entity] (worker) {WORKER};
node[attribute] (w1) [above left=1cm of worker,xshift=1cm] {uline{Number}} edge (worker);
node[attribute] (w2) [above right=1cm of worker,xshift=-1cm] {Name} edge (worker);
node[attribute] (w3) [below left=1cm of worker,xshift=1cm] {Title} edge (worker);
node[attribute] (w4) [below right=1cm of worker,xshift=-1cm] {Salary} edge (worker);
node[relationship] (worksin) [right=of worker] {WORKS_IN} edge node[above right] {N} (worker);
node[attribute] (wn1) [above=of worksin,yshift=-0.5cm] {Responsibility} edge (worksin);
node[attribute] (wn2) [below=of worksin,yshift=0.5cm] {Duration} edge (worksin);
node[entity] (project) [right=of worksin] {PROJECT} edge node[above left] {1} (worksin);
node[attribute] (p1) [above left=1cm of project,xshift=1cm] {uline{Number}} edge (project);
node[attribute] (p2) [above=of project] {Project\Name} edge (project);
node[attribute] (p3) [above right=1cm of project,xshift=-1cm] {Budget} edge (project);
node[attribute] (p4) [right= of project] {Location} edge (project);
node[relationship,aspect=2] (contract) [below=of project,] {CONTRACTED_BY} edge node[above right] {N} (project);
node[attribute] (c1) [below left=of contract] {Contract\number} edge (contract);
node[entity] (client) [below=of contract] {CLIENT} edge node[above right] {1} (contract);
node[attribute] (cl1) [below left=1cm of client, xshift=1cm] {uline{Client name}} edge (client);
node[attribute] (cl2) [below right=1cm of client, xshift=-1cm] {Address} edge (client);
end{tikzpicture}
end{document}
Wonderful thank you.
– ozsu
9 hours ago
add a comment |
You can change the aspect
ratio of that node with the aspect
key. By default in the style it's set to 1
. Here I've changed it to 2
.
documentclass[border=5pt]{standalone}
usepackage{tikz,tikz-er2}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}[node distance=1.5cm]
tikzset={every entity/.style = {minimum width=1cm,minimum height=0.8cm, text width=1cm,inner sep=1pt},
every attribute/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every relationship/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every edge/.style = {link}
}
node[entity] (worker) {WORKER};
node[attribute] (w1) [above left=1cm of worker,xshift=1cm] {uline{Number}} edge (worker);
node[attribute] (w2) [above right=1cm of worker,xshift=-1cm] {Name} edge (worker);
node[attribute] (w3) [below left=1cm of worker,xshift=1cm] {Title} edge (worker);
node[attribute] (w4) [below right=1cm of worker,xshift=-1cm] {Salary} edge (worker);
node[relationship] (worksin) [right=of worker] {WORKS_IN} edge node[above right] {N} (worker);
node[attribute] (wn1) [above=of worksin,yshift=-0.5cm] {Responsibility} edge (worksin);
node[attribute] (wn2) [below=of worksin,yshift=0.5cm] {Duration} edge (worksin);
node[entity] (project) [right=of worksin] {PROJECT} edge node[above left] {1} (worksin);
node[attribute] (p1) [above left=1cm of project,xshift=1cm] {uline{Number}} edge (project);
node[attribute] (p2) [above=of project] {Project\Name} edge (project);
node[attribute] (p3) [above right=1cm of project,xshift=-1cm] {Budget} edge (project);
node[attribute] (p4) [right= of project] {Location} edge (project);
node[relationship,aspect=2] (contract) [below=of project,] {CONTRACTED_BY} edge node[above right] {N} (project);
node[attribute] (c1) [below left=of contract] {Contract\number} edge (contract);
node[entity] (client) [below=of contract] {CLIENT} edge node[above right] {1} (contract);
node[attribute] (cl1) [below left=1cm of client, xshift=1cm] {uline{Client name}} edge (client);
node[attribute] (cl2) [below right=1cm of client, xshift=-1cm] {Address} edge (client);
end{tikzpicture}
end{document}
Wonderful thank you.
– ozsu
9 hours ago
add a comment |
You can change the aspect
ratio of that node with the aspect
key. By default in the style it's set to 1
. Here I've changed it to 2
.
documentclass[border=5pt]{standalone}
usepackage{tikz,tikz-er2}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}[node distance=1.5cm]
tikzset={every entity/.style = {minimum width=1cm,minimum height=0.8cm, text width=1cm,inner sep=1pt},
every attribute/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every relationship/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every edge/.style = {link}
}
node[entity] (worker) {WORKER};
node[attribute] (w1) [above left=1cm of worker,xshift=1cm] {uline{Number}} edge (worker);
node[attribute] (w2) [above right=1cm of worker,xshift=-1cm] {Name} edge (worker);
node[attribute] (w3) [below left=1cm of worker,xshift=1cm] {Title} edge (worker);
node[attribute] (w4) [below right=1cm of worker,xshift=-1cm] {Salary} edge (worker);
node[relationship] (worksin) [right=of worker] {WORKS_IN} edge node[above right] {N} (worker);
node[attribute] (wn1) [above=of worksin,yshift=-0.5cm] {Responsibility} edge (worksin);
node[attribute] (wn2) [below=of worksin,yshift=0.5cm] {Duration} edge (worksin);
node[entity] (project) [right=of worksin] {PROJECT} edge node[above left] {1} (worksin);
node[attribute] (p1) [above left=1cm of project,xshift=1cm] {uline{Number}} edge (project);
node[attribute] (p2) [above=of project] {Project\Name} edge (project);
node[attribute] (p3) [above right=1cm of project,xshift=-1cm] {Budget} edge (project);
node[attribute] (p4) [right= of project] {Location} edge (project);
node[relationship,aspect=2] (contract) [below=of project,] {CONTRACTED_BY} edge node[above right] {N} (project);
node[attribute] (c1) [below left=of contract] {Contract\number} edge (contract);
node[entity] (client) [below=of contract] {CLIENT} edge node[above right] {1} (contract);
node[attribute] (cl1) [below left=1cm of client, xshift=1cm] {uline{Client name}} edge (client);
node[attribute] (cl2) [below right=1cm of client, xshift=-1cm] {Address} edge (client);
end{tikzpicture}
end{document}
You can change the aspect
ratio of that node with the aspect
key. By default in the style it's set to 1
. Here I've changed it to 2
.
documentclass[border=5pt]{standalone}
usepackage{tikz,tikz-er2}
usetikzlibrary{positioning}
begin{document}
begin{tikzpicture}[node distance=1.5cm]
tikzset={every entity/.style = {minimum width=1cm,minimum height=0.8cm, text width=1cm,inner sep=1pt},
every attribute/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every relationship/.style = {minimum width=1.2cm,minimum height=0.5cm, text width=1.2cm,inner sep=1pt},
every edge/.style = {link}
}
node[entity] (worker) {WORKER};
node[attribute] (w1) [above left=1cm of worker,xshift=1cm] {uline{Number}} edge (worker);
node[attribute] (w2) [above right=1cm of worker,xshift=-1cm] {Name} edge (worker);
node[attribute] (w3) [below left=1cm of worker,xshift=1cm] {Title} edge (worker);
node[attribute] (w4) [below right=1cm of worker,xshift=-1cm] {Salary} edge (worker);
node[relationship] (worksin) [right=of worker] {WORKS_IN} edge node[above right] {N} (worker);
node[attribute] (wn1) [above=of worksin,yshift=-0.5cm] {Responsibility} edge (worksin);
node[attribute] (wn2) [below=of worksin,yshift=0.5cm] {Duration} edge (worksin);
node[entity] (project) [right=of worksin] {PROJECT} edge node[above left] {1} (worksin);
node[attribute] (p1) [above left=1cm of project,xshift=1cm] {uline{Number}} edge (project);
node[attribute] (p2) [above=of project] {Project\Name} edge (project);
node[attribute] (p3) [above right=1cm of project,xshift=-1cm] {Budget} edge (project);
node[attribute] (p4) [right= of project] {Location} edge (project);
node[relationship,aspect=2] (contract) [below=of project,] {CONTRACTED_BY} edge node[above right] {N} (project);
node[attribute] (c1) [below left=of contract] {Contract\number} edge (contract);
node[entity] (client) [below=of contract] {CLIENT} edge node[above right] {1} (contract);
node[attribute] (cl1) [below left=1cm of client, xshift=1cm] {uline{Client name}} edge (client);
node[attribute] (cl2) [below right=1cm of client, xshift=-1cm] {Address} edge (client);
end{tikzpicture}
end{document}
answered 9 hours ago
Alan MunnAlan Munn
162k28432707
162k28432707
Wonderful thank you.
– ozsu
9 hours ago
add a comment |
Wonderful thank you.
– ozsu
9 hours ago
Wonderful thank you.
– ozsu
9 hours ago
Wonderful thank you.
– ozsu
9 hours ago
add a comment |
I can't compile your code as I'm missing tikz-er2, but looking at your code, the box of "CONTRACTED_BY" is bigger because of the text length. I'd assume if you reduced the size of the text the box would be smaller too. You can try the following:
node[relationship] (contract) [below=of project] {small CONTRACTED_BY} edge node[above right] {N} (project);
New contributor
add a comment |
I can't compile your code as I'm missing tikz-er2, but looking at your code, the box of "CONTRACTED_BY" is bigger because of the text length. I'd assume if you reduced the size of the text the box would be smaller too. You can try the following:
node[relationship] (contract) [below=of project] {small CONTRACTED_BY} edge node[above right] {N} (project);
New contributor
add a comment |
I can't compile your code as I'm missing tikz-er2, but looking at your code, the box of "CONTRACTED_BY" is bigger because of the text length. I'd assume if you reduced the size of the text the box would be smaller too. You can try the following:
node[relationship] (contract) [below=of project] {small CONTRACTED_BY} edge node[above right] {N} (project);
New contributor
I can't compile your code as I'm missing tikz-er2, but looking at your code, the box of "CONTRACTED_BY" is bigger because of the text length. I'd assume if you reduced the size of the text the box would be smaller too. You can try the following:
node[relationship] (contract) [below=of project] {small CONTRACTED_BY} edge node[above right] {N} (project);
New contributor
New contributor
answered 10 hours ago
Superuser27Superuser27
38513
38513
New contributor
New contributor
add a comment |
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%2f478741%2fer-diagram-relationship-node-size-adjustment%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
3
Can you provide a link to
tikz-er2
? It's not on CTAN.– Alan Munn
10 hours ago