I want a figure to be positioned above a tikzpicture
up vote
3
down vote
favorite
I have a picture which needs to be placed above another figure that I drew using tikzpicture. The pictures are being positioned side by side.
documentclass{standalone}
usepackage{tikz}
begin{document}
includegraphics[scale=1]{m4.pdf}
begin{tikzpicture}
node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};
path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);
end{tikzpicture}
end{document}
The output is:
I want it to be like:
tikz-pgf standalone
New contributor
add a comment |
up vote
3
down vote
favorite
I have a picture which needs to be placed above another figure that I drew using tikzpicture. The pictures are being positioned side by side.
documentclass{standalone}
usepackage{tikz}
begin{document}
includegraphics[scale=1]{m4.pdf}
begin{tikzpicture}
node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};
path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);
end{tikzpicture}
end{document}
The output is:
I want it to be like:
tikz-pgf standalone
New contributor
Welcome to TeX.SE. You only need to put the picture in a node,node at (5,3) {includegraphics[scale=1]{m4.pdf}};
. However, I do not have your picture, so I do not know if(5,3)
works, you may need to use different coordinates.
– marmot
10 hours ago
Thank you, it worked. @marmot
– Mouli Modak
10 hours ago
@CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
– marmot
9 hours ago
@CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
– marmot
9 hours ago
@marmot Close vote retracted since there's an answer
– CarLaTeX
9 hours ago
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have a picture which needs to be placed above another figure that I drew using tikzpicture. The pictures are being positioned side by side.
documentclass{standalone}
usepackage{tikz}
begin{document}
includegraphics[scale=1]{m4.pdf}
begin{tikzpicture}
node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};
path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);
end{tikzpicture}
end{document}
The output is:
I want it to be like:
tikz-pgf standalone
New contributor
I have a picture which needs to be placed above another figure that I drew using tikzpicture. The pictures are being positioned side by side.
documentclass{standalone}
usepackage{tikz}
begin{document}
includegraphics[scale=1]{m4.pdf}
begin{tikzpicture}
node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};
path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);
end{tikzpicture}
end{document}
The output is:
I want it to be like:
tikz-pgf standalone
tikz-pgf standalone
New contributor
New contributor
edited 9 hours ago
AndréC
5,6471937
5,6471937
New contributor
asked 10 hours ago
Mouli Modak
162
162
New contributor
New contributor
Welcome to TeX.SE. You only need to put the picture in a node,node at (5,3) {includegraphics[scale=1]{m4.pdf}};
. However, I do not have your picture, so I do not know if(5,3)
works, you may need to use different coordinates.
– marmot
10 hours ago
Thank you, it worked. @marmot
– Mouli Modak
10 hours ago
@CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
– marmot
9 hours ago
@CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
– marmot
9 hours ago
@marmot Close vote retracted since there's an answer
– CarLaTeX
9 hours ago
add a comment |
Welcome to TeX.SE. You only need to put the picture in a node,node at (5,3) {includegraphics[scale=1]{m4.pdf}};
. However, I do not have your picture, so I do not know if(5,3)
works, you may need to use different coordinates.
– marmot
10 hours ago
Thank you, it worked. @marmot
– Mouli Modak
10 hours ago
@CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
– marmot
9 hours ago
@CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
– marmot
9 hours ago
@marmot Close vote retracted since there's an answer
– CarLaTeX
9 hours ago
Welcome to TeX.SE. You only need to put the picture in a node,
node at (5,3) {includegraphics[scale=1]{m4.pdf}};
. However, I do not have your picture, so I do not know if (5,3)
works, you may need to use different coordinates.– marmot
10 hours ago
Welcome to TeX.SE. You only need to put the picture in a node,
node at (5,3) {includegraphics[scale=1]{m4.pdf}};
. However, I do not have your picture, so I do not know if (5,3)
works, you may need to use different coordinates.– marmot
10 hours ago
Thank you, it worked. @marmot
– Mouli Modak
10 hours ago
Thank you, it worked. @marmot
– Mouli Modak
10 hours ago
@CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
– marmot
9 hours ago
@CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
– marmot
9 hours ago
@CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
– marmot
9 hours ago
@CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
– marmot
9 hours ago
@marmot Close vote retracted since there's an answer
– CarLaTeX
9 hours ago
@marmot Close vote retracted since there's an answer
– CarLaTeX
9 hours ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
Just load the optional preview
package of the standalone
class, and I quote (page 9):
If enabled this option loads the
preview
package with thetightpage
option and wraps the content into a preview environment. This crops
the content to its natural size plus a specified border.
documentclass[preview]{standalone}
usepackage{tikz}
usepackage{mwe}
begin{document}
includegraphics[scale=1]{example-image-a}
begin{tikzpicture}
node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};
path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);
end{tikzpicture}
end{document}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Just load the optional preview
package of the standalone
class, and I quote (page 9):
If enabled this option loads the
preview
package with thetightpage
option and wraps the content into a preview environment. This crops
the content to its natural size plus a specified border.
documentclass[preview]{standalone}
usepackage{tikz}
usepackage{mwe}
begin{document}
includegraphics[scale=1]{example-image-a}
begin{tikzpicture}
node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};
path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);
end{tikzpicture}
end{document}
add a comment |
up vote
2
down vote
Just load the optional preview
package of the standalone
class, and I quote (page 9):
If enabled this option loads the
preview
package with thetightpage
option and wraps the content into a preview environment. This crops
the content to its natural size plus a specified border.
documentclass[preview]{standalone}
usepackage{tikz}
usepackage{mwe}
begin{document}
includegraphics[scale=1]{example-image-a}
begin{tikzpicture}
node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};
path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);
end{tikzpicture}
end{document}
add a comment |
up vote
2
down vote
up vote
2
down vote
Just load the optional preview
package of the standalone
class, and I quote (page 9):
If enabled this option loads the
preview
package with thetightpage
option and wraps the content into a preview environment. This crops
the content to its natural size plus a specified border.
documentclass[preview]{standalone}
usepackage{tikz}
usepackage{mwe}
begin{document}
includegraphics[scale=1]{example-image-a}
begin{tikzpicture}
node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};
path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);
end{tikzpicture}
end{document}
Just load the optional preview
package of the standalone
class, and I quote (page 9):
If enabled this option loads the
preview
package with thetightpage
option and wraps the content into a preview environment. This crops
the content to its natural size plus a specified border.
documentclass[preview]{standalone}
usepackage{tikz}
usepackage{mwe}
begin{document}
includegraphics[scale=1]{example-image-a}
begin{tikzpicture}
node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};
path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);
end{tikzpicture}
end{document}
answered 9 hours ago
AndréC
5,6471937
5,6471937
add a comment |
add a comment |
Mouli Modak is a new contributor. Be nice, and check out our Code of Conduct.
Mouli Modak is a new contributor. Be nice, and check out our Code of Conduct.
Mouli Modak is a new contributor. Be nice, and check out our Code of Conduct.
Mouli Modak 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%2f460236%2fi-want-a-figure-to-be-positioned-above-a-tikzpicture%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
Welcome to TeX.SE. You only need to put the picture in a node,
node at (5,3) {includegraphics[scale=1]{m4.pdf}};
. However, I do not have your picture, so I do not know if(5,3)
works, you may need to use different coordinates.– marmot
10 hours ago
Thank you, it worked. @marmot
– Mouli Modak
10 hours ago
@CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
– marmot
9 hours ago
@CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
– marmot
9 hours ago
@marmot Close vote retracted since there's an answer
– CarLaTeX
9 hours ago