I drew a family tree using TikZ with the positioning library, following in the footsteps of Gonzalo.
The problem is that there is a blank page generated before the family tree. Can anyone explain why it is there and how to get rid of it? I've tried fiddling with the code to shrink the tree with no success. I put a bounding box around the figure, but the box is on the same page.
I've left out the connecting edges for brevity. It is still quite long. If necessary I could probably strip it down further, but if I do, this also increases the risk that a fix may not work on the actual example.
@DavidCarlisle suggested the workaround
\setlength{\textheight}{.8\maxdimen}
This suppresses the blank page, but also suppresses any additional pages.
\documentclass{article}
\usepackage{tikz}
\usepackage{standalone}
\usetikzlibrary{positioning}
\setlength{\oddsidemargin}{-0.6in}
\setlength{\evensidemargin}{-0.10in}
\setlength{\topmargin}{-0.5in}
\setlength{\headsep}{0.0in}
\pagenumbering{gobble}
\begin{document}
\tikzset{
every node/.style={rectangle,draw,minimum height=3em,text width=2.0cm},
female/.style = {fill=red!20, rounded corners},
male/.style = {fill=blue!20},
neutral/.style = {fill=green!20}
}
\begin{tikzpicture}[node distance=8pt and 33pt]
% GEN 1
\node[female] (Female1) {Female1};
\node[male,below=of Female1] (Male1) {Male1};
% GEN 2
\node[female,above right=of Female1, yshift=5cm] (Female2) {Female2};
\node[female,below=of Female2, yshift=-2cm] (Female3) {Female3};
\node[male,below=of Female3, yshift=-2cm] (Male2) {Male2};
\node[male,below=of Male2, yshift=-2cm] (Male3) {Male3};
\node[female,below=of Male3, yshift=-4cm] (Female5) {Female5};
% % GEN 2 SPOUSES
\node[male,above=of Female2] (Male4) {Male4};
\node[male,above=of Female3] (Male5) {Male5};
\node[male,above=of Male2] (Male2-wife) {Wife};
\node[female,above=of Male3] (Female6) {Female6};
\node[male,below=of Female5] (Male6) {Male6};
% GEN 3
\node[female,above right=of Female2, yshift=4cm] (Female7) {Female7};
\node[male,below=of Female7, yshift=-1.5cm] (Male7) {Male7};
\node[female,below=of Male7, yshift=-1cm] (Female8) {Female8};
\node[male,below=of Female8, yshift=-1cm] (Male8) {Male8};
\node[male,right=of Female3] (Female9) {Female9};
\node[female,above right=of Male3, yshift=4cm] (Female10) {Female10};
\node[female,below=of Female10, yshift=-3cm] (Female11) {Female11};
\node[male,below=of Female11, yshift=-1.5cm] (Male9) {Male9};
\node[male,below=of Male9, yshift=-0.5cm] (Male10) {Male10};
\node[male,right=of Male6] (Male11) {Male11};
% GEN 3 SPOUSES
\node[male,above=of Female7] (Male12) {Male12};
\node[male,below=of Female7] (Female7-husband) {husband};
\node[male,below=of Female10] (Male13) {Male13};
\node[male,above=of Female11] (Male14) {Male14};
\node[male,below=of Female11] (Male15) {Male15};
\node[female,below=of Male10] (Female12) {Female12};
% GEN 4
\node[female,right=of Male12] (Female7-daughter1) {daughter};
\node[female,below=of Female7-daughter1] (Female7-daughter2) {daughter};
\node[male,right=of Female9, yshift=0.5cm] (Male16) {Male16};
\node[male,right=of Female10, yshift=0.5cm] (Male17) {Male17};
\node[female,below=of Male17] (Female18) {Female18};
\node[male,right=of Male14, yshift=1cm] (Male18) {Male18};
\node[female,right=of Female11, yshift=0.1cm] (Female19) {Female19};
\node[male,right=of Male15] (Male19) {Male19};
\node[female,right=of Male10, yshift=0.5cm] (Female20) {Female20};
\node[male,below=of Female20] (Male20) {Male20};
% GEN 5
\node[male,right=of Male20, yshift=1cm] (Male20-son1) {son};
\node[male,below=of Male20-son1] (Male20-son2) {son};
\node[male,below=of Male20-son2] (Male20-son3) {son};
\node[female,below=of Male20-son3] (Male20-daughter1) {daughter};
\end{tikzpicture}
\end{document}
UPDATE:
Thanks to Harish and Gonzalo for the solutions. They both work, and it was difficult to pick one, but I liked the simplicity of \usepackage[a4paper,margin=1in]{geometry}, so I'm currently using that.


Overfull \vbox (147.53874pt too high) has occurred while \output is active... – Paul Gaborit Feb 09 '14 at 15:06