How can I render a LaTeX document without pages?

Almost always, I simply render electronic documents, so I don't need pages. Also, pages make it difficult to arrange images in a document.

I want to draw TikZ graphs for my blog articles, and I don't want to see pages when I walk with graphs. I want vertically infinite canvas that the web layout provides.

How can I remove pages in LaTeX documents?

• Something like standalone or tikzexternalize? – user31729 Apr 25 '16 at 3:26
• What is standalone? – crocket Apr 25 '16 at 3:26
• A class which provides very tight boundaries, i.e. the 'page' is just th the content which has been typeset – user31729 Apr 25 '16 at 3:27
• Is there not a document class without pages? – crocket Apr 25 '16 at 3:28
• What's the problem with a page? The content must be typeset somewhere. Where should it go to? – user31729 Apr 25 '16 at 3:30

I derived an answer from TikZ to non-PDF

% blah.tex
\documentclass[convert]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node {ok};
\end{tikzpicture}
\end{document}


[convert] option to standalone class requires convert from ImageMagick and -shell-escape option to be passed to pdflatex.

• Why do you use the external library? – mirkom Apr 25 '16 at 5:02
• I didn't know [convert] clashes with external library. – crocket Apr 25 '16 at 5:12
• If you run pdflatex -shell-escape with the convert option you get a pdf AND a png. The external library outputs a pdf every time it sees a tikzpicture that is to be used in a document if you have many pictures to reduce typesetting time. – mirkom Apr 25 '16 at 5:15
• Did not you install anything to get the png image? I recall I had to install Image Magick to get the png. I think this is something to include in your answer. – mirkom Apr 25 '16 at 5:24