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 am using "elsarticle" document class for my Elsevier paper and I want to change the margins in all side to 2.5cm. How can I do this? I used the code below:













I used the code below to control the margins, but the height of the text is not proper.

\oddsidemargin = 0cm
\topmargin = 0cm
\textheight = 25cm
\textwidth = 16cm

because A4 paper is 21*30cm and I reduced 5cm and wrote 15*25 without any excess margin. What is the solution?


share|improve this question
Also there is a blank page at first numbered 1. then my paper begins! How strange is this class!! please I should finish this work by tomorrow morning. it means I have just 8 hours without sleeping. regards. – Mohammad May 17 '12 at 17:10
Sorry, but it's not a good idea to switch to another document class the day before a deadline. – lockstep May 17 '12 at 17:13
up vote 5 down vote accepted

The solution is to use the geometry package.


% \usepackage[top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.5cm]{geometry}
\usepackage[margin=2.5cm]{geometry}% by courtesy of Mico




share|improve this answer
thank you so much. But how about the first excess blank page that is appeared in the paper? what can I do to it? this is the first time I use "elsarticle". I also have problem with reference part of the problem! – Mohammad May 17 '12 at 17:20
I know it is not a good idea but I know that I can do this with your help. Now I have just 2 problems. 1) First blank page. 2) I don't see "6. Reference"! – Mohammad May 17 '12 at 17:24
@Mico I swear I was looking for that one, but couldn't find it. – lockstep May 17 '12 at 17:28
@Mohammad Please ask a new question and make sure that both problems actually show up in a compilable example. Without it, we can only guess. – lockstep May 17 '12 at 17:30
You need to use the \documentclass without any of the options, otherwise you'll get a conflict. – Bernhard Apr 2 '14 at 10:35

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.