I'm new to PGF and TikZ, that is, I've been poking around with it for the last couple of days, slowly going through the manual. In my efforts, I've always looked for an easy way to create and position different element relative to each other.
Here, let me show you what I mean. Let's say I have this:
Code: Select all
\documentclass[12pt]{article}
\usepackage{tikz}
\begin{document}
\tikzset{test/.style={circle, draw=black}}
\begin{figure}
\centering
\begin{tikzpicture} [scale=1, every node/.style={scale=1}]
\node[test] at (0,0) (node1-1) {1};
\node[test] at (0,-2) (node1-2) {2};
\node[test] at (2,-2) (node1-3) {3};
\node[test] at (2, 0) (node1-4) {4};
\end{tikzpicture}
\begin{tikzpicture} [scale=1, every node/.style={scale=1}]
\node[test] at (0,0) (node2-1) {1};
\node[test] at (0,-2) (node2-2) {2};
\node[test] at (2,-2) (node2-3) {3};
\node[test] at (2, 0) (node2-4) {4};
\end{tikzpicture}
\end{figure}
\end{document}
So, let me show you what it is that I would like to do with a mock-up example (this code isn't compilable since I made up the syntax myself).
Code: Select all
\documentclass[12pt]{article}
\usepackage{tikz}
\begin{document}
\tikzset{test/.style={circle, draw=black}}
\begin{figure}
\centering
\begin{tikzpicture}
\begin{element}[place at cordinate (0,0), scale=1]
\begin{tikzpicture} [scale=1, every node/.style={scale=1}]
\node[test] at (0,0) (node1-1) {1};
\node[test] at (0,-2) (node1-2) {2};
\node[test] at (2,-2) (node1-3) {3};
\node[test] at (2, 0) (node1-4) {4};
\end{tikzpicture}
\end{element}
\begin{element}[place at cordinate (0,4), scale=1]
\begin{tikzpicture} [scale=1, every node/.style={scale=1}]
\node[test] at (0,0) (node2-1) {1};
\node[test] at (0,-2) (node2-2) {2};
\node[test] at (2,-2) (node2-3) {3};
\node[test] at (2, 0) (node2-4) {4};
\end{tikzpicture}
\end{element}
\end{tikzpicture}
\end{figure}
\end{document}
Now, what I'm searching for isn't an detailed example how to do this, but rather where I should look. How do people solve this? I'm open to the possibility that I'm on the complete wrong track here. In that case, please correct me.
For example, I want to create an array of a 16 small networks, place them in a 4 by 4 fashion, take this array and stick it above a similar type och array and still have space to the left for placement of new elements. Right now, I don't really see how I could do this, despite having searched the internet (including this forum) and the manual for a couple of days now.
I'm happy for any kind of answers that can point me in the right direction!