the guts behind plos' automated xml->pdf production.