TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Have a look at the geometry package. – Peter Grill Nov 22 '11 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 '11 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 '11 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 '11 at 14:39
up vote 2 down vote accepted

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}.



share|improve this answer
This works very fine with standalone. Really thx. – GarouDan Nov 22 '11 at 12:28

is possible with a current geometry package.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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