# Can \documentclass{minimal} create documents with nonstandard page sizes?

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:

\documentclass{minimal}

\special{papersize=14in,14in}
\setlength{\paperwidth}{14in}
\setlength{\paperheight}{14in}
\setlength{\textwidth}{12in}
\setlength{\textheight}{12in}

\topskip0pt
\setlength{\topmargin}{0pt}
\setlength{\oddsidemargin}{0pt}

\begin{document}
\ldots
\end{document}


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

-
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

Use geometry package to set paper size.

\documentclass{minimal}
\usepackage[paperwidth=14in,paperheight=14in,margin=2in,showframe]{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum[1-13]
\end{document}


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.

-
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