Here is my code:





And here is the result: enter image description here

The question is, why is the margin before text so large? Is there a way to reduce it?

  • Why don't you use geometry package?
    – user11232
    Mar 1 '15 at 16:10
  • Well I don't know. I'm newbie and just used the package I've read about.
    – Ivan
    Mar 1 '15 at 16:22
  • OK, then better start using geometry for changing page layout. You can read the manual at www.texdoc.net or run texdoc geometry from command prompt.
    – user11232
    Mar 1 '15 at 16:28

You should use geometry instead of vmargin. But still, to answer why it happens, the macro \setmarginsrb has these arguments

\setmarginsrb{left margin}{top margin}{right margin}{bottom margin}{head height}{head sep}{foot height}{foot skip}

When you say


You are specifying a top margin of 2.5cm along with head height 11pt, head sep of 1.8cm so the first text line occurs at a distance of 2.5cm+11pt+1.8cm from the top of the paper. Here is a demo of the same using showframe package.

enter image description here

Hope things are clear now. If you want to escape from these troubles, just use

  • 1
    vmargin has the big defect of abusing \hoffset and \voffset, but several other packages act under the assumption that these parameters keep their default value of 0pt.
    – egreg
    Mar 1 '15 at 17:05

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.