Continue tikz picture on next page
I want to place a node
of a tikzpicture
depending on a node
of a previous tikzpicture
.
MWE:
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usetikzlibrary{positioning}
begin{document}
centering
begin{tikzpicture}
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}
node[below=of b] (c) {c};
end{tikzpicture}
captionof{figure}{test}
end{document}
Transforming coordinates, so (0,0) from tikzpicture is put in the desired place of the page and Extract x, y coordinate of an arbitrary point on curve in TikZ indicate that using overlay
could be an option, but I actually believe that this isn't the right way to go.
Using an overlay also causes problems to the position of the caption.
tikz-pgf
add a comment |
I want to place a node
of a tikzpicture
depending on a node
of a previous tikzpicture
.
MWE:
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usetikzlibrary{positioning}
begin{document}
centering
begin{tikzpicture}
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}
node[below=of b] (c) {c};
end{tikzpicture}
captionof{figure}{test}
end{document}
Transforming coordinates, so (0,0) from tikzpicture is put in the desired place of the page and Extract x, y coordinate of an arbitrary point on curve in TikZ indicate that using overlay
could be an option, but I actually believe that this isn't the right way to go.
Using an overlay also causes problems to the position of the caption.
tikz-pgf
Have you tried your code removingcentering
in firsttikzpicture
?
– ferahfeza
8 hours ago
@ferahfeza Yes. this would cause both pictures to be left aligned
– Ben
8 hours ago
add a comment |
I want to place a node
of a tikzpicture
depending on a node
of a previous tikzpicture
.
MWE:
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usetikzlibrary{positioning}
begin{document}
centering
begin{tikzpicture}
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}
node[below=of b] (c) {c};
end{tikzpicture}
captionof{figure}{test}
end{document}
Transforming coordinates, so (0,0) from tikzpicture is put in the desired place of the page and Extract x, y coordinate of an arbitrary point on curve in TikZ indicate that using overlay
could be an option, but I actually believe that this isn't the right way to go.
Using an overlay also causes problems to the position of the caption.
tikz-pgf
I want to place a node
of a tikzpicture
depending on a node
of a previous tikzpicture
.
MWE:
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usetikzlibrary{positioning}
begin{document}
centering
begin{tikzpicture}
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}
node[below=of b] (c) {c};
end{tikzpicture}
captionof{figure}{test}
end{document}
Transforming coordinates, so (0,0) from tikzpicture is put in the desired place of the page and Extract x, y coordinate of an arbitrary point on curve in TikZ indicate that using overlay
could be an option, but I actually believe that this isn't the right way to go.
Using an overlay also causes problems to the position of the caption.
tikz-pgf
tikz-pgf
edited 6 hours ago
Ben
asked 9 hours ago
BenBen
9341520
9341520
Have you tried your code removingcentering
in firsttikzpicture
?
– ferahfeza
8 hours ago
@ferahfeza Yes. this would cause both pictures to be left aligned
– Ben
8 hours ago
add a comment |
Have you tried your code removingcentering
in firsttikzpicture
?
– ferahfeza
8 hours ago
@ferahfeza Yes. this would cause both pictures to be left aligned
– Ben
8 hours ago
Have you tried your code removing
centering
in first tikzpicture
?– ferahfeza
8 hours ago
Have you tried your code removing
centering
in first tikzpicture
?– ferahfeza
8 hours ago
@ferahfeza Yes. this would cause both pictures to be left aligned
– Ben
8 hours ago
@ferahfeza Yes. this would cause both pictures to be left aligned
– Ben
8 hours ago
add a comment |
1 Answer
1
active
oldest
votes
If you add remember picture
and overlay,remember picture
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usetikzlibrary{positioning}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
node[below=of b] (c) {c};
end{tikzpicture}
end{document}
you get
Is that what you are looking for or go at least in the right direction?
From the title of the question I am more thinking you may be looking for something like this:
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usepackage{tikzpagenodes}
usetikzlibrary{positioning}
usepackage{caption}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
path (b|-current page text area.north) coordinate (bshiftedup);
node[below=0pt of bshiftedup] (c) {c};
node[anchor=north,align=center,text width=0.9textwidth] at
(c.south-|current page text area.center) {captionof{figure}{test}};
end{tikzpicture}
end{document}
That way the continuation really starts at the top of the page, which might be useful if the picture doesn't fit on a page.
This is a simple question but it is very useful!
– manooooh
7 hours ago
@Ben Sure. I added one.
– marmot
7 hours ago
@Ben I am sorry, I do not understand what you are saying. Could you please do me a favor and read your comment and gauge whether or not you would understand it if you hadn't the background information that no one apart from you has?figure
s are floats, did you consider this when using them to measure white space? There is actually not white space at all because this is an overlay picture.
– marmot
6 hours ago
@Ben This caption is a caption made withcaptionof
and it is wherever you put it. This has nothing to do withoverlay
but only withnode distance
and the like.
– marmot
6 hours ago
Addingyshift=4pt
to the last "caption"-node and changing thetext width
totextwidth
results in a perfect match for other captionskips/captionwidths
– Ben
6 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
});
}
});
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%2f486099%2fcontinue-tikz-picture-on-next-page%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
If you add remember picture
and overlay,remember picture
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usetikzlibrary{positioning}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
node[below=of b] (c) {c};
end{tikzpicture}
end{document}
you get
Is that what you are looking for or go at least in the right direction?
From the title of the question I am more thinking you may be looking for something like this:
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usepackage{tikzpagenodes}
usetikzlibrary{positioning}
usepackage{caption}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
path (b|-current page text area.north) coordinate (bshiftedup);
node[below=0pt of bshiftedup] (c) {c};
node[anchor=north,align=center,text width=0.9textwidth] at
(c.south-|current page text area.center) {captionof{figure}{test}};
end{tikzpicture}
end{document}
That way the continuation really starts at the top of the page, which might be useful if the picture doesn't fit on a page.
This is a simple question but it is very useful!
– manooooh
7 hours ago
@Ben Sure. I added one.
– marmot
7 hours ago
@Ben I am sorry, I do not understand what you are saying. Could you please do me a favor and read your comment and gauge whether or not you would understand it if you hadn't the background information that no one apart from you has?figure
s are floats, did you consider this when using them to measure white space? There is actually not white space at all because this is an overlay picture.
– marmot
6 hours ago
@Ben This caption is a caption made withcaptionof
and it is wherever you put it. This has nothing to do withoverlay
but only withnode distance
and the like.
– marmot
6 hours ago
Addingyshift=4pt
to the last "caption"-node and changing thetext width
totextwidth
results in a perfect match for other captionskips/captionwidths
– Ben
6 hours ago
add a comment |
If you add remember picture
and overlay,remember picture
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usetikzlibrary{positioning}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
node[below=of b] (c) {c};
end{tikzpicture}
end{document}
you get
Is that what you are looking for or go at least in the right direction?
From the title of the question I am more thinking you may be looking for something like this:
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usepackage{tikzpagenodes}
usetikzlibrary{positioning}
usepackage{caption}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
path (b|-current page text area.north) coordinate (bshiftedup);
node[below=0pt of bshiftedup] (c) {c};
node[anchor=north,align=center,text width=0.9textwidth] at
(c.south-|current page text area.center) {captionof{figure}{test}};
end{tikzpicture}
end{document}
That way the continuation really starts at the top of the page, which might be useful if the picture doesn't fit on a page.
This is a simple question but it is very useful!
– manooooh
7 hours ago
@Ben Sure. I added one.
– marmot
7 hours ago
@Ben I am sorry, I do not understand what you are saying. Could you please do me a favor and read your comment and gauge whether or not you would understand it if you hadn't the background information that no one apart from you has?figure
s are floats, did you consider this when using them to measure white space? There is actually not white space at all because this is an overlay picture.
– marmot
6 hours ago
@Ben This caption is a caption made withcaptionof
and it is wherever you put it. This has nothing to do withoverlay
but only withnode distance
and the like.
– marmot
6 hours ago
Addingyshift=4pt
to the last "caption"-node and changing thetext width
totextwidth
results in a perfect match for other captionskips/captionwidths
– Ben
6 hours ago
add a comment |
If you add remember picture
and overlay,remember picture
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usetikzlibrary{positioning}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
node[below=of b] (c) {c};
end{tikzpicture}
end{document}
you get
Is that what you are looking for or go at least in the right direction?
From the title of the question I am more thinking you may be looking for something like this:
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usepackage{tikzpagenodes}
usetikzlibrary{positioning}
usepackage{caption}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
path (b|-current page text area.north) coordinate (bshiftedup);
node[below=0pt of bshiftedup] (c) {c};
node[anchor=north,align=center,text width=0.9textwidth] at
(c.south-|current page text area.center) {captionof{figure}{test}};
end{tikzpicture}
end{document}
That way the continuation really starts at the top of the page, which might be useful if the picture doesn't fit on a page.
If you add remember picture
and overlay,remember picture
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usetikzlibrary{positioning}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
node[below=of b] (c) {c};
end{tikzpicture}
end{document}
you get
Is that what you are looking for or go at least in the right direction?
From the title of the question I am more thinking you may be looking for something like this:
documentclass[a7paper]{scrartcl}
usepackage{tikz}
usepackage{tikzpagenodes}
usetikzlibrary{positioning}
usepackage{caption}
begin{document}
centering
begin{tikzpicture}[remember picture]
node (a) {a};
node[below left=of a] (b) {b};
end{tikzpicture}
newpage
begin{tikzpicture}[overlay,remember picture]
path (b|-current page text area.north) coordinate (bshiftedup);
node[below=0pt of bshiftedup] (c) {c};
node[anchor=north,align=center,text width=0.9textwidth] at
(c.south-|current page text area.center) {captionof{figure}{test}};
end{tikzpicture}
end{document}
That way the continuation really starts at the top of the page, which might be useful if the picture doesn't fit on a page.
edited 7 hours ago
answered 7 hours ago
marmotmarmot
120k6157293
120k6157293
This is a simple question but it is very useful!
– manooooh
7 hours ago
@Ben Sure. I added one.
– marmot
7 hours ago
@Ben I am sorry, I do not understand what you are saying. Could you please do me a favor and read your comment and gauge whether or not you would understand it if you hadn't the background information that no one apart from you has?figure
s are floats, did you consider this when using them to measure white space? There is actually not white space at all because this is an overlay picture.
– marmot
6 hours ago
@Ben This caption is a caption made withcaptionof
and it is wherever you put it. This has nothing to do withoverlay
but only withnode distance
and the like.
– marmot
6 hours ago
Addingyshift=4pt
to the last "caption"-node and changing thetext width
totextwidth
results in a perfect match for other captionskips/captionwidths
– Ben
6 hours ago
add a comment |
This is a simple question but it is very useful!
– manooooh
7 hours ago
@Ben Sure. I added one.
– marmot
7 hours ago
@Ben I am sorry, I do not understand what you are saying. Could you please do me a favor and read your comment and gauge whether or not you would understand it if you hadn't the background information that no one apart from you has?figure
s are floats, did you consider this when using them to measure white space? There is actually not white space at all because this is an overlay picture.
– marmot
6 hours ago
@Ben This caption is a caption made withcaptionof
and it is wherever you put it. This has nothing to do withoverlay
but only withnode distance
and the like.
– marmot
6 hours ago
Addingyshift=4pt
to the last "caption"-node and changing thetext width
totextwidth
results in a perfect match for other captionskips/captionwidths
– Ben
6 hours ago
This is a simple question but it is very useful!
– manooooh
7 hours ago
This is a simple question but it is very useful!
– manooooh
7 hours ago
@Ben Sure. I added one.
– marmot
7 hours ago
@Ben Sure. I added one.
– marmot
7 hours ago
@Ben I am sorry, I do not understand what you are saying. Could you please do me a favor and read your comment and gauge whether or not you would understand it if you hadn't the background information that no one apart from you has?
figure
s are floats, did you consider this when using them to measure white space? There is actually not white space at all because this is an overlay picture.– marmot
6 hours ago
@Ben I am sorry, I do not understand what you are saying. Could you please do me a favor and read your comment and gauge whether or not you would understand it if you hadn't the background information that no one apart from you has?
figure
s are floats, did you consider this when using them to measure white space? There is actually not white space at all because this is an overlay picture.– marmot
6 hours ago
@Ben This caption is a caption made with
captionof
and it is wherever you put it. This has nothing to do with overlay
but only with node distance
and the like.– marmot
6 hours ago
@Ben This caption is a caption made with
captionof
and it is wherever you put it. This has nothing to do with overlay
but only with node distance
and the like.– marmot
6 hours ago
Adding
yshift=4pt
to the last "caption"-node and changing the text width
to textwidth
results in a perfect match for other captionskips/captionwidths– Ben
6 hours ago
Adding
yshift=4pt
to the last "caption"-node and changing the text width
to textwidth
results in a perfect match for other captionskips/captionwidths– Ben
6 hours 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%2f486099%2fcontinue-tikz-picture-on-next-page%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
Have you tried your code removing
centering
in firsttikzpicture
?– ferahfeza
8 hours ago
@ferahfeza Yes. this would cause both pictures to be left aligned
– Ben
8 hours ago