2

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?

  • 1
    Something like standalone or tikzexternalize? – user31729 Apr 25 '16 at 3:26
  • What is standalone? – crocket Apr 25 '16 at 3:26
  • 1
    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
  • 1
    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
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.