My university provided me with a LaTeX template to prepare my thesis but they didn't update the class file although they have changed the rules. In the image, you will see the current rules. Also, the following code part of the class file is the relevant part for it. I tried everything I know but I failed. Can anyone please update it for me? enter image description here

Rules in the image file: top, bottom, outer sides: 2.5 cm spaces, inner sides: 4 cm spaces

Besides the image file, they also said that:

Page numbers must be 1.5 cm above the bottom of the page, in the direction of the reading.

    \setlength{\evensidemargin}{1mm}     %% 1 in(25.4 mm) + 15.6mm = 40 mm
  • I would suggest to use package geometry to set the margins. It is quite easy to use (see the manual). But because the margins in the code above are set using \AtBeginDocument, you would have to use \newgeometry after \begin{document} to change the margins. However, if your university provides a template, that does not fit the rules, you should also contact the maintainer of the template.
    – cabohah
    Nov 7, 2022 at 7:45
  • @cabohah is it going to ruin the other rules, like "top margin for odd-numbered headers (like 1. INTRODUCTION) must be 5 cm, but for other pages still 2.5 cm" ? Because I have tried similar to your suggestion and it ruined everything else, that's why I want to update it in the above code part.
    – Emr
    Nov 7, 2022 at 7:49
  • @Emr I guess by the last rule they mean the distance between the top of the page and the Chapter heading should be 5 cm. That is not a geometry parameter, but could be accomplised with titlesec or a similar package. Nov 7, 2022 at 9:27
  • @Emr Is that template file publicly available? Nov 7, 2022 at 9:28

1 Answer 1


Solved by geometry package using with asymmetric

  • 2
    Great. // Can you please Edit your answer and give some more details?
    – MS-SPO
    Nov 8, 2022 at 21:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .