Continue tikz picture on next page












4















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.










share|improve this question

























  • 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
















4















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.










share|improve this question

























  • 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














4












4








4


2






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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 hours ago







Ben

















asked 9 hours ago









BenBen

9341520




9341520













  • 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



















  • 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

















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










1 Answer
1






active

oldest

votes


















3














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



enter image description here



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}


enter image description here



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.






share|improve this answer


























  • 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? figures 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











  • 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














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
});


}
});














draft saved

draft discarded


















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









3














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



enter image description here



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}


enter image description here



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.






share|improve this answer


























  • 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? figures 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











  • 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


















3














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



enter image description here



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}


enter image description here



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.






share|improve this answer


























  • 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? figures 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











  • 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
















3












3








3







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



enter image description here



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}


enter image description here



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.






share|improve this answer















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



enter image description here



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}


enter image description here



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.







share|improve this answer














share|improve this answer



share|improve this answer








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? figures 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











  • 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





















  • 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? figures 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











  • 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



















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? figures 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? figures 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




















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局