PDF's now properly generated.

This fixes the latex errors.