[Tex/LaTex] How to make unlimited sheet of paper in LaTeX?


How can I make LaTeX to do the unlimited (just as big, as the content) sheet of paper?

So everything goes right on the one page.

Best Answer

The package incgraph provides an environment inctext which does exactly what you look for. The text or graph or whatever determines the paper size. That means, width and height of the paper are both determined by the content. This could be useful e.g. for drawing pictures. I added an example where a tikzpicture is drawn on the second sheet of paper (without using the externalization library which is brillant but often a pain).



    \path[fill=yellow!50!white] (0,0) circle (11mm);
    \path[fill=white] (0,0) circle (9mm);
    \foreach \w/\c in {90/red,210/green,330/blue}
    {\path[shading=ball,ball color=\c] (\w:1cm) circle (7mm);}

The picture actually shows TWO sheets of paper with the Adobe Reader.

enter image description here