# Setting margins with LyX

I've looked around and can't seem to get my problem right. I'm trying to set the margins of my thesis and it looks right on screen (PDF) but when i print it it's totally different. I'm using a class file and layout (with LyX) from ucb and am trying to modify the margins to fit my schools requirements. 1.6" left, 1" elsewhere with page # top right.

For example, my left margin with the settings below measures to just under 1.5" but my understanding is the margin is set to 1.6". The distance from top of page to top of page # is measuring at 1.4" instead of 0.75"

Please let me know if I am misunderstanding things. Thanks in advance

Here is the code from the .cls

%%%%% SET THE OVERALL DOCUMENT PROPERTIES, such as page numbering,
% margins... Initialize several global document properties, but do so
% *before* the beginning of the document to forces these changes.
\AtBeginDocument{
\setlength{\topmargin}{-.25in}
\setlength{\topskip}{0in}   % first line, down from page number
\setlength{\footskip}{0pt}
\setlength{\oddsidemargin}{.6in}
\setlength{\evensidemargin}{.6in}
\setlength{\parindent}{0.5in}   % somewhere between 0.3" and 0.5"
\setlength{\textwidth}{5.9in}
\setlength{\leftmargini}{3.5em}
\setlength{\leftmarginii}{2.2em}
\setlength{\leftmarginiii}{2.2em}
\setlength{\leftmarginiv}{2.2em}
\setlength{\leftmarginv}{2.2em}
\setlength{\leftmarginvi}{2.2em}
\setlength{\leftmargin}{\leftmargini}
\setlength{\labelsep}{.5em}
\setlength{\labelwidth}{ 1.5em}
\pagenumbering{arabic}
\markright{}
\onecolumn
\raggedbottom
\normalsize
\normalfont
\EmphReset  % bold or underlined?
\doublespacing  % footnotes and floats still singlespaced
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{\value{th@SecNum}}

-