alin on 02/24/11

# connect different tikz pictures on the same page

/ Published in: LaTeX

[overlay] tells Tikz not to compute a bounding box for the picture. Otherwise the bounding box will include all referenced nodes

\usetikzlibrary{shapes}\tikzstyle{every picture}+=[remember picture] \begin{tikzpicture}	\node (a) at (0,0) [rectangle, draw] {};\end{tikzpicture}abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc\begin{tikzpicture}	\node (b) at (0,0) [circle, draw] {};\end{tikzpicture} \begin{tikzpicture}[overlay]	\draw (a) -- (b);\end{tikzpicture}

## Comments

Subscribe to comments
Posted By: alin on February 24, 2011

or use [overlay] for each \draw that uses external references

You need to login to post a comment.