I'm trying to update a old template. Therefore I want to replace the vmargin package by the geometry package:

Code before:


Code after:


However, the margins are not the same. For example, the header line is much higher than before. Is there a way, to get the same margins by using the geometry package?


  • 1
    Welcome to TeX.SX! Switching to geometry is indeed a good choice. – egreg Oct 17 '17 at 15:41

The difference in height is as a result of includeheadfoot. Add this option to your geometry specification.

As an example showcasing the similar output, consider the following code using vmargin:




Here is some text.


Assume the output is vmargin_exampe.pdf. Now compile:

enter image description here


Here is some text.



| improve this answer | |

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.