Adds function for latex pdf viewing.