Till now I just create a desired picture for example with QTikz or Tikz-EDT and pass the code afterwards to my document. To fit the picture to the width of the paper I use \resizebox
.
However, if the original picture is much to big the font will be downscaled. If the picture is some points less the width the font is getting bigger. Not much, but it seems not to be beautiful, if the font-size is slightly different in each picture. Of course I could just scale everything beside the font but then the picture gets messy as I originally create distances and witdhs of the node in relation to the font-size inside the editor.
As far as I know it is possible to define a specific boundingbox as the "frame" of a picture.
My question is, if it is possible to define/draw a rectangle with the concrete width of my paper inside a tikz-envorinment so when I create the picture I always "see" how wide the picture should be not to be scaled much at the end.
Something like this:
\begin{tikzpicture}
\defineasboundingbox{\draw start_x, start_y) rectangle (PAPERWIDTH, end_y);} % <-- See remark below
\end{tikzpicture}
Remark: this rectangle should be used as a reference point for my drawing showing me the witdh of my paper where the picture will be placed later inside a \resizebox
I can now draw my picture using the rectangle as a reference.
Or is there somy easier solution just to make sure the font-size is the same in every picture?
Many thanks in advance.
\textwidth
of the document that has to contain your graphics, you can do\path[use as bounding box] (0,0) rectangle ++(<text width>,<your height>);
or\useasboundingbox (0,0) rectangle ++(<text width>,<your height>);
.