Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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{\headheight}{0pt}
\setlength{\headsep}{0pt}
\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?

share|improve this question
2  
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

1 Answer 1

up vote 15 down vote accepted

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}

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

 
discard

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.