Resize tikZ picture
I have put the tikZ picture between begin{figure} and end{figure}. I need to make it bigger. The thing is that when I scale it, it does not look good at all. This is the code:
begin{figure}[H]
centering
begin{tabular}{rc}
& Movies \
Users &
begin{tabular}{ l | c | r }
& A & B \ hline
1 & $tikzmarknode{a11}{r_{1A}}$~ & ~$tikzmarknode{a12}{r_{1B}}$ \ hline
2 & $tikzmarknode{a21}{r_{2A}}$~ & ~$tikzmarknode{a22}{r_{BA}}$ \ hline
end{tabular}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
draw[stealth-stealth,blue] (a11.north east) -- (a12.north west)
node[midway,above,scale=0.4,black] (dAB) {contour{white}{$d_{AB}$}};
draw[-stealth,blue] (a21.south east) -- (a22.south west);
draw[-stealth,blue] (dAB.south) to[out=0,in=80] (dAB.south|-a22);
draw[stealth-stealth] (a11.east) -- (a21.east)
node[pos=0.5,right,scale=0.4,black] (d12) {contour{white}{$d_{12}$}};
draw[-stealth] (d12.north) to[out=0,in=180] ([yshift=-1ex]a12.west);
end{tikzpicture}
end{figure}
Any help? Thank you!
tikz-pgf
New contributor
naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have put the tikZ picture between begin{figure} and end{figure}. I need to make it bigger. The thing is that when I scale it, it does not look good at all. This is the code:
begin{figure}[H]
centering
begin{tabular}{rc}
& Movies \
Users &
begin{tabular}{ l | c | r }
& A & B \ hline
1 & $tikzmarknode{a11}{r_{1A}}$~ & ~$tikzmarknode{a12}{r_{1B}}$ \ hline
2 & $tikzmarknode{a21}{r_{2A}}$~ & ~$tikzmarknode{a22}{r_{BA}}$ \ hline
end{tabular}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
draw[stealth-stealth,blue] (a11.north east) -- (a12.north west)
node[midway,above,scale=0.4,black] (dAB) {contour{white}{$d_{AB}$}};
draw[-stealth,blue] (a21.south east) -- (a22.south west);
draw[-stealth,blue] (dAB.south) to[out=0,in=80] (dAB.south|-a22);
draw[stealth-stealth] (a11.east) -- (a21.east)
node[pos=0.5,right,scale=0.4,black] (d12) {contour{white}{$d_{12}$}};
draw[-stealth] (d12.north) to[out=0,in=180] ([yshift=-1ex]a12.west);
end{tikzpicture}
end{figure}
Any help? Thank you!
tikz-pgf
New contributor
naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
I'm not with a compiler which can compiletikzmarknoderight now, but I think resizing the table (not the TikZ picture) would do the trick.
– JouleV
20 hours ago
Note: you can confuse [remember picture] by playing with scale or rotate.
– John Kormylo
7 hours ago
add a comment |
I have put the tikZ picture between begin{figure} and end{figure}. I need to make it bigger. The thing is that when I scale it, it does not look good at all. This is the code:
begin{figure}[H]
centering
begin{tabular}{rc}
& Movies \
Users &
begin{tabular}{ l | c | r }
& A & B \ hline
1 & $tikzmarknode{a11}{r_{1A}}$~ & ~$tikzmarknode{a12}{r_{1B}}$ \ hline
2 & $tikzmarknode{a21}{r_{2A}}$~ & ~$tikzmarknode{a22}{r_{BA}}$ \ hline
end{tabular}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
draw[stealth-stealth,blue] (a11.north east) -- (a12.north west)
node[midway,above,scale=0.4,black] (dAB) {contour{white}{$d_{AB}$}};
draw[-stealth,blue] (a21.south east) -- (a22.south west);
draw[-stealth,blue] (dAB.south) to[out=0,in=80] (dAB.south|-a22);
draw[stealth-stealth] (a11.east) -- (a21.east)
node[pos=0.5,right,scale=0.4,black] (d12) {contour{white}{$d_{12}$}};
draw[-stealth] (d12.north) to[out=0,in=180] ([yshift=-1ex]a12.west);
end{tikzpicture}
end{figure}
Any help? Thank you!
tikz-pgf
New contributor
naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have put the tikZ picture between begin{figure} and end{figure}. I need to make it bigger. The thing is that when I scale it, it does not look good at all. This is the code:
begin{figure}[H]
centering
begin{tabular}{rc}
& Movies \
Users &
begin{tabular}{ l | c | r }
& A & B \ hline
1 & $tikzmarknode{a11}{r_{1A}}$~ & ~$tikzmarknode{a12}{r_{1B}}$ \ hline
2 & $tikzmarknode{a21}{r_{2A}}$~ & ~$tikzmarknode{a22}{r_{BA}}$ \ hline
end{tabular}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
draw[stealth-stealth,blue] (a11.north east) -- (a12.north west)
node[midway,above,scale=0.4,black] (dAB) {contour{white}{$d_{AB}$}};
draw[-stealth,blue] (a21.south east) -- (a22.south west);
draw[-stealth,blue] (dAB.south) to[out=0,in=80] (dAB.south|-a22);
draw[stealth-stealth] (a11.east) -- (a21.east)
node[pos=0.5,right,scale=0.4,black] (d12) {contour{white}{$d_{12}$}};
draw[-stealth] (d12.north) to[out=0,in=180] ([yshift=-1ex]a12.west);
end{tikzpicture}
end{figure}
Any help? Thank you!
tikz-pgf
tikz-pgf
New contributor
naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 20 hours ago
naveganteXnaveganteX
395
395
New contributor
naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
I'm not with a compiler which can compiletikzmarknoderight now, but I think resizing the table (not the TikZ picture) would do the trick.
– JouleV
20 hours ago
Note: you can confuse [remember picture] by playing with scale or rotate.
– John Kormylo
7 hours ago
add a comment |
2
I'm not with a compiler which can compiletikzmarknoderight now, but I think resizing the table (not the TikZ picture) would do the trick.
– JouleV
20 hours ago
Note: you can confuse [remember picture] by playing with scale or rotate.
– John Kormylo
7 hours ago
2
2
I'm not with a compiler which can compile
tikzmarknode right now, but I think resizing the table (not the TikZ picture) would do the trick.– JouleV
20 hours ago
I'm not with a compiler which can compile
tikzmarknode right now, but I think resizing the table (not the TikZ picture) would do the trick.– JouleV
20 hours ago
Note: you can confuse [remember picture] by playing with scale or rotate.
– John Kormylo
7 hours ago
Note: you can confuse [remember picture] by playing with scale or rotate.
– John Kormylo
7 hours ago
add a comment |
1 Answer
1
active
oldest
votes
As Joule V is mentioning, you can play make the table bigger. One way of doing this is to play with arraystretch. The problem is that I may misunderstand what you want.
documentclass{article}
usepackage{tikz}
usepackage{array}
usepackage{contour}
contourlength{1pt}
usetikzlibrary{tikzmark}
begin{document}
begin{figure}[htb]
centeringrenewcommand{arraystretch}{2}
begin{tabular}{rc}
& Movies \
Users ¢ering%renewcommand{arraystretch}{3}
begin{tabular}{ l |>{centering}p{1cm}| r }
& A & B \ hline
1 & $tikzmarknode{a11}{r_{1A}}$~ & ~$tikzmarknode{a12}{r_{1B}}$ \ hline
2 & $tikzmarknode{a21}{r_{2A}}$~ & ~$tikzmarknode{a22}{r_{BA}}$ \ hline
end{tabular}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
draw[stealth-stealth,blue] (a11.north east) -- (a12.north west)
node[midway,above,scale=0.7,black] (dAB) {contour{white}{$d_{AB}$}};
draw[-stealth,blue] (a21.south east) -- (a22.south west);
draw[-stealth,blue] (dAB.south) to[out=0,in=80] (dAB.south|-a22);
draw[stealth-stealth] (a11.east) -- (a21.east)
node[pos=0.5,right,scale=0.7,black] (d12) {contour{white}{$d_{12}$}};
draw[-stealth] (d12.north) to[out=0,in=180] ([yshift=-1ex]a12.west);
end{tikzpicture}
end{figure}
end{document}

Thank you! I will try your way. The thing is I don't want to compile it separated from the whole TeX document, meaning, compile it in a different file and then cut the pdf generated and use it as an image. I want to compile the whole thing!
– naveganteX
20 hours 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
});
}
});
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%2f484748%2fresize-tikz-picture%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
As Joule V is mentioning, you can play make the table bigger. One way of doing this is to play with arraystretch. The problem is that I may misunderstand what you want.
documentclass{article}
usepackage{tikz}
usepackage{array}
usepackage{contour}
contourlength{1pt}
usetikzlibrary{tikzmark}
begin{document}
begin{figure}[htb]
centeringrenewcommand{arraystretch}{2}
begin{tabular}{rc}
& Movies \
Users ¢ering%renewcommand{arraystretch}{3}
begin{tabular}{ l |>{centering}p{1cm}| r }
& A & B \ hline
1 & $tikzmarknode{a11}{r_{1A}}$~ & ~$tikzmarknode{a12}{r_{1B}}$ \ hline
2 & $tikzmarknode{a21}{r_{2A}}$~ & ~$tikzmarknode{a22}{r_{BA}}$ \ hline
end{tabular}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
draw[stealth-stealth,blue] (a11.north east) -- (a12.north west)
node[midway,above,scale=0.7,black] (dAB) {contour{white}{$d_{AB}$}};
draw[-stealth,blue] (a21.south east) -- (a22.south west);
draw[-stealth,blue] (dAB.south) to[out=0,in=80] (dAB.south|-a22);
draw[stealth-stealth] (a11.east) -- (a21.east)
node[pos=0.5,right,scale=0.7,black] (d12) {contour{white}{$d_{12}$}};
draw[-stealth] (d12.north) to[out=0,in=180] ([yshift=-1ex]a12.west);
end{tikzpicture}
end{figure}
end{document}

Thank you! I will try your way. The thing is I don't want to compile it separated from the whole TeX document, meaning, compile it in a different file and then cut the pdf generated and use it as an image. I want to compile the whole thing!
– naveganteX
20 hours ago
add a comment |
As Joule V is mentioning, you can play make the table bigger. One way of doing this is to play with arraystretch. The problem is that I may misunderstand what you want.
documentclass{article}
usepackage{tikz}
usepackage{array}
usepackage{contour}
contourlength{1pt}
usetikzlibrary{tikzmark}
begin{document}
begin{figure}[htb]
centeringrenewcommand{arraystretch}{2}
begin{tabular}{rc}
& Movies \
Users ¢ering%renewcommand{arraystretch}{3}
begin{tabular}{ l |>{centering}p{1cm}| r }
& A & B \ hline
1 & $tikzmarknode{a11}{r_{1A}}$~ & ~$tikzmarknode{a12}{r_{1B}}$ \ hline
2 & $tikzmarknode{a21}{r_{2A}}$~ & ~$tikzmarknode{a22}{r_{BA}}$ \ hline
end{tabular}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
draw[stealth-stealth,blue] (a11.north east) -- (a12.north west)
node[midway,above,scale=0.7,black] (dAB) {contour{white}{$d_{AB}$}};
draw[-stealth,blue] (a21.south east) -- (a22.south west);
draw[-stealth,blue] (dAB.south) to[out=0,in=80] (dAB.south|-a22);
draw[stealth-stealth] (a11.east) -- (a21.east)
node[pos=0.5,right,scale=0.7,black] (d12) {contour{white}{$d_{12}$}};
draw[-stealth] (d12.north) to[out=0,in=180] ([yshift=-1ex]a12.west);
end{tikzpicture}
end{figure}
end{document}

Thank you! I will try your way. The thing is I don't want to compile it separated from the whole TeX document, meaning, compile it in a different file and then cut the pdf generated and use it as an image. I want to compile the whole thing!
– naveganteX
20 hours ago
add a comment |
As Joule V is mentioning, you can play make the table bigger. One way of doing this is to play with arraystretch. The problem is that I may misunderstand what you want.
documentclass{article}
usepackage{tikz}
usepackage{array}
usepackage{contour}
contourlength{1pt}
usetikzlibrary{tikzmark}
begin{document}
begin{figure}[htb]
centeringrenewcommand{arraystretch}{2}
begin{tabular}{rc}
& Movies \
Users ¢ering%renewcommand{arraystretch}{3}
begin{tabular}{ l |>{centering}p{1cm}| r }
& A & B \ hline
1 & $tikzmarknode{a11}{r_{1A}}$~ & ~$tikzmarknode{a12}{r_{1B}}$ \ hline
2 & $tikzmarknode{a21}{r_{2A}}$~ & ~$tikzmarknode{a22}{r_{BA}}$ \ hline
end{tabular}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
draw[stealth-stealth,blue] (a11.north east) -- (a12.north west)
node[midway,above,scale=0.7,black] (dAB) {contour{white}{$d_{AB}$}};
draw[-stealth,blue] (a21.south east) -- (a22.south west);
draw[-stealth,blue] (dAB.south) to[out=0,in=80] (dAB.south|-a22);
draw[stealth-stealth] (a11.east) -- (a21.east)
node[pos=0.5,right,scale=0.7,black] (d12) {contour{white}{$d_{12}$}};
draw[-stealth] (d12.north) to[out=0,in=180] ([yshift=-1ex]a12.west);
end{tikzpicture}
end{figure}
end{document}

As Joule V is mentioning, you can play make the table bigger. One way of doing this is to play with arraystretch. The problem is that I may misunderstand what you want.
documentclass{article}
usepackage{tikz}
usepackage{array}
usepackage{contour}
contourlength{1pt}
usetikzlibrary{tikzmark}
begin{document}
begin{figure}[htb]
centeringrenewcommand{arraystretch}{2}
begin{tabular}{rc}
& Movies \
Users ¢ering%renewcommand{arraystretch}{3}
begin{tabular}{ l |>{centering}p{1cm}| r }
& A & B \ hline
1 & $tikzmarknode{a11}{r_{1A}}$~ & ~$tikzmarknode{a12}{r_{1B}}$ \ hline
2 & $tikzmarknode{a21}{r_{2A}}$~ & ~$tikzmarknode{a22}{r_{BA}}$ \ hline
end{tabular}
end{tabular}
begin{tikzpicture}[overlay,remember picture]
draw[stealth-stealth,blue] (a11.north east) -- (a12.north west)
node[midway,above,scale=0.7,black] (dAB) {contour{white}{$d_{AB}$}};
draw[-stealth,blue] (a21.south east) -- (a22.south west);
draw[-stealth,blue] (dAB.south) to[out=0,in=80] (dAB.south|-a22);
draw[stealth-stealth] (a11.east) -- (a21.east)
node[pos=0.5,right,scale=0.7,black] (d12) {contour{white}{$d_{12}$}};
draw[-stealth] (d12.north) to[out=0,in=180] ([yshift=-1ex]a12.west);
end{tikzpicture}
end{figure}
end{document}

answered 20 hours ago
marmotmarmot
118k6151284
118k6151284
Thank you! I will try your way. The thing is I don't want to compile it separated from the whole TeX document, meaning, compile it in a different file and then cut the pdf generated and use it as an image. I want to compile the whole thing!
– naveganteX
20 hours ago
add a comment |
Thank you! I will try your way. The thing is I don't want to compile it separated from the whole TeX document, meaning, compile it in a different file and then cut the pdf generated and use it as an image. I want to compile the whole thing!
– naveganteX
20 hours ago
Thank you! I will try your way. The thing is I don't want to compile it separated from the whole TeX document, meaning, compile it in a different file and then cut the pdf generated and use it as an image. I want to compile the whole thing!
– naveganteX
20 hours ago
Thank you! I will try your way. The thing is I don't want to compile it separated from the whole TeX document, meaning, compile it in a different file and then cut the pdf generated and use it as an image. I want to compile the whole thing!
– naveganteX
20 hours ago
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%2f484748%2fresize-tikz-picture%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
2
I'm not with a compiler which can compile
tikzmarknoderight now, but I think resizing the table (not the TikZ picture) would do the trick.– JouleV
20 hours ago
Note: you can confuse [remember picture] by playing with scale or rotate.
– John Kormylo
7 hours ago