# Graphs in questions - tikz [duplicate]

Is it possible to make graphs in questions using tikz? Or must I insert it as a picture? I wanted to ask a question about graph theory. Thanks in advance!

pdftops filename.pdf - | pstopnm | pnmtopng > filename.png

• Doesn't convert filename.pdf filename.png work? – lhf Nov 9 '11 at 0:16
• @Mariano: you mean besides needing Imagemagick installed? But if you have access to pdftops, you can also use pdftoppm -png filename.pdf > filename.png which belongs to the same software packages as pdftops (which would be the pdf library poppler). I can conceive, however, a good reason to chain pdf2ps (which belongs to ghostscript) and pstopnm and pnmtopng (which belong to netpbm) when neither poppler nor imagemagick are installed. – Willie Wong Nov 9 '11 at 9:24