allow compile pdf for non .tex extension