add keep_tex option to pdf_document and beamer_presentation