# Changing Margins on thesis [duplicate]

Quick question to anyone who has used this LaTeX template:

http://www.latextemplates.com/template/masters-doctoral-thesis

Any ideas on how to change the left margin to get more words onto one page?

## marked as duplicate by Johannes_B, Stefan Pinnow, Ruben, barbara beeton, AndrewSep 18 '17 at 17:10

• I voted to close as duplicate as the updated version of the template is incompatible with the answers below. The more recent question shows this. – Johannes_B Sep 18 '17 at 16:39

From the file vmargin.sty, margins can be set with

\setmargins{leftmargin}{topmargin}{textwidth}{textheight}%


or with

\setmarginsrb{leftmargin}{topmargin}{rightmargin}{bottommargin}%


Define the parameters (leftmargin, topmargin, etc) and put this command just before \begin{document} in the file main.tex.

From vmargin.sty:

Example:

A4 paper, left margin 30mm, top, right, and bottom margin 20mm each, no headers or footers:

\setpapersize{A4}
\setmarginsrb{30mm}{20mm}{20mm}{20mm}{0pt}{0mm}{0pt}{0mm}
\pagestyle{empty}


The same settings would result with:

\setpapersize{A4}
\setmargnohfrb{30mm}{20mm}{20mm}{20mm}

• While the answer is good, I'd suggest avoiding vmargin that's not compatible with other packages, notably atbegshi that's needed for instance by pdfpages. It's better to use geometry for setting the page parameters. – egreg Apr 13 '13 at 21:03

Have you tried the layout package ?

If not, try this, but I cannot guarantee you that it will work...

Just put \usepackage{layout} in the preamble, and put \layout where you want (I do it right after \begin{document}). It'll display a page with the margins, and the names of the margins under the picture...

You can resize every margin like this :

Set \setlength{"Name of the margin wo want to resize"}{"length"} in the preamble.

Here is an example of the \layout :

You just have to resize the right margin...

I hope it'll work with thesis, I haven't tried yet...

• I'm curious, did it work ? – EisenHeim Apr 13 '13 at 21:44
• Using your direction, I have the following errors: (/usr/local/texlive/2012/texmf-dist/tex.latex.tools/layout.sty) Runaway argument? {document] \layout \frontmatter ./main.tex:40: Paragraph ended before \begin was complete. <to be read again> \par I.40 ? – user13907 Apr 13 '13 at 22:18

With this template you should be able to set the margins in the Thesis.cls file.

In the file there is a section for margins as follows

    %----------------------------------------------------------------------------------------
%    MARGINS
%----------------------------------------------------------------------------------------
\setmarginsrb  { 1.5in}  % left margin
{ 0.6in}  % top margin
{ 1.0in}  % right margin
{ 0.8in}  % bottom margin