# [texhax] Problem with page layout

Fri Aug 26 05:09:01 CEST 2011

```Hello,

** Mostafa ali [2011-08-25 12:02:24 -0700]:

> Hi

> I am writing my thesis using Latex. my thesis specification is as follows: top and bottom margin should be 1 in and left and right margin should be 1.5 in.  The size of the paper is standard (8.5*11 inch) or (21.6*17.94cm). Now I have used the following code in my STY file. but for some reason I am not getting the correct margin. I know this is very trivial, but couldn't fix it :(.

[...]

Use geometry package. For example, add following into preamble of your document
<code>
\usepackage{geometry}
\geometry{letterpaper, hmargin=1.5in, vmargin=1in}
</code>

To understand and tune example see documentation of geometry package.

---