write tex2pdf cmd using cpp