As my figure keeps crossing the margins I end up rescaling it at the end using
\begin{tikzpicture}[scale=5/10,transform shape]. This works most of the time but it seems to me like its a hackish way of doing so. Is it possible to place nodes like we draw on a graph paper in the following manner:
- Draw a thin background of a 'grid' with the size of each square defined according to your needs.
- Use the grid to place the nodes. This way we can take precaution when deciding the size of our node objects so that we don't cross the margin.
Although I can draw a grid and select the right position of the grid by choosing the right relative coordinate, the task of selecting the coordinate becomes repetitive and painful. Is there a better way to make sure that the nodes are laid out in a tikzpicture a better way?
\draw (5,5) rectangle (10,8)what you want? If you need absolute measurements, you can use\textwidth/10. – Caramdir Apr 08 '11 at 16:08