ht = text (0.25, 0.5, 'This is LaTeX text with inline formula $e^{i \pi} = -1$', 'interpreter', 'latex');

print -dpdflatexstandalone tst_latex2
system ("pdflatex tst_latex2.tex");
open tst_latex2.pdf
