How can I create a paper of A1 size on latex? Or a x,y (in centimeters) dimensions paper?

In \documentclass looks like there isn't this option. I need use the \documentclass{standalone} package too (to print out some formulas).

I would like create a paper with dimensions of x and y centimeters. Could be a paper of A1 size (Wikipedia) too, I think will works fine to me.

I have fond this link but I can't change the \documentclass.

For other users interested

How to generate a standalone equation (formula) using latex without background and with a specified dimension?

With these code below (Bayes_theorem.tex)



\usepackage{amsmath, amssymb, graphics, setspace}

\resizebox{1.0 \textwidth}{!} 


, run:

$pdflatex Bayes_theorem.tex


$convert -geometry 4800x -density 4000 Bayes_theorem.pdf -quality 90 Bayes_theorem.png

And this beatifull formula without background will appear:


This was possible with the help of several community users helping me in this question itself and these others 1, 2.

Thanks so much.

  • Have a look at the geometry package. Nov 22, 2011 at 12:03
  • Do you want to create a poster? If so, there is the related question How to create posters using LaTeX
    – matth
    Nov 22, 2011 at 12:06
  • standalone can be used as a documentclass or as a package, the differences are explained in the documentation. I am not sure what you want here
    – matth
    Nov 22, 2011 at 12:35
  • I don't understand... Why not just use standalone and tell whatever software you print with to scale it to fill A0? LaTeX gives vector output, so only the proportions matter. The output could be the same once printed. Am I missing something?
    – qubyte
    Nov 22, 2011 at 14:39

2 Answers 2


You should use the geometry package:

enter image description here


  • \sloppy used to loosen the spacing requirements to work for a smaller width without overflowing into margin. Should not be needed in your actual document. See Why is text being placed beyond the specified line width?
  • [showframe] option used to display the margins
  • To see the layout also try \usepackage{layout} and add \layout after the begin{document}.



  • 1
    This works very fine with standalone. Really thx.
    – GarouDan
    Nov 22, 2011 at 12:28

is possible with a current geometry package.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .