I successfully changed the paper size from A4 to B5 of the Thesis template downloaded from http://www.latextemplates.com/template/masters-doctoral-thesis

I modified the main.tex file by setting twoside and adding the following lines:


The margins are set in the Thesis.cls file at line 74. The default values for A4 paper are:

\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

which have been modified to:

\setmarginsrb   {4.7cm} %leftmargin
                {3.4cm} %topmargin
                {3.4cm} %rightmargin
                {3.4cm} %bottommargin
                {15pt}  % head height
                {0.15in}  % head sep
                {9pt}  % foot height
                {0.3in}  % foot sep

These settings produced a page layout like the following. typical page layout The questions are:

  1. What are the correct margins for the B5 paper size? My University does not provide any information.
  2. With the settings I made in the main.tex and Thesis.cls, it seems I can change only left and right margin, because nothing seems to change by modifying the other parameters. Did I mess up with the code?
  • 4
    The vmargin and geometry packages are not compatible. Moreover, vmargin is not compatible with crop, as far as I know. – egreg Dec 23 '15 at 13:51
  • 3
    And the version of the template you are using is very very obslete. I suggest to get the recent version. – Johannes_B Dec 23 '15 at 15:38
  • 2
    The question what margins are correct, depends on many things. For the SE network, that particular question is off-topic, opinion based and too broad. – Johannes_B Dec 23 '15 at 15:45
  • @Johannes_B should I remove the first question? – Danilo Dec 23 '15 at 17:36
  • No. The template as it was, was bad. Still, i think templates are bad. Upgrading to the new version will get you further and remove the issues you have; i hope. Do your stuff. The rest will resolve itselve. – Johannes_B Dec 23 '15 at 17:39

I have solved my issue by upgrading the template to the latest version, which includes the specification of the margins in the main.tex file.

    inner=16mm,         % Inner margin
    outer=24mm,         % Outer margin
    bindingoffset=10mm, % Binding offset
    top=20mm,           % Top margin
    bottom=28mm,        % Bottom margin
    %showframe,         % show how the type block is set on the page

The class file, that now is named MastersDoctoralThesis.cls, includes the following code, which I did not change.



Finally, I have found some rules of thumb about margins to use here (in Italian).

  • Glad to hear that you could resolve your issues and hopefully a better experience with the upgraded version. – Johannes_B Dec 31 '15 at 12:53

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.