I am working with small graphics which must not have any border. Surprisingly for me this code produces small (1-2mm) borders left and right. Could you enlighten me?
This code...
\documentclass[tikz=true,border=0pt]{standalone}
\begin{document}%
\begin{tikzpicture}[x=1mm, y=1mm]%
\draw [line width=5mm, color=green] (0,0) -- +(5,0) {};
\draw [line width=5mm, color=red] (5,0) -- +(5,0) {};
\draw [line width=5mm, color=green] (10,0) -- +(5,0) {};
\draw [line width=5mm, color=red] (15,0) -- +(5,0) {};
\end{tikzpicture}%
\end{document}
..produces this output:
\draw [fill = green, color = green] (0, 0) rectangle +(5, 5);
and giving them the right color and the right starting point, you get rid of the side borders.