[texhax] Problem with page layout
Mostafa ali
wremostafa at yahoo.com
Thu Aug 25 21:02:24 CEST 2011
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 :(.
% left/right margin parameters for thesis style report
\oddsidemargin 0.5in
\hoffset 0.0in
\textwidth 5.5in
\marginparwidth 0.0in
\marginparsep 0.0in
% top/bottom margin parameters for thesis style report
\voffset 0.0pt
\topmargin 0pt
\headheight 0pt
\headsep 0pt
\textheight 9.0in
Using this code, here what I am getting:
left margin: 4.1 cm (should be 3.8 cm)
Right margin: 4.1 cm (should be 3.8 cm)
Text width: 13.3 cm (should be 14 cm)
Text height: 21.3 cm (Should be 22.86 cm)
Top margin: 3.25 cm (should be 2.54 cm)
Bottom margin: 3.3 cm (should be 2.54 cm)
so what I did in order to get better results: I increased the textwidth and textheight :(
Here what I am using right now:
% left/right margin parameters for thesis style report
\oddsidemargin .35in
\evensidemargin .3in
\hoffset 0.0in
\textwidth 5.77in
\marginparwidth 0.0in
\marginparsep 0.0in
% top/bottom margin parameters for thesis style report
\voffset 0.0pt
\topmargin 0pt
\headheight 0pt
\headsep 0pt
\textheight 9.45in
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.
Any help would be appreciable.
Thanks.
Mostafa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110825/7e36484d/attachment.html>
More information about the texhax
mailing list