Code to create the pages for the space-time matrix and fill the with the
template.