\documentclass[margin=5pt,convert,
convert={outext=.png,command=\unexpanded{pdftocairo -r 600 -png \infile}}]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[->] (0,0) -- (7,0);
\draw[->] (0,0) -- (0,1.5);
\draw[thick,domain=0:6.28,smooth] plot(\x,{sin(\x r)}) node[above] {$\sin x$};
\end{tikzpicture}
\end{document}
结果如下:
问 如何编译完成后,生成图片文件?