[Tex/LaTex] How to change margins in a thesis template


I'm using an online available LaTeX template for my PhD thesis.
In the template, the margins are 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

As requested by my University, the margins have to be:

Inside margins: 40mm
Top and Outside margins: 15mm
Bottom margins: 20mm

How do the template margins have to be modified in order to address the University request?

Best Answer

I would replace the \setmarginsrb{} with the \usepackage{geometry}, see more here.

Something like this in the preamble:

letterpaper, % a4paper
left=   40 mm,
right=  40 mm,
top=    15 mm,
bottom= 20 mm,

You can also specify inner and outer margins with package geometry

Assuming I am interpreting your university's guidelines correct, maybe that is the real issue, that their guidelines are unclear.