<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 14pt; ">Hi </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 14pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 14pt; ">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 :(. </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 14pt; "><br></div><div><div><font class="Apple-style-span"
 face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">% left/right margin parameters for thesis style report</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\oddsidemargin 0.5in   </span></font></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; ">\hoffset 0.0in</span><br></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\textwidth 5.5in        </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\marginparwidth 0.0in</span></font></div><div><font class="Apple-style-span" face="'times
 new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\marginparsep 0.0in</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">% top/bottom margin parameters for thesis style report</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\voffset 0.0pt</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\topmargin 0pt  </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times,
 serif"><span class="Apple-style-span" style="font-size: 19px;">\headheight 0pt</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\headsep 0pt</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\textheight 9.0in  </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; "><b>Using this code, here what I am getting:</b></span><br></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size:
 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">left margin: 4.1 cm (should be 3.8 cm)</span></font></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; ">Right margin: 4.1 cm (should be 3.8 cm)</span><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; ">Text width: 13.3 cm (should be 14 cm)</span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; ">Text height: 21.3 cm (Should be 22.86 cm) </span></div><div><span class="Apple-style-span" style="font-family:
 'times new roman', 'new york', times, serif; font-size: 19px; ">Top margin: 3.25 cm (should be 2.54 cm)</span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; ">Bottom margin: 3.3 cm (should be 2.54 cm)</span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; "><b>so what I did in order to get better results: I increased the textwidth and textheight :(</b></span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; "><b>Here what I am using right
 now:</b></span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; "><br></span></div><div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">% left/right margin parameters for thesis style report</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\oddsidemargin .35in  </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\evensidemargin .3in  </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\hoffset 0.0in</span></font></div><div><font
 class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><b>\textwidth 5.77in  </b>       </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\marginparwidth 0.0in</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\marginparsep 0.0in</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">% top/bottom margin parameters for thesis style
 report</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\voffset 0.0pt</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\topmargin 0pt  </span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\headheight 0pt</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">\headsep 0pt</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><b>\textheight 9.45in  </b></span></font></div><div><font
 class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">These codes at least give me the right text width and left and right margin. However, for some reason, I am still having top margin as 3.2 cm and bottom margin as 2.00 cm, whereas I need both to be 2.54 cm. for some reason, top margin becomes greater than 2.54 cm, even though I set everything to zero. I don't know what I am doing wrong here.</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size:
 19px;">Any help would be appreciable.</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">Thanks.</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">Mostafa</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div></div><div><font class="Apple-style-span" face="'times new roman',
 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px; "><br></span></font></div></div></div></body></html>