I am using a template for my thesis and I would like to change the margins. Actually, I'm satisfied with all the margins, except the top margin which is too tight. But when I try to use geometry package, everything is corrupted and the text starts from the toppest part of the page (maybe I can call it a 0 cm margin). I think the reason is that I have a headline at the top of each page which includes the title of the chapter. Could you please help me with my problems?

In case you need, I have the following line in my main.tex

\documentclass[11pt, oneside]{Thesis} % The default font size and one-sided printing (no margin offsets)

I'm actually totally new to Latex, but I assume that what is interesting to you in the thesis.cls file is the following:

\setmarginsrb  { 1.5in}  % left margin
                    { 0.6in}  % top margin
                    { 1.0in}  % right margin
                    { 0.8in}  % bottom margin
                    {  20pt}  % head height
                    {0.25in}  % head sep
                    {   9pt}  % foot height
                    { 0.3in}  % foot sep

If I still have not provided enough information, may I kindly ask you to download the template from Here? The template sounds complicated to me and I don't know which parts to keep and which parts to leave out.

  • There is a whole bunch of classes that are called ‘Thesis’. Where did you get it from? – Bernard Nov 1 '15 at 19:32
  • Please provide the actual documentclass file (or its location) along with a complete, but minimal(!!) .tex file that others can test. – jon Nov 1 '15 at 19:54
  • Dear @jon and Dear Berard, Thanks a lot for your helps. I tried to complete my question. Could you please take another look at that? Thanks. – texy Nov 1 '15 at 20:58
  • 1
    Not quite useful enough, I'm afraid: for .tex files, we really need complete (but minimal) files. Please read about minimal examples (or see here). – jon Nov 1 '15 at 21:24
  • 1
    The class uses the package vmargin that I can't recommend; so you can't load also geometry, because the two packages fight with one another. – egreg Nov 1 '15 at 23:22

The template does not use package vmargin in its current form. It uses package geometry and you can change the margins using \geometry{margin=1in}.


Without posting a minimal example, it is difficult to help you achieve what you want in the most ideal way possible.

Without knowing how your thesis.sty file looks, I could suggest that you alter the top margin manually by adjusting the vertical offset from the top of the page \voffset TeX primitive.

% Syntax: \voffset=⟨dimen⟩


The value can be positive or negative. Keep in mind that the default value is probably set within the thesis.sty file (that you did not post)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.