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

I need to create a document for a square piece of paper. I've been trying to use \documentclass{minimal}, but it doesn't work.

This is my code:





But the PDF file I get is by no means square. What is wrong with my code?

share|improve this question
Do not use minimal, IMHO it's more a coding example than a real class. What's the problem with using article? – Martin Scharrer Mar 6 '12 at 10:48
I didn't know how to change paper size - I'm quite a beginner, my LaTeX guides don't cover this, and this is what I'd found on the web. You must be right that article is indeed OK. – Tymon Mar 6 '12 at 10:59
@Tymon do a texdoc geometry and go through the documentation of geometry package to find all these details. – Harish Kumar Mar 6 '12 at 14:45
up vote 20 down vote accepted

Use geometry package to set paper size.


enter image description here

For more details, executetexdoc geometry from the command prompt and go through the documentation of geometry package.

Like Martin said in the comment, it is better to use some other class since they support extended features.

share|improve this answer
Thanks a lot!!! – Tymon Mar 6 '12 at 10:54
@Tymon, If you find this answer useful, you may consider accepting it by checking the green tick mark above and also consider upvoting. – Harish Kumar Mar 6 '12 at 11:00
Sure, I've just accepted it, but I can't upvote - too little reputation. – Tymon Mar 6 '12 at 11:07

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.