generate .sty and .tex in latex backend, .pdf in pdf backend