Theses, Books, Title pagesChange thesis geometry

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
alexis1704
Posts: 8
Joined: Sat Aug 13, 2016 8:56 am

Change thesis geometry

Post by alexis1704 »

Is it possible to change the following geometry margin:

Code: Select all

   %----------------------------------------------------------------------------------------
%   MARGIN SETTINGS
%----------------------------------------------------------------------------------------

\geometry{
    paper=a4paper, % Change to letterpaper for US letter
    inner=2.5cm, % Inner margin
    outer=3.8cm, % Outer margin
    bindingoffset=2cm, % Binding offset
    top=1.5cm, % Top margin
    bottom=1.5cm, % Bottom margin
    %showframe,% show how the type block is set on the page
}
The result is very narrow and I think it should be a bit wider.
I found the margin I need from my institute and they are defined as follow using the class memoir and the following setting:

Code: Select all

\setlrmarginsandblock{37.125mm}{*}{0.9} % The first bracket specifies the spine margin, the second the edge margin and the third the ratio of the spine to the edge. Only one or two values are required and the remaining one(s) can be a star (*) to specify it is not needed. By default the edge margin is 10% smaller and 
\setulmarginsandblock{37.125mm}{*}{*} % The first bracket specifies the upper margin, the second the lower margin and the third the ratio of the upper to the lower. Only one or two values are required and the remaining one(s) can be a star (*) to specify it is not needed.
\setmarginnotes{17pt}{51pt}{\onelineskip} % The size of marginal notes, the three values in curly brackets are \marginparsep, \marginparwidth and \marginparpush
\setheadfoot{\onelineskip}{2\onelineskip} % Sets the space available for the header and footer
\setheaderspaces{*}{2\onelineskip}{*} % Sets the spacing above and below the header
\setlength{\trimtop}{0pt} % Sets the spacing above the trimmed area, i.e. moved the trimmed area down the page if positive

% Comment the two lines below to reverse the position of the trimmed content on the stock paper, i.e. odd pages will have content on the right side instead of the left and even pages will have content on the left side instead of the right
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}

\checkandfixthelayout % Makes sure your specifications are correct and implements them in the document
The problem is that I don't know how to set my margin equal to those because I am loading the .cls file containing the whole structure and settings instead of the class memoir. Do you know how I can change the geometry setting to have the same results of the code above?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Change thesis geometry

Post by cgnieder »

You can inspect the actual values set by memoir with the layout package:

Code: Select all

\documentclass[a4paper]{memoir}

\setlrmarginsandblock{37.125mm}{*}{0.9}
\setulmarginsandblock{37.125mm}{*}{*}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\setlength{\trimtop}{0pt}

\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}

\checkandfixthelayout

\usepackage{layout}

\begin{document}

\layout

\end{document}
This gives the following values:

Code: Select all

\oddsidemargin = 33pt
\evensidemargin = 22pt
\headheight = 12pt
\textheight = 634pt
\marginparsep = 17pt
\footskip = 24pt
\hoffset = 0pt
\paperwidth = 597pt
\topmargin = -2pt
\headsep = 24pt
\textwidth = 396pt
\marginparwidth = 51pt
\voffset = 0pt
\paperheight = 845pt
The following setup with geometry gives nearly identical values:

Code: Select all

\documentclass[twoside]{article}
\usepackage{geometry}

\geometry{
    paper = a4paper , % Change to letterpaper for US letter
    inner = \dimexpr1in+33pt\relax , % Inner margin
    outer = \dimexpr1in+22pt\relax , % Outer margin
    top = \dimexpr1in+12pt+24pt\relax , % Top margin
    bottom = \dimexpr1in+24pt\relax, % Bottom margin
    marginpar = 51pt ,
    marginparsep = 17pt ,
    foot = 24pt ,
    headsep = 24pt
}

\usepackage{layout}

\begin{document}

\layout

\end{document}
The \dimexpr ... \relax used above allows to calculate dimension expressions.

Regards
site moderator & package author
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Change thesis geometry

Post by Johannes_B »

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply