LaTeX forum ⇒ Theses, Books, Title pagesChange thesis geometry

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

Change thesis geometry

Postby alexis1704 » Thu Sep 29, 2016 2:11 pm

Is it possible to change the following geometry margin:
  1. %----------------------------------------------------------------------------------------
  2. % MARGIN SETTINGS
  3. %----------------------------------------------------------------------------------------
  4.  
  5. \geometry{
  6. paper=a4paper, % Change to letterpaper for US letter
  7. inner=2.5cm, % Inner margin
  8. outer=3.8cm, % Outer margin
  9. bindingoffset=2cm, % Binding offset
  10. top=1.5cm, % Top margin
  11. bottom=1.5cm, % Bottom margin
  12. %showframe,% show how the type block is set on the page
  13. }


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:
  1. \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
  2. \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.
  3. \setmarginnotes{17pt}{51pt}{\onelineskip} % The size of marginal notes, the three values in curly brackets are \marginparsep, \marginparwidth and \marginparpush
  4. \setheadfoot{\onelineskip}{2\onelineskip} % Sets the space available for the header and footer
  5. \setheaderspaces{*}{2\onelineskip}{*} % Sets the spacing above and below the header
  6. \setlength{\trimtop}{0pt} % Sets the spacing above the trimmed area, i.e. moved the trimmed area down the page if positive
  7.  
  8. % 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
  9. \setlength{\trimedge}{\stockwidth}
  10. \addtolength{\trimedge}{-\paperwidth}
  11.  
  12. \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?

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Thu Sep 29, 2016 7:37 pm

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

  1. \documentclass[a4paper]{memoir}
  2.  
  3. \setlrmarginsandblock{37.125mm}{*}{0.9}
  4. \setulmarginsandblock{37.125mm}{*}{*}
  5. \setmarginnotes{17pt}{51pt}{\onelineskip}
  6. \setheadfoot{\onelineskip}{2\onelineskip}
  7. \setheaderspaces{*}{2\onelineskip}{*}
  8. \setlength{\trimtop}{0pt}
  9.  
  10. \setlength{\trimedge}{\stockwidth}
  11. \addtolength{\trimedge}{-\paperwidth}
  12.  
  13. \checkandfixthelayout
  14.  
  15. \usepackage{layout}
  16.  
  17. \begin{document}
  18.  
  19. \layout
  20.  
  21. \end{document}


This gives the following values:

  1. \oddsidemargin = 33pt
  2. \evensidemargin = 22pt
  3. \headheight = 12pt
  4. \textheight = 634pt
  5. \marginparsep = 17pt
  6. \footskip = 24pt
  7. \hoffset = 0pt
  8. \paperwidth = 597pt
  9. \topmargin = -2pt
  10. \headsep = 24pt
  11. \textwidth = 396pt
  12. \marginparwidth = 51pt
  13. \voffset = 0pt
  14. \paperheight = 845pt


The following setup with geometry gives nearly identical values:

  1. \documentclass[twoside]{article}
  2. \usepackage{geometry}
  3.  
  4. \geometry{
  5. paper = a4paper , % Change to letterpaper for US letter
  6. inner = \dimexpr1in+33pt\relax , % Inner margin
  7. outer = \dimexpr1in+22pt\relax , % Outer margin
  8. top = \dimexpr1in+12pt+24pt\relax , % Top margin
  9. bottom = \dimexpr1in+24pt\relax, % Bottom margin
  10. marginpar = 51pt ,
  11. marginparsep = 17pt ,
  12. foot = 24pt ,
  13. headsep = 24pt
  14. }
  15.  
  16. \usepackage{layout}
  17.  
  18. \begin{document}
  19.  
  20. \layout
  21.  
  22. \end{document}


The \dimexpr ... \relax used above allows to calculate dimension expressions.

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

User avatar
Johannes_B
Site Moderator
Posts: 4104
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Oct 06, 2016 12:50 pm

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


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 2 guests